In an LC circuit, energy swings back and forth between the capacitor's charge and the inductor's current. Plot charge against current and the state goes around in loops. Add resistance and every loop is a little smaller: a spiral into rest.
Click or drag anywhere to start a new trajectory there.