Suppose a resonator (transmission line shorted at both ends) is fed (by an external generator) an input power Pin. Using time-averaged equations, write a differential equation for the electromagnetic energy stored in the line, U. Note that this equation will involve dU/dt, U, Q, and ω. Note that this is an average over one period at ω, and this is a resonant frequency.
Solve the differential equation for U and find the time it takes to get to 95% of the steady-state energy stored.