Skip to main content
Sandbox Physics

M064 · Oscillations / frequency response

Driven Resonance & Phase Lag

Do a driven oscillator's largest swing and largest power intake happen at the same frequency? Not quite. With damping, the displacement peaks slightly below the natural frequency. The power absorbed from the drive peaks exactly at the natural frequency, and that is also where the motion lags the drive by a quarter cycle. Wait for the start-up transient to die out before measuring any of them.

A force actuator pushes a mass on a spring and dashpot with a sinusoidal force. Drag the frequency cursor, watch the startup transient fade, and measure amplitude and phase over three complete drive cycles. Sweep nineteen independently simulated runs and compare them with the exact response curve, while tracking drive work, dissipated energy and stored energy.

Interactive modelDriven Resonance & Phase Lag
Elapsed time0 s0\,\mathrm{s}
Displacement from equilibrium0 m0\,\mathrm{m}
Velocity0 m s−10\,\mathrm{m\,s^{-1}}
Undamped reference period0 s0\,\mathrm{s}
Mechanical energy relative to equilibrium0 J0\,\mathrm{J}
Integrated dissipation0 J0\,\mathrm{J}
Integrated drive work0 J0\,\mathrm{J}
Energy balance defect0 J0\,\mathrm{J}
Position error against exact solution0 m0\,\mathrm{m}
Endpoint change with half step0 m0\,\mathrm{m}
Actual integration step0 ms0\,\mathrm{ms}
Signed spring force along motion0 N0\,N
Acceleration along motion0 m/s20\,\mathrm{m/s^2}
Instantaneous actuator power0 W0\,W
Instantaneous dissipated power0 W0\,W
Exact steady amplitude0 m0\,\mathrm{m}
Exact steady phase lag0∘0{}^{\circ}
Three-cycle measured amplitudeCollecting\text{Collecting}
Three-cycle measured phase lagCollecting\text{Collecting}
Harmonic projection residual RMSCollecting\text{Collecting}
Exact steady absorbed power0 W0\,\mathrm{W}
Absorbed-power half-maximum bandwidth0 Hz0\,\mathrm{Hz}
Quality factor00
Measured frequency points00
Displacement peak locationCollecting\text{Collecting}

Physics tutorial

Separate resonance from startup

BackgroundA periodic drive keeps feeding energy in while damping takes it out. The motion is a startup transient that dies away plus a steady response at the drive frequency. Amplitude alone misses the phase and the balance of power.

Why it mattersThe theory of forced oscillation follows OpenStax University Physics Volume 1, section 15.6. The Lab builds the response curve the way an experiment would: nineteen independent simulated runs, each measured with a three-cycle Fourier analysis.

Start with the essentials

Focus question
Where is the displacement peak, where is the power peak, and has the measured response settled?
One-sentence intuition
The frequency response depends on which quantity you measure. Wait for the transient to fade, check the projection residual, and compare phase as well as amplitude.

Core mathematical model

Complex frequency response

mx¨+cx˙+kx=F0sin⁡(ωt),A=F0(k−mω2)2+c2ω2m\ddot x+c\dot x+kx=F_0\sin(\omega t),\quad A=\frac{F_0}{\sqrt{(k-m\omega^2)^2+c^2\omega^2}}

This exact amplitude belongs to the steady solution reached after infinite time. The actual motion also contains a transient, set by the initial displacement and velocity.

Phase and displacement peak

ϕ=atan2⁡(cω,k−mω2),ωpeak=ω01−2ζ2(ζ<1/2)\phi=\operatorname{atan2}(c\omega,k-m\omega^2),\quad\omega_{\mathrm{peak}}=\omega_0\sqrt{1-2\zeta^2}\quad(\zeta<1/\sqrt2)

The displacement lags behind the force. Above the damping threshold shown, the amplitude only falls as the frequency rises from zero. The peak search covers only the displayed scan band, so it can land on the lower edge of the band.

Power resonance and its bandwidth

P‾=F02cω22[(k−mω2)2+c2ω2],ΔωP=cm,Q=mω0c\overline P=\frac{F_0^2c\omega^2}{2[(k-m\omega^2)^2+c^2\omega^2]},\quad\Delta\omega_{P}=\frac cm,\quad Q=\frac{m\omega_0}{c}

Absorbed power peaks at the natural frequency, even when displacement peaks elsewhere. The exact width of the power peak at half its maximum is not the width of the displacement peak at half its height. The bandwidth shown is converted from angular frequency to cycles per second.

Three-cycle measurement and energy balance

A^=as2+ac2,ϕ^=atan2⁡(−ac,as),E−E0−Wdrive+Q=0\widehat A=\sqrt{a_s^2+a_c^2},\quad\widehat\phi=\operatorname{atan2}(-a_c,a_s),\quad E-E_0-W_{\mathrm{drive}}+Q=0

The sine and cosine projections use only the last three complete drive cycles, sampled at 128 evenly spaced phases per cycle. Any startup transient still present distorts the result and shows up in the nonharmonic residual. Drive work and dissipated energy are integrated separately.

Common difficulties

Two different resonance peaks

Typical misconceptionDisplacement and absorbed power must peak at the same frequency.

Better mental modelIncrease the damping and find the displacement peak again. Power still peaks at the natural frequency, and with strong damping the displacement curve has no peak above zero frequency at all.

Three full cycles can still include a transient

Typical misconceptionThree complete periods automatically measure steady state.

Better mental modelMeasure early and late. The Fourier measurement works at both times, but early on the residual and the phase can show that the startup transient is still there.

A bandwidth belongs to one quantity

Typical misconceptionThe power bandwidth is the width of the displacement peak at half height.

Better mental modelThe width shown is for absorbed power, and it is exact for this model with viscous damping. It does not carry over to other response curves.

Run the experiment

  1. 01

    Watch the startup

    Orbit around the force actuator and step finely to compare the drive force with the velocity. Scrub through the first three drive cycles, then click Measure current frequency, which measures at the end of the run.

    What to observe: No measurement is available until a full three-cycle window has passed. Later, the measured amplitude and phase approach the steady reference.
  2. 02

    Build a response curve

    Click Measure nineteen frequencies, then drag the amplitude cursor across the peak.

    What to observe: Each blue point comes from its own independently solved run.
  3. 03

    Separate amplitude and power

    Increase the damping, find the amplitude peak, and compare the absorbed power at the natural frequency.

    What to observe: The displacement peak moves to a lower frequency, while the power peak stays at the natural frequency.
  4. 04

    Check where the energy goes

    Switch to energy review and, late in the run, compare drive work with dissipated and stored energy. Switching views keeps the scan and the cursor.

    What to observe: The drive work can be larger than the energy stored now, because the dashpot keeps removing energy.
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy