Drive a circuit with an alternating voltage and, once the startup transient dies away, the charge sloshes at exactly the source's frequency, but delayed and resized. Guess a sine-plus-cosine and solve for the two coefficients.