I didn't do this explicitly in class- it's a bit lengthy. But the derivation
is given in, e.g. Fortney, pp. 64-65. The idea is to write down a damped
oscillatory solution to the RLC circuit differential equation
for ; since energy dissipated is
proportional to the square of
, you can then plug this in to the
definition of
(ratio of total energy to energy loss per cycle).
Using some Taylor series approximations, the expression
follows. Near resonance, we replace
with
.