Fundamentals / Mechanical engineering / Control engineering

Control engineering · Advanced study

Read the connected derivations and worked problems in sequence, or open each chapter in its home course.

  1. From a moving plant to identified dynamics

    Derive a plant from force and energy, then compare its modes with measured shifts and decay. Examine the uncertainty that remains when two parameters produce similar responses.

  2. Time stepping and robust computation

    Investigate state growth in apparently stable systems, propagate derivatives and judge whether numerical error can account for a switching event.

From a moving plant to identified dynamics

Derive a plant from force and energy, then compare its modes with measured shifts and decay. Examine the uncertainty that remains when two parameters produce similar responses.

  1. Free vibration, energy loss and ring-down data
  2. Harmonic forcing, phase and dissipated power
  3. Coupled oscillators and normal coordinates
  4. Energy coordinates and Lagrange’s equation
  5. Finite-amplitude oscillations and model validity
  6. A moving-coil galvanometer as an electrical and mechanical system
  7. Coupled optical and mechanical resonances
  8. Predictions, parameter profiles and nonlinear uncertainty
  9. Learning a drifting temperature from a sequence of readings
  10. Predicting a new measurement when the fitted parameters are correlated
  11. Measure gravity with a pendulum of finite amplitude
  12. Measure inertia and gravity with two suspension axes

Free vibration, energy loss and ring-down data

Infer stiffness and damping from a released machine mount and check the implications of a viscous damping model.

From first principles

Determine the frequency and decay of a released mount

Displace a mass \(m\) from its static equilibrium on a linear spring of stiffness \(k\) and release it. A viscous damper exerts force opposite to velocity with coefficient \(c\). Measuring displacement \(x\) relative to static equilibrium removes any constant force already balanced by the spring. Newton's second law gives the free-motion equation.

\[m\ddot x=-kx-c\dot x .\]

An exponential trial \(e^{st}\) turns differentiation into multiplication by \(s\), so nonzero motion requires a root of the characteristic polynomial. Its two roots depend on the undamped natural frequency \(\omega_n\) and damping ratio \(\zeta\).

\[ms^2+cs+k=0,\]
\[\omega_n=\sqrt{k/m},\]
\[\zeta=\frac{c}{2\sqrt{km}}.\]

For \(0<\zeta<1\) the roots are a conjugate pair. Their oscillatory contributions combine to give a real damped sinusoid with envelope \(e^{-\zeta\omega_nt}\).

\[s=-\zeta\omega_n\pm i\omega_n\sqrt{1-\zeta^2}.\]

The initial position and velocity determine amplitude and phase, while the parameters set decay and period. Same-sign peaks one period apart therefore measure the exponential envelope without requiring an accurately known release time.

Background · Damping ratio
\[\zeta=c/(2\sqrt{km})\]

This compares a viscous damper with critical damping for a single linear oscillator. It cannot represent Coulomb friction at every amplitude.

Derivation and applications

Infer damping from the loss of mechanical energy per cycle

A lightly damped mount sheds a measurable fraction of stored energy on each oscillation. Consider a single translating mass \(m\) with linear stiffness \(k\), viscous damping \(c\), and no forcing after release. Measure displacement from static equilibrium. Multiply the equation of motion by velocity to convert inertia and spring terms into total time derivatives.

\[m\ddot x+c\dot x+kx=0,\]
\[\frac{d}{dt}\left(\tfrac12m\dot x^2+\tfrac12kx^2\right)=-c\dot x^2 .\]

For weak damping, amplitude \(A\) changes little during one period and \(x\simeq A\cos\omega_nt\), with \(\omega_n=\sqrt{k/m}\). Integrating viscous power over the cycle then gives the leading loss. Divide by the stored maximum spring energy evaluated at the same amplitude.

\[\Delta E_{\rm loss}\simeq c A^2\omega_n^2\frac{\pi}{\omega_n}=\pi c\omega_nA^2,\qquad \frac{\Delta E_{\rm loss}}{E}\simeq4\pi\zeta,\]
\[\zeta=\frac{c}{2m\omega_n}.\]

For appreciable damping use two same-sign turning points directly. At each peak the kinetic energy vanishes, so the exact energy ratio equals the square of the amplitude ratio. The measured logarithmic decrement relates to viscous damping for an underdamped oscillator.

\[\frac{E_{j+1}}{E_j}=\left(\frac{A_{j+1}}{A_j}\right)^2=e^{-2\delta},\]
\[\zeta=\frac{\delta}{\sqrt{4\pi^2+\delta^2}},\]
\[\delta=\ln\frac{A_j}{A_{j+1}} .\]

The energy fraction is independent of starting amplitude for linear viscous damping. Amplitude dependence in repeated runs is therefore a direct reason to examine extra friction or nonlinear damping.

Worked example

Determine heat release from two peak readings

For \(k=800\) N/m, consecutive positive peaks are 10.0 and 9.00 mm. The spring energies are 40.0 mJ and 32.4 mJ, so 7.60 mJ is dissipated. The decrement is \(\ln(10/9)=0.1054\), giving \(\zeta=0.0168\). If the first amplitude were doubled and the same linear damper retained, the energy lost in that cycle would quadruple.

Change the inputs and inspect this calculation below

Second application

Test a damper from its measured cycle work

A separate mount has \(k=2000\) N/m, \(\omega_n=50.0\) rad/s and small oscillations of amplitude 2.00 mm. A damper dynamometer measures 0.250 mJ of work per cycle. The leading estimate gives \(c=\Delta E/(\pi\omega_nA^2)=0.398\) N s/m. From \(m=k/\omega_n^2=0.800\) kg, \(\zeta=0.00497\). The estimated loss fraction \(4\pi\zeta=0.0625\) supports the nearly constant-amplitude approximation for a single cycle.

Interactive calculation · Change the inputs of this example

Use the adjustable quantities to test the two worked calculations above. The plot recomputes this derivation’s balance or constitutive relation; its numerical readout reports the quantities needed for the forward calculation and the inverse or design question. Keep the fixed assumptions stated in the readout when comparing with the example values.

Displace a machine from its static position

A pump on a spring mount settles under its weight. Pull it slightly farther down and release it. The weight still acts, but the extra motion is driven by the change in spring force. Define \(x\) as displacement from the loaded equilibrium, take constant local spring stiffness \(k\), and represent dissipation by a force opposing velocity of magnitude \(c|\dot x|\). Newton’s law becomes

\[m\ddot x+c\dot x+kx=0.\]

This model describes one isolated mode over an amplitude range where inertia, stiffness and damping are approximately constant.

Multiply the equation by \(\dot x\). The mass term differentiates kinetic energy, and the spring term differentiates stored elastic energy. Consequently \(d(m\dot x^2/2+kx^2/2)/dt=-c\dot x^2\). Energy cannot grow for positive damping. Displacement can increase temporarily as kinetic energy converts back into spring energy, so the instantaneous displacement alone is not an energy meter.

Obtain the decay and oscillation rates

Trying \(x=e^{st}\) gives

\[ms^2+cs+k=0.\]

Define \(\omega_n=\sqrt{k/m}\) and \(\zeta=c/(2m\omega_n)\). The roots are

\[s=-\zeta\omega_n\pm\omega_n\sqrt{\zeta^2-1}.\]

For \(0<\zeta<1\) their imaginary part gives the damped angular frequency \(\omega_d=\omega_n\sqrt{1-\zeta^2}\). The real part gives a decaying exponential. A general underdamped trace is

\[x(t)=e^{-\zeta\omega_nt}\left[A\cos(\omega_dt)+B\sin(\omega_dt)\right].\]

At \(\zeta=1\) the repeated root gives \((A+Bt)e^{-\omega_nt}\). Above critical damping both roots are negative and real. A lack of visible oscillation therefore does not by itself determine the stiffness. For an underdamped trace, use two peaks of the same sign: their separation is \(T_d=2\pi/\omega_d\), and their amplitude ratio depends only on the envelope decay.

Background · Which energy is represented by a sequence of displacement peaks?

At a turning point the velocity is zero. If displacement is measured from static equilibrium, the energy of the linear oscillator there is entirely elastic. Two peaks of the same sign one damped period apart give an exact energy ratio even though the instantaneous dissipation varies within that period.

\[\frac{E_{n+1}}{E_n}=\left(\frac{x_{n+1}}{x_n}\right)^2,\]
\[\frac{\Delta E_{\rm lost}}{E_n}=1-e^{-2\delta},\]
\[\delta=\ln\frac{|x_n|}{|x_{n+1}|}.\]

If successive positive peaks fall from 10 to 8 mm, 36% of the initial peak energy has been lost in one cycle. The amplitude has fallen by only 20%. Near critical damping it may be difficult to resolve a full period above sensor noise. The definition then remains valid for a measurable underdamped cycle, but the inferred ratio becomes sensitive to peak errors.

Infer parameters from four cycles

A 20.0 kg mounted component rings down from a positive peak of 8.0 mm to a positive peak of 2.0 mm four cycles later, after 1.60 s. The period is \(T_d=0.400\) s and \(\omega_d=15.71\) rad/s. The log decrement per cycle is

\[\delta=\ln(8/2)/4=0.3466.\]

Since \(x_j/x_{j+1}=\exp(\zeta\omega_n T_d)\), the envelope decay rate is

\[\alpha=\delta/T_d=0.8664\,\mathrm{s^{-1}}.\]

Now \(\omega_n=\sqrt{\omega_d^2+\alpha^2}=15.73\) rad/s and \(\zeta=\alpha/\omega_n=0.0551\). The inferred stiffness is \(m\omega_n^2=4.95\) kN/m, while \(c=2m\alpha=34.7\) N·s/m. After eight cycles the prediction is 0.50 mm. Using peaks separated by several cycles reduces sensitivity to noise in any one amplitude or timestamp.

Challenge the damping assumption

Subtract the equilibrium sensor reading before taking amplitude ratios. A fixed offset changes the ratio of small late peaks more strongly than large early peaks. Plot \(\ln |x_j|\) against time for peaks whose signal clearly exceeds the noise floor. A straight trend supports the viscous envelope. Approximately constant loss of amplitude per cycle suggests a different mechanism such as dry friction. Two nearby natural frequencies may produce a beat envelope that grows and shrinks even though total energy decays.

A second experiment can separate stiffness from added inertia. If a small known mass is bolted to the same moving assembly and the support stiffness is unchanged, \(1/\omega_n^2\) should increase in proportion to effective mass. This check assumes that the added mass participates fully in the chosen coordinate. A flexible appendage that moves out of phase changes the system being identified.

Correct a biased displacement signal

Suppose a displacement sensor reads 0.50 mm high relative to the true equilibrium. The first and fifth positive peaks then appear as 8.50 and 2.50 mm. Their raw log ratio over four cycles gives \(0.25\ln(8.5/2.5)=0.306\), underestimating the true 0.347 decrement. The error grows as the decaying signal approaches the offset. One remedy is to measure equilibrium independently when excitation has stopped. Another is to use the difference between consecutive positive and negative extrema and compare such differences one whole period apart. The constant offset cancels while, for a single underdamped mode, successive peak-to-trough ranges retain the same exponential ratio. Late peaks below the sensor resolution still carry little reliable damping information.

Derive the repeated-root response and its crossing condition

The oscillatory ring-down described above assumes \(\zeta<1\). For a return mechanism holding a fragile component, the question can instead be whether it reaches equilibrium without crossing it. At critical damping, \(c=2\sqrt{mk}\), the characteristic equation is

\[(s+\omega_n)^2=0.\]

The repeated root gives two independent free solutions \(e^{-\omega_nt}\) and \(te^{-\omega_nt}\). Imposing \(x(0)=x_0,\dot x(0)=v_0\) yields

\[x(t)=[x_0+(v_0+\omega_n x_0)t]e^{-\omega_nt}.\]

For release from rest at positive displacement, the bracket stays positive and \(\dot x=-\omega_n^2 x_0t e^{-\omega_nt}\) stays negative for \(t>0\). If a mechanism reaches the same \(x_0\) with negative incoming velocity, the bracket can cross zero once even at critical damping. In particular \(v_0<-\omega_n x_0\) gives crossing time \(-x_0/(v_0+\omega_n x_0)\). Critical damping rules out repeated free oscillations, but the initial velocity still determines whether the target is overshot.

For overdamping the distinct real decay rates are \(\omega_n[\zeta\pm\sqrt{\zeta^2-1}]\). Their product is \(\omega_n^2\). Increasing viscous resistance makes the fast root decay more rapidly but the slow root approach zero. Simply adding damping can consequently prolong the final approach to a sensing threshold.

Select a damper for a spring-return slide

A slide of mass 3.0 kg has a return spring of 300 N/m, so \(\omega_n=10\,\mathrm{rad/s}\) and \(c_{\rm cr}=60\,\mathrm{N\,s/m}\). Released from rest at \(x_0=50\) mm with critical damping, its normalised position is \((1+10t)e^{-10t}\). To enter a 5% band, solve \((1+s)e^{-s}=0.05\) with \(s=10t\). Testing 4.7 and 4.8 gives 0.0518 and 0.0477; the crossing is about 4.74, or \(t=0.474\) s.

The same slide at the same 50 mm location might arrive with \(v_0=-0.80\,\mathrm{m/s}\) after an actuator disconnects. The bracket is now \(0.050-0.30t\), which crosses at 0.167 s. Differentiating gives its negative peak at \(t=0.267\,\mathrm s\), with an overshoot magnitude about 2.08 mm. An optical stop positioned only 1 mm beyond equilibrium would register a crossing even though the damper is critical. Compare that with a slow overdamped return from rest: for \(\zeta=2\) its dominant decay rate falls to \(10(2-\sqrt3)=2.68\,\mathrm{s^{-1}}\). An assessment based simply on whether the motion oscillates would overlook both the clearance requirement and this much slower return.

The return time depends on which event the instrumentation calls completion. Some switches trigger when the position first enters a band and remain latched even if it later leaves. For the critical release with negative entering speed, first crossing the equilibrium plainly does not mean motion has stopped. A position-plus-velocity criterion is stricter. At the first zero crossing, the bracket in \(x\) vanishes, so the velocity is its constant derivative multiplied by the exponential, \(-0.30e^{-10(0.167)}=-0.0567\,\mathrm{m/s}\). A slide with a maximum docking speed of 0.020 m/s would fail that condition despite its position being exactly correct at that instant. The appropriate response test must state both allowed path excursion and the speed at any mechanical contact.

Checking only the first displacement peak cannot identify this velocity-limited docking event.

Distinguish sliding-friction decay from a viscous ring-down

Suppose a slide moves on a dry horizontal guide under a spring force \(-kx\). While the slide moves left, kinetic friction \(F_c\) acts right, and \(m\ddot x+kx=+F_c\). The solution is harmonic about the shifted equilibrium \(+F_c/k\). During rightward sliding the equilibrium switches to \(-F_c/k\). A complete undisturbed sliding half-cycle still lasts \(\pi\sqrt{m/k}\), but friction dissipates energy in proportion to distance travelled. At zero speed, static friction can take any value up to \(F_s\), so checking the spring force before starting the next half-cycle is essential.

Let a leftward excursion start at \(x=A>0\) and reach a turning point at \(x=-B\), with \(A,B>0\). The spring energy drop equals friction work,

\[k(A^2-B^2)/2=F_c(A+B).\]

Cancellation leaves \(B=A-2F_c/k\). Same-side peak magnitudes fall by \(4F_c/k\) each complete sliding cycle. This is a constant absolute decrement. A viscous exponential gives a constant ratio instead. If a late half-cycle does not cross zero, use its signed turning-point coordinate \(x_{\rm next}=2F_c/k-x_{\rm start}\) for leftward motion and apply the static criterion there.

A 2 kg slide has \(k=800\,\mathrm{N/m}\), \(F_c=2.0\) N and \(F_s=2.4\) N. Release it from 18 mm. Its initial spring force is 14.4 N, so it moves. Each half-cycle reduces the alternating peak magnitude by 5.0 mm, giving signed positions \(+18,-13,+8,-3\) mm. At −3 mm the spring pull is 2.4 N, equal to the static threshold. Under an ideal static-friction law it can remain there. It took \(3\pi\sqrt{2/800}=0.471\) s to reach that position. The final displacement need not be zero. Interpreting its first two positive peaks with a logarithmic decrement would give a damping estimate that fails to predict the finite stop.

Estimate damping from repeated peaks

Release an initially displaced mass with zero initial velocity. The underdamped waveform contains both cosine and sine terms; the latter enforces zero initial velocity. Compare successive same-sign peaks using a logarithmic decrement.

Estimate damping from repeated peaks. Horizontal axis: Time / undamped period. Vertical axis: Displacement / initial displacement. Data follow the figure.
At damping ratio 0.12 each positive peak retains exp(−2πζ/√(1−ζ²)) ≈ 0.468 of the previous one. Taking consecutive positive and negative extrema instead halves the interval and changes the inferred decrement.
Read values from the plot
Displacement / initial displacement at selected values of Time / undamped period.
Time / undamped periodDamping ratio 0.03Damping ratio 0.12Damping ratio 0.35
0111
1.120.608560.361440.090822
2.250.0238030.040740.0071944
3.38−0.37104−0.0407060.00048821
4.5−0.42797−0.0320872.9252e−5

Download all 451 plotted samples (CSV)

Interactive calculation · change the inputs of this example

Change damping before changing natural frequency. Separate the decay per cycle from the number of cycles per second.

The curves below are recalculated from this section’s equations in your browser. The fixed reference plot above remains available for comparison.

Harmonic forcing, phase and dissipated power

Predict the steady vibration under a rotating force and relate the phase lag to the power absorbed by damping.

From first principles

Obtain forced vibration amplitude from dynamic equilibrium

A machine on a linear spring and viscous damper is driven by force \(F_0\cos\omega t\) on its mass \(m\). Newton's second law sums inertia, damping and stiffness forces. Assume a stable mount and wait until the transient part has decayed. Seek a sinusoidal response at the forcing frequency, written \(x(t)=\operatorname{Re}[Xe^{i\omega t}]\) to retain both magnitude and phase.

\[m\ddot x+c\dot x+kx=F_0\cos\omega t,\qquad (k-m\omega^2+ic\omega)X=F_0 .\]

The real part of the dynamic stiffness combines spring and inertia, while the damping contribution is in quadrature. Taking its modulus gives displacement amplitude; taking its argument gives the lag of displacement behind the applied force.

\[|X|=\frac{F_0}{\sqrt{(k-m\omega^2)^2+(c\omega)^2}},\]
\[\phi=\operatorname{atan2}(c\omega,k-m\omega^2).\]

At low frequency the displacement approaches static deflection \(F_0/k\). Near \(\sqrt{k/m}\) the spring and inertia terms cancel, leaving damping to limit the steady response. High-frequency response falls approximately as \(F_0/(m\omega^2)\) for a fixed force amplitude.

Background · Damped frequency
\[\omega_d=\omega_n\sqrt{1-\zeta^2}\]

This free-decay oscillation frequency exists in the underdamped regime. A resonance peak in a driven response uses a different frequency condition.

Derivation and applications

Separate displacement resonance from maximum absorbed power

The frequency of largest displacement can differ from the frequency of largest mean heating in a damper. Drive a single mass \(m\) on a linear spring \(k\) and viscous damper \(c\) with a fixed peak force \(F\) at angular frequency \(\omega\). Assume sinusoidal steady state, a rigid base and coefficients independent of amplitude. With complex displacement amplitude \(X\), mean energy dissipated per unit time is \(c\) times mean squared velocity. Force equilibrium gives

\[X=\frac{F}{k-m\omega^2+ic\omega},\]
\[\bar P=\frac12c\omega^2|X|^2 .\]

Rewrite the power by dividing numerator and denominator by \(\omega^2\). The resulting mechanical impedance has a real dissipative part \(c\) and a reactive part \(m\omega-k/\omega\). The power peak occurs where this latter term vanishes.

\[\bar P=\frac{cF^2/2}{c^2+(m\omega-k/\omega)^2},\]
\[\omega_{\rm peak}=\sqrt{k/m},\]
\[\bar P_{\max}=\frac{F^2}{2c}.\]

At half maximum the magnitude of the reactive term equals \(c\). The positive solutions of the two resulting quadratic equations give lower and upper half-power frequencies. Their difference is exact for this force-driven, velocity-power measurement.

\[\omega_\pm=\frac{\sqrt{c^2+4mk}\pm c}{2m},\]
\[\omega_+-\omega_-=\frac{c}{m},\]
\[\omega_+\omega_-=\frac{k}{m}.\]

By comparison, the displacement peak contains the additional \(1/\omega\) in converting velocity to displacement, so applying these exact bandwidth relations to a displacement trace requires care.

Worked example

Predict the heating bandwidth

Use \(m=2.00\) kg, \(k=800\) N/m, \(c=8.00\) N s/m and \(F=4.00\) N. The peak is at 20.0 rad/s and maximum mean dissipation is

\[16/16=1.00\,\mathrm{W}.\]

The half-power frequencies are 18.10 and 22.10 rad/s. At the peak, velocity is in phase with force and has peak amplitude \(F/c=0.500\) m/s. The corresponding displacement peak amplitude at this frequency is 25.0 mm.

Change the inputs and inspect this calculation below

Second application

Identify spring and damper from two half-power points

Another oscillator of mass 1.50 kg has measured half-power frequencies of 12.0 and 18.0 rad/s. Their difference gives \(c=1.50(6.00)=9.00\) N s/m and their product gives

\[k=1.50(12)(18)=324\,\mathrm{N/m}.\]

The predicted power peak is at the geometric mean, \(\sqrt{216}=14.7\) rad/s. A direct power sweep can test this prediction without a calibrated displacement amplitude.

Interactive calculation · Change the inputs of this example

Use the adjustable quantities to test the two worked calculations above. The plot recomputes this derivation’s balance or constitutive relation; its numerical readout reports the quantities needed for the forward calculation and the inverse or design question. Keep the fixed assumptions stated in the readout when comparing with the example values.

Extract one sinusoidal component

A slightly eccentric rotating part exerts a periodic force on its housing. Measure the housing displacement from static equilibrium and first represent a single transverse force component by \(F_0\cos\omega t\). Linear response then satisfies

\[m\ddot x+c\dot x+kx=F_0\cos\omega t.\]

Its total solution contains the free transient plus a steady periodic part. Wait several decay times before comparing measured peak amplitudes with a harmonic prediction.

Write the steady part as \(\mathrm{Re}\{Xe^{i\omega t}\}\), taking the real force phasor \(F_0\) as phase reference. Each differentiation contributes \(i\omega\). The displacement phasor therefore satisfies

\[(k-m\omega^2+i c\omega)X=F_0.\]

The factor in parentheses is dynamic stiffness in N/m. At low speed the phasor is close to \(F_0/k\). At high speed the inertia term dominates and displacement is almost opposite the applied force. A phase measurement can distinguish those regimes even if their displacement amplitudes happen to be equal.

Read magnitude and phase separately

Introduce \(r=\omega/\omega_n\), \(\omega_n=\sqrt{k/m}\) and \(\zeta=c/(2m\omega_n)\). Take the magnitude and argument of the dynamic stiffness to obtain

\[|X|/(F_0/k)=[(1-r^2)^2+(2\zeta r)^2]^{-1/2}.\]

The displacement lags by \(\phi=\operatorname{atan2}(2\zeta r,1-r^2)\). At \(r=1\) elastic and inertia forces cancel in phase and the remaining quadrature force is viscous. The displacement lags by 90 degrees and has amplitude \(F_0/(c\omega_n)\).

For constant force amplitude, maximum displacement occurs at \(r=\sqrt{1-2\zeta^2}\) if \(\zeta<1/\sqrt2\). This follows by differentiating the squared denominator with respect to \(r\). Thus the frequency of greatest displacement need not coincide exactly with the undamped natural frequency. A rotating imbalance also changes force amplitude with speed, so its peak cannot be inferred from a constant-force plot alone.

Check a resonant measurement by energy

Let \(m=10\) kg, \(k=4000\) N/m, \(c=40\) N·s/m and \(F_0=8.0\) N. Then \(\omega_n=20\) rad/s and \(\zeta=0.10\). At resonance the predicted displacement amplitude is

\[8/[40(20)]=10.0\,\mathrm{mm}.\]

The velocity amplitude is 0.200 m/s. The time-average input power of a sinusoidal force and velocity is half the product of their peak magnitudes times the cosine of their phase difference. Since velocity is in phase with force at this frequency, the average is 0.800 W.

Independently, the damper dissipates \(\overline P=c\,\overline{\dot x^2}=c\omega^2|X|^2/2=0.800\) W. The spring returns the energy it stores each cycle and the mass has no net change in kinetic energy. If force and displacement peaks are simply multiplied and reported as watts, the dimensions and the missing phase both reveal the error.

Apply the result to a rotor

A rotating eccentric mass \(m_e\) displaced a radius \(e\) generates force amplitude \(m_e e\omega^2\) when its circular motion is prescribed. With \(m_e e=0.020\,\mathrm{kg\,m}\) and \(\omega=20\) rad/s, this is the 8.0 N used above. At 40 rad/s the applied force grows to 32 N. The dynamic stiffness magnitude becomes \(\sqrt{(4000-10(40)^2)^2+(40(40))^2}=12.1\) kN/m, giving about 2.64 mm displacement. The force grew fourfold while the response fell because the system moved away from resonance. A speed sweep therefore needs both the changing excitation and the changing dynamic stiffness.

Estimate damping from a frequency sweep

A useful second identification uses the vibration velocity at constant force amplitude. At resonance the velocity amplitude is \(F_0/c\). At the two frequencies where mean dissipated power has fallen to half its maximum, the velocity amplitude is \(F_0/(\sqrt2 c)\). Inverting the velocity response gives

\[|k/\omega-m\omega|=c.\]

Solving the two sign cases and subtracting gives the bandwidth \(\omega_2-\omega_1=c/m\) for this viscous single-mode system. In the numerical example the difference is 4 rad/s; the predicted limits are about 18.10 and 22.10 rad/s. This result applies to the power or velocity response at constant force amplitude. A sweep driven by a growing rotor imbalance would also require correcting the measured amplitudes for their changing excitation.

Decompose a nonsinusoidal periodic machine force

A cam, pump or reciprocating actuator can generate a nearly rectangular force over each cycle. For a linear system in periodic steady operation, expand this force into Fourier components and apply the dynamic stiffness separately at each harmonic. The construction assumes linear coefficients over the motion range and that the free transient has decayed. A periodic input does not imply that the fundamental component dominates the measured displacement; a higher harmonic near a natural frequency can be amplified strongly.

For a symmetric square force \(F(t)=F_s\,\operatorname{sgn}(\sin\Omega t)\), the mean vanishes and half-wave symmetry cancels all even harmonics. Its sine coefficient over one period is \(b_n=(2/\pi)\int_0^\pi F_s\sin(n\theta)d\theta\) for the half-wave-symmetric terms, giving \(4F_s/(n\pi)\) for odd \(n\). Each odd harmonic has its own displacement amplitude and phase:

\[X_n=\frac{4F_s/(n\pi)}{\sqrt{[k-m(n\Omega)^2]^2+(cn\Omega)^2}},\]
\[\phi_n=\operatorname{atan2}(cn\Omega,k-m(n\Omega)^2).\]

Reconstruct the time history by adding \(X_n\sin(n\Omega t-\phi_n)\). Adding the magnitudes gives a peak upper bound, not generally the actual peak because phase shifts differ. Orthogonality gives an exact mean-square contribution \(X_n^2/2\) for each distinct harmonic, providing a convenient comparison of vibration levels without finding coincident maxima.

Identify the dominant vibration in an indexing machine

Take \(m=5.0\,\mathrm{kg}\), \(k=4500\,\mathrm{N/m}\), and \(c=9.0\,\mathrm{N\,s/m}\), so \(\omega_n=30\,\mathrm{rad/s}\) and \(\zeta=0.03\). The force alternates between ±12 N at fundamental \(\Omega=10\,\mathrm{rad/s}\). The first-harmonic force is

\[48/\pi=15.28\,\mathrm N.\]

Its dynamic stiffness magnitude is \(\sqrt{4000^2+90^2}=4001\,\mathrm{N/m}\), giving \(X_1=3.82\,\mathrm{mm}\) with a small lag. The third harmonic has force 5.09 N but falls exactly at the natural frequency, giving \(X_3=5.09/(9\times30)=18.9\,\mathrm{mm}\) at 90° lag.

At 50 rad/s the fifth component has force 3.06 N and stiffness magnitude \(\sqrt{8000^2+450^2}\), giving only 0.381 mm. The first three nonzero harmonics give RMS displacement \(\sqrt{(3.82^2+18.9^2+0.381^2)/2}=13.6\,\mathrm{mm}\). The largest measured spectral peak would appear at three times the operating frequency. It could arise from the drive’s waveform rather than a separate three-times-speed rotating fault. Altering the rise time of the periodic force can reduce high-order Fourier coefficients, while adding damping around this resonance reduces the mechanical amplification. Which intervention addresses the observed peak can be tested by measuring the force spectrum as well as the motion.

The energy entering the damping element gives a further spectral check because high frequencies carry more velocity for the same displacement. The mean dissipated power of harmonic \(n\) is \(c(n\Omega X_n)^2/2\). In the example the first harmonic dissipates about \(9(10\times0.00382)^2/2=0.0066\) W, while the third dissipates \(9(30\times0.0189)^2/2=1.45\) W. The third harmonic therefore dominates heating even more strongly than it dominates displacement. A sensor attached near a nodal point could suppress a local displacement reading, but the overall energy dissipation still has to be provided by the drive. Synchronous force and velocity measurements over a whole period can independently check this average input power.

A centred force–velocity recording also excludes a false average power component introduced by a sensor’s DC offset.

Which speed excites an unbalanced rotor most strongly?

A rotating unbalance excites a single lateral mode with force \(m_e e\omega^2\). Divide the harmonic displacement by \(m_e e/m\). The resulting factor has \(r^2\) in its numerator because the exciting force grows with speed.

Which speed excites an unbalanced rotor most strongly?. Horizontal axis: Rotor speed / natural frequency. Vertical axis: Displacement / eccentric-mass displacement scale. Data follow the figure.
The response tends toward one at high speed and peaks just above the undamped natural frequency for these damping ratios. Treating unbalance as a constant-amplitude shaker force predicts the wrong high-speed asymptote.
Read values from the plot
Displacement / eccentric-mass displacement scale at selected values of Rotor speed / natural frequency.
Rotor speed / natural frequencyDamping ratio 0.08Damping ratio 0.2Damping ratio 0.4
0.080.00644070.00643790.0064279
0.610.585580.552370.46791
1.143.70512.38191.3538
1.671.54191.46051.2491
2.21.25521.22861.1458

Download all 401 plotted samples (CSV)

Interactive calculation · change the inputs of this example

Increase damping and compare the resonance neighbourhood with the high-speed asymptote.

The curves below are recalculated from this section’s equations in your browser. The fixed reference plot above remains available for comparison.

Coupled oscillators and normal coordinates

Derive and interpret the two modes of a coupled machine, then decide which mode an applied load can excite.

From first principles

Find natural modes from the free force balance

For small motions of a conservative system with several coordinates, linear inertia forces are represented by a positive-definite mass matrix \(M\) and linear restoring forces by a symmetric stiffness matrix \(K\). Collect the free balance and try a motion in which the coordinate amplitudes stay in one fixed ratio as each oscillates at frequency \(\omega\).

\[M\ddot{\mathbf x}+K\mathbf x=0,\]
\[\mathbf x=\boldsymbol\phi\cos(\omega t)\ \Longrightarrow\ (K-\omega^2 M)\boldsymbol\phi=0 .\]

A nonzero shape \(\boldsymbol\phi\) can solve these homogeneous equations only when the coefficient matrix is singular. The determinant condition gives candidate squared frequencies, and the nullspace at each frequency gives a mode shape up to scale.

\[\det(K-\omega^2M)=0,\]
\[K\boldsymbol\phi_j=\omega_j^2M\boldsymbol\phi_j .\]

For identical masses linked by a spring, a common translation leaves that link unstretched and an opposite motion stretches it from both ends. This observation identifies common and differential shapes even before evaluating the determinant. Initial displacement and velocity select their amplitudes; the eigenproblem identifies the motions the structure can support.

Two equal masses move together in one normal mode and oppositely in another. Arrows show simultaneous displacements from equilibrium.Open full-size diagram
Which spring deforms in each mode? Assume equal end springs k, equal masses m and a central coupling spring kᶜ. A common displacement leaves the coupling spring at its original length. In the lower drawing each mass moves a distance x towards the other, compressing the central spring by 2x. Half a cycle later the same spring extends by 2x. The ratios of restoring force to displacement are k and k + 2kᶜ, giving squared frequencies k/m and (k + 2kᶜ)/m.

Derivation and applications

Quantify the splitting of two weakly coupled modes

When two machines have the same uncoupled natural frequency, adding a weak connecting spring splits that frequency into two. Consider identical sliders of mass \(m\) each attached to ground by stiffness \(k\) and linked to each other by stiffness \(k_c\). Neglect damping and choose displacements in the same direction from equilibrium. The coupling spring responds only to the displacement difference. Adding and subtracting the two force balances therefore gives separate equations for \(s=(x_1+x_2)/2\) and \(d=(x_1-x_2)/2\).

\[m\ddot s+ks=0,\]
\[m\ddot d+(k+2k_c)d=0.\]

Release slider one at \(A\) and slider two at zero, both from rest. The two modal coordinates then both start at \(A/2\). Write \(\omega_s=\sqrt{k/m}\) and \(\omega_d=\sqrt{(k+2k_c)/m}\) and combine their solutions.

\[x_1=\tfrac A2(\cos\omega_st+\cos\omega_dt),\]
\[x_2=\tfrac A2(\cos\omega_st-\cos\omega_dt).\]

Introduce \(\bar\omega=(\omega_s+\omega_d)/2\) and \(\Delta\omega=\omega_d-\omega_s\). The sum-to-product identities separate the fast motion from slow modulation. When the split is small, the modulation resembles a repeated transfer of motion between the sliders.

\[x_1=A\cos(\bar\omega t)\cos(\Delta\omega t/2),\]
\[x_2=A\sin(\bar\omega t)\sin(\Delta\omega t/2).\]

The first minimum of the slider-one displacement envelope occurs at \(t=\pi/\Delta\omega\). Its instantaneous velocity there need not vanish because the envelope itself is changing. The envelope timing remains identifiable from repeated peaks at weak coupling.

Worked example

Time the exchange of motion

For \(m=1.00\) kg, \(k=100\) N/m and \(k_c=10.5\) N/m, the two frequencies are 10.0 and 11.0 rad/s. The first envelope minimum appears at 3.14 s and the first full recovery of its magnitude at 6.28 s. Releasing the first slider by 8.00 mm sets both modal initial amplitudes to 4.00 mm. Releasing both sliders together instead excites only the slower common motion.

Change the inputs and inspect this calculation below

Second application

Estimate coupling from a beat measurement

A second pair has mass 2.00 kg per slider and measured lower frequency 25.0 rad/s. Consecutive magnitude maxima of one slider's envelope occur 5.00 s apart. Thus

\[\Delta\omega=2\pi/5.00=1.257\,\mathrm{rad/s},\]
\[k_c=m[(25+1.257)^2-25^2]/2=64.4\,\mathrm{N/m}.\]

The independently inferred grounding stiffness is \(m\omega_s^2=1250\) N/m, making the connector about 5.2 percent as stiff.

Interactive calculation · Change the inputs of this example

Use the adjustable quantities to test the two worked calculations above. The plot recomputes this derivation’s balance or constitutive relation; its numerical readout reports the quantities needed for the forward calculation and the inverse or design question. Keep the fixed assumptions stated in the readout when comparing with the example values.

Two masses allow two independent shapes

Two identical instruments sit on separate spring mounts and are connected by a flexible link. Pull both by the same amount and the link keeps its natural length. Pull them in opposite directions and the link stretches twice as much as either displacement. The two tests reveal distinct restoring mechanisms. A model with one equivalent spring and the sum of both masses would discard one of them.

Let \(x_1,x_2\) be horizontal displacements from equilibrium. Each mass is \(m\), each ground spring has stiffness \(k\), and the coupling spring has stiffness \(k_c\). With light springs, small displacements and no damping, the kinetic energy is \(m(\dot x_1^2+\dot x_2^2)/2\) and the elastic energy is \(k(x_1^2+x_2^2)/2+k_c(x_1-x_2)^2/2\). The coupling energy contains the difference of displacements because it is the extension between its ends.

Separate space from time

Taking the derivative of elastic energy with respect to each coordinate gives \(m\ddot x_1+(k+k_c)x_1-k_cx_2=0\) and the symmetric second equation. Look for \(\mathbf x=\boldsymbol\phi\cos\omega t\). Nonzero modal shapes solve \((\mathbf K-\omega^2\mathbf M)\boldsymbol\phi=0\). For this pair the determinant equation is

\[(k+k_c-m\omega^2)^2-k_c^2=0.\]

Taking both signs of the square root gives

\[\omega_1^2=k/m,\]
\[\omega_2^2=(k+2k_c)/m.\]

Substitution back yields shapes proportional to \((1,1)\) and \((1,-1)\). For the first, the connector transmits no incremental force. For the second, the connector acts strongly. Reversing both signs of a plotted eigenvector or multiplying it by a nonzero number describes the same physical mode.

Predict a release test at both instruments

Take \(m=5.0\) kg, \(k=2000\) N/m and \(k_c=1500\) N/m. The two angular frequencies are 20.0 and 31.62 rad/s, or 3.18 and 5.03 Hz. Pull only the first instrument 4.0 mm and release from rest. The initial displacement vector equals \(2(1,1)+2(1,-1)\) mm. Each modal amplitude starts at its corresponding value with zero initial velocity. Hence

\[x_1(t)=2\cos(20t)+2\cos(31.62t),\]
\[x_2(t)=2\cos(20t)-2\cos(31.62t)\]

in millimetres. At zero time the second displacement vanishes while the connector exerts 6.0 N on its mass. Its initial acceleration is 1.2 m/s² toward the first instrument’s displacement. This apparent transfer of motion needs neither forcing nor damping: modal displacements add and cancel differently at the two observation points.

Distinguish available modes from visible modes

Define average and relative coordinates \(q_s=(x_1+x_2)/2\) and \(q_a=(x_1-x_2)/2\). Adding or subtracting the original equations decouples them. Equal external forces excite only \(q_s\); equal and opposite forces excite only \(q_a\). Taking the signal \((x_1+x_2)/2\) likewise hides the antisymmetric mode. A missing spectral peak can therefore reveal the symmetry of a load or sensor arrangement, even though the corresponding eigenmode still exists.

If the two masses differ, the simple sum and difference cease to diagonalise the equations. The general route is to form the physical mass and stiffness matrices and solve the symmetric generalised eigenproblem. Distinct modes of an undamped conservative system are orthogonal with respect to mass, \(\boldsymbol\phi_i^T\mathbf M\boldsymbol\phi_j=0\). This weighted orthogonality is what permits a measured motion or distributed load to be projected into separate modal coordinates.

Predict which mode responds to adding rotary inertia

For a unit mode shape \(\phi\), the quotient \(\omega^2=\phi^TK\phi/(\phi^TM\phi)\) compares stored elastic energy with inertia. Increasing inertia at a coordinate matters most when that coordinate has appreciable motion in the mode. A frame with three tip coordinates offers a way to check this reasoning beyond the symmetric two-mass illustration.

Compare two changes to the same frame: double only the tip mass from 200 to 400 kg, then restore it and double only the tip rotary inertia from 60 to 120 kg m². Predict whether either change can raise a natural frequency for the same stiffness and compute the fractional shift of the third mode in each case. Use the negligible-member-mass row throughout. Check the frame frequency measurements.

Derive bounce and pitch modes of a supported machine

A long machine supported on two mounts can translate and rotate as a nearly rigid body even if there is negligible frame bending. Let the mass centre move vertically by \(z\) and rotate by small angle \(\theta\), with positive rotation raising a point to the right. Vertical spring deflections relative to ground are \(z-a\theta\) on the left and \(z+b\theta\) on the right. Measure displacements from static equilibrium. The kinetic energy is \((m\dot z^2+I_G\dot\theta^2)/2\), and the spring energy is \([k_L(z-a\theta)^2+k_R(z+b\theta)^2]/2\).

Differentiating potential energy gives stiffness terms \(K_{zz}=k_L+k_R,\ K_{\theta\theta}=k_La^2+k_Rb^2,\ K_{z\theta}=-k_La+k_Rb\). The mass matrix is diagonal because translation was measured at the centre of mass. A vertical translation produces a moment whenever the weighted mount locations fail to balance, and a pure rotation then also produces a vertical force by reciprocity. If \(k_La=k_Rb\) the modes are pure translation and pure pitch. Equal spring rates alone do not guarantee decoupling when the lever arms differ.

For free motion solve \((K-\omega^2 M)\phi=0\). In mixed coordinates, metres and radians label different displacement entries, so a numerical component ratio needs units or a stated length scale. Measured vertical motions at two actual sensor locations provide an unambiguous observable mode shape.

Separate a heaving mode from a rocking mode

Let \(m=200\) kg, \(I_G=40\,\mathrm{kg\,m^2}\), \(a=b=0.50\) m and mount rates \(k_L=30000,\ k_R=50000\,\mathrm{N/m}\). The stiffness entries are 80000 N/m, 20000 N m/rad and 10000 N in the mixed term. Setting the determinant to zero gives \((80000-200\lambda)(20000-40\lambda)-10000^2=0\) with \(\lambda=\omega^2\). Dividing through by 8000 yields

\[\lambda^2-900\lambda+187500=0.\]

The squared frequencies are 327.5 and 572.5 s⁻², giving 2.88 and 3.81 Hz.

For the lower mode the first row implies

\[\theta/z=-(80000-200\times327.5)/10000=-1.45\,\mathrm{rad/m}.\]

If mass-centre motion has 1 mm amplitude, the mount-point displacements are 1.725 and 0.275 mm, in phase but strongly unequal. The higher mode gives \(\theta/z=+3.45\,\mathrm{rad/m}\), so the left point now moves oppositely to the right. An accelerometer placed close to a mode’s nodal point can scarcely detect it although that mode remains physically present. For the low mode the vertical node lies about \(1/1.45=0.69\) m to the right of the centre, beyond the right mount. Two well-separated measurement points make the rotational contribution identifiable.

A static load experiment can identify the stiffness coupling before a modal test. Apply a known vertical force \(F\) at the centre and no external moment. The pitch-equilibrium equation gives \(\theta=-K_{z\theta}z/K_{\theta\theta}=-0.50z\) rad per metre for these mounts. Substitution into the vertical balance leaves effective static stiffness \(80000-10000^2/20000=75000\,\mathrm{N/m}\). Under 150 N centre load, predicted motion is 2.00 mm and pitch −0.0010 rad, giving left and right mount readings of 2.50 and 1.50 mm. A centre gauge alone would only indicate an apparent softening, while the unequal pair exposes the rotational coupling that later appears in the two mode shapes.

Find a sensor position that can see a mode

Use the first three bending modes of an ideal simply supported uniform beam as a continuous analogue of coupled oscillators. A local displacement transducer reports a modal coordinate multiplied by the signed shape at the measurement location.

Find a sensor position that can see a mode. Horizontal axis: Sensor position / beam span. Vertical axis: Signed modal displacement, unit antinode. Data follow the figure.
A midspan sensor misses the second mode even if excitation and damping would produce a large second modal coordinate. At one third span the third mode is invisible. Several sensor locations help distinguish a missing mode from a measurement node.
Read values from the plot
Signed modal displacement, unit antinode at selected values of Sensor position / beam span.
Sensor position / beam spanMode 1Mode 2Mode 3
0000
0.250.7071110.70711
0.511.2246e−16−1
0.750.70711−10.70711
11.2246e−16−2.4493e−163.6739e−16

Download all 201 plotted samples (CSV)

Interactive calculation · change the inputs of this example

Move the sensor to a node and then change mode number. A zero local reading does not imply a stationary beam.

The curves below are recalculated from this section’s equations in your browser. The fixed reference plot above remains available for comparison.

Energy coordinates and Lagrange’s equation

Derive a coupled translation–rotation equation with a rolling constraint and identify which reaction disappears from the energy balance.

From first principles

Derive the equation of motion using one independent coordinate

An ideal geometric constraint ties several motions together. Choose an independent coordinate \(q\) that automatically satisfies it and express kinetic energy \(T(q,\dot q)\) and potential energy \(V(q)\) in that coordinate. In the principle of virtual work, ideal constraint reactions do no work along admissible small motions. The balance of inertial, conservative and applied virtual work gives Lagrange's equation

\[\frac d{dt}\frac{\partial T}{\partial\dot q}-\frac{\partial T}{\partial q}+\frac{\partial V}{\partial q}=Q_{\rm nc},\]
\[\delta W_{\rm nc}=Q_{\rm nc}\,\delta q .\]

For a rigid cylinder rolling on a stationary surface without slip, take centre displacement \(q=x\) and angular speed \(\dot x/R\). Its translation and rotation contribute to kinetic energy; a horizontal spring attached at the centre supplies the potential.

\[T=\tfrac12(m+I_G/R^2)\dot x^2,\]
\[V=\tfrac12kx^2,\qquad (m+I_G/R^2)\ddot x+kx=Q_{\rm nc}.\]

Static friction supplies the contact reaction required for rolling. The contact point has zero instantaneous velocity, so that reaction contributes zero power here. The solution must still demand no more friction than the surface can supply.

Derivation and applications

Derive the effective stiffness of a pendulum on an accelerating cart

A continuously accelerating support changes both the equilibrium direction and the small-oscillation frequency of a hanging load. Model a point mass \(m\) on a massless rigid link of length \(\ell\) with an ideal hinge. Let the support move horizontally with imposed coordinate \(X(t)\) and measure angle \(\theta\) from the downward vertical towards positive horizontal displacement. Ignore drag. With mass coordinates \(x=X+\ell\sin\theta\) and \(y=-\ell\cos\theta\), the kinetic and potential energies are

\[T=\tfrac12m[\dot X^2+2\dot X\ell\dot\theta\cos\theta+\ell^2\dot\theta^2],\]
\[V=-mg\ell\cos\theta .\]

Differentiate \(\partial T/\partial\dot\theta\) with respect to time and subtract \(\partial T/\partial\theta\). The velocity cross terms involving \(\dot X\dot\theta\) cancel, leaving a forcing term set by support acceleration, independent of support speed.

\[\ell\ddot\theta+g\sin\theta+\ddot X\cos\theta=0 .\]

For constant support acceleration \(a\), a stationary angle obeys \(\tan\theta_0=-a/g\). Choose the hanging equilibrium. Expanding the restoring term about \(\theta_0\) gives the effective gravitational acceleration along this new direction and the frequency of small oscillations.

\[\theta=\theta_0+\eta,\]
\[\ddot\eta+\frac{\sqrt{g^2+a^2}}{\ell}\eta=0,\]
\[\omega_n=\sqrt{\frac{\sqrt{g^2+a^2}}{\ell}}.\]

A positive cart acceleration tips the pendulum backwards. The first correction to angle is linear in \(a/g\), while the first relative correction to frequency is quadratic. The exact equilibrium result holds at finite \(a\); the frequency expression requires small oscillations about it.

Worked example

Predict a suspended sensor's direction

A cart accelerates at 3.00 m/s² carrying a pendulum of length 0.600 m. Its steady angle is

\[-\arctan(3.00/9.81)=-17.0^\circ.\]

The effective acceleration is 10.26 m/s², giving \(\omega_n=4.13\) rad/s and period 1.52 s. A sensor that treats the pendulum direction as vertical during this manoeuvre would carry the full angular bias.

Change the inputs and inspect this calculation below

Second application

Infer acceleration from a steady deflection

In another rig a 0.400 m pendulum settles 8.00° backwards after weak damping removes its initial swing. Constant acceleration is

\[9.81\tan8.00^\circ=1.38\,\mathrm{m/s^2}.\]

The effective gravity is \(9.81/\cos8.00^\circ=9.91\) m/s², predicting a small-oscillation period \(2\pi\sqrt{0.400/9.91}=1.26\) s for weak damping. The angle is much more sensitive to modest acceleration than the period.

Interactive calculation · Change the inputs of this example

Use the adjustable quantities to test the two worked calculations above. The plot recomputes this derivation’s balance or constitutive relation; its numerical readout reports the quantities needed for the forward calculation and the inverse or design question. Keep the fixed assumptions stated in the readout when comparing with the example values.

Let geometry remove a reaction

A cylinder rolls along a horizontal rail while a spring attached at its centre pulls it towards equilibrium. The rail friction is essential for rolling, but an ideal contact point is instantaneously at rest and the friction force does no work. One can write separate translational and rotational equations with an unknown friction force. Alternatively choose a coordinate that satisfies rolling from the beginning. The reduced energy then contains the rotational inertia without introducing a contact reaction.

Take the rightward displacement \(x\) of the cylinder centre as independent coordinate and clockwise angle as positive. On the fixed surface the no-slip condition gives \(x=R\theta\), up to a reference offset. A body of total mass \(m\) and centre inertia \(I_G\) has kinetic energy from both translation and rotation. A centre spring with stiffness \(k\) has elastic potential \(kx^2/2\).

\[T=\tfrac12(m+I_G/R^2)\dot x^2,\]
\[V=\tfrac12kx^2 .\]

Connect energy to a dynamical equation

The virtual work of a horizontal force \(F\) applied at the centre is \(F\delta x\). In this coordinate its generalised force is simply \(F\). A torque \(M\) acting clockwise would do \(M\delta\theta=(M/R)\delta x\) and would enter as a force \(M/R\). With a centre damper \(c\), the dissipative force is \(-c\dot x\). Lagrange’s equation for this system becomes

\[\frac{d}{dt}\frac{\partial T}{\partial\dot x}-\frac{\partial T}{\partial x}+\frac{\partial V}{\partial x}=F-c\dot x,\qquad (m+I_G/R^2)\ddot x+c\dot x+kx=F .\]

For coordinates whose inertia depends on position, retain both derivatives involving \(T\). The differentiation of \(\partial T/\partial\dot x\) then generates a term proportional to \(\dot x^2\), part of which cancels \(\partial T/\partial x\). Simply multiplying a configuration-dependent effective mass by acceleration would miss the remaining term.

Predict a frequency and check rolling

A solid cylinder has \(m=8.0\,\mathrm{kg}\), \(R=0.10\,\mathrm m\), and \(I_G=mR^2/2=0.040\,\mathrm{kg\,m^2}\). The effective mass seen by the spring is

\[8+0.040/0.10^2=12.0\,\mathrm{kg}.\]

With \(k=480\,\mathrm{N/m}\) and negligible damping the natural frequency is

\[\sqrt{480/12}/(2\pi)=1.007\,\mathrm{Hz}.\]

Release it from rest at \(x=+0.060\,\mathrm m\). Its initial acceleration is

\[-480(0.060)/12=-2.40\,\mathrm{m/s^2}.\]

Writing only the centre’s translation and ignoring rotation would overpredict the acceleration magnitude.

Reconstruct the previously eliminated contact force from translation. The spring pulls leftwards with 28.8 N and the centre accelerates leftwards with \(m\ddot x=-19.2\,\mathrm N\). Friction must therefore point rightwards with 9.6 N to supply the appropriate angular acceleration. The coefficient of static friction must be at least \(9.6/(8\times9.81)=0.122\) at release. For a smaller coefficient, the assumed rolling constraint fails and the model needs separate rotational and translational coordinates together with a slipping contact law.

Compare two cylinders with identical mass

A thin-walled hoop of the same mass and rolling radius has \(I_G=mR^2\). With the original spring its effective mass doubles the translational mass, giving natural frequency \(\sqrt{480/16}/(2\pi)=0.872\,\mathrm{Hz}\). A no-slip ring-down can therefore distinguish two bodies whose masses and outer dimensions are identical but whose internal mass distributions differ.

Use a cyclic coordinate to reduce coupled motion

Mount a pendulum on a cart that can roll horizontally on a level frictionless guide. Let cart displacement be \(x\), bob angle \(\theta\) from downward vertical, length \(l\), bob mass \(m\) and remaining cart mass \(M\). The bob position is \((x+l\sin\theta,-l\cos\theta)\). Differentiating and squaring its speed gives a cross term \(2l\dot x\dot\theta\cos\theta\) because cart and pendulum velocities need not be perpendicular. The full energy terms are

\[T=\tfrac12(M+m)\dot x^2+ml\cos\theta\,\dot x\dot\theta+\tfrac12ml^2\dot\theta^2,\]
\[V=mgl(1-\cos\theta).\]

Horizontal position itself does not occur in either expression. It is a cyclic coordinate, so \(\partial T/\partial\dot x=(M+m)\dot x+ml\cos\theta\,\dot\theta\) is conserved if no external horizontal force acts. This is horizontal momentum written in generalised coordinates. The pendulum equation from Lagrange’s equation is

\[l\ddot\theta+\ddot x\cos\theta+g\sin\theta=0.\]

For small swings from rest, differentiate the momentum relation and linearise to obtain

\[\ddot x=-ml\ddot\theta/(M+m).\]

Substituting gives

\[[lM/(M+m)]\ddot\theta+g\theta=0.\]

Free horizontal motion makes the small-swing frequency larger than for a clamped cart, by \(\sqrt{(M+m)/M}\). This result reflects motion about the system’s horizontally constrained centre of mass. The extra degree of freedom also permits uniform horizontal translation at zero frequency. Its presence does not imply an additional oscillatory mode.

Predict opposing cart travel in a release test

Let \(M=3.0\) kg, \(m=1.0\) kg and \(l=0.60\) m. Clamp the cart: the oscillation period would be \(2\pi\sqrt{0.60/9.81}=1.55\,\mathrm s\). Release its horizontal guide and the period becomes

\[2\pi\sqrt{0.60(3)/(9.81\times4)}=1.35\,\mathrm s.\]

At release the bob is at \(\theta_0=10^\circ\) and both bodies are at rest. Because horizontal momentum remains zero, integrate the exact relation to obtain

\[(M+m)x+ml\sin\theta=\text{constant}.\]

As the bob first crosses the vertical, the cart has shifted \(ml\sin10^\circ/(M+m)=0.0260\,\mathrm m\) to the right from its starting point.

At the vertical the potential-energy decrease is

\[mgl(1-\cos10^\circ)=0.0894\,\mathrm J.\]

Substituting \(\dot x=-ml\dot\theta/(M+m)\) into the kinetic energy at this instant gives effective angular inertia \(ml^2M/(M+m)=0.270\,\mathrm{kg\,m^2}\). Thus the angular speed magnitude is \(\sqrt{2(0.0894)/0.270}=0.814\,\mathrm{rad/s}\), and the cart speed magnitude is \(0.15(0.814)=0.122\,\mathrm{m/s}\). The frequency estimate used a small-angle approximation; the centre-of-mass and energy results at the vertical used the actual release angle. A horizontal cable pulling on the cart or measurable wheel friction would change the conserved momentum and should be measured before attributing deviations solely to pendulum nonlinearity.

The two-sensor experiment can measure conservation without estimating acceleration. Track the cart position and bob angle from video, then plot \(x+[ml/(M+m)]\sin\theta\). For the chosen masses its value should stay constant at the initial offset despite the cart and pendulum both moving. A steadily sloping line indicates nonzero initial horizontal momentum; a curved departure suggests an external force or tracking bias. This separation is useful because rolling resistance can be weak enough to leave the first measured period nearly unchanged while producing visible drift over several cycles. The conserved combination is specific to the inertial laboratory coordinate, so a camera fixed on the moving cart needs a separate record of cart displacement.

Finite-amplitude oscillations and model validity

Use conservation of energy and a frequency approximation to quantify when a small-angle pendulum model loses timing accuracy.

From first principles

Derive the pendulum period and identify the small-angle assumption

A point mass \(m\) suspended on a massless rigid link of length \(\ell\) feels a gravitational torque \(-mg\ell\sin\theta\) about the hinge. Assume a stationary pivot and negligible drag. Angular momentum balance gives an exact nonlinear equation. Replacing \(\sin\theta\) by \(\theta\) only for small angles in radians gives a linear oscillator and its predicted period.

\[m\ell^2\ddot\theta=-mg\ell\sin\theta,\]
\[T_{\rm small}=2\pi\sqrt{\ell/g}.\]

To track finite amplitude, release from rest at angle \(A<\pi\) and use mechanical energy conservation. At any intermediate angle, loss of potential energy equals gained rotational kinetic energy.

\[\tfrac12m\ell^2\dot\theta^2=mg\ell(\cos\theta-\cos A),\]
\[T=4\sqrt{\frac{\ell}{2g}}\int_0^A\frac{d\theta}{\sqrt{\cos\theta-\cos A}} .\]

The factor four uses the symmetry of the four quarter cycles. The mass cancels even at large amplitude. The exact restoring torque grows more slowly with deflection than its small-angle approximation, so finite-amplitude swings take longer. Measured variation of period with release angle directly tests the linearisation.

Derivation and applications

Derive the period of an oscillator with purely cubic stiffness

A spring with almost no linear stiffness near equilibrium can have a period set primarily by release amplitude. Consider mass \(m\) on a horizontal guide with restoring force \(-\beta x^3\) for \(\beta>0\). Ignore damping and assume the fitted force law holds between \(-A\) and \(+A\). Release from rest at \(x=A\). Integrating the force law gives a quartic potential, and conservation of energy provides the speed anywhere on the inward leg.

\[\tfrac12m\dot x^2+\tfrac14\beta x^4=\tfrac14\beta A^4,\]
\[|\dot x|=\sqrt{\frac{\beta}{2m}}\sqrt{A^4-x^4}.\]

By symmetry the time from an extreme position to the centre is one quarter of a full cycle. Write \(dt=|dx|/|\dot x|\) and substitute \(u=x/A\) in the integral. This isolates the amplitude dependence without guessing a sinusoidal shape.

\[T=\frac{4}{A}\sqrt{\frac{2m}{\beta}}\int_0^1\frac{du}{\sqrt{1-u^4}}.\]

The dimensionless integral evaluates numerically to 1.31103. Its endpoint singularity is integrable because the speed near the turning point vanishes as the square root of the distance remaining. The resulting period and angular frequency are

\[T=\frac{7.4163}{A}\sqrt{\frac{m}{\beta}},\]
\[\omega=\frac{2\pi}{T}=0.8472\,A\sqrt{\frac{\beta}{m}} .\]

The positive cubic restores the mass for displacements of either sign, but its tangent stiffness at zero is zero. The full nonlinear dynamics therefore predicts a period diverging with decreasing amplitude. Even a weak residual linear spring would eventually dominate in that limit.

Worked example

Predict the timing of two releases

Take \(m=0.500\) kg, \(\beta=2.00\times10^5\) N/m³ and \(A=20.0\) mm. The predicted period is

\[7.4163\sqrt{0.500/(2.00\times10^5)}/0.0200=0.586\,\mathrm{s}.\]

Reducing the release to 10.0 mm doubles the predicted period to 1.17 s. At the larger amplitude the centre-crossing speed is

\[A^2\sqrt{\beta/(2m)}=0.179\,\mathrm{m/s}.\]

Change the inputs and inspect this calculation below

Second application

Infer stiffness from a measured period

A second fixture of mass 0.800 kg completes a cycle in 0.750 s after release at 15.0 mm. The implied coefficient is \(\beta=m[7.4163/(AT)]^2=3.48\times10^5\) N/m³. Its predicted restoring-force magnitude at release is

\[\beta A^3=1.17\,\mathrm{N}.\]

An independent static force measurement there tests the dynamic estimate without assuming a sinusoidal motion.

Interactive calculation · Change the inputs of this example

Use the adjustable quantities to test the two worked calculations above. The plot recomputes this derivation’s balance or constitutive relation; its numerical readout reports the quantities needed for the forward calculation and the inverse or design question. Keep the fixed assumptions stated in the readout when comparing with the example values.

Retain the actual restoring moment

A pendulum gives a practical test of a linear model because its length and release angle are easy to set while its period can be measured over many cycles. Approximate the moving body first by a point mass \(m\) at distance \(l\) from a frictionless pivot. With \(\theta\) measured from vertically downwards, gravity produces torque \(-mgl\sin\theta\). Dividing the rotational balance by \(ml^2\) leaves \(\ddot\theta+(g/l)\sin\theta=0\). The linear small-angle frequency \(\omega_0=\sqrt{g/l}\) follows only after replacing \(\sin\theta\) by \(\theta\) in radians.

The leading correction has a definite sign:

\[\sin\theta\simeq\theta-\theta^3/6.\]

At a large positive angle the restoring force magnitude is smaller than the linear extrapolation. The pendulum should take longer to complete its swing. A sign test like this is useful before calculating a period correction.

Derive an integral valid at finite amplitude

For release from rest at amplitude \(A<\pi\), conservation of mechanical energy gives

\[\tfrac12ml^2\dot\theta^2+mgl(1-\cos\theta)=mgl(1-\cos A).\]

During one quarter of the orbit the angle travels between zero and \(A\). Substitute \(\sin(\theta/2)=\sin(A/2)\sin\psi\) into the time integral. Cancelling common square roots gives

\[T=4\sqrt{l/g}\int_0^{\pi/2}\frac{d\psi}{\sqrt{1-k^2\sin^2\psi}},\]
\[k=\sin(A/2).\]

For modest amplitudes expand the integrand as \(1+\tfrac12 k^2\sin^2\psi+\cdots\). The average of \(\sin^2\psi\) over the quarter interval is one half. Therefore \(T/T_0\simeq1+k^2/4\simeq1+A^2/16\) through second order in amplitude. The oscillation period depends on energy, while in the linear spring model all amplitudes share the same period.

Estimate a measurable timing error

Take \(l=0.80\,\mathrm m\), \(g=9.81\,\mathrm{m/s^2}\) and release at \(A=30^\circ=0.5236\,\mathrm{rad}\). The small-angle period is

\[T_0=2\pi\sqrt{0.80/9.81}=1.794\,\mathrm s.\]

The leading correction is 1.71%, giving about 1.825 s. Over ten full oscillations the predicted delay relative to the small-angle model is roughly 0.31 s. Reducing the release angle to 15° reduces the leading relative correction by a factor of four.

A timing series from a damped experimental pendulum may show the period drifting towards \(T_0\) as its amplitude decays. Measuring only the first release angle while averaging many later periods mixes different amplitudes. To test the finite-amplitude law, use consecutive same-direction crossings to measure each local period and estimate its associated amplitude from neighbouring turning points. The correction above is an expansion around zero amplitude. As \(A\) approaches the inverted equilibrium, the exact integral grows without bound and a low-order polynomial is no longer an adequate approximation.

Check the scale of the neglected term

Retaining one further term in the integrand gives \(1+\tfrac12 k^2\sin^2\psi+\tfrac38 k^4\sin^4\psi\). The quarter-interval average of the fourth power of sine is \(3/8\), so \(T/T_0\simeq1+k^2/4+9k^4/64\). At 30° this gives 1.01738, while the leading expansion in amplitude gave 1.01713. The small difference is measurable only if the uncertainty in pendulum length, release angle and crossing times supports the comparison.

Derive an amplitude-dependent resonance relation

A pendulum softens as its amplitude grows because the sine restoring law rises more slowly than its linear tangent. A mechanical flexure can instead harden through geometry. A simple modal model is \(m\ddot x+c\dot x+kx+\beta x^3=F\cos\omega t\). For positive \(\beta\) the restoring stiffness increases with excursion. Assume one dominant harmonic and take \(x\approx A\cos(\omega t-\phi)\). Expanding the cubic gives

\[x^3=A^3[3\cos(\omega t-\phi)+\cos(3\omega t-3\phi)]/4.\]

Keeping only the fundamental turns the cubic term into an amplitude-dependent in-phase force.

Balance in-phase and quadrature components against the input, square and add to eliminate \(\phi\). The first-harmonic amplitude estimate satisfies

\[F^2=A^2\left[\left(k+\tfrac34\beta A^2-m\omega^2\right)^2+(c\omega)^2\right].\]

In a lightly damped free motion the same approximation gives a backbone frequency \(\omega_b^2\approx[k+(3/4)\beta A^2]/m\). This is an amplitude-dependent estimate of conservative oscillation frequency, not a new eigenvalue of the linearised equilibrium. At very small amplitude it recovers \(\sqrt{k/m}\), while a negative cubic coefficient tilts the relation towards lower frequencies. If the cubic approximation is only a local expansion, do not extrapolate it until it predicts an unphysical loss of global stiffness.

Identify a hardening spring from two release amplitudes

A test component has moving mass 1.0 kg and small-amplitude stiffness 400 N/m. Low-level ring-down gives \(\omega_0=20\,\mathrm{rad/s}\). At measured oscillation amplitude 20 mm the dominant free frequency is approximately 22 rad/s. Under the weakly nonlinear one-harmonic model, \(\beta\simeq4m(22^2-20^2)/[3(0.020)^2]=2.80\times10^5\,\mathrm{N/m^3}\). At 10 mm the inferred backbone is \(\sqrt{400+0.75(2.8\times10^5)(0.010)^2}=20.52\,\mathrm{rad/s}\), a direct third reading against which to test the fit.

Now drive near 22 rad/s with viscous coefficient \(c=0.80\,\mathrm{N\,s/m}\). At the 20 mm backbone amplitude the spring and inertia fundamentals cancel, so maintaining this motion takes forcing \(F=c\omega A=0.352\,\mathrm N\) in quadrature with displacement. The neglected cubic third-harmonic force amplitude is

\[\beta A^3/4=0.56\,\mathrm N;\]

its displacement effect can nevertheless be small because the oscillator is driven far from its fundamental resonance at 66 rad/s. A separate mode near that frequency would invalidate this simplification. In a forced frequency sweep the amplitude equation can admit several positive roots near resonance. Its algebra does not establish their stability; slow upward and downward sweeps, each with sufficient settling time, can reveal different stable responses and jump transitions.

An initial static measurement tests the sign of the fitted coefficient independently. At a displacement of 20 mm the linear restoring force is

\[400(0.020)=8.0\,\mathrm N;\]

the cubic contribution is

\[2.8\times10^5(0.020)^3=2.24\,\mathrm N.\]

The predicted static force is therefore 10.24 N, and the tangent stiffness is

\[400+3(2.8\times10^5)(0.020)^2=736\,\mathrm{N/m}.\]

This tangent stiffness applies to small vibrations around a held biased equilibrium. Using it directly for an oscillation centred at zero would overestimate the measured amplitude-dependent frequency because the instantaneous stiffness changes during each cycle. Static bias and free oscillation amplitude are physically different tests of the same nonlinear restoring law.

Repeating a decay test around a deliberately shifted equilibrium distinguishes the two experimentally.

Set an amplitude limit for a pendulum-based timing model

For a rigid pendulum released from rest the exact period ratio is \(2K(\sin^2(\theta_0/2))/\pi\), where the complete elliptic integral here uses its parameter rather than its modulus. Compare it with the first amplitude correction \(1+\theta_0^2/16\), with angle in radians.

Set an amplitude limit for a pendulum-based timing model. Horizontal axis: Release amplitude (degrees). Vertical axis: Period / small-angle period. Data follow the figure.
At 90° the exact period is about 1.180 times the linear prediction; the leading expansion gives 1.154. The series is useful at modest amplitudes, but it cannot reproduce the divergence on approach to an upright release.
Read values from the plot
Period / small-angle period at selected values of Release amplitude (degrees).
Release amplitude (degrees)Exact energy integralLeading expansion
011
37.51.02741.0268
751.1191.1071
112.51.31321.241
1501.76221.4284

Download all 301 plotted samples (CSV)

Interactive calculation · change the inputs of this example

Increase the maximum release angle and compare the energy integral with the first series correction. Changing length rescales both periods.

The curves below are recalculated from this section’s equations in your browser. The fixed reference plot above remains available for comparison.

A moving-coil galvanometer as an electrical and mechanical system

A scale division records an angle, yet the quantity marked on the dial is electric current. A spring, a magnetic field and the resistance of the external measuring circuit connect the two. Derive the calibration, predict how a pointer approaches its reading, and find which experiment measures the charge of a short pulse.

Convert the force on two straight sides into a torque

A light rectangular coil has \(N\) turns, active length \(l\), width \(w\), and area per turn \(A=lw\). It pivots about an axis parallel to its long sides. Shaped pole pieces confine an approximately radial magnetic field of magnitude \(B\) to an air gap. Over the working angular range the magnetic field is perpendicular to the active wire and lies approximately in the plane of the coil. An elementary length carrying conventional current \(i\) experiences \(d\mathbf F=i\,d\mathbf l\times\mathbf B\). The two long sides carry current in opposite directions and experience forces of equal magnitude \(N ilB\). Acting with lever arms \(w/2\), the forces make a couple whose torque is \(NiAB\). Their net force is approximately zero. The short ends supply negligible torque about the pivot under the ideal geometry.

Write \(K=NAB\), and choose the positive sense of current to give positive torque. Its units are \({\rm N\,m/A}\). In a uniform Cartesian field an ordinary rigid loop instead gives torque \(NiAB\sin\alpha\), where \(\alpha\) is the angle between its normal and the field. The radial gap maintains the factor equivalent to \(\sin\alpha\) close to unity as the pointer turns. This is a design choice that produces a nearly linear scale. If a measured calibration curve flattens at a large angle, field nonuniformity and a nonlinear torsion spring are candidate causes that can be tested separately.

For a soft torsion spring with stiffness \(\kappa\), the return torque is \(-\kappa\theta\) at small deflections from the zero-current setting. At static equilibrium \(\theta=Ki/\kappa\). With \(N=200\), \(A=1.00\,{\rm cm^2}\), \(B=0.250\,{\rm T}\) and \(\kappa=8.0\times10^{-4}\,{\rm N\,m/rad}\), the torque constant is \(0.0050\,{\rm N\,m/A}\) and the current sensitivity is \(6.25\,{\rm rad/A}\). A \(5.0\,{\rm mA}\) current turns the pointer through \(0.03125\,{\rm rad}\), about \(1.79^\circ\). A mirror mounted on the same axle deflects a reflected laser through twice this angle. At a screen distance of \(0.50\,{\rm m}\) the spot shifts \(0.50\tan(2\theta)=31.3\,{\rm mm}\), making the small mechanical rotation easy to resolve.

Recover the reciprocal voltage from work

Now rotate the coil through a small positive angle while it carries positive current. The electromagnetic torque does mechanical work \(Ki\,d\theta\). The voltage associated with the motion must therefore draw electrical work \(i e_{\rm back}\,dt\) of equal magnitude when the motor torque assists that motion. This gives the back-emf relation \(e_{\rm back}=K\dot\theta\), measured as a positive drop in the motor sign convention. Its coefficient has units \({\rm V\,s/rad}\), numerically the same SI coefficient as the torque constant. One can also derive it from the motional emf on the two active sides. Each moves at speed \((w/2)\dot\theta\), crosses field \(B\), and generates a voltage \(Bl(w/2)\dot\theta\) along its wire. The two contributions add over every turn.

Let \(J\) denote the rotational inertia, \(b\) the mechanical viscous damping coefficient, \(L\) the coil inductance and \(R\) the sum of winding plus external series resistance seen by a voltage source \(v(t)\). The electromechanical equations are

\[J\ddot\theta+b\dot\theta+\kappa\theta=Ki,\]
\[L\dot i+Ri+K\dot\theta=v(t).\]

Multiplying the first equation by \(\dot\theta\) and the second by \(i\) eliminates the coupling power \(Ki\dot\theta\). The result says that source power \(vi\) equals the rate of increase of \(J\dot\theta^2/2+\kappa\theta^2/2+Li^2/2\), plus \(b\dot\theta^2+Ri^2\). This identity fixes the relative signs of the torque and back emf. If a sign mistake turns a passive closed coil into a self-accelerating pointer, the same mistake produces a residual coupling term in this power balance. Mechanical friction and winding heat represent distinct sinks even though both can damp the observed displacement.

Predict overshoot and find a critical external resistance

If the electrical relaxation time \(L/R\) is short compared with the oscillation time \(1/\sqrt{\kappa/J}\), set \(i\simeq(v-K\dot\theta)/R\). Substituting into the mechanical equation increases its effective damping to \(b_{\rm eff}=b+K^2/R\). Set \(v=0\) when discussing free relaxation with the electrical terminals connected through a resistor. A moving shorted coil generates a current that opposes its motion. Opening the circuit instead suppresses that current and leaves the mechanical damping. An ideal current source holding specified current through all pointer motions also changes the back-emf response because its output voltage adjusts to enforce that current.

The undamped angular frequency is \(\omega_0=\sqrt{\kappa/J}\) and the damping ratio is

\[\zeta=b_{\rm eff}/(2\sqrt{\kappa J}).\]

Take \(J=2.0\times10^{-6}\,{\rm kg\,m^2}\), \(b=1.6\times10^{-5}\,{\rm N\,m\,s/rad}\), and the preceding \(K,\kappa\). Then \(\omega_0=20.0\,{\rm rad/s}\), \(2\sqrt{\kappa J}=8.0\times10^{-5}\,{\rm N\,m\,s/rad}\), and an open circuit gives \(\zeta=0.20\). With \(R=1.00\,\Omega\) the electric contribution to damping is \(2.50\times10^{-5}\,{\rm N\,m\,s/rad}\), giving \(\zeta=0.5125\). For a voltage step the ideal fractional overshoot in the reduced model is

\[\exp[-\pi\zeta/\sqrt{1-\zeta^2}]=0.153.\]

The first peak occurs after \(\pi/(\omega_0\sqrt{1-\zeta^2})=0.183\,{\rm s}\).

Critical damping occurs when \(b+K^2/R=2\sqrt{\kappa J}\), which requires a total resistance of about \(0.391\,\Omega\). A winding resistance of \(0.300\,\Omega\) therefore leaves \(0.091\,\Omega\) for external source and leads. If the winding alone exceeds the target resistance, a simple passive external series resistor cannot reach this damping in the reduced model. A finite \(L\) must also be checked: with \(L=5.0\,{\rm mH}\) and \(R=1.0\,\Omega\), \(\omega_0L/R=0.10\), so the approximation provides a useful starting estimate. Reducing \(R\) indefinitely eventually invalidates the elimination of current. The full pair of equations then predicts the damping and frequency dependence.

Distinguish a charge impulse from a slow current reading

Suppose a brief imposed current pulse ends long before the pointer has turned appreciably. Integrating the torque equation over that interval gives

\[J\Delta\dot\theta\simeq K\int i\,dt=Kq.\]

The initial signal is now angular velocity proportional to total transmitted charge. For weak subsequent damping, the first excursion is approximately \(Kq/(J\omega_0)\). A dose of \(20\,\mu{\rm C}\) gives \(2.50\,{\rm mrad}\) with the instrument above, corresponding to about \(2.50\,{\rm mm}\) on the mirror scale. Two current pulses of identical charge but different shapes give nearly the same reading if both are short on the mechanical time scale. Their peak currents can be entirely different.

For appreciable damping, use the impulse solution \(\theta(t)=Kq\,e^{-\zeta\omega_0t}\sin(\omega_dt)/(J\omega_d)\), with \(\omega_d=\omega_0\sqrt{1-\zeta^2}\) for an underdamped pointer. Its maximum obeys \(\tan(\omega_dt_p)=\omega_d/(\zeta\omega_0)\) in the first quarter cycle. Substitution corrects the ballistic calibration instead of treating the damped peak as an undamped amplitude. The state of the external circuit after the pulse matters because it determines \(\zeta\) during the throw. A calibration pulse should leave the measuring circuit connected in the same way as the unknown pulse.

Measure the torque constant without assuming the magnetic field

The preceding design calculation multiplies turn count, active area and a nominal air-gap induction. An independent calibration can measure the same constant without knowing the field distribution along every wire. Move the pointer through a small controlled angle while measuring its open-circuit voltage with a high-impedance instrument. In the same working interval the voltage is \(K(\theta)\dot\theta\) up to a polarity choice. Integrating the voltage over the sweep gives \(\int_{\theta_1}^{\theta_2}K(\theta)\,d\theta\). If \(K\) is constant this is simply \(K\Delta\theta\), independent of sweep speed. It is often easier to integrate a recorded voltage pulse accurately than to differentiate the angle trace to obtain instantaneous speed.

For a sweep through \(0.0800\,{\rm rad}\), suppose the measured voltage integral is \(0.401\,{\rm mV\,s}\). The generator constant is \(5.01\times10^{-3}\,{\rm V\,s/rad}\). Independently add a known small torque to the spring and measure its static angle. A torque \(32.0\,\mu{\rm N\,m}\) rotates the pointer by \(0.0400\,{\rm rad}\), giving \(\kappa=8.00\times10^{-4}\,{\rm N\,m/rad}\). Combining the two measurements predicts a current sensitivity of \(6.27\,{\rm rad/A}\). Splitting the sweep into smaller equal angular intervals tests whether the measured \(K\) depends on angle. Sweeping backwards should reverse the integrated voltage. A voltage offset instead contributes its offset times duration, so repeating at two sweep speeds helps separate it.

A dynamic cross-check uses free decay under two load conditions. Measure the exponential decay rate \(\alpha_{\rm open}\) with a high-impedance voltage probe and \(\alpha_R\) with a known total resistance in the closed circuit. In the short-electrical-time limit, subtraction of the two damping laws yields

\[K^2=2JR(\alpha_R-\alpha_{\rm open}).\]

With \(J=2.0\times10^{-6}\,{\rm kg\,m^2}\), \(R=1.00\,\Omega\), and decay rates \(4.0\) and \(10.25\,{\rm s^{-1}}\), this gives

\[K=0.0050\,{\rm N\,m/A}.\]

The method needs two identifiable decay rates and independent inertia. If the loaded response is overdamped, the envelope of two oscillation peaks is no longer available; fit the full two-real-pole response to the measured displacement.

Keep the third dynamical variable in a frequency-response experiment

For a sinusoidal voltage at angular frequency \(\omega\) the exact linear transduction law follows by eliminating the complex current after transforming both differential equations. The mechanical impedance in angular-displacement form is \(\kappa-J\omega^2+i\omega b\); the winding impedance is \(R+i\omega L\). Using phasors with time dependence \(e^{i\omega t}\) gives

\[\frac{\Theta}{V}=\frac{K}{(R+i\omega L)(\kappa-J\omega^2+i\omega b)+i\omega K^2}.\]

At zero frequency the gain is \(K/(R\kappa)\) and the phase tends to zero, as the static calibration requires. At a sufficiently high frequency both the electrical and inertial impedances grow. For \(L>0\) the magnitude approaches \(K/(LJ\omega^3)\). The reduced model with the current eliminated algebraically falls only as \(1/\omega^2\). The change of the asymptotic slope provides an experimental way to distinguish finite inductance from an incorrectly adjusted viscous damping constant. Beyond the working band of a real instrument, elastic modes of the pointer or parasitic capacitance can enter before that asymptote is resolved.

At the nominal undamped frequency \(20\,{\rm rad/s}\), with \(R=1.0\,\Omega\) and \(L=5.0\,{\rm mH}\), the stiffness and inertia terms cancel. The denominator becomes \(-\omega^2 L b+i\omega(Rb+K^2)\), or approximately \(-0.000032+i\,0.000820\) in consistent SI units. Its magnitude gives about \(6.09\,{\rm rad/V}\). A sinusoid of \(1.0\,{\rm mV}\) peak produces about \(6.09\,{\rm mrad}\) peak, whereas the static response to \(1.0\,{\rm mV}\) is \(6.25\,{\rm mrad}\). The phases differ radically despite their similar amplitudes: near this frequency the pointer lags by about \(92.2^\circ\). A gain-only calibration at a single frequency would miss the phase lag.

Change the electrical load and compare two step models

In the live graph the source voltage is chosen anew at each resistance to give a final current of \(5.0\,{\rm mA}\) after the pointer settles. That convention keeps the final angle common to all curves and isolates the transient response of the load. The full model retains \(i,\theta,\dot\theta\); the second curve sets \(L\dot i=0\). Predict first which trace should start flatter. With finite inductance the current initially vanishes and increases at a finite rate. The initial torque and angular acceleration therefore vanish, while the reduced model applies a finite torque immediately. Increasing the inductance makes that distinction easier to see, especially when the electrical response time becomes comparable to the period of mechanical oscillation.

How could a student change the static range of the instrument without changing its suspension or its torsional stiffness?

Work through the solution

For a dc ammeter, connect a calibrated shunt resistance in parallel with the coil, allowing only a known fraction of total current into it. With a coil winding resistance \(0.300\,\Omega\) and a \(0.0333\,\Omega\) shunt, the coil carries about ten percent of a steady terminal current and the indicated full-scale terminal current increases about tenfold. The total circuit seen by a motional voltage during a pointer oscillation depends on the shunt and source impedance, so the static range multiplier does not by itself give the new damping. For a voltmeter, a series resistance instead sets the current produced by an applied terminal voltage. In both cases record the resistance network whenever reporting a dynamic response.

Estimate the back action on the signal being measured

A galvanometer becomes part of the circuit it observes. Suppose a source with open-circuit voltage \(10.0\,{\rm mV}\) and internal resistance \(2.00\,\Omega\) drives a coil of resistance \(0.300\,\Omega\). After settling, the current is \(4.35\,{\rm mA}\) and the pointer turns by \(27.2\,{\rm mrad}\). The undisturbed short-circuit current of the source would have been \(5.00\,{\rm mA}\). Interpreting the indicated value as the current that would flow with a perfect zero-resistance meter underestimates that quantity by about thirteen percent. Measuring the open-circuit voltage instead requires a sufficiently large input resistance, another electrical boundary condition.

During pointer motion the disturbance includes the back emf as well as winding resistance. If the same coil is briefly turning at \(0.40\,{\rm rad/s}\) it develops a \(2.0\,{\rm mV}\) back emf. Neglecting inductance for that estimate, the resulting current is

\[(10.0-2.0)\,{\rm mV}/2.30\,\Omega=3.48\,{\rm mA}.\]

The deflection therefore contains information about both the source and the pointer's earlier motion. A static calibration alone cannot recover a rapid source waveform. A known source resistance and the two coupled dynamic equations provide a way to estimate the waveform from synchronised angle and current measurements.

Tutorial on calibration and transient identification

A current source produces a static mirror shift of \(12.5\,{\rm mm}\) on a screen \(0.50\,{\rm m}\) away. Estimate the current and identify a reversible test for an angular zero offset.

Work through the solution

Use \(\theta=\frac12\arctan(0.0125/0.50)=0.01250\,{\rm rad}\) and \(i=\kappa\theta/K=2.00\,{\rm mA}\). Repeat with reversed current of equal magnitude. Half the difference of the two angles cancels a fixed angular zero offset and isolates the response odd in current. A changing temperature during reversal can alter the spring or winding resistance, so alternate the order and record the zero afterwards if the required uncertainty is small.

For an open-circuit free decay the ratio of two successive same-side positive peak angles is 3.60. Their time separation is \(0.321\,{\rm s}\). Recover the mechanical parameters that can be inferred if \(J\) is known.

Work through the solution

The logarithmic decrement is \(\ln 3.60=1.281\). The decay rate is \(\alpha=1.281/0.321=3.99\,{\rm s^{-1}}\), and the damped angular frequency is

\[2\pi/0.321=19.57\,{\rm rad/s}.\]

Then \(\omega_0=\sqrt{\omega_d^2+\alpha^2}=19.97\,{\rm rad/s}\),

\[b=2J\alpha=1.60\times10^{-5}\,{\rm N\,m\,s/rad},\]
\[\kappa=J\omega_0^2=7.98\times10^{-4}\,{\rm N\,m/rad}.\]

This identification assumes viscous damping and a sufficiently high impedance to make the electrical damping negligible.

Explore how motion generates voltage in the induction chapter.

Coupled optical and mechanical resonances

A vibrating mirror can imprint its position on an optical field, while the stored light pushes back on the mirror. An apparent pair of peaks can indicate two hybrid modes, interference at a readout port or two unrelated resonances. Starting from energy in a moving cavity, derive the coupled response and learn which measurements establish a coupling strength and its uncertainty.

From a moving boundary to a force per photon

Take a nearly empty Fabry–Pérot cavity of optical length \(L\) with one moving end. A longitudinal resonance has \(\omega_c=m\pi c/L\) for integer \(m\), neglecting frequency-dependent mirror phase. For a small extension \(x\), \(\delta\omega_c=(\partial\omega_c/\partial x)x\) with signed slope \(G_x=-\omega_c/L\). At fixed photon number \(n\) the optical energy is \(n\hbar\omega_c(x)\). Its derivative gives the radiation-pressure force on the coordinate. For this mirror \(F=-n\hbar G_x>0\) pushes outward. The derivative must be at fixed photon number. Differentiating a driven steady-state photon number as though it were a closed-system energy would incorrectly include work exchanged with the pump.

For a 10 mm cavity resonant near 1064 nm the frequency slope magnitude in ordinary frequency is about 28.2 MHz per nanometre. A static shift of 10 pm therefore changes the optical resonance by approximately 282 kHz. One photon exerts a mean force \(\hbar\omega_c/L\simeq1.87\times10^{-17}\) N. An equivalent classical derivation counts a momentum change twice per normal reflection for each relevant round trip. The two descriptions yield the same mean force. The mirror displacement is the properly normalised mode coordinate; in a flexural device the optically sampled position and the total physical mass are generally different from centre-of-mass displacement and mass.

Introduce a single mechanical eigenmode with effective mass \(m_{\rm eff}\), angular frequency \(\Omega_m\) and displacement scale \(x_{\rm zpf}=\sqrt{\hbar/(2m_{\rm eff}\Omega_m)}\). The single-photon coupling magnitude is \(g_0=|G_x|x_{\rm zpf}\). This normalisation is convenient even when the observed vibrations are entirely classical. For \(m_{\rm eff}=10\) ng and \(\Omega_m/(2\pi)=1.0\) MHz, \(x_{\rm zpf}=9.16\times10^{-16}\) m and \(g_0/(2\pi)=25.8\) Hz for the stated optical geometry. The small displacement scale explains why a coherent pump is normally used to make the interaction measurable.

How a laser couples frequencies that are otherwise far apart

An optical carrier oscillates at hundreds of terahertz, whereas the mirror may vibrate at only megahertz. Direct comparison of these two bare frequencies would never suggest a resonant exchange. A strong coherent pump supplies a phase reference and converts a mechanical displacement into optical sidebands. Move into a frame rotating at the pump frequency and write the cavity amplitude as its large steady part plus a small perturbation. The leading frequency-shift interaction is proportional to photon number times displacement. Expanding the intensity around the large pump keeps terms linear in both the probe field and displacement. The resulting coupling is \(G=g_0\sqrt{n_c}\), where \(n_c\) is mean intracavity pump photon number.

Tune the pump about one mechanical frequency below the optical cavity resonance. In the resolved-sideband and weak-fluctuation limit a near-resonant process moves one excitation between the mechanical mode and an upper optical sideband. The rapidly rotating opposite-sideband terms average out. Now the two coupled frequencies are an optical sideband offset and the mechanical frequency, measured relative to a common rotating reference. The large carrier frequency has already been accounted for by the pump. The pump phase can be absorbed into the mode definitions, so \(G\) may be chosen positive for this isolated pair.

If instead the pump is placed near the upper sideband, the surviving interaction creates or annihilates excitations in pairs. The passive exchange equations below cease to apply and strong pumping can produce amplification or instability. A bare two-oscillator machine driven mechanically near a shared natural frequency often has analogous exchange equations without a carrier pump. Identical matrices can describe different energy supplies; identify the drive and rotating reference before assigning a literal photon-to-phonon energy conversion.

Derive complex poles and the effect of unequal damping

Let \(a,b\) be small energy-normalised optical and mechanical complex amplitudes. In a frame where the uncoupled optical sideband has zero frequency, let the mechanical detuning be \(\delta\). Let \(\kappa,\Gamma\) denote energy linewidths in angular frequency, so amplitude decay rates are half these values. With an optical probe \(s\) at offset \(\omega\), the linear system is

\[\begin{pmatrix}\kappa/2-i\omega&iG\\ iG&\Gamma/2-i(\omega-\delta)\end{pmatrix}\binom{a}{b}=\binom{s}{0}.\]

Zeros of the determinant give autonomous complex mode frequencies. In the lossless case the eigenvalues are \(\delta/2\pm\sqrt{G^2+(\delta/2)^2}\). Far off resonance each branch approaches a bare mode. At zero detuning the two eigenvectors have equal optical and mechanical weights and the splitting is \(2G\). The eigenvectors rotate continuously through the avoided crossing, an important discriminator from two uncoupled lines simply passing through one another.

At zero detuning with losses, completing the square in the determinant gives

\[\omega_\pm=-i(\kappa+\Gamma)/4\ \pm\sqrt{G^2-(\kappa-\Gamma)^2/16}.\]

The real parts separate once \(G>|\kappa-\Gamma|/4\). The shared imaginary part above that threshold corresponds to a hybrid energy linewidth \((\kappa+\Gamma)/2\). Resolving two intensity features on a given instrument is a stronger, readout-dependent condition. The dimensionless cooperativity \(C=4G^2/(\kappa\Gamma)\) is yet another measure, comparing interaction against the product of dissipation scales. A value greater than one does not automatically prove two resolved normal-mode poles in a device with very unequal linewidths.

Use frequency numbers divided by \(2\pi\) consistently from here for examples. With optical linewidth 240 kHz, mechanical linewidth 40 kHz and coupling 160 kHz, the real pole separation is

\[2\sqrt{160^2-50^2}=304\,\mathrm{kHz}.\]

Both hybrid energy linewidths are 140 kHz, and cooperativity is 10.7. If coupling falls to 45 kHz, cooperativity is still about 0.844 and no real zero-detuning pole separation appears. At 50 kHz the square root reaches zero. Near that threshold even a small linewidth or detuning calibration error has a large effect on a coupling estimate inferred from a single splitting.

Compute what an optical or mechanical receiver actually sees

Invert the matrix. With \(D=(\kappa/2-i\omega)[\Gamma/2-i(\omega-\delta)]+G^2\), the small amplitudes are \(a=s[\Gamma/2-i(\omega-\delta)]/D\) and \(b=-iGs/D\). The poles are shared. Their numerators are different, so the two channels can show different apparent maxima. A port in reflection also has a directly reflected field that interferes with the leaking intracavity amplitude. Its intensity can display a narrow dip or asymmetric feature without a matching resonance-height pattern inside the cavity. A legitimate forward model must describe the measured port.

The graph plots the internal squared amplitudes relative to the bare on-resonance optical probe energy. Set the mechanical detuning to zero and reduce the coupling through 50 kHz. Compare the optical dip with the predicted real pole separation. Then set a substantial positive detuning and follow the transfer of mechanical response onto one branch. As a control set the coupling exactly to zero. The optical curve recovers the bare cavity Lorentzian and the mechanical probe-induced response vanishes. A thermally excited mechanical background, absent from this driven calculation, could remain in a real detector.

At zero detuning and zero probe offset,

\[a/a_{\rm bare}=1/(1+C).\]

For the default parameters the internal optical probe intensity at the centre is only \(1/(1+10.67)^2=0.00735\) of the bare peak. This deep feature alone still does not establish the pole spacing. An incoherent background, a frequency-dependent detector transfer or coherent feedthrough can alter peak and dip positions. Fit complex quadratures across a detuning series when available, and verify bare linewidths by independent ringdown or far-detuned spectra.

Check how energy linewidth and amplitude ringdown are related for one isolated resonance

Watch energy exchange in time and identify the linewidth convention

In an ideal equal-linewidth system starting with optical perturbation \(a(0)=a_0\), \(b(0)=0\) at zero detuning, change to symmetric and antisymmetric modes. Recombination gives

\[a(t)=a_0e^{-\kappa t/2}\cos Gt,\]
\[b(t)=-ia_0e^{-\kappa t/2}\sin Gt.\]

Their normalised total energy decays as \(e^{-\kappa t}\), while energy moves back and forth between optical sideband and vibration. The first full transfer occurs at \(t=\pi/(2G)\) if the rotating-wave approximation holds. For \(G/(2\pi)=100\) kHz, this is 2.50 microseconds. With a shared energy linewidth of 20 kHz in ordinary frequency the surviving energy fraction then is

\[e^{-2\pi(20\,{\rm kHz})(2.50\,\mu{\rm s})}=0.730.\]

A gated excitation shorter than the exchange period but long enough to avoid unwanted modes can prepare an approximately optical initial perturbation. Independent detection of an optical revival and a delayed mechanical response tests coherent exchange more strongly than the presence of two peaks alone. Comparing times of maxima directly with one half the reciprocal measured optical linewidth misidentifies the exchange physics. Check the decay of the sum of appropriately calibrated energies and the relative phase of the exchange. Electrical or optical feedthrough can produce a prompt apparent response with no mechanical build-up.

Infer a coupling with propagated measurement errors

When the two hybrid pole frequencies have been obtained from a justified fit and zero bare detuning is established, the coupling follows from the measured real separation \(S\):

\[G=\sqrt{S^2/4+(\kappa-\Gamma)^2/16}.\]

All quantities here can be expressed in the same ordinary-frequency units. If \(S=300\pm8\) kHz, \(\kappa=240\pm10\) kHz and \(\Gamma=40\pm4\) kHz, the estimate is 158.1 kHz. Independent small errors give

\[\partial G/\partial S=S/(4G)=0.474,\]
\[\partial G/\partial\kappa=-\partial G/\partial\Gamma=(\kappa-\Gamma)/(16G)=0.0791.\]

Combining in quadrature gives about 3.9 kHz uncertainty. A common frequency calibration can correlate all three inputs, and a fitted detuning and splitting from one scan may also be correlated. Use their covariance rather than multiplying independent error bars blindly.

A second inference varies intracavity pump power. Since \(G^2=g_0^2 n_c\), plot the squared fitted coupling against independently calibrated \(n_c\). A nonzero intercept could indicate an additional direct coupling, baseline fitting bias or a mode incorrectly assigned at low power. The linewidths themselves can vary with pump power because of heating or backaction, so fit or measure them across the scan. Incident optical power is not identical to stored photon number; cavity coupling, detuning and loss determine their relation.

A measured frequency shift and linewidth change reveal optical feedback

The same instrument can be operated below the resolved splitting regime and read out a dispersive shift of the mechanical response. Algebraically eliminate the optical amplitude in the two-mode equations while driving the mechanical mode weakly. Its inverse susceptibility acquires a self-energy contribution proportional to the optical susceptibility. Let \(x\) be probe frequency measured from the bare optical sideband and use the same linewidth convention as above. In the mechanical denominator the additional term is

\[\Sigma(x)=\frac{G^2}{\kappa/2-ix}=\frac{G^2(\kappa/2+ix)}{(\kappa/2)^2+x^2}.\]

Its real part adds to the amplitude damping, while its imaginary part shifts the resonant condition. At very weak coupling one can evaluate it at the bare mechanical frequency \(x=\delta\), because variation across the narrow mechanical peak is small. Near an avoided crossing or when the mechanical peak samples a large change in optical susceptibility, solve the coupled poles directly; simply adding a linewidth and shift then neglects the very hybridisation being tested.

In ordinary-frequency units choose \(G=10\) kHz, optical linewidth 200 kHz, mechanical linewidth 2 kHz and detuning \(+100\) kHz. At that offset the optical amplitude half-width is 100 kHz, giving \(\operatorname{Re}\Sigma=0.50\) kHz and \(\operatorname{Im}\Sigma=0.50\) kHz. The full mechanical linewidth increases from 2.0 to approximately 3.0 kHz. Its centre moves upwards by about 0.50 kHz with the adopted matrix signs. Moving to minus 100 kHz reverses the shift and preserves the added damping in this symmetric model. At zero detuning the predicted shift vanishes but the added linewidth is largest.

A scan on both sides is more discriminating than measuring broadening alone. A background rise in mechanical temperature changes integrated thermal noise and may change intrinsic loss, but need not reproduce this odd shift and even broadening pattern. Measure intrinsic linewidth far from the optical response and subtract that baseline. An unknown constant frequency offset can be removed with the two symmetric detunings, but an optical power dependence of cavity frequency can move the actual symmetry centre. Monitor the optical resonance during the scan.

The effective susceptibility describes classical feedback through the delayed optical field. It does not by itself specify the final mechanical temperature. A bath occupation or noise spectrum is also required to convert a damping change into an energy distribution. A driven response peak that broadens and lowers in amplitude is evidence for a changed susceptibility; thermal cooling additionally requires a calibrated measurement of the fluctuating mechanical displacement and its optical transduction.

Tutorial · A high cooperativity without resolved modes

A device has ordinary optical linewidth 1.00 MHz, mechanical linewidth 1.0 kHz and pump-enhanced coupling 30 kHz. Calculate cooperativity, compare the coupling with the real-splitting threshold and estimate the relative intracavity probe intensity at the central frequency. What observation would distinguish a narrow interference window from two separated poles?

Evaluate the three criteria independently

In kHz units the cooperativity is

\[4(30)^2/(1000\cdot1)=3.6.\]

The real-splitting threshold is \(999/4=249.75\) kHz, far above the actual coupling. Yet the zero-detuning centre intensity is \(1/(1+3.6)^2=0.0473\) relative to the bare optical peak. A narrow, deep structured feature is possible with no separated real pole frequencies in this model. The linewidth contrast permits mechanical response to interfere strongly within a broad optical susceptibility.

Acquire both amplitude and phase while scanning the absolute mechanical detuning and compare a coupled complex-response model with independently measured bare parameters. A pair of well-resolved poles should trace two consistent trajectories in both observables and can generate underdamped exchange in the time domain. A single optical intensity scan containing two flanks around a dip is insufficient to make that inference.

Tutorial · Diagnose an erroneous estimate of the single-photon coupling

An independent linewidth analysis gives pump-enhanced couplings 80 and 160 kHz at photon numbers \(4.0\times10^6\) and \(1.6\times10^7\). Estimate \(g_0/(2\pi)\) and predict the coupling at \(9.0\times10^6\) photons. A calibration revision doubles all inferred photon numbers while leaving the measured spectra unchanged. Which conclusions move?

Use coherent amplitude scaling and separate calibration from spectroscopy

Divide the respective couplings in ordinary frequency by the square roots of their photon numbers. Both give 40 Hz and the intermediate prediction is 120 kHz. Doubling all inferred photon numbers lowers the inferred single-photon coupling by \(1/\sqrt2\), to 28.3 Hz. The observed enhanced couplings, pole locations and cooperativities computed from measured linewidths stay the same. A prediction labelled by fixed physical photon number changes; a prediction at a repeatable laser setting can still be calibrated empirically.

To test the absolute calibration, compare the inferred single-photon value with the independent cavity frequency slope times the mechanical zero-point displacement. This requires an effective mass appropriate to the measured displacement and the actual cavity optical overlap. An incorrect choice of mechanical mode normalisation can mimic an error in stored photon number. Agreement across a power ratio tests the square-root scaling but cannot by itself determine the absolute optical or mechanical calibration.

Aspelmeyer, Kippenberg and Marquardt · cavity optomechanics, linearisation and strong coupling

Predictions, parameter profiles and nonlinear uncertainty

Calculate intervals for a quantity of interest, then find where a linear covariance approximation loses the geometry of a nonlinear fit.

From first principles

Propagate fitted uncertainty to a reported quantity

Suppose a fit gives a parameter estimate \(m\) with covariance \(C\), and the quantity to be reported is \(z=h(p)\). Near \(m\), expand a differentiable \(h\) to first order. Writing \(g=\nabla h(m)\), each small parameter change contributes through its directional sensitivity,

\[h(m+\delta p)-h(m)\simeq g^T\delta p,\]
\[\operatorname{var}(z)\simeq g^TCg .\]

Correlations can either reduce or enlarge the propagated variance. For a genuinely nonlinear quantity or a large parameter region, a local line may miss the full shape. One alternative holds the target value fixed and finds the best fit compatible with it. With an objective \(\Phi\), define

\[\Phi_{\rm prof}(z)=\min_{p:\,h(p)=z}\Phi(p).\]

Comparing this constrained objective with its unconstrained minimum tracks compensating changes in the nuisance parameters. A confidence level for its increase requires an explicit statistical model; tracing an objective curve alone supplies no probability calibration.

Derivation and applications

Derive a profile interval using the covariance of a linear fit

Suppose a Gaussian linear experiment gives unconstrained estimate \(m\) and strictly positive covariance \(C\), with correctly known noise scale. Its negative log likelihood relative to the optimum is the quadratic distance \(\tfrac12(p-m)^TC^{-1}(p-m)\). To profile a reported scalar \(z=c^Tp\), require the candidate parameters to satisfy that equality. Introduce a multiplier and differentiate with respect to the vector,

\[C^{-1}(p-m)+\lambda c=0,\]
\[p=m-\lambda Cc .\]

The constraint determines \(\lambda=(c^Tm-z)/(c^TCc)\). Substitution gives both the parameter combination selected at each target value and the profile height,

\[p_z=m+Cc\frac{z-c^Tm}{c^TCc},\]
\[2[\Phi_{\rm prof}(z)-\Phi(m)]=\frac{(z-c^Tm)^2}{c^TCc}.\]

This reproduces the usual propagated Gaussian variance while showing exactly how the other fitted coordinates move along the profile. For a monotone function \(q=g(z)\), imposing \(q\) fixes the corresponding \(z=g^{-1}(q)\). The profile then transforms without approximation,

\[2\Delta\Phi(q)=\frac{[g^{-1}(q)-c^Tm]^2}{c^TCc}.\]

An interval selected by a likelihood-ratio threshold maps by applying \(g\) to its two endpoints. It can be asymmetric even when the underlying likelihood in \(p\) is exactly quadratic. If \(g\) is not one-to-one, every feasible branch must be considered and the smallest objective chosen.

Worked example

Track the nuisance displacement along a profile

Take \(m=(2,4)^T\), \(C=\left(\begin{smallmatrix}1&0.5\\0.5&1\end{smallmatrix}\right)\), and target \(z=p_1+p_2\). The target mean is 6 and variance 3. At \(z=9\), \(Cc=(1.5,1.5)^T\), giving constrained state \((3.5,5.5)^T\). The twice-log-likelihood increase is \(3^2/3=3\). Holding the second parameter fixed would impose a different and more restrictive path.

Second application

Transform an interval for a positive output

A second model estimates \(z=\ln(q/q_0)\) with mean \(0.4\) and deviation \(0.3\); let \(q_0=10\). At threshold \(2\Delta\Phi=4\), the interval in \(z\) is \([-0.2,1.0]\). Mapping its endpoints gives \(q\in[8.19,27.18]\), around the maximum-likelihood value \(10e^{0.4}=14.92\). A symmetric interval about that value would lose the exact profile geometry.

Push uncertainty through the prediction

Often a user needs tomorrow's temperature or a time to threshold, rather than all fitted coefficients. For a linear target \(h(x)=c^\mathsf{T}x\) and Gaussian posterior, \(h\) is Gaussian with mean \(c^\mathsf{T}m\) and variance \(c^\mathsf{T}C c\). Include covariance terms: positively correlated errors raise uncertainty in a sum and reduce it in a difference. For a new noisy measurement add its own independent measurement variance. Reporting this predictive interval as the uncertainty of the noise-free underlying response would mix two questions.

For a smooth nonlinear \(h\), expand about the mean \(m\). The first-order variance is \(\nabla h^\mathsf{T}C\nabla h\); the leading correction to the mean is \(\tfrac12\operatorname{tr}[H_h(m)C]\). If the gradient vanishes, first-order variance propagation can return zero despite substantial uncertainty. For example, if \(x\) is centred normal with variance \(s^2\) and \(h=x^2\), then \(\mathbb Eh=s^2\) and \(\operatorname{Var}h=2s^4\), using the Gaussian fourth moment. The linear approximation at zero would miss both.

A positive rate and a nonlinear lifetime

Suppose \(\theta=\ln(k/k_{\rm unit})\) is normal with mean \(m\) and standard deviation \(s\). A decay lifetime is

\[t_*=1/k=e^{-\theta}/k_{\rm unit}.\]

Its median is \(e^{-m}/k_{\rm unit}\); its mean is larger by \(e^{s^2/2}\). A central 95% interval is \([e^{-m-1.96s},e^{-m+1.96s}]/k_{\rm unit}\). These endpoints need not be equally far from the median. For median 10 s and \(s=0.5\), the interval is approximately [3.75, 26.6] s and mean 11.33 s. Transform samples or quantiles if strong nonlinearity makes symmetric error bars misleading.

A profile follows compensating changes

Let the fit have parameters \((p,q)\). To profile \(p\), fix it temporarily at each trial value and minimise the objective over \(q\). The resulting curve reflects how much the other parameter can compensate. Holding \(q\) fixed instead gives a slice that is generally steeper and gives deceptively narrow intervals. For the sum-of-squares surface \(F=(p+q-2)^2+0.04(q-1)^2\), minimising gives

\[q=(2.04-p)/1.04.\]

The resulting profile is \(0.04(p-1)^2/1.04\). A slice at the joint optimum's \(q=1\) is just \((p-1)^2\). Both have minimum at one but radically different curvature.

Read the level as well as the curve

A profile likelihood is a maximisation over nuisance parameters. A Bayesian marginal instead integrates their probability. Even when their modes agree the two objects can differ in shape in nonlinear models. A likelihood-ratio threshold yields approximate confidence sets under regularity assumptions and enough informative data. Boundaries, multiple modes and poorly identified nuisance parameters may invalidate a familiar chi-square cutoff. Report the objective convention and how the threshold was calibrated, e.g. by simulated repetitions of the full experiment. A plot of the raw profile and representative predicted curves along it remains interpretable even when an asymptotic confidence level is questionable.

Invert a test to put an interval on a ratio

A scientifically relevant quantity may be \(q=\mu_y/\mu_x\), for example the response per unit excitation. Estimates \(\hat x,\hat y\) can each have nearly Gaussian uncertainty even when their ratio is highly asymmetric. Suppose for now that they are independent normals with known variances \(s_x^2,s_y^2\), and that the true denominator is nonzero. To test a proposed ratio \(q\), consider the contrast \(\hat y-q\hat x\). If the proposed ratio is correct, that contrast has mean zero and variance \(s_y^2+q^2s_x^2\). The source of difficulty, the uncertain denominator, now enters the reference variance explicitly.

Collect all values whose absolute standardised contrast is at most a normal quantile \(z\). Squaring and expanding gives the quadratic inequality

\[(\hat x^2-z^2s_x^2)q^2-2\hat x\hat y q+(\hat y^2-z^2s_y^2)\le0.\]

This inversion gives a confidence set because it contains the true ratio exactly when the correctly standardised contrast falls in the specified acceptance region. Its shape need not resemble a symmetric error bar. If the leading coefficient changes sign, the accepted set may be unbounded. A covariance between \(\hat x\) and \(\hat y\) changes the variance to \(s_y^2+q^2s_x^2-2q\,\mathrm{Cov}(\hat x,\hat y)\), so the preceding coefficients require modification.

A precise reading divided by an uncertain excitation

Use \(z=2\), corresponding to about 95.45 percent coverage for the stated normal model. Set \(\hat x=2,\hat y=4,\ s_x=0.5,\ s_y=1\). The quadratic coefficients are 3, −16 and 12. Its roots are \((16\pm\sqrt{112})/6\), about 0.903 and 4.431. The accepted set is the closed interval between them because the polynomial opens upward. The point estimate is two. The interval extends considerably farther upward than downward because a smaller plausible excitation can produce a much larger ratio. A symmetric linearised interval loses this asymmetry.

Now keep the observations and numerator uncertainty fixed but raise \(s_x\) to 1.5. The resulting inequality is \(-5q^2-16q+12\le0\), whose roots are \((-16\pm\sqrt{496})/10\), about −3.827 and 0.627. The accepted set consists of the two exterior rays. It includes very large positive and negative values. For such values the standardised contrast approaches \(|\hat x|/s_x=4/3\), inside the threshold two, precisely because the data cannot rule out an excitation arbitrarily close to zero.

An investigator with independent physical information that the excitation is strictly positive may intersect the set with the resulting permitted parameter space. A numerical routine that simply discards negative draws or clips ratios at a convenient maximum is instead changing the uncertainty analysis. The unbounded set is a measurable statement about what an experiment failed to localise, and identifies the denominator measurement as an appropriate target for redesign.

When \(\hat x^2=z^2s_x^2\) exactly, the quadratic term disappears. The confidence set is then ordinarily a half-line determined by a linear inequality. This is the transition between bounded and exterior solutions. A robust implementation must handle it directly instead of dividing by a leading coefficient that may be zero or extremely small.

Change parameters · Explore the worked calculation

Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.

Learning a drifting temperature from a sequence of readings

Derive the scalar Kalman update by completing the square and see how process uncertainty controls memory of the past.

Propagate a distribution through time

A drifting offset follows \(x_k=x_{k-1}+w_k\). A thermometer reports \(z_k=x_k+v_k\). Assume independent, zero-mean Gaussian process increments of variance \(Q\) and sensor noise of variance \(R\), independent at each time and of the initial state. Before the next reading, the mean stays at \(m^-=m_{k-1}\) and the variance adds, \(P^-=P_{k-1}+Q\).

The negative log posterior, up to constants, is \((x-m^-)^2/(2P^-)+(z_k-x)^2/(2R)\). Collect the coefficient of \(x^2\) and its linear term. The result can be written in two equivalent forms:

\[P_k=(1/P^-+1/R)^{-1},\]
\[m_k=m^-+K(z_k-m^-),\]
\[K=P^-/(P^-+R).\]

Thus the fraction of the innovation used is a model prediction. When sensors are noisy the gain falls. When the model permits rapid drift, uncertainty grows between readings, giving the new measurement a larger role. These are variances, so a stated standard deviation must be squared first.

A reading with units and a repeated reading

A prior says \(20.0\pm2.0\) °C (one standard deviation), with negligible intervening drift. A sensor of standard deviation 1 °C reads 23 °C. The gain is \(4/(4+1)=0.8\), giving \(22.4\) °C and variance \(0.8\) °C². A second independent reading of 23 °C gives gain \(0.8/1.8\) and mean \(22.6667\) °C. Treating a duplicate record as independent would falsely claim the same information gain.

In a long random walk with \(Q=0.25\) and \(R=1\) in squared units, a steady posterior variance satisfies

\[P=(P+Q)R/(P+Q+R).\]

Rearrangement gives \(P^2+QP-QR=0\), so the physically positive root is about 0.3904. New uncertainty replenishes the information squeezed out by measurement.

Follow a change in the underlying temperature

For a reproducible illustration, a fixed synthetic thermometer trace contains a smooth periodic disturbance and a step in the hidden temperature. It is deliberately held fixed while the filter's assumed \(Q\) and \(R\) change. Compare the lag just after the step with the wiggle once the temperature settles.

Tutorial on noisy data over time

If \(Q=0\), show how \(n\) independent readings with the same variance affect precision.

Worked solution

Each update adds \(1/R\) to precision \(1/P\). Induction gives

\[1/P_n=1/P_0+n/R.\]

This is precisely the precision of a batch Gaussian update.

What pattern in the innovations would call the random-walk assumptions into question?

Worked solution

A long run of positive innovations after a systematic ramp suggests bias in the prediction. Serial correlation suggests missing dynamics or correlated observation errors. Check against predicted innovation variance \(P^-+R\) and examine signs and lags as well as their sizes.

Read the university treatment

Extend the scalar precision update to several state variables and identify the matrix made invertible by a positive observation variance. Stephen Boyd · Stanford EE363, estimation and the Kalman filter

Predicting a new measurement when the fitted parameters are correlated

Propagate the full posterior covariance to a quantity of interest, distinguish latent and measured uncertainty and select the observation that reduces the uncertainty of the actual prediction.

One model supplies many possible targets

For parameters \(\theta\) with posterior mean \(m\) and covariance \(C\), a linear target \(s=h^T\theta\) has mean \(h^Tm\). Subtract the mean and expand the quadratic product to obtain

\[\operatorname{Var}(s)=h^TCh.\]

An independent sensor with variance \(R\) changes the variance of a future measured value to \(h^TCh+R\). Repeated fits of noisy datasets and repeated physical measurements are distinct sources of variation.

A candidate new observation \(z=a^T\theta+\epsilon\) with variance \(R_a\) has covariance \(h^TCa\) with the target. For a Gaussian posterior the conditional covariance update is \(C_+=C-Caa^TC/(a^TCa+R_a)\), found either by completing the square or projecting out the optimal multiple of the innovation. The target variance decreases by

\[\Delta\operatorname{Var}(s)=\frac{(h^TCa)^2}{a^TCa+R_a}.\]
Background · Posterior predictive
\[p(y_*|y)=\int p(y_*|m)p(m|y)\,dm\]

A distribution over parameters induces uncertainty in a new observation. Measurement noise and uncertainty of the prediction mean are distinct contributions.

A precise sum and an uncertain difference

Let \(C\) have diagonal entries 1 and correlation \(-0.9\). A target \(h=(1,1)\) has variance \(2-1.8=0.2\). The difference \(h=(1,-1)\) has variance 3.8. Ignoring correlations would predict 2 for both. With sensor variance 0.25, a newly measured sum has variance 0.45 although the latent sum variance remains 0.2.

For the target sum, measuring the first coordinate with variance 0.25 reduces variance by \((1-0.9)^2/(1+0.25)=0.008\). Measuring the sum itself at the same variance reduces it by \(0.2^2/(0.2+0.25)=0.0889\). These two sensors have differently normalised sensitivity vectors. Their stated noise levels refer to their own output units and must be calibrated before a cost comparison.

Choose the measurement direction

For a fairer geometric comparison, restrict both measurement and prediction directions to unit length. Fix the target along the normalised sum. Sweep candidate observation angles and read the remaining prediction variance. Change the parameter correlation: when does a coordinate sensor improve the target appreciably?

Tutorial on prediction and parameter recovery

If \(h^TCa=0\), can a noise-free measurement of \(a^T\theta\) improve the linear prediction under these Gaussian assumptions?

Worked solution

The covariance reduction is exactly zero. The measurement may determine another direction precisely while carrying no linear information about the target.

The posterior on \(\theta\) is strongly non-Gaussian. Which conclusions still hold exactly?

Worked solution

Mean and variance of a fixed linear prediction still follow from its first two moments, and independent sensor variance still adds. The Gaussian conditional update and an interval based only on two standard deviations need additional assumptions.

Read the university treatment

Compare the projection of a vector measurement with the covariance of a scalar target. Check the direction of each matrix product. Stephen Boyd · Stanford EE363, estimation

Measure gravity with a pendulum of finite amplitude

A metre-long pendulum is an appealing clock because its small-angle period depends only on length and gravity. A precise clock can nevertheless give a precisely wrong value of gravity. Derive the full period, trace the systematic error to an identifiable approximation and design a measurement that distinguishes a length error from a release-angle error.

Define the measured length and time

Use a point bob on a massless, inextensible string attached to a fixed pivot. Let \(L\) be the distance from pivot to the bob's centre of mass, and \(\theta\) the signed departure from the downward vertical. For a rigid extended bob, rotational inertia about its own centre adds to \(mL^2\); a length measured to the bottom of the bob is neither of these dynamical lengths. Measure the elapsed time between successive crossings of a photogate in the same direction. Crossings in opposite directions give half of the period in a symmetric oscillation. A stationary turning point is a poor timing marker because the position error there produces a large time error.

At rest at the release angle \(\theta_0\), the energy is \(mgL(1-\cos\theta_0)\). At a later angle the speed is \(L|\dot\theta|\). Equating kinetic plus potential energy to the release value gives

\[\dot\theta^2=(2g/L)(\cos\theta-\cos\theta_0).\]

Only a quarter cycle is needed. Inverting the angular speed and integrating from zero to \(\theta_0\) produces a square-root singularity at release. The period is finite since integrating the inverse square root over a small interval gives a square root.

Resolve the turning point before approximating

Write \(k=\sin(\theta_0/2)\) and substitute \(\sin(\theta/2)=k\sin u\). The vanishing square root cancels a factor \(\cos u\) from the differential. One obtains the complete elliptic integral of the first kind with modulus \(k\).

\[T=4\sqrt{\frac Lg}\,K(k),\]
\[K(k)=\int_0^{\pi/2}\frac{du}{\sqrt{1-k^2\sin^2u}}.\]

Expanding its integrand yields

\[K(k)=(\pi/2)(1+k^2/4+9k^4/64+\cdots).\]

Since \(k\simeq\theta_0/2\) at small amplitude, the first fractional period correction is \(\theta_0^2/16\) with angle in radians. It is positive. At larger amplitude the tangential component of gravity rises more slowly with angle than the linear restoring law predicts. The pendulum spends longer near the turns. Passing degrees directly into the quadratic correction would give nonsense even if the timer and recorded angle were perfect.

Infer the bias in gravity

Suppose the true acceleration is \(9.81\,\mathrm{m\,s^{-2}}\), the length is 1.000 m and the release angle is 30 degrees. The small-angle period is about 2.0061 s and the finite-amplitude period about 2.0410 s. Interpreting the longer measured period by the linear formula would give about \(9.48\,\mathrm{m\,s^{-2}}\). The fractional gravity error is about twice the fractional period error with opposite sign because gravity is inferred from \(T^{-2}\). Timing a hundred periods reduces random timing error but leaves this systematic shift.

The numerical curve evaluates the complete elliptic integral. It uses the arithmetic–geometric mean identity \(K(k)=\pi/[2\,\mathrm{AGM}(1,\sqrt{1-k^2})]\), so no sampled point sits on the turning point. The single-correction curve truncates the amplitude series after its first nonconstant term. Vary angle and length, comparing both the predicted period and the result a linear analysis would infer. Which change rescales both period curves together? Which changes their relative discrepancy?

Design a two-release check

For the same pendulum the ratio \(T(\theta_a)/T(\theta_b)=K(k_a)/K(k_b)\) cancels the unknown length and local gravity. Measure at two amplitudes before deciding whether to recalibrate the length. If the ratio agrees but both absolute times differ from prediction, check the effective length, clock rate and model of the bob. If the ratio changes during a decaying swing, record initial and final amplitudes for the timed sequence. The period associated with a long sequence is an average over its slowly changing amplitude. Substituting the initial angle throughout would overcorrect the measurement.

Tutorial

At small amplitude, what release angle gives a fractional period bias of approximately one part in a thousand?

Work through the solution

Set \(\theta_0^2/16=0.001\). This gives \(0.1265\) rad, about 7.25 degrees. The gravity bias from an uncorrected measurement would be approximately two parts in a thousand. A tolerance on one quantity is not automatically the same tolerance on the other.

A photogate records successive interruptions every 1.02 seconds for the metre pendulum. A calculation gives nearly four times local gravity. Identify one possible error in the observable.

Work through the solution

The gate may have counted both directions and returned a half period. Doubling that interval gives about 2.04 s. Because the inferred acceleration is inversely proportional to the square of the period, the missing factor of two gives a factor of four.

Why does reducing the grid spacing in an integration of the linear equation fail to recover the finite-amplitude curve?

Work through the solution

Integration error vanishes as the step is refined, but the restoring torque in that equation is \(mgL\theta\). The true torque is \(mgL\sin\theta\). A converged numerical solution can therefore provide independent evidence of an inadequate physical approximation.

For the equation of motion, phase portrait and dissipation, see the MIT treatment of the simple pendulum.

Measure inertia and gravity with two suspension axes

A rigid pendulum can oscillate from either of two knife edges. If the periods agree at distinct distances from the centre of mass, the spacing of the edges determines gravity. Derive the cancellation, identify a second way equal periods can arise and find why a poorly chosen geometry magnifies timing errors.

Torque about an offset pivot

Take a rigid body of mass \(m\) with parallel suspension axes perpendicular to its plane of oscillation. Its moment of inertia about the centre of mass is \(I_C=m\rho^2\); \(\rho\) is the radius of gyration. For a pivot a distance \(a>0\) from the centre, the parallel-axis theorem gives

\[I_a=m(\rho^2+a^2).\]

Gravity exerts torque \(-mga\sin\theta\). In the small-angle limit,

\[T_a^2=\frac{4\pi^2}{g}\frac{\rho^2+a^2}{a},\]
\[L_a=a+\frac{\rho^2}{a}.\]

Here \(L_a\) is the length of a point pendulum with the same period. It can lie beyond the physical centre of mass. A tap applied at this distance from a pivot gives the centre of percussion when the ideal instantaneous pivot reaction is to vanish. The same combination of mass distribution and geometry appears in an impulsive and in an oscillatory measurement because both depend on angular momentum about that pivot.

Match the periods and keep both algebraic branches

Put the second knife edge on the opposite side of the centre at distance \(b\). Equal periods require

\[a+\rho^2/a=b+\rho^2/b.\]

Rearrange before dividing by \(a-b\):

\[(a-b)\left(1-\frac{\rho^2}{ab}\right)=0.\]

Two equal distances always give equal periods. That branch provides no information about \(\rho\). If the distances are distinct, equality implies

\[\rho^2=ab.\]

Both equivalent lengths then equal \(a+b\), the directly measurable edge separation. For \(a=0.200\,\mathrm m,\ b=0.450\,\mathrm m,\ \rho=0.300\,\mathrm m\), the equivalent length is 0.650 m and both periods at standard laboratory gravity are about 1.62 s. A small value of \(a-b\) is an experimental warning sign, even if the observed equality is exceptionally clean.

Background · Can unequal release amplitudes imitate a mismatch between pivots?

A rigid pendulum about either knife edge obeys the same sine nonlinearity as a simple pendulum. To leading order in its release angle \(\theta\) in radians, the measured period exceeds the small-amplitude period by the fraction \(\theta^2/16\). At matched small-amplitude periods, measurements with amplitudes \(\theta_a,\theta_b\) therefore give

\[\frac{T_a-T_b}{T_0}\simeq\frac{\theta_a^2-\theta_b^2}{16}.\]

Releasing at 6° about the first edge and 2° about the other creates a fractional mismatch of about \(6.1\times10^{-4}\). For a two-second period this is 1.2 ms. Record the two amplitudes along with the timing data and reduce both periods to the same limit before moving the trim mass. Otherwise the trim can compensate a preparation error.

Extract gravity when the two measured periods differ

Multiply the first period equation by \(a\) and the second by \(b\). Subtract to eliminate \(\rho^2\). The exact small-angle result for unequal distances is

\[g=4\pi^2\,\frac{a^2-b^2}{aT_a^2-bT_b^2}.\]

At matched periods this reduces to the simple expression in terms of the edge spacing. The general formula involves a difference in its denominator. If \(a\) and \(b\) nearly coincide, the denominator is small and two independent timing errors subtract with poor relative precision. This is a property of the inverse measurement, even if computing each individual period is perfectly well conditioned.

Once \(g\) is known, use \(\rho^2=gaT_a^2/(4\pi^2)-a^2\) to recover the body inertia per unit mass. A negative value may indicate a wrong distance measured to the centre or a timing observable that is actually a half period. Verify the result using the second pivot and recover a separately predicted period after shifting a suspension point. A single successful cancellation is weaker than reproducing an additional measurement.

Move one knife edge in the experiment

Hold \(a=0.200\,\mathrm m\) fixed and vary both the radius of gyration and the second distance. The graph plots the period against the possible second distance. Before inspecting intersections, predict where the second match should lie as \(\rho\) grows. The dependence on distance has a minimum at \(b=\rho\) because effective length comprises a growing and a decreasing term.

With a finite oscillation amplitude, the physical pendulum has the same elliptic correction as a point pendulum of length \(L_a\), provided the body is rigid and the frictionless pivot stays fixed. Matching different amplitudes can bias the cancellation. Measuring both at the same small angle removes the leading difference, and extrapolating both to zero amplitude provides a check. Rotational compliance of the knife edge and a shifting centre of mass require a different model.

Tutorial

For \(a=0.240\) m and \(\rho=0.300\) m, where should the second distinct match occur and what length should be used in \(g=4\pi^2L/T^2\)?

Work through the solution

The second branch gives

\[b=0.0900/0.240=0.375\,\mathrm{m}.\]

Because the pivots straddle the centre of mass the equivalent length is 0.615 m.

Both pivots lie on the same side of the centre, at the same distances \(a,b\) as in the previous question. What changes in the cancellation?

Work through the solution

The periods depend on the magnitudes of the offsets, so equal periods still imply \(\rho^2=ab\) on the distinct branch. The sum \(a+b\) still gives the equivalent length, but the physical ruler distance between pivots is \(|a-b|\). The direct measurement shortcut relies on the chosen geometry.

Why does setting both axes exactly at the same distance make even noise-free measurements insufficient to determine both \(g\) and \(\rho\)?

Work through the solution

The two equations are then identical. For every positive choice of inertia radius the first period determines a corresponding value of gravity. Improving timing precision cannot provide the missing independent equation.

Connect the offset-pivot calculation to the rigid-body inertia chapter.

Time stepping and robust computation

Investigate state growth in apparently stable systems, propagate derivatives and judge whether numerical error can account for a switching event.

  1. Absolute stability and stiffness
  2. Adaptive steps and event locations
  3. Tangent equations and adjoint outputs
  4. How two decaying modes produce a growing signal
  5. Locating a grazing event between time steps
  6. Eigenvalues, modes and spectral gaps
  7. Singular values and minimum-norm solutions
  8. Deciding how far to trust a linearised residual
  9. Master equations, detailed balance and probability currents

Absolute stability and stiffness

Determine the step sizes that damp a decaying mode and explain why fast, physically uninteresting modes can dominate the cost of explicit integration.

From first principles

Find a stability limit directly from repeated multiplication

A small perturbation around an equilibrium often satisfies a linear equation \(y'=\lambda y\). Begin with real \(\lambda<0\), for which the continuous value is multiplied by \(e^{h\lambda}\), strictly between zero and one. Apply Euler’s left- and right-endpoint approximations to the integral of this same rate. Let \(z=h\lambda\):

\[y_{n+1}=y_n+z y_n,\]
\[y_{n+1}=y_n+z y_{n+1}.\]

Solve each update for its new value and iterate \(n\) steps. Persistence of roundoff or initial error is governed by the same powers:

\[y_n=R(z)^n y_0,\]
\[R_{\rm forward}=1+z,\]
\[R_{\rm backward}=(1-z)^{-1}.\]

For strict decay, \(|R|<1\) is necessary. Forward Euler on this real mode requires \(-2<z<0\), and avoiding sign alternation further requires \(z\ge-1\). Backward Euler damps every negative real \(z\), even when the step is too large to approximate a transient accurately. With modes at \(-1\) and \(-1000\) s⁻¹, the fastest mode restricts a forward step to less than 0.002 s even after that transient has become tiny. This mismatch between stability and the resolution needed for the slow observable is the source of stiffness in this example.

Background · Stability function
\[y_{n+1}=R(h\lambda)y_n\]

On the scalar linear test equation, absolute stability depends on the point h times lambda. It gives only part of the story for a nonnormal matrix or nonlinear problem.

The exact decay stays positive. Forward Euler alternates signs with decreasing magnitude, while backward Euler stays positive and decays more slowly on the same grid.Open full-size diagram
A stable update can predict an impossible concentration Take a decay time τ and a time step h = 1.5τ. The exact one-step factor is exp(−1.5) ≈ 0.223. Forward Euler multiplies by −0.5 and backward Euler by 0.4. Both numerical magnitudes decay, yet the first update changes sign. Refinement tests accuracy even when positivity and stability hold.

Derivation and applications

Separate unconditional stability from damping of an unresolved mode

A stiff dissipative mode may have decayed almost completely during a single time step. Merely keeping its computed amplitude bounded is then a weak requirement. Examine the family of one-step formulas that weights the old and new slopes with \(1-\theta\) and \(\theta\). On the scalar test equation \(y'=-\lambda y\), \(\lambda>0\), define the dimensionless decay over a step as \(r=h\lambda\). Collecting the new value on the left gives

\[y_{n+1}=y_n-r[(1-\theta)y_n+\theta y_{n+1}],\]
\[G(r)=\frac{y_{n+1}}{y_n}=\frac{1-(1-\theta)r}{1+\theta r}.\]

The denominator is positive for \(\theta\ge0\). The amplification never exceeds one from above; enforcing \(G\ge-1\) supplies the other half of the real-axis stability condition:

\[|G|\le1\quad\Longleftrightarrow\quad 2+(2\theta-1)r\ge0 .\]

Thus all positive step sizes are stable along the negative real eigenvalue axis for \(\theta\ge1/2\). Now investigate what actually appears in the stored solution when the mode is unresolved:

\[\lim_{r\to\infty}G(r)=-\frac{1-\theta}{\theta}\quad(\theta>0),\]
\[\lim_{r\to\infty}e^{-r}=0 .\]

The trapezoidal choice \(\theta=1/2\) approaches a sign-reversing factor of unit magnitude. Backward Euler \(\theta=1\) suppresses the fast mode. These properties govern the handling of transients; the order of approximation for a smooth, resolved mode is a separate question.

Worked example

Check a relaxation after one coarse step

Take \(\lambda=1000\) s⁻¹, \(h=0.100\) s and an initial perturbation of \(1.00\) K. The exact remnant is \(e^{-100}\) K, negligible. Trapezoidal stepping leaves \((1-50)/(1+50)=-0.961\) K, while backward Euler leaves \(1/101=0.00990\) K. After two trapezoidal steps the perturbation becomes positive again at \(0.923\) K. That oscillatory persistence is numerical, even though the amplification satisfies the stability condition.

Second application

Choose a step for monotonically decreasing transients

Suppose a solver uses \(\theta=0.750\) and should preserve positivity for a spectrum of decay rates up to \(400\) s⁻¹. The numerator of \(G\) requires \(1-0.250h\lambda\ge0\), hence \(h\le0.0100\) s. A \(0.0200\) s step would remain stable on every mode but gives \(G=(1-2)/(1+6)=-1/7\) for the fastest one. A positivity requirement can impose a finite time step even when boundedness does not.

Examine a single amplification factor

For the real decay problem \(y'=-\lambda y\), \(\lambda>0\), the physical solution multiplies by \(e^{-h\lambda}\) over a step. A linear one-step method replaces this by \(R(z)\), with \(z=-h\lambda\). Absolute stability at \(z\) means repeated multiplication does not amplify magnitude, conventionally \(|R(z)|\leq1\). A truly decaying mode requires a strict inequality for numerical damping. Positivity and phase fidelity impose additional requirements beyond this magnitude test.

Forward Euler has \(R=1+z\). In the complex plane the stability region is the disk of radius one centred at \(-1\). On the real negative axis, decay requires \(0<h\lambda<2\); nonnegative decay requires \(h\lambda\leq1\). Backward Euler has \(R=1/(1-z)\), and the trapezoidal method has \(R=(1+z/2)/(1-z/2)\). Both contain the entire left half-plane in their stability regions. As \(z\) becomes large and negative, backward Euler tends to zero while trapezoidal tends to minus one. The former strongly damps unresolved fast components; the latter can keep them as alternating numerical transients.

Follow a slow and a fast component together

Let \(u'=-u,\ v'=-1000v\), with \(u(0)=v(0)=1\). At \(t=0.1\) the exact slow state is 0.90484, while the fast state is \(e^{-100}\), effectively zero on a plot at unit scale. Suppose the slow state is the desired observable. One forward Euler step of 0.1 s gives \(u=0.9\) but \(v=-99\). The method becomes unstable even though the desired slow response is well resolved. To damp the fast mode explicitly, \(h\) must stay below 0.002 s whenever that mode can be excited.

Backward Euler with \(h=0.1\) gives

\[u=1/1.1=0.90909,\]
\[v=1/101=0.00990.\]

Trapezoidal gives

\[u=0.95/1.05=0.90476,\]
\[v=-49/51=-0.96078.\]

The second-order rule is especially accurate on the slow mode but retains a conspicuous oscillatory fast component. Neither the maximum order nor a broad stability region alone identifies the right integrator. The observable, acceptable transient error and stiffness all enter the decision.

Trace the cost back to the model

A diffusion equation discretised on a spatial mesh produces modes with rates up to order \(D/h_x^2\). Halving spatial spacing roughly quadruples the magnitude of the fastest eigenvalue. An explicit time step chosen for a coarse grid can therefore fail after spatial refinement, even if the initial physical signal looks smooth. Small high-frequency components from boundary changes, rounding or nonlinear interactions may excite modes absent from an idealised initial state.

Implicit stability shifts work into linear or nonlinear systems inside each time step. An oversized implicit step can miss a forcing pulse altogether, or produce a poor slow-phase estimate despite decaying every homogeneous mode. Compare the output on two time grids, distinguish the time required to resolve a source from the time required merely for stability, and inspect at least one fast component when interpreting unexpected oscillations. The distinction is visible in a reaction where exact species totals coexist with substantial errors in the individual states. Compare reaction histories under Euler and RK4.

Explain why a tiny initial fast component can still matter

Take the same two-rate model but start with \(v_0=10^{-12}\) and apply forward Euler with \(h=0.01\). The physical fast mode should disappear almost immediately. The numerical factor is \(1-10=-9\), so after twelve steps its magnitude is \(9^{12}10^{-12}\simeq0.282\). An initial disturbance that was invisible in the output has become comparable with the desired slow signal in little physical time.

If the fast variable started exactly at zero in a perfectly decoupled model, exact arithmetic would keep it zero. That special trajectory would give a misleading sense of stability. Roundoff, forcing or a weak coupling can generate a nonzero fast component at later stages. A robust experiment deliberately perturbs fast directions and examines whether numerical damping agrees with the model under those perturbations. This is especially relevant when a mesh refinement adds high-frequency modes that were absent from the coarser spectrum.

Separate damping of a perturbation from tracking a moving state

A useful stiff test has an exact slow path \(g(t)\) embedded in \(y'=\lambda(y-g(t))+g'(t)\), with \(\lambda<0\). Subtracting \(g\) gives

\[(y-g)'=\lambda(y-g).\]

An initial condition on the path stays on it, whereas an off-path disturbance decays exponentially. A numerical method must therefore address two different tasks: damp erroneous components perpendicular to the slow path and follow the path as it moves. A homogeneous stability test measures only the first.

Apply backward Euler and define \(e_n=y_n-g(t_n)\). Subtract \(g(t_{n+1})\) after the implicit update. The error satisfies

\[(1-h\lambda)e_{n+1}=e_n+h g'(t_{n+1})-[g(t_{n+1})-g(t_n)].\]

The last two terms are the error in approximating the change of \(g\) using its new endpoint derivative. Even with \(e_n=0\), this forcing can create error at the next time. The factor \(1/(1-h\lambda)\) damps both old error and newly created defect. Increasing stiffness changes their balance, while changing the time step alters both the source and its propagation.

Track a quadratic path with a fast relaxation

Take \(g=t^2,\ \lambda=-100\) per second, \(h=0.1\) s, \(e_0=0\). Since \(h(2t_{n+1})-(t_{n+1}^2-t_n^2)=h^2\), the recurrence is

\[e_{n+1}=(e_n+0.01)/11.\]

The first error is \(0.00090909\), so the first computed state is 0.01090909 when the exact value is 0.01. The second error is approximately 0.00099174. Solving the scalar recurrence shows that the error tends to 0.001, the fixed point of \(11e=e+0.01\). Stability does not force it to vanish because each step creates a new tracking defect.

For comparison, trapezoidal integration of the slow-path derivative integrates the linear function \(g'=2t\) exactly over each interval. Substituting the exact nodal values \(g(t_n)\) therefore satisfies its full discrete equations, so an exactly initialized trajectory stays on this particular path. However, a small off-path perturbation is multiplied per step by \((1-5)/(1+5)=-2/3\), whereas backward Euler multiplies it by \(1/11\). Thus one method is exact on the specified moving path and the other damps unrelated fast perturbations more rapidly.

A numerical test that initialises precisely on \(g\) and uses only this quadratic path could make the trapezoidal method appear flawless. Add a known small perturbation and measure its sign and amplitude separately. Conversely a test with \(g=0\) detects damping but cannot expose a tracking defect. Both controlled initialisations are needed to tell whether an observed error arises from resolving the moving forcing or dissipating the artificially fast component.

A final scaling experiment holds the stiffness fixed and halves the step. The long-time tracking error in this quadratic case is \(h/|\lambda|\), obtained by cancelling the fixed-point terms in the recurrence. With \(h=0.05\) and the same relaxation rate it becomes 0.0005. A one-step error alone, evaluated from the exact state on each grid, would not reveal the same accumulation mechanism. Report whether an observed order concerns a local defect, a settled tracking error or an initial fast transient.

Separate boundedness from physical decay in a stiff mode

For \(y'=-k y\) with positive initial state, an unresolved fast mode should disappear on the reporting timescale. Compare the actual signed factors. A magnitude-only graph would conceal a spurious sign change.

Separate boundedness from physical decay in a stiff mode. Horizontal axis: Step × positive decay rate. Vertical axis: Signed amplification per step. Data follow the figure.
At hk = 10 the exact factor is 4.54×10⁻⁵, backward Euler gives 1/11, and trapezoidal gives −2/3. The trapezoidal solution remains bounded but an alternating fast component can contaminate physically nonnegative output.
Read values from the plot
Signed amplification per step at selected values of Step × positive decay rate.
Step × positive decay rateExactBackward EulerTrapezoidal rule
0.010.990050.99010.99005
0.0880110.915750.919110.9157
0.77460.460890.563510.44165
6.81730.00109470.12792−0.54635
608.7565e−270.016393−0.93548

Download all 361 plotted samples (CSV)

Change parameters · Separate boundedness from physical decay in a stiff mode

Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.

Adaptive steps and event locations

Estimate local integration error with a low–high order pair, choose a dimensionally consistent tolerance and bracket a zero of an event function in time.

From first principles

Obtain a step controller from the measured error of two approximations

Take a proposed step \(h\) twice from the same current state, once using an order-\(p\) formula and once using a more accurate formula whose leading defect is one order smaller. For smooth data and sufficiently short steps the two values have a common exact target \(y_*\). Their expansion gives

\[y_{\rm low}=y_*+Ch^{p+1}+O(h^{p+2}),\]
\[y_{\rm high}=y_*+O(h^{p+2}),\]
\[d=y_{\rm low}-y_{\rm high}.\]

The difference estimates the leading local error of the lower-order formula. It has the units of the state. Scale each component by an absolute tolerance with those units plus a dimensionless relative tolerance times the current magnitude:

\[r=\max_i\frac{|d_i|}{{\rm atol}_i+{\rm rtol}\max(|y_{n,i}|,|y_{{\rm high},i}|)} .\]

If \(r\le1\) the proposed step passes this error estimate. Provided its leading coefficient varies slowly, a new step should change the estimated error by the ratio of step sizes raised to \(p+1\). Targeting unit scaled error gives

\[h_{\rm new}=s\,h\,r^{-1/(p+1)},\qquad 0<s<1 .\]

The safety factor leaves room for variation in the neglected terms. A real implementation bounds growth and handles \(r=0\) separately. A discontinuity or an event between endpoints can violate the smooth-error assumption even when the endpoints appear accurate.

Background · Embedded error estimate
\[e=y_{n+1}^{[p]}-y_{n+1}^{[p-1]}\]

Two formulas share stages and estimate a local error. The controller also needs absolute and relative scales for each component.

Derivation and applications

How component tolerances become a single step decision

A time step acceptable for one component can be inaccurate for another whose magnitude or units differ. Consider an embedded pair of methods sharing their internal stages and producing two endpoint estimates \(y_i^{H},y_i^{L}\). Let \(d_i=y_i^H-y_i^L\). For a smooth right-hand side and a pair whose lower formula has order \(p\), this difference is normally dominated by an \(h^{p+1}\) local term. Assume all components use the same step but have physically appropriate absolute scales \(a_i>0\) and relative tolerances \(r_i\).

Convert each difference to a dimensionless ratio using the larger recent endpoint magnitude. An infinity norm requires every component to meet its own allowance:

\[s_i=a_i+r_i\max(|y_{i,n}|,|y^H_i|),\]
\[E=\max_i |d_i|/s_i.\]

With approximately constant leading error coefficient and scale over the proposed retry, the new norm is predicted from the power law. Solving for a target near one and including a safety factor \(\nu<1\) gives

\[E_{\rm new}\simeq E(h_{\rm new}/h)^{p+1},\]
\[h_{\rm new}=\nu h E^{-1/(p+1)} .\]

Accept and advance with the higher-order estimate only when \(E\le1\) under this policy. If a component is converted to another unit by a factor \(c\), both its measured difference and absolute tolerance must scale:

\[|c d_i|/(|c|a_i+r_i|c|\max|y_i|)=|d_i|/s_i.\]

The decision is therefore invariant under consistent unit conversion. A bounded growth factor handles zero estimated differences and prevents a single unusually small defect from triggering a huge next step. This controller targets local agreement; its acceptance is not a proof of a global error bound.

Worked example

Decide a two-component retry

Let an order-two embedded lower estimate at \(h=0.100\) s produce differences \(0.000800\) m and \(0.00600\) m/s. The chosen component scales are \(0.00100\) m and \(0.00200\) m/s. Their ratios are \(0.800\) and \(3.00\). Reject the step and take \(\nu=0.9\), giving \(h_{\rm new}=0.9(0.100)3^{-1/3}=0.0624\) s. The leading-error model predicts a new norm \(0.9^3=0.729\).

Second application

Compare a componentwise limit with an averaged one

Suppose a system has 100 components, with 99 normalized errors zero and one equal to \(3.00\). Its root-mean-square norm is \(\sqrt{9/100}=0.300\), so an RMS policy would accept. The infinity policy rejects because one variable missed its tolerance threefold. An RMS policy can be appropriate when errors are distributed, while a strict component requirement demands the maximum or a separate check for a critical variable.

Ask different parts of a trajectory for different resolutions

A cooling transient changes rapidly at first and slowly near equilibrium. A uniform step small enough for the beginning can waste effort later. An adaptive controller proposes a step, estimates its error and accepts or rejects it. To estimate the error without the exact solution, two formulas can share function evaluations. With Euler and Heun, compute \(k_1=f(t_n,y_n)\), predict \(y_E=y_n+hk_1\), then evaluate \(k_2=f(t_n+h,y_E)\) and \(y_H=y_n+h(k_1+k_2)/2\).

Their difference \(y_H-y_E=h(k_2-k_1)/2\) estimates the leading local error of the lower-order Euler step. It normally scales as \(h^2\) in smooth regions. An embedded difference does not equal the local error of the higher-order accepted value; the higher-order value generally has a smaller error starting from accurate data. Nor does a local tolerance directly bound the error at the end of the whole run. Previous accepted steps already carry accumulated trajectory error.

Scale the estimate and choose a step

For a scalar use \(w=\mathrm{atol}+\mathrm{rtol}\max(|y_n|,|y_H|)\) and the dimensionless estimate \(E=|y_H-y_E|/w\). Accept when \(E\leq1\). If the next difference scales as \(h^2\), a proposed change is \(h_{new}=0.9h E^{-1/2}\). The factor 0.9 leaves a margin for changes in curvature. Practical implementations limit the ratio between successive steps and handle a zero difference by bounded growth. A rejected step is retried from the same original state and time.

For \(y'=-2y,\ y_n=1,\ h=0.1\), Euler gives 0.8 and Heun gives 0.82, a difference 0.02. With absolute tolerance 0.005 and zero relative tolerance for this demonstration, \(E=4\). The step is rejected and a revised step is

\[0.9(0.1)/2=0.045.\]

Re-evaluation from the original state gives

\[y_E=0.91,\ y_H=0.91405,\]

with difference 0.00405 and \(E=0.81\). The accepted state corresponds to time 0.045, not 0.145. Advancing time on rejection would skip the unresolved portion.

Background · What tolerance should a solver apply near zero concentration?

Two state components can be reported in very different units. An error of \(10^{-6}\) metres may be harmless for a position and an error of \(10^{-6}\) moles may dominate a trace species. A common error test divides each component by its own physical absolute tolerance plus a relative contribution, for instance

\[e_i^{\rm scaled}=\frac{e_i}{a_i+r\max(|y_{n,i}|,|y_{n+1,i}|)}.\]

At a zero crossing, \(a_i>0\) keeps the requested absolute accuracy finite. If concentration units change from mol/L to mmol/L, multiply the matching absolute tolerance by 1000 along with the numerical concentrations. The relative tolerance is dimensionless. Leaving the old absolute tolerance in place silently imposes a thousandfold tighter accuracy requirement near zero.

Estimate error using one full step and two half steps

A solver without an embedded pair can estimate its local error by applying the same order-\(p\) stepper twice from a common starting state: take one full step for \(Y_c\), and separately two successive half steps for \(Y_f\). Suppose the local error for one smooth step, numerical minus exact, is \(C h^{p+1}+O(h^{p+2})\). The two half-step errors accumulate to \(2C(h/2)^{p+1}+O(h^{p+2})\) because propagating the first over the short second half changes its leading coefficient only at higher order. Thus \(Y_f\) carries approximately \(2^{-p}\) of the full-step error.

Subtracting the two approximations gives an estimate of the correction to \(Y_f\): \((Y_f-Y_c)/(2^p-1)\). Adding it gives a Richardson-extrapolated value. The exponent in a local step controller remains \(1/(p+1)\) because the correction estimate scales as \(h^{p+1}\). The denominator \(2^p-1\) comes from taking two shorter steps to the same endpoint. Confusing that denominator with a single half-step local error factor introduces a systematic error in the estimate.

Take Heun's second-order method on \(y'=-y\), starting from one with \(h=0.4\). The full-step amplification is

\[1-0.4+0.4^2/2=0.68.\]

Each half step has amplification \(0.82\), so \(Y_f=0.6724\). The fine correction is

\[(0.6724-0.68)/3\approx-0.0025333.\]

The extrapolated value is 0.6698667. The exact endpoint \(e^{-0.4}\approx0.6703200\) requires correction \(-0.0020800\) to \(Y_f\). The estimated sign and scale are correct while higher-order terms are still visible. Discontinuous forcing, a skipped event or inconsistent internal solver tolerances can spoil this comparison even when the two output times agree.

Locate events between stored states

An event is a zero of \(g(t,y(t))\), such as crossing a chosen temperature threshold. When its endpoint values have opposite signs, continuity brackets at least one event. Use a dense approximation to the trajectory or refine the time interval to locate the crossing. A linear interpolation between endpoints may be adequate for a smooth signal away from a turning point. If a value changes by a small amount near a flat crossing, a small field error can produce a much larger error in event time.

For \(y=e^{-t}\), readings at 0.6 and 0.8 are 0.54881 and 0.44933. A straight interpolation to 0.5 gives \(t\simeq0.69813\), while the exact time is \(\ln2=0.69315\). The discrepancy arises from the curved trajectory even if the endpoints are exact. A tangential event such as \((t-1)^2=0\) never changes sign, and two crossings in one step can also be missed. Declare the crossing direction, the required timing accuracy and the physical effect of reaching it. After an event that changes the model, start the next segment using the event state and preserve the time at which the transition actually occurred.

Test the event interpolant with a known direction

At a crossing where a scalar signal has nonzero derivative, an approximate amplitude error \(\delta y\) produces a first-order timing error \(\delta t\simeq-\delta y/y'\). For \(e^{-t}=0.5\), the derivative is \(-0.5\) per second. A signal that is 0.002 too high near the crossing therefore appears to reach the threshold about 0.004 s late. This local estimate converts a solver tolerance on a state into a physically interpretable timing requirement.

A source that switches precisely at the threshold makes the event time part of the subsequent model. A timing error then affects all later states even if ordinary integration error within each regime is small. When comparing grids, compare both the located event times and the post-event states at shared physical times. Two traces that agree before a switch can diverge later purely because one entered the new law sooner.

Relate state accuracy to event-time accuracy

Let an event be defined by \(G(t,y(t))=0\) and write the scalar event signal as \(g(t)\). Its derivative along a smooth trajectory is \(g'=G_t+G_y f\). At a simple crossing \(g'(t_\star)\ne0\), an error \(\delta g\) in evaluating the signal displaces the reported time by approximately \(-\delta g/g'(t_\star)\). More rigorously, if the true signal derivative has magnitude at least \(m\) throughout the final bracket, the mean value theorem bounds time error by the event-signal error divided by \(m\), in addition to any error left by the scalar root search.

Thus an event locator can solve its interpolated scalar equation to a tiny tolerance while returning a poor physical time. Errors in the interpolated state, uncertain event threshold and flat slope all propagate into the time estimate. At a tangential contact the derivative vanishes and the first-order estimate ceases to apply. Two simple events can merge into one contact or disappear altogether under a perturbation that would merely shift a steep isolated crossing by a small amount.

Time two crossings around the top of a trajectory

Take vertical position \(y(t)=10t-5t^2\) metres, with time in seconds. Its maximum is 5 m at one second. A detector at 4.8 m records two crossings, since \(5-5(t-1)^2=4.8\) gives \(t=1\pm0.2\), namely 0.8 and 1.2 s. The respective vertical velocities are \(+2\) and \(-2\) m/s. A small threshold increase of 0.01 m therefore moves the rising crossing about 0.005 s later and the falling crossing about 0.005 s earlier.

Check the exact effect at 4.81 m. The half-separation becomes

\[\sqrt{0.19/5}=\sqrt{0.038}\approx0.194936\,\mathrm{s}.\]

The actual time shifts have magnitude approximately 0.005064 s, so the local slope estimate is already informative. At a threshold of 4.999 m the speed is instead only \(10\sqrt{0.001/5}\approx0.14142\) m/s. Another increase of 0.01 m moves the threshold above the maximum and removes both crossings. Applying the previous linear timing estimate at this near-tangent setting would predict a displacement for an event that no longer exists.

A direction flag distinguishes the rising and falling events if each is bracketed, but it cannot recover two crossings hidden inside one large step with endpoint signals of the same sign. In this model the velocity event \(y'=0\) identifies the turning point and splits the time interval into monotone pieces. On each piece check the threshold against its attainable position range before starting a time root search. This strategy uses knowledge of the dynamics to ensure the event actually exists.

For example, a single step from 0.7 to 1.3 s gives position 4.55 m at both endpoints and therefore no sign difference relative to the 4.8 m detector. Inserting the peak at 1 s gives a positive signal there and immediately produces two valid brackets. Decreasing only the scalar root tolerance would have found neither event on the original unsplit step.

Choose the next step when a local error estimate misses its target

Suppose the local estimator behaves as \(E\simeq C h^p\). Matching the next error to tolerance by rescaling \(h\), then applying a safety factor 0.9, predicts

\[h_{\rm next}/h=0.9(\mathrm{tol}/E)^{1/p}.\]

Treat \(p\) as the power of this estimator.

Choose the next step when a local error estimate misses its target. Horizontal axis: Estimated local error / target. Vertical axis: Proposed next step / current step. Data follow the figure.
With E eight times the target, a cubic estimator requests a new step 0.45 times the old one. The formula proposes a length; an acceptance test must separately decide whether to retry the current step. Sudden events can invalidate the assumed scaling.
Read values from the plot
Proposed next step / current step at selected values of Estimated local error / target.
Estimated local error / targetLocal error power 2Local error power 3Local error power 5
0.035.19622.89651.8148
0.169072.18881.62761.2842
0.97980.909230.906140.90368
5.6780.37770.504480.63592
320.15910.283480.45

Download all 251 plotted samples (CSV)

Change parameters · Choose the next step when a local error estimate misses its target

Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.

Tangent equations and adjoint outputs

Compute how an observed final state changes when an initial state or a model parameter is perturbed.

From first principles

Differentiate the trajectory that your instrument measures

Let a scalar parameter \(\theta\) enter both a smooth rate law \(y'=f(t,y,\theta)\) and the initial data \(y(0)=g(\theta)\). Compare two solutions at the same physical time. Their difference divided by a small parameter increment tends to the sensitivity \(S=\partial y/\partial\theta\). Differentiating the rate law at fixed time supplies a term from the moving state and a direct parameter term:

\[\dot S=f_y S+f_\theta,\]
\[S(0)=g'(\theta).\]

For a scalar terminal measurement \(J=\psi(y(T),\theta)\) the chain rule gives

\[J'=\psi_y S(T)+\psi_\theta.\]

When many parameters enter a single output, a backward equation can reuse their common output weighting. Choose \(\lambda(T)=\psi_y^T\) and \(\dot\lambda=-f_y^T\lambda\). Then the terms containing the unknown sensitivity cancel in the derivative of their scalar product:

\[\frac{d}{dt}(\lambda^T S)=\lambda^Tf_\theta,\]
\[J'=\psi_\theta+\lambda(0)^Tg'(\theta)+\int_0^T\lambda^Tf_\theta\,dt.\]

Evaluate all derivatives on the original trajectory. For \(y'=-\theta y\) with fixed \(y(0)\), direct differentiation gives \(S(T)=-Ty(T)\), the sign expected when increasing the decay rate. A parameter-dependent observation time would add an endpoint term.

Derivation and applications

Differentiate the numerical update that produced the observed output

A gradient used in fitting a parameter should agree with the discretized objective actually evaluated. Consider explicit Euler on a scalar equation \(y'=f(y,\theta,t)\) with fixed, parameter-independent time steps and initial state. A single final observation defines \(J=\Phi(y_N,\theta)\). Treat the computed states as a chain of differentiable maps rather than replacing their dependence by that of the exact differential equation.

For the step \(F_n(y,\theta)=y+h f(y,\theta,t_n)\) a small perturbation satisfies

\[\delta y_{n+1}=A_n\delta y_n+B_n\delta\theta,\]
\[A_n=1+hf_y,\]
\[B_n=hf_\theta\]

with derivatives evaluated on the stored numerical trajectory. Start from \(\delta J=\Phi_y\delta y_N+\Phi_\theta\delta\theta\) and substitute the last step. Repeating this substitution backward defines a weight on each earlier state:

\[\lambda_N=\Phi_y,\]
\[\lambda_n=A_n\lambda_{n+1}.\]

Each stage contributes its local parameter derivative weighted by the future effect of that stage. For a fixed initial condition the total derivative is

\[dJ/d\theta=\Phi_\theta+\sum_{n=0}^{N-1}\lambda_{n+1}B_n .\]

With vector states the reverse update uses the transpose Jacobian. An initial condition depending on \(\theta\) adds \(\lambda_0\,\partial_\theta y_0\). The resulting gradient is exact for the discrete map up to arithmetic precision, though it can differ from the gradient of the continuous solution. Adaptive control decisions need special care if differentiating through changes in the time grid.

Worked example

Differentiate a two-step fitted decay

Let \(y'=-\theta y\), \(y_0=2.00\), \(h=0.250\), \(\theta=1.00\), and \(J=(y_2-1)^2/2\). The Euler states are \(1.50\) and \(1.125\), giving \(\lambda_2=0.125\), \(\lambda_1=0.09375\). The local parameter derivatives are \(-0.500\) and \(-0.375\). Thus

\[J'=0.09375(-0.500)+0.125(-0.375)=-0.09375.\]

Increasing the decay rate locally reduces the positive final residual.

Second application

Compare with the continuous sensitivity at the same time

At \(t=0.500\) the exact value is \(2e^{-0.5}=1.21306\) and its derivative is \(-0.500(1.21306)=-0.60653\). The continuous objective therefore has derivative \(-0.1292\). That difference is expected at this coarse step. A centred parameter perturbation of the two-step numerical objective should approach \(-0.09375\), providing a direct implementation check without assuming that the time integrator is already accurate.

Differentiate the evolution

Let \(y'=f(t,y,\alpha)\) with smooth \(f\) and \(y(0)=y_0(\alpha)\). Assume that the solution exists and depends differentiably on \(\alpha\) throughout the observation window. Differentiating the equation along the solution gives

\[S'=f_y S+f_\alpha,\]
\[S(0)=y_0'(\alpha),\]

where \(S=\partial y/\partial\alpha\). The first term propagates state changes through the dynamics and the second injects the direct parameter effect. Losing the initial derivative gives the wrong sensitivity whenever a parameter also changes the initial preparation.

For an output \(Q=\phi(y(T),\alpha)\), the chain rule gives

\[Q_\alpha=\phi_y S(T)+\phi_\alpha.\]

Each parameter requires its own tangent column. Many observations can then reuse the propagated columns. Scaling matters because a derivative with respect to milliseconds is numerically different from the derivative with respect to seconds. Multiplying by a stated parameter perturbation converts the derivative back into a predicted observation change that can be checked directly.

A rate parameter and a final measurement

Take \(y'=-\alpha y,\ y(0)=2\). Then

\[S'=-\alpha S-y,\ S(0)=0.\]

Multiplying by \(e^{\alpha t}\) leaves \((e^{\alpha t}S)'=-2\), hence \(S=-2te^{-\alpha t}\). At \(\alpha=0.5\) per second and \(T=2\) s the sensitivity of final amplitude is \(-4/e\approx-1.47152\) amplitude units per inverse second. Raising the decay rate by 0.01 per second predicts a decrease of 0.014715. The exact change is \(2e^{-1}(e^{-0.02}-1)\approx-0.01457\); the discrepancy is quadratic in the parameter perturbation.

Testing a tangent code by differences requires controlling both the ODE integration error and subtraction error. Use several perturbation sizes. With a forward difference the truncation error normally decreases linearly at first, until numerical noise in subtracting two nearly equal outputs dominates.

Run one dual equation for a scalar output

Define a column vector \(z\) backward in time by \(-z'=f_y^Tz,\ z(T)=\nabla_y\phi\). Differentiating \(z^TS\) cancels the two terms containing \(f_y\). Integrating what remains gives

\[Q_\alpha=\phi_\alpha+z(0)^T y_0'(\alpha)+\int_0^T z^T f_\alpha\,dt.\]

For the preceding final-amplitude observation \(z=e^{-\alpha(T-t)}\). Its product with \(f_\alpha=-y\) is the constant \(-2e^{-\alpha T}\), whose integral reproduces the tangent result. One adjoint trajectory can provide gradients with respect to many parameters for this single output. Its coefficients require the forward trajectory at earlier times, so storing or reconstructing that trajectory is part of the numerical cost. If the desired derivative is of the discrete numerical update itself, differentiating its specific steps and interpolation choices can matter at finite time resolution.

A cancellation at a particular observation time

Compare observing the final amplitude with observing the lost amplitude \(Q=y(0)-y(T)\). If the rate is the only parameter, changing the observation reverses the sign of the computed rate sensitivity. If instead the unknown is the common initial amplitude, the direct derivative of \(y(0)\) is one and the propagated derivative is \(e^{-\alpha T}\). The final derivative of the loss is \(1-e^{-\alpha T}\), tending to zero as the observation window shrinks. Omitting the direct term would predict a large negative initial sensitivity for a loss that is identically zero at zero time.

Differentiate the time at which a model switches

If a trajectory switches dynamics at a threshold, the event time itself depends on the parameter. Let a pre-event solution \(y^-(t,p)\) meet \(G(t,y,p)=0\) at \(\tau(p)\). Denote by \(S^-\) its parameter derivative at fixed time, evaluated on the nominal event. Differentiating the event equation gives

\[\tau_p=-\frac{G_y S^-+G_p}{G_t+G_y f^-}.\]

The denominator is the rate at which the trajectory crosses the threshold. This formula requires a transversal crossing and a locally unchanged event sequence. At a grazing contact the derivative may diverge or cease to exist, and a perturbed trajectory can encounter a different number of events.

Assume the state itself is continuous while the right-hand side changes from \(f^-\) to \(f^+\). The total parameter change of the event state is \(S^-+f^-\tau_p\). But the post-event tangent at a fixed clock time must remove the amount of post-event evolution gained or lost by shifting the start time, giving \(S^+=S^-+(f^--f^+)\tau_p\). This jump in a derivative of a continuous state is sometimes surprising. Comparing trajectories taken at the same physical clock time is different from comparing their states at their respective event times.

Estimate the final position after a velocity switch

Let a cart start at zero and travel at constant positive speed \(p\) until it reaches position one. It then travels at fixed speed 0.5. Observe its position at \(T=2\), and examine \(p=1\), so the event occurs at \(\tau=1\). The pre-event position is \(pt\) and its tangent at fixed time is

\[S^-=t=1.\]

Using \(G=y-1\) gives

\[\tau_p=-1/p^2=-1.\]

Since \(f^-=1\) and \(f^+=0.5\), the tangent immediately after the switch becomes

\[1+(1-0.5)(-1)=0.5.\]

Subsequent evolution at the fixed speed adds no further parameter source.

Check directly: as long as the event precedes the observation, \(y(T,p)=1+0.5(2-1/p)\). Its derivative at one is indeed 0.5. At \(p=1.01\) the exact final position is approximately 1.5049505 instead of 1.5. The first-order prediction is 1.505. Carrying the pre-event tangent unchanged through the switch would predict 1.51, nearly doubling the response. Resetting it to zero because the event position is fixed would miss the change entirely.

At \(p=0.5\) the switch is exactly at the observation endpoint. Parameters below this value give \(y(T)=2p\), whereas parameters above it use the switched expression. Both one-sided derivatives happen to equal two here because the two velocities match at this specific threshold value. Their second derivatives differ. Changing the post-event speed to 0.25 makes even the first derivatives disagree at the boundary. An apparent smooth result in one carefully chosen switching case cannot justify ignoring event timing throughout a parameter study.

A finite-difference sensitivity test should consequently check which events occurred on both perturbed trajectories. Agreement in total simulated duration and integrator tolerance is insufficient if the jump sequence changed. Recording event times together with the reported output makes it possible to distinguish an error in the reset law from a derivative that has ceased to exist across the selected parameter interval.

Propagate a reset depending on the event location

If a switching event resets the state by \(y^+=R(t,y^-,p)\), differentiate the reset along the moving event before returning to a fixed clock time. The result is

\[S^+=R_yS^-+R_p+(R_t+R_y f^--f^+)\tau_p.\]

This reduces to the continuous-state formula when \(R\) is the identity. The occurrence time must still come from the pre-event trajectory, since the post-event state generally does not satisfy the original trigger condition.

Modify the cart example so the trigger position is \(H(p)=1+0.2(p-1)\), and the indicated position is reset to \(R=0.3y^-+0.2\) before it increases at speed 0.5. At \(p=1\), \(\tau=H/p=1\) and \(\tau_p=0.2-1=-0.8\). The pre-event fixed-time tangent is one. The reset gives

\[S^+=0.3+(0.3-0.5)(-0.8)=0.46.\]

The indicated final position at time two is \(0.3H+0.2+0.5(2-H/p)\), exactly one at the nominal parameter. Differentiating this expression gives \(0.3(0.2)-0.5(0.2-1)=0.46\), independently verifying the sign and the event-time correction. Simply differentiating the reset map at the nominal crossing position would give 0.3 and lose the varying length of the post-event trajectory.

Change parameters · Explore the worked calculation

Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.

How two decaying modes produce a growing signal

Solve a triangular system exactly, derive the energy growth criterion and separate a real transient from numerical instability.

A coupling hidden by the eigenvalues

Let \(y_1'=-y_1+K y_2,\ y_2'=-2y_2\), with time in scaled units. The eigenvalues are −1 and −2 for every \(K\). Their negative real parts guarantee asymptotic decay of this system. They do not say that \(\|y(t)\|\) must decay monotonically. The second component acts as a temporary source in the first component before being damped away.

With initial state \((0,1)\), \(y_2=e^{-2t}\). Multiply the first equation by \(e^t\) and integrate from zero to \(t\). The result is

\[y_1=K(e^{-t}-e^{-2t}).\]

The largest absolute excursion of the first component occurs when \(2e^{-2t}=e^{-t}\), giving \(t=\log2\) and \(y_1=K/4\). At \(K=12\), a unit initial state generates a measured first component of 3.

Which initial directions grow at the initial instant?

Write \(E=\|y\|_2^2/2\). Differentiation gives

\[E'=y^T S y,\]

with \(S=(A+A^T)/2\). Here \(S\) has diagonal \((-1,-2)\) and off-diagonal \(K/2\). A positive eigenvalue appears when the determinant \(2-K^2/4\) becomes negative. Thus some direction has positive instantaneous energy growth for \(|K|>\sqrt8\). The specific initial vector above nevertheless has \(E'(0)=-2\). Existence of a growing direction and immediate growth of every chosen initial condition are separate statements.

A numerical check with a false lead

Set \(K=8\). At \(t=\log2\) the exact components are \(2,1/4\). Forward Euler with a sufficiently small step will show an initial dip followed by a rise in the norm. Refining time steps changes the approximation to the peak but does not eliminate the physical growth. By contrast, using a coarse Euler step \(h>1\) puts the scalar mode −2 outside the forward-Euler stability interval and introduces genuine numerical growth.

The experiment plots the analytic components and norm. Use the signed coupling to reverse the first component. Explain why the norm is invariant under that sign change, and why a successful eigenvalue stability test alone cannot certify a bound on a short-time output.

Tutorial on transient amplification

Can a normal matrix with only negative real eigenvalues produce this Euclidean-norm amplification?

Worked solution

A normal matrix is unitarily diagonalizable. Its evolution is a unitary change of independent decaying factors, giving a norm at most one for \(t\ge0\). Nonorthogonality of the damped directions matters here.

Change the initial state to \((1,1)\) at \(K=6\). What is the initial energy slope?

Worked solution
\[E'=-y_1^2-2y_2^2+K y_1y_2=-1-2+6=3.\]

The instrumental first-component peak and the maximum total Euclidean norm generally occur at different times.

Locating a grazing event between time steps

Derive a sensitivity formula for event time, then measure how a harmless error in a trajectory can create or remove two threshold crossings.

A time is an implicitly defined output

Suppose an integrator advances \(y'=f(t,y)\) and an event occurs at \(g(t,y(t))=0\). Along the solution the derivative of the event function is \(\dot g=g_t+\nabla_y g\cdot f\). A perturbation \(\delta g\) in the computed event function shifts a simple event time by \(\delta t\simeq-\delta g/\dot g\). This estimate separates trajectory accuracy from event-time accuracy. At a tangency the denominator vanishes and the formula cannot be used.

Background · Event transversality
\[\dot g=\partial_tg+\nabla g\cdot f\]

For a simple event this directional derivative is nonzero. Near grazing, a small state error can create a much larger error in the event time.

Resolve two crossings analytically

Take \(g(t)=(t-t_0)^2-d\), a local model for a turning point relative to a sensor threshold. For \(d>0\) the events are \(t_0\pm\sqrt d\). Their separation is \(2\sqrt d\), and their slopes are \(\pm2\sqrt d\). For \(d=0\) there is only a tangent touch. If \(d<0\), the sensor is never triggered. An additive constant perturbation \(\epsilon\) changes the effective parameter from \(d\) to \(d-\epsilon\).

At \(t_0=1\), \(d=0.01\) and \(\epsilon=0.001\), the first event moves from 0.9 to about 0.90513. The linear prediction is

\[0.001/0.2=0.005.\]

At \(d=0.0004\) the same perturbation removes both crossings entirely. Reporting more digits from a polished scalar rootfinder would not recover them.

What two endpoint samples fail to tell you

With \(d=0.0025\), a step from 0.9 to 1.1 has equal positive endpoint values of 0.0075 but crosses the threshold twice. Dense interpolation followed by an extremum check can detect this pair if the interpolant resolves the turning point. A sign-change test at accepted endpoints alone cannot. An interpolant is itself an approximation, so event feasibility should be tested against an error scale at the extremum.

Tutorial on event tolerances

For a simple crossing with slope magnitude 0.04 units/s, what error in the event function is consistent with a 1 ms time tolerance to first order?

Worked solution

Multiply the slope by the desired time uncertainty. The event function should be accurate to about \(4\times10^{-5}\) units near the crossing.

A contact model needs the first event, even if it only touches the threshold and returns. How should the experiment be reported near grazing?

Worked solution

Report the minimum event-function value and an estimated error on it, in addition to any time estimates. If zero lies within that uncertainty one cannot distinguish no crossing, tangency and a nearby pair from these data alone.

Eigenvalues, modes and spectral gaps

Estimate a dominant vibration or diffusion mode, explain the role of eigenvalue separation and use a residual to check a computed eigenpair.

From first principles

Watch a power iteration select a mode

Start with a real symmetric matrix \(A\) and express a trial vector \(v_0\) in its orthonormal eigenvectors \(u_j\). Order the eigenvalues so \(|\lambda_1|>|\lambda_2|\ge\cdots\) and suppose the starting component \(c_1\) is nonzero. Applying \(A\) repeatedly multiplies each component by its own eigenvalue,

\[v_0=\sum_jc_j u_j,\]
\[A^k v_0=\lambda_1^k\left[c_1u_1+\sum_{j>1} c_j(\lambda_j/\lambda_1)^k u_j\right].\]

Normalizing after each application keeps vector lengths manageable without changing the relative size of the components. The largest competing component therefore shrinks relative to the first at a geometric rate. A scalar estimate of the eigenvalue comes from projecting the action back onto the trial vector,

\[\rho(v)=\frac{v^TAv}{v^Tv}.\]

For an exact eigenvector the quotient equals its eigenvalue. Equal leading magnitudes can prevent selection of a single direction. A negative leading eigenvalue can make the displayed vector alternate sign even while its one-dimensional direction converges.

Derivation and applications

Derive the eigenvalue shift produced by weak coupling

Two individually measured modes can move apart in frequency or stiffness when they are coupled. Model a real symmetric operator in an orthonormal basis by diagonal values \(\alpha,\beta\) and off-diagonal coupling \(g\). All three numbers must have the same units. A nonzero eigenvector exists only when the determinant of the shifted matrix vanishes,

\[(\alpha-\lambda)(\beta-\lambda)-g^2=0 .\]

Set \(m=(\alpha+\beta)/2\) and \(d=(\alpha-\beta)/2\). The quadratic becomes \((\lambda-m)^2=d^2+g^2\), so the two eigenvalues and their separation are

\[\lambda_\pm=m\pm\sqrt{d^2+g^2},\]
\[\lambda_+-\lambda_-=2\sqrt{d^2+g^2}.\]

Even when the uncoupled values coincide, a nonzero coupling leaves a gap \(2|g|\). For well-separated diagonal entries, assume \(\alpha>\beta\) and expand the square root for \(|g|\ll\alpha-\beta\). The largest eigenvalue has the shift

\[\lambda_+-\alpha=\frac{g^2}{\sqrt{d^2+g^2}+d}\simeq\frac{g^2}{\alpha-\beta}.\]

The rationalized form gives an accurate small shift without subtracting almost equal eigenvalues. The eigenvalue sum remains exactly \(\alpha+\beta\) because the trace is unchanged. A mass-normalized vibration model typically returns squared angular frequencies, so any measured ordinary frequencies must first be converted to the variables of the operator.

Worked example

Predict a shift away from a crossing

With \(\alpha=10\), \(\beta=6\) and \(g=0.5\), the upper shift is \(0.25/(\sqrt{4.25}+2)=0.0616\); the leading approximation is \(0.0625\). The lower eigenvalue is \(5.9384\) and the upper is \(10.0616\). The opposite signs of the shifts preserve the trace of 16.

Second application

Recover coupling and detuning from a measured gap

A second two-mode system has eigenvalues 19 and 25, giving a mean of 22 and half-gap of 3. An independent uncoupled calibration gives \(|\alpha-\beta|=4\), so \(d^2=4\). The inferred coupling magnitude is

\[\sqrt{3^2-2^2}=\sqrt5=2.24.\]

The eigenvalues do not determine the sign of \(g\), which also changes when one basis vector is reversed.

What an eigenproblem measures

In an undamped mechanical model \(M\ddot u+Ku=0\), insert \(u=v\cos(\omega t)\). Nonzero amplitudes require

\[Kv=\omega^2Mv.\]

The normal frequencies are square roots of generalised eigenvalues and the mode shapes are determined only up to scale and sign. For symmetric positive definite \(M\), substituting \(w=M^{1/2}v\) gives the ordinary symmetric operator \(M^{-1/2}KM^{-1/2}\). This step explains why mass weighting matters when comparing shapes from two different meshes.

For an ordinary symmetric matrix \(A\) with orthonormal eigenvectors, a normalised trial vector \(v=\sum c_i u_i\) has Rayleigh quotient \(\rho=v^TAv=\sum_i\lambda_i c_i^2\). Hence it lies between the smallest and largest eigenvalues. Near an isolated mode its value can be much more accurate than the vector direction: shifting a small amount of amplitude into another orthogonal mode changes the quotient by a term proportional to the square of that amplitude.

Select a mode by repeated application

The power iteration repeatedly forms \(Av_k\) and normalises it. Before normalisation,

\[A^kv_0=\sum c_i\lambda_i^k u_i.\]

If one eigenvalue has strictly largest magnitude and the initial vector overlaps its eigenspace, the ratio of any competing component to the leading one gains a factor \((\lambda_i/\lambda_1)^k\). Normalisation avoids overflow while preserving those ratios. A negative leading eigenvalue can cause sign changes between successive normalised vectors. Comparing their raw difference then misrepresents convergence.

For \(A=\operatorname{diag}(4,2)\) and a starting vector proportional to \((1,1)^T\), the ratio of the second component to the first is \(1/2\) after one multiplication and \(1/4\) after two. A vector proportional to \((4,1)^T\) has Rayleigh quotient \((4\cdot16+2)/17=66/17=3.88235\). After four steps the ratio is \(1/16\), and the quotient is

\[1026/257=3.99222.\]

Check that the quotient error decreases roughly fourfold per additional step, although the directional error decreases only twofold.

Use shifts to find another part of the spectrum

Power iteration selects magnitude. To find a mode near a target \(\sigma\), apply the inverse of \(A-\sigma I\) implicitly by solving a linear system each iteration. The eigenvectors are the same and the eigenvalues are \(1/(\lambda_i-\sigma)\). For eigenvalues 2 and 4 with \(\sigma=2.1\), the transformed magnitudes are 10 and about 0.526. The eigenvalue near 2 dominates for a suitable starter. A fixed shift permits factor reuse, but choosing it exactly equal to an eigenvalue makes the shifted solve singular.

Test a candidate pair by forming \(r=Av-\rho v\) with \(\|v\|_2=1\). In the orthonormal basis,

\[\|r\|^2=\sum_i(\lambda_i-\rho)^2 c_i^2.\]

At least one eigenvalue must lie within \(\|r\|\) of \(\rho\). This is a numerical certificate for a symmetric problem. To certify a particular eigenvector, the gap to neighbouring eigenvalues also matters. At a repeated eigenvalue every normalised linear combination of its modes is valid. Comparing subspaces or projecting one span onto the other is then more meaningful than matching individual component signs.

Follow the whole spectrum by QR iteration

To find several eigenvalues of a small dense operator, factor \(A_k-\mu I=QR\) and form \(A_{k+1}=RQ+\mu I\). Orthogonality gives \(A_{k+1}=Q^TA_kQ\), an exact similarity. Hence every step preserves eigenvalues, trace and determinant while changing the coordinates used to represent the operator. This use of QR is different from solving a triangular least-squares system. Repeated unshifted steps amount to an orthogonalised power iteration on multiple directions. A shift near a separated eigenvalue can make the last coordinate nearly invariant and accelerate its separation.

For a symmetric matrix a preliminary sequence of orthogonal similarities reduces it to tridiagonal form. When the coupling between the last two coordinates is negligible relative to the desired accuracy, setting that coupling and its transpose to zero separates a scalar eigenproblem. This removal is called deflation. If the off-diagonal magnitude is \(e\), setting the pair to zero is a symmetric perturbation of spectral norm \(|e|\), giving a direct measure for that decision. For a general real nonsymmetric matrix, the converged result can also contain real two-by-two blocks representing complex eigenvalue pairs.

A shifted step with a check on the trailing mode

Take \(A=\left(\begin{smallmatrix}4&1\\1&2\end{smallmatrix}\right)\) and \(\mu=2\). Normalising the first shifted column gives \((2,1)^T/\sqrt5\). Complete the orthogonal basis with \((-1,2)^T/\sqrt5\). Multiplying \(Q^TAQ\) gives diagonal \((22/5,8/5)\) and off-diagonal \(-1/5\). The trace remains six and the determinant remains seven. The last-coordinate Rayleigh estimate, initially two, is now 1.6 compared with the exact lower eigenvalue \(3-\sqrt2\approx1.586\). The residual of this coordinate has fallen from one to 0.2. A subsequent shift can use the improved estimate. Preserving eigenvalues alone would never certify that a coordinate is ready for deflation.

Which boundary modes are physical?

An elastic assembly suspended in free space admits rigid translations, and in three dimensions also rigid rotations when its geometry allows them. In a correctly assembled model these motions cost zero strain energy, so the stiffness matrix has a nullspace and some generalised eigenvalues are zero. Attempting unshifted inverse iteration on that stiffness matrix cannot locate a lowest positive vibration by simply inverting the operator. One can instead constrain rigid motions consistently or project into the mass-orthogonal complement of their span.

For a two-mass system with unit masses and a unit spring connecting them,

\[K=\left(\begin{smallmatrix}1&-1\\-1&1\end{smallmatrix}\right).\]

Translation \((1,1)^T\) has zero squared frequency; opposite displacement \((1,-1)^T\) has squared frequency two. Grounding the first mass eliminates translation but changes the second mode to an oscillator with frequency one. Projection leaves the original free-system vibration at \(\sqrt2\). These are physically different comparisons; the treatment of a nullspace determines which frequency an eigenvalue calculation is actually reporting.

Convert an eigenpair residual into an angle bound

Given a real symmetric matrix \(A\), a unit-vector approximation \(v\) and a scalar \(\theta\), write its residual \(r=Av-\theta v\). Expand \(v=\sum_j c_jq_j\) in an orthonormal eigenbasis. The squared residual is \(\sum_j(\lambda_j-\theta)^2|c_j|^2\). This identity always implies that at least one eigenvalue lies within \(\|r\|\) of \(\theta\). It does not by itself show whether the reported vector represents one particular physical mode. Two almost coincident eigenvalues can produce a tiny residual for many different mixtures of their eigenvectors.

To bound leakage out of a target eigenspace, let \(\gamma\) be a lower bound on the distance from \(\theta\) to every eigenvalue outside that space. The squared residual is at least \(\gamma^2\sum_{\rm outside}|c_j|^2\). Consequently the sine of the angle between \(v\) and the target space is at most \(\|r\|/\gamma\). This result assumes a symmetric or Hermitian operator under the chosen inner product. For a mass-weighted mechanical problem, transform to mass-normal coordinates or perform the argument in the proper mass inner product. An ordinary Euclidean angle between unscaled coordinates may have little relevance to vibrational energy.

Resolve a cluster more reliably than either member

Take \(A=\operatorname{diag}(10,10.02,30)\), and \(v=(1,1,0)^T/\sqrt2\). Its Rayleigh quotient is 10.01. Multiplication gives \(r=(-0.01,0.01,0)^T/\sqrt2\), of length 0.01. Relative to the cluster near ten this residual is small, yet the angle from the first coordinate eigenvector is 45 degrees. Using only the other low eigenvalue as a separation gives \(\gamma=0.01\), so the bound on that individual angle has sine at most one and provides no useful orientation guarantee.

Now take the target as the entire first two-dimensional subspace. Its gap from the reported quotient to the outside eigenvalue is

\[30-10.01=19.99.\]

The same residual implies leakage no greater than \(0.01/19.99\approx0.000500\). In fact the true leakage of this particular vector is exactly zero. If the measured eigenvalues are squared angular frequencies, the two low modes have nearly the same frequency but can mix strongly under a small asymmetric manufacturing perturbation. Their combined subspace may remain very stable and may therefore be the more sensible object to compare with measurements.

A laboratory comparison can project independent excitation patterns onto the computed cluster and compare the total energy in that cluster. Such a result is invariant under rotations of its basis, which a simple table of pairwise eigenvector differences is not. If the gap to the rest of the spectrum closes as well, the subspace estimate becomes weak. Measuring the residual alone cannot repair that missing separation information.

For example the sum of squared projections of the excitation \((1,0,0)^T\) onto the first two computed orthonormal modes is one for any orthonormal basis of the exact low cluster. Individual projections can range between zero and one as the basis rotates. A test based on cluster projection assesses the reproducible quantity without requiring a uniquely labelled first mode.

Watch the QR iteration resolve two close eigenvalues

Rotate each diagonal matrix with eigenvalues \(1,\rho\) by 0.6 radians, then factor \(A_k=Q_kR_k\) and form \(A_{k+1}=R_kQ_k\). Each step is an orthogonal similarity. Dividing the off-diagonal by the gap lets all three matrices start with the same normalized mixing.

Watch the QR iteration resolve two close eigenvalues. Horizontal axis: Unshifted QR iterations. Vertical axis: Off-diagonal magnitude / eigenvalue gap. Data follow the figure.
The tails are straight on a logarithmic vertical axis. Once the dominant direction is nearly aligned, one step multiplies the remaining mixing by approximately the eigenvalue ratio. At a ratio near one, an unchanged spectrum can coexist with slow convergence to a diagonal matrix.
Read values from the plot
Off-diagonal magnitude / eigenvalue gap at selected values of Unshifted QR iterations.
Unshifted QR iterationsEigenvalue ratio 0.35Eigenvalue ratio 0.65Eigenvalue ratio 0.85
00.466020.466020.46602
50.00359320.0788830.27794
101.8872e−50.00920960.13229
159.9121e−80.00106870.05955
205.206e−100.0001240.026498

Download all 21 plotted samples (CSV)

Change parameters · Watch the QR iteration resolve two close eigenvalues

Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.

Singular values and minimum-norm solutions

Resolve a linear measurement into independent directions, compute its pseudoinverse and predict the effect of truncating a weakly observed component.

From first principles

Count what a rectangular measurement can recover

For a real matrix \(A\), the squared output length in a unit input direction \(v\) is \(v^TA^TAv\). Since \(A^TA\) is symmetric and nonnegative, it has orthonormal eigenvectors \(v_j\) with eigenvalues \(\sigma_j^2\ge0\). Each positive eigenvalue defines a unit output direction \(u_j=Av_j/\sigma_j\). Distinct orthogonal input eigenvectors then have orthogonal output directions because

\[u_i^T u_j=\frac{v_i^TA^TAv_j}{\sigma_i\sigma_j}=\delta_{ij}.\]

Resolve an input into these vectors and the null space. A component along \(v_j\) is amplified by \(\sigma_j\), while every null component disappears. For measured data \(b\), matching the observed output components gives

\[x_{\min}=\sum_{\sigma_j>0}\frac{u_j^Tb}{\sigma_j}\,v_j .\]

Adding any null vector produces the same prediction but increases the squared norm by its own squared length. This proves the minimum-norm choice. Data perpendicular to all the \(u_j\) remain as a least-squares residual, and noise along a small positive singular value can be amplified substantially.

Background · Singular value
\[Av_i=\sigma_i u_i\]

Input and output directions can live in different spaces. A small positive singular value can cause large inverse amplification.

Derivation and applications

Find the smallest reconstruction in physically scaled coordinates

The minimum-norm solution of an underdetermined fit depends on which units and physical scale define the norm. Consider exact independent constraints \(Ax=b\) with fewer rows than columns, and let \(W\) be a symmetric positive definite matrix of penalties. Minimize \(\tfrac12 x^TWx\) among all feasible states. A reference value could first be subtracted if zero represents an inappropriate baseline. Factor \(W=L^TL\) and express the optimization in the scaled variable \(y=Lx\),

\[Ax=b\quad\Longrightarrow\quad (AL^{-1})y=b,\]
\[x^TWx=\|y\|_2^2 .\]

Thus the usual minimum-norm singular-value solution applies to the scaled matrix. An alternative derivation introduces a multiplier \(\lambda\). Differentiating \(\tfrac12x^TWx-\lambda^T(Ax-b)\) gives

\[Wx=A^T\lambda.\]

Substituting in the constraints yields

\[(AW^{-1}A^T)\lambda=b,\]
\[x=W^{-1}A^T(AW^{-1}A^T)^{-1}b .\]

The reduced matrix is positive definite for independent constraint rows. For any feasible perturbation \(h\) with \(Ah=0\), the cross term in the objective vanishes:

\[(x+h)^TW(x+h)-x^TWx=2\lambda^TAh+h^TWh=h^TWh .\]

This establishes uniqueness and explains the role of the weighting. Directions that data leave unresolved are assigned by a stated metric. Changing units while transforming both \(A\) and the metric consistently preserves the physical result.

Worked example

Distribute a measured total with unequal motion costs

A balance gives \(x_1+x_2=10\) and the squared cost is \(x_1^2+4x_2^2\). Stationarity requires \(x_1=4x_2\), yielding \((8,2)\) at cost \(80\). The unweighted minimum-norm pair \((5,5)\) satisfies the balance but has weighted cost \(125\). There is no change in agreement with the measurement.

Second application

Check invariance under a change of coordinate units

Write a second balance \(u+v=6\) and equal physical cost \(u^2+v^2\). If \(w=100v\), the new row is \((1,0.01)\) and the cost is \(u^2+0.0001w^2\). The weighted solution is \(u=3,w=300\), recovering \(v=3\). Applying an unweighted norm to the rescaled coordinates instead gives \(u=6/(1.0001)\simeq5.9994\), exposing a unit-dependent extra assumption.

Find directions that a rectangular map measures separately

For real \(A\), the matrix \(A^TA\) is symmetric positive semidefinite since \(v^TA^TAv=\|Av\|^2\). Choose orthonormal eigenvectors \(v_i\) with positive eigenvalues \(\sigma_i^2\) and define \(u_i=Av_i/\sigma_i\). Dotting two such vectors shows that the \(u_i\) are orthonormal. Completing both bases gives the singular value decomposition \(A=U\Sigma V^T\). Each \(\sigma_i\) is a gain from one parameter direction into a corresponding output direction. Zero singular values indicate directions that no observation in this model can distinguish.

To minimise \(\|Ax-b\|_2\), express both vectors in these orthogonal bases. For each positive singular value the residual component vanishes by taking \(v_i^Tx=u_i^Tb/\sigma_i\). Output components outside the range remain unavoidable, while input components in the nullspace can take any value without changing the fit. Setting those free components to zero gives the minimum-norm least-squares answer. This derivation identifies the pseudoinverse without assuming either a square matrix or a unique exact solution.

Distinguish an unobserved coordinate from an error

Suppose two instruments read \(b_1=x_1+x_2\) and \(b_2=0.02x_3\), giving readings 4 and 0.06. One singular value is \(\sqrt2\), corresponding to the mean direction of \(x_1,x_2\); another is 0.02 along \(x_3\). The difference \(x_1-x_2\) is unobserved. The minimum-norm exact fit is \((2,2,3)^T\), and every \((2+s,2-s,3)^T\) has identical data. More precision on the mean measurement cannot determine the hidden difference.

A noise change of +0.01 in the second reading raises the reconstructed third parameter by 0.5. If the admissible parameter scale is one, this is a substantial perturbation. Truncating the 0.02 singular direction instead sets \(x_3=0\). Then the residual grows from zero to the entire second reading, but its noise no longer controls the fitted third coordinate. The decision trades bias against uncertainty; it does not prove that the true third parameter is zero.

Assess a reduced measurement model

Keeping the largest \(k\) singular components produces \(A_k=\sum_{i\leq k}\sigma_i u_iv_i^T\). In the spectral norm its error is \(\sigma_{k+1}\): expansion in the right singular basis gives this upper bound, and applying the difference to \(v_{k+1}\) attains it. Any rank-\(k\) alternative must annihilate some unit vector in the span of the first \(k+1\) right singular vectors, on which the original map has norm at least \(\sigma_{k+1}\). Hence no lower-rank replacement improves the worst-case absolute output error.

That best-approximation result concerns forward predictions in a specified norm. Inverting small singular values magnifies noise, so a good low-rank approximation for forward use does not automatically determine the appropriate inverse for parameter recovery. Work with physically scaled parameters and noise-weighted observations before deciding which singular components are meaningful.

Choose an output before discarding a direction

Suppose an instrument observes \(x_1\) accurately and \(0.001x_2\) with uncertainty 0.01. The second variable alone has uncertainty of order ten. The output \(x_1\), however, has no projection onto the poorly observed direction. Its uncertainty receives no contribution from that amplification. Conversely the output \(x_1+x_2\) inherits the full uncertainty. This distinction can change whether a rank decision is acceptable. The spectrum describes the data acquisition matrix, while the projection of the chosen observable onto right singular vectors determines which losses of information affect the reported result.

Prove that truncation is optimal in two matrix norms

When compressing a dense linear map \(A\), decide which discrepancy is being minimised over all approximations of rank at most \(k\). Its spectral norm measures the largest output error over unit inputs. For any rank-\(k\) map \(B\), consider the span of the first \(k+1\) right singular vectors of \(A\). Its dimension exceeds the rank of the restriction of \(B\), so there exists a unit vector \(w\) in this span satisfying \(Bw=0\). Therefore \(\|(A-B)w\|=\|Aw\|\ge\sigma_{k+1}\). Retaining the first \(k\) singular pairs attains this lower bound, as its discarded part has largest singular value exactly \(\sigma_{k+1}\).

For the Frobenius norm, project each column of \(A\) into the column space of a candidate \(B\). Orthogonal projection is the closest approximation with columns in that space. If its projector is \(P\), the captured squared norm is \(\sum_j\sigma_j^2\|Pu_j\|^2\). The weights \(\|Pu_j\|^2\) lie between zero and one and sum to at most \(k\). The largest possible weighted sum assigns weight one to the \(k\) largest squared singular values. Hence the optimal discarded Frobenius norm is \((\sum_{j>k}\sigma_j^2)^{1/2}\). Both arguments require the norm and coordinate scaling just stated. Entrywise maximum error or application-specific weighted errors generally have different optimisers.

Decide how many responses a reduced map must reproduce

Suppose the four singular values of a unit-scaled instrument model are 8, 3, 2 and 1. A rank-two approximation has best possible worst-case gain error two and Frobenius error \(\sqrt{2^2+1^2}=\sqrt5\). Its relative squared Frobenius loss is \(5/(64+9+4+1)=5/78\), approximately 6.41 percent. Describing this as a loss of just 6.41 percent can be misleading if the experiment deliberately excites the third singular direction. For that unit input, the exact output has length two and the compressed output is zero, giving complete loss of the signal of interest.

Suppose instead inputs have equal independent unit variance in all four right singular coordinates. Then the expected squared error in the output is the sum of the discarded squared gains, exactly five. If the third coordinate is excited with variance one hundred while the others retain variance one, the error from truncating that coordinate alone becomes 400. Under that different usage distribution the meaningful objective is \(\|(A-B)C^{1/2}\|_F\), where \(C\) is the input covariance.

In these diagonal coordinates the weighted gains become \(8,3,20,1\). The best rank-two design for expected output error now retains directions three and one, and the discarded expected squared error becomes

\[3^2+1^2=10.\]

The ranking changed because the physical question changed. It did not change the optimality theorem for the unweighted matrix; it changed which matrix correctly represents the intended error measure.

When an input covariance is singular, some directions are never excited under the stated design. The weighted objective can be indifferent to large errors in just those directions. A later change of operating regime may activate them, so a reduced model qualified for one input ensemble should retain the conditions under which its ranking was derived.

Decide whether a low-rank approximation is worthwhile

The best rank-\(k\) approximation discards the tail of the singular spectrum. Its relative Frobenius error is the square root of discarded squared singular values divided by total squared singular values, with the square root applied to the complete ratio.

Decide whether a low-rank approximation is worthwhile. Horizontal axis: Retained singular directions. Vertical axis: Relative Frobenius error. Data follow the figure.
For a flat spectrum, retaining ten of twenty directions still leaves an error of 1/√2. Geometric decay makes the same rank far more effective. The spectral-norm error instead depends only on the largest discarded singular value.
Read values from the plot
Relative Frobenius error at selected values of Retained singular directions.
Retained singular directionsGeometric decayAlgebraic decayFlat spectrum
0111
50.168070.288170.86603
100.0282360.170490.70711
140.00673510.112410.54772
190.000814040.0395760.22361

Download all 20 plotted samples (CSV)

Change parameters · Decide whether a low-rank approximation is worthwhile

Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.

Deciding how far to trust a linearised residual

Derive an acceptance test from predicted versus actual decrease and see how it rescues a Newton direction that crosses the root by a large distance.

Choosing a step from a local model

For a scalar residual \(f\), finding a zero also minimises \(\phi=f^2/2\) if a zero is attainable. Near \(x\), approximate \(f(x+s)\) by \(f(x)+f'(x)s\), yielding a quadratic model \(m(s)=(f+f's)^2/2\). Minimise this model subject to \(|s|\le\Delta\). In one dimension this clips the ordinary Newton step to the interval; when \(f'=0\), the model contains no preferred direction.

Measure both predicted and actual decrease. Provided the predicted decrease is positive, define

\[\rho=\frac{\phi(x)-\phi(x+s)}{m(0)-m(s)}.\]

A ratio near one supports the local model. A negative ratio means that a predicted gain produced an actual loss. Shrink the radius and repeat from the same point. A successful boundary step can justify enlarging the next radius. These decisions require an extra residual evaluation and do not require a globally accurate Taylor approximation.

Background · Trust radius
\[\|s\|\le\Delta\]

The local model is minimised on this region. Agreement between predicted and achieved reduction guides the next radius.

Two proposals for the same equation

For \(f(x)=x^2-2\) at \(x=0.2\), \(f=-1.96\), \(f'=0.4\). The full Newton proposal \(s=4.9\) lands at \(5.1\), where the residual is 24.01. The linear model predicted zero. The merit function rises catastrophically.

With radius one, \(s=1\) gives \(x=1.2\) and \(f=-0.56\). Predicted merit decrease is

\[(1.96^2-1.56^2)/2=0.704.\]

Actual decrease is

\[(1.96^2-0.56^2)/2=1.764.\]

The ratio exceeds one because the curvature accelerated the improvement. A large ratio is possible and has a direct interpretation.

Look along the step before accepting it

Compare the true merit function and the local model along positive steps from a starting value below the root. Move the trust radius and read the ratio for the constrained minimiser. Locate a region in which predicted and observed changes have opposite signs.

Tutorial on choosing a merit function

Start at zero for the same equation. Can reducing the radius find a direction from this particular model?

Worked solution

Here \(f'=0\) while \(f=-2\). The linearised residual is constant, hence every step predicts zero decrease. The ratio is undefined. A curvature model, perturbation, or another starting point is needed.

Is a small gradient of \(f^2/2\) sufficient to certify a root?

Worked solution

Its gradient is \(ff'\). It can vanish either at a root or at a stationary residual. Report the original residual and test feasibility to distinguish these outcomes.

Read the university treatment

Follow the nonlinear least-squares section to compare damping a proposed step with solving a constrained local subproblem. Driscoll and Braun · Nonlinear equations

Master equations, detailed balance and probability currents

A two-state detector can switch at random while displaying reproducible occupation fractions and relaxation times. A three-state detector can maintain exactly constant occupancies while carrying a persistent directed current. Derive the probability dynamics, infer transition rates from timed records and decide what a stationary histogram can and cannot reveal about equilibrium.

From short-time transition probabilities to a generator

Take discrete states \(i\) resolved by an instrument. In a short time \(dt\), conditional on current state \(i\), let the probability of one transition \(i\to j\) be \(w_{ij}dt+o(dt)\). The probability of remaining in \(i\) is one minus the sum of departures to this order. Assume time-independent rates and the Markov property, meaning the conditional law of future transitions is determined by the current state. Sum gains and losses to derive

\[\dot p_i=\sum_{j\ne i}(p_jw_{ji}-p_iw_{ij}),\]
\[\sum_i\dot p_i=0 .\]

Each gain in one state is a loss in another, so total probability is conserved. In a column-vector convention \(\dot{\mathbf p}=L\mathbf p\), off-diagonal entry \(L_{ij}=w_{ji}\) and columns sum to zero. In a row-vector convention transpose the matrix. This is not cosmetic in a numerical calculation: using a matrix assembled for column probabilities while evolving rows can lose normalisation or give an incorrect stationary distribution.

For a given state the exit rate is

\[r_i=\sum_{j\ne i}w_{ij}.\]

Its survival probability obeys \(\dot S_i=-r_iS_i\), so \(S_i(t)=e^{-r_it}\). Conditional on exiting, the destination has probability \(w_{ij}/r_i\). This permits direct event-driven simulation: draw an exponential waiting time, choose a destination with these probabilities, advance the clock and repeat. Sampling one transition per arbitrary fixed time step generally distorts waiting-time statistics unless a controlled approximation or exact finite-time propagator is used.

Determine two rates from one occupancy and one time

For a two-state system name the rates \(a=w_{01}\), \(b=w_{10}\). Eliminating \(p_0=1-p_1\) gives

\[\dot p_1=a-(a+b)p_1.\]

Its stationary value \(p_* =a/(a+b)\) is independent of the common rate scale, and deviations decay with time constant \(\tau=1/(a+b)\). Thus one stationary fraction gives a ratio, one relaxation time gives a sum, and the two together identify both rates.

A location sensor records an upper-state fraction 0.30 and relaxation time 0.20 seconds. Then \(a=1.50\) and \(b=3.50\) per second. Mean waiting times are \(1/a=0.667\) s in the lower state and \(1/b=0.286\) s in the upper one. Neither equals the population relaxation time of 0.20 s. A transition rate inferred by taking the reciprocal of the average of these two waiting times estimates a different quantity.

Define the indicator \(X=1\) in state one and zero otherwise. Conditional probabilities from the same linear solution give

\[\langle[X(t)-p_*][X(0)-p_*]\rangle=p_*(1-p_*)e^{-|t|/\tau}.\]

Consequently a normalised equilibrium autocorrelation determines \(\tau\) without needing a deliberate preparation away from stationarity. A bandlimited detector may miss short visits, reducing counts and distorting waiting-time distributions even if the mean occupation looks plausible. Compare time sampling with both exit times as well as the relaxation time, or model the measured signal with an explicit observation process.

Detailed balance is stronger than stationarity

Let \(\pi_i\) denote a stationary distribution. The net probability current on an oriented edge is \(J_{ij}=p_iw_{ij}-p_jw_{ji}\). Stationarity requires only that currents sum to zero at each vertex. Detailed balance requires \(\pi_iw_{ij}=\pi_jw_{ji}\) on every edge individually. For a system in equilibrium with one heat bath, with states even under time reversal and energies \(E_i\), thermal rates satisfy \(w_{ij}/w_{ji}=e^{-\beta(E_j-E_i)}\) for nondegenerate states. If states collect multiple microstates, degeneracies or coarse-grained free energies enter their equilibrium weights.

For the previous two-state process at equilibrium with equal state degeneracies, \(p_*/(1-p_*)=3/7\) implies

\[(E_1-E_0)/(k_BT)=\log(7/3)=0.847.\]

Multiplying both rates by ten preserves the energy inference and speeds relaxation tenfold. Thermodynamic weights therefore do not determine the kinetic barrier. A physical sample may change its rate scale with solvent viscosity or transition geometry without changing the equilibrium ratio.

A convenient test on a connected graph with reciprocal edges is the product of rate ratios around each closed cycle. With detailed balance all stationary factors telescope to one. Conversely, if the product is one on every independent loop, consistent state weights can be reconstructed from any reference state by integrating ratios along a path. Path independence makes these weights a detailed-balance stationary distribution after normalisation. A missing reverse edge or unobserved channel requires additional care; a detector that cannot resolve two routes can hide directed currents.

A steady nonequilibrium system with the same state histogram

Consider three equally named sites arranged in a ring, with clockwise rate \(k_+\) and anticlockwise rate \(k_-\) on every link. Symmetry gives stationary occupation \(1/3\) at each site for all positive rates. Each oriented clockwise edge carries current \(J=(k_+-k_-)/3\). The cycle affinity in dimensionless units is \(\mathcal A=\log[(k_+/k_-)^3]\). For \(k_+=4\), \(k_-=1\) per second, each edge transports net probability one per second, and \(\mathcal A=3\log4=4.159\). A perfectly flat histogram conceals the directed operation.

For Markov jumps with resolved reversible edges and their conventional time reversals, the total stochastic entropy production rate is

\[\dot S_{\rm tot}=\frac{k_B}{2}\sum_{ij}(p_iw_{ij}-p_jw_{ji})\log\frac{p_iw_{ij}}{p_jw_{ji}}\ge0 .\]

Each term is nonnegative under the product \((x-y)\log(x/y)\); the factor of one half prevents counting both directions separately. For the stationary ring this gives \(k_B J\mathcal A=4.159 k_B\) per second. An actual heat dissipation rate needs a physical local detailed-balance model identifying environments, work and entropy flows. A collection of counted transitions without that calibration can still yield evidence for broken time-reversal symmetry at its level of resolution.

Stationary Shannon entropy \(-k_B\sum p_i\log p_i\) is constant in this ring. The positive total entropy production is compatible with that constancy because an environment sustains the directed current and carries compensating entropy. Equating production with just the derivative of stationary state entropy would predict zero for every driven stationary process.

Why a distribution relaxes toward a stationary law

For a finite irreducible time-independent chain let \(\pi_i>0\) be its unique stationary distribution. The relative entropy \(D(p\Vert\pi)=\sum p_i\log(p_i/\pi_i)\) is nonnegative. To see its contraction over a finite observation interval, write the propagated probability as a stochastic mixture of earlier probabilities and apply the log-sum inequality to each output state. Summing gives

\[D(Pp\Vert P\pi)\le D(p\Vert\pi).\]

Since \(P\pi=\pi\), the relative entropy to stationarity cannot grow.

For a detailed-balance chain, substituting the master equation into this derivative gives \(-k_BdD/dt=\dot S_{\rm tot}\) in the simple closed heat-bath model. For a driven chain the system may remain at \(\pi\) with constant relative entropy while producing positive steady entropy. Relaxation toward stationarity and dissipation required to maintain that stationary state are distinct measurable quantities.

Compare relaxation inferred from a time trace with the thermodynamic irreversibility experiment

Infer generator entries from residence times

An ideal continuously observed Markov record contains successive states and dwell lengths. Let \(T_i\) be accumulated time in state \(i\) and \(N_{ij}\) the number of resolved \(i\to j\) jumps. Its log likelihood contains \(\sum_{ij}N_{ij}\log w_{ij}-\sum_i T_i\sum_{j\ne i}w_{ij}\). Differentiation gives

\[\widehat w_{ij}=N_{ij}/T_i.\]

Dividing by total experiment time instead estimates the gross stationary flux \(\pi_iw_{ij}\), not a conditional transition rate.

For a nearly stationary two-state record with \(T_0=70\) s, \(T_1=30\) s and 105 transitions in each direction the estimates are 1.50 and 3.50 per second. Counting uncertainty for each reasonably large Poisson-like count is roughly the inverse square root of the count in relative terms; precise interval estimates condition correctly on exposures and the observation process. Equality of opposite transition counts in a long two-state record is essentially forced by alternation. It cannot by itself establish a thermal energy gap or exclude multiple hidden driven pathways.

Turn a barrier diagram into two independently measurable rates

A thermally activated transition between two metastable configurations often has a forward rate \(a=\nu_A e^{-(G^\ddagger-G_A)/(k_BT)}\) and reverse rate \(b=\nu_Be^{-(G^\ddagger-G_B)/(k_BT)}\), where \(G^\ddagger\) denotes a dividing-surface barrier under a chosen model. If the same transition-state construction applies in both directions with consistent partition factors, their ratio reproduces the equilibrium free-energy difference. The overall barrier controls how rapidly equilibrium is approached. Changing a barrier while leaving both wells unchanged can alter both kinetics by many orders of magnitude without changing stationary occupancy.

As an illustration let the higher-energy state cost \(2k_BT\), and put a transition configuration \(10k_BT\) above the lower state. With a common attempt rate of \(10^6\) per second, the upward rate is 45.4 per second and the downward rate 335 per second. The stationary upper fraction is approximately 0.119 and the relaxation time 2.63 ms. Lower the barrier by \(2k_BT\) without changing the two state energies. Both rates increase by \(e^2=7.39\), while occupancy is unchanged. A detector recording only the equilibrium level histogram could miss the intervention entirely.

For a temperature scan, a straight line in the log rate against inverse temperature is evidence for an approximately constant activation energy and prefactor over that interval. A free-energy barrier includes entropic as well as enthalpic contributions; its numerical value can vary with temperature even if the microscopic potential does not. A change of dominant pathway can bend the apparent Arrhenius plot. Measure forward and reverse rates independently, then compare their ratio with an independently determined equilibrium population. A barrier fit explaining one rate but violating the equilibrium ratio usually indicates inconsistent state definitions, missed short visits or an unmodelled pathway.

A useful control is a weak static bias that lowers one well relative to the other. The equilibrium log-odds shift measures the difference between the state couplings to the bias. The individual log-rate shifts additionally report the related dividing-surface response. If the state-occupation ratio moves as expected but only one rate changes appreciably, the effective transition configuration may be much closer in bias response to the other state. Such statements depend on the activated single-path interpretation; the response slopes themselves are more directly observed than an inferred barrier shape.

Use uniformisation to propagate a generator without negative probabilities

The formal finite-time propagator of a time-independent jump process is \(P(t)=e^{Lt}\). A forward Euler update \(p(t+\Delta t)=(I+L\Delta t)p(t)\) conserves total probability if the generator is assembled correctly, but a large step can yield negative diagonal probabilities. An exact algebraic representation starts with a rate \(q\) at least as large as every total exit rate. Then \(K=I+L/q\) is a stochastic matrix in the same column convention. Write \(L=q(K-I)\); since \(K\) and the identity commute,

\[e^{Lt}=e^{-qt}\sum_{n=0}^\infty\frac{(qt)^n}{n!}K^n .\]

This can be read as drawing a Poisson number of opportunities at rate \(q\), followed by \(n\) transitions of \(K\). At a lightly connected state some opportunities become self transitions. The construction leaves real waiting-time statistics correct while eliminating negative transition probabilities. Its truncation error in total probability is bounded by the omitted Poisson tail because every matrix power is stochastic.

For a two-state model with rates two and six per second choose \(q=6\) per second. Starting in the lower state, the first opportunity after some waiting time moves upward with probability one third and otherwise does nothing. In the upper state the next opportunity moves downward with probability one. At 0.25 s the Poisson mean is 1.5. Retaining terms through order eight leaves a tail below \(3\times10^{-5}\). Compare the resulting upper probability against \((2/8)[1-e^{-8(0.25)}]=0.2162\). A small discrepancy due solely to truncation should shrink with the computable tail probability.

The representation also suggests a measured-data sanity check. A fitted generator with negative off-diagonal rates cannot yield a valid \(K\) at any positive \(q\). A snapshot transition matrix can itself be nonnegative and stochastic but need not arise from a time-homogeneous continuous-time generator. In the two-state case its nontrivial eigenvalue must be \(e^{-(a+b)t}>0\). A measured negative eigenvalue rules out that simple generator model under perfect sampling, though finite counts and hidden periodic driving can distort empirical estimates. Taking a matrix logarithm blindly may return complex or negative rates rather than a physical kinetic explanation.

Population relaxation and a first-arrival experiment answer different questions

A first-passage measurement stops its clock when a target is first reached, even if that target would subsequently be left many times. To calculate its mean, treat the target as absorbing. For any other state \(i\), wait on average \(1/r_i\), then add the mean remaining time from the next state weighted by its conditional transition probability. The backward equations are

\[-1=\sum_jw_{ij}(t_j-t_i),\]

with \(t_{\rm target}=0\). Their solution depends on possible returns before the first successful passage. It generally differs from an inverse equilibrium occupation or from a slowest relaxation time.

Consider a three-site linear chain \(0\leftrightarrow1\leftrightarrow2\) with equal rate \(k\) on each adjacent directed edge, starting at zero and stopping at two. From zero one must reach one after mean \(1/k\). From one the mean wait is \(1/(2k)\), then there is probability one half of returning to zero and one half of finishing. Solving \(t_0=1/k+t_1\), \(t_1=1/(2k)+t_0/2\) gives

\[t_0=3/k.\]

Ignoring returns would yield \(1.5/k\), exactly half the correct first-passage mean.

The unmodified closed chain has equal stationary weights, but that fact alone says nothing about the numerical value of \(3/k\). Speeding every link by ten leaves occupancies unchanged and reduces passage times tenfold. A detector that registers only visits longer than a threshold makes a brief first arrival invisible and can report even longer apparent passage times. Calibrate detector dead time and distinguish entrance to the target from persistence within it.

For a larger network, solve the sparse backward linear system and compare against many event-driven paths. Check boundary initial conditions by starting simulations exactly at the absorbing target: the first-passage time must then be zero under that convention. Some experiments instead ask for a first return after leaving, which requires a different initial condition. A zero-lag event in one definition is a physically different measurement in the other.

Estimate a cycle affinity with finite counting statistics

A clockwise ring trajectory contains gross counts in both directions on each edge. Estimating each conditional rate as count divided by origin-state exposure, the product of clockwise-to-anticlockwise rates around a complete closed loop cancels the exposures. The estimated cycle affinity is the sum of log forward counts minus log reverse counts, assuming every required count is nonzero and rates were stationary during the record. This is a useful cross-check independent of how the total time was partitioned among states.

If all three edges register roughly 120 clockwise and 80 anticlockwise events, the estimated affinity is

\[3\log(1.5)=1.216.\]

For large independent Poisson-like gross counts the approximate variance of this log product is \(3(1/120+1/80)=0.0625\), giving standard error 0.25 as a first estimate. Actual path constraints couple counts; uncertainty can be assessed from independent records or a complete stochastic likelihood. The point estimate alone does not tell whether an observed directionality is statistically distinguishable from zero.

One missing reverse event makes the unregularised logarithm infinite, but a finite record cannot establish an infinite physical affinity. Report a confidence bound based on the exposure and upper limit on the unseen reverse rate. Extend the acquisition or change sampling speed to exclude missed short-lived reverse states. Numerical addition of an arbitrary count can help regularise a plotting routine but is not a substitute for a specified prior or measurement model when claiming physical entropy production.

A driven occupation loop can carry charge without changing concentrations

Place three sites in a cycle and drive their transition rates by two controls, for example energies and barriers. Even if each instantaneous frozen generator satisfies detailed balance with a well-defined equilibrium distribution, the physical occupations need not equal that moving equilibrium distribution at each moment. A slow lag can produce a small edge current at every instant and a finite integrated current over a cycle. The current through an edge is time-integrated transfer; it can be nonzero while all occupations return to their initial values after a complete drive period.

A simple piecewise illustration avoids subtleties of adiabatic geometric pumping. In stage one, connect only sites zero and one while strongly favouring one. In stage two connect only one and two while favouring two. In stage three connect only two and zero while favouring zero. Begin with nearly all probability at zero and wait long enough for each enabled pair to relax. Almost the entire population travels once around the loop per cycle. No site accumulates probability over repeated complete cycles, but each edge registers about one forward crossing net per cycle. External control changes the energy and barrier landscape and supplies the required work.

If each programmed transfer succeeds with probability 0.95, it is tempting to announce a current of \(0.95^3\) per cycle. This is the probability of one fully successful trajectory starting on the prescribed site in a simplified no-return preparation, not generally the long-run edge current of a periodically driven ensemble. Failed transfers leave probability on other sites in later stages. The correct periodic distribution is the unit-eigenvalue vector of the product of the three finite-time propagators. Compute edge currents during each stage using its evolving occupations and integrate, then compare a complete cycle after transients have decayed.

This construction supplies a statistical check on experimental counting. Over a complete cycle the integrated net inflow at a site equals its change in occupancy probability. In a periodically stationary state that change is zero, so all three consistently oriented integrated edge currents must agree. A disagreement between measured edges can reveal a missed transition channel, a start-up transient or incorrect gating. Agreement does not prove absence of drive or detailed balance. A torque-free stationary ring and a three-stage external pump can share nearly the same time-averaged site histogram yet differ clearly in time-resolved edge currents.

Finally compare the work and heat bookkeeping with the master-equation entropy-production expression. During an external change of a site's energy without a transition, the state's energy changes by work. During a transition at frozen controls, assigning heat requires the energy difference and the relevant bath. Lumping an entire driven cycle into a single time-averaged generator can conceal those distinctions and underestimate dissipation.

The ordered protocol can also be run backwards. If the three stages are reversed while preparations are equilibrated in each corresponding periodic state, the preferential current direction should reverse in the ideal transfer picture. A fixed instrumental preference for counting neighbouring sites in one direction would not generally reverse. This distinguishes controlled transport from a direction-dependent detection efficiency. Do not confuse this observed current reversal with exact microscopic time reversal of each individual stochastic trajectory: the reversed experiment has its own ensemble of random jumps. Comparing path probabilities, rather than pairing individual paths as though their noise histories were reproducible, is the appropriate starting point for entropy-production and fluctuation-relation tests. The distinction becomes particularly visible when a stage transfers almost all the probability in one direction while a few rare trajectories travel against the applied protocol.

Distinguish stationarity from detailed balance

Keep the three populations identical while varying the directed transition rates. Identify the observable that reveals time-reversal asymmetry.

Tutorial · Recover a generator from snapshots rather than full events

At sampling interval 0.10 s, a two-state record yields \(P_{01}=0.12\) and \(P_{10}=0.28\). Infer the continuous-time rates, and compare with directly dividing each transition probability by 0.10 s.

Use the exact finite-interval propagator

The exact transition probabilities are \(P_{01}=p_*[1-e^{-(a+b)\Delta t}]\) and \(P_{10}=(1-p_*)[1-e^{-(a+b)\Delta t}]\). Their sum is 0.40, so \(a+b=-\log(0.60)/0.10=5.108\) per second. The stationary upper fraction is

\[0.12/0.40=0.30.\]

Thus \(a=1.532\) and \(b=3.576\) per second. Dividing by the interval gives only 1.2 and 2.8 because return transitions inside a sampling interval can erase evidence of the intermediate visit.

Tutorial · Can measured rates arise from one equilibrium potential?

For a three-state triangle suppose clockwise to counterclockwise conditional rate ratios are 2, 3 and 0.25 around the three distinct edges. Could these be equilibrium weights in a common bath? If a single uncertain ratio were corrected, what would it have to be on the third link?

Apply the closed-loop consistency condition

The product is \(2\cdot3\cdot0.25=1.5\), giving nonzero loop affinity \(\log1.5=0.405\). No consistent detailed-balance set of three state weights exists for these exact ratios. The third ratio would have to be \(1/6\), giving a telescoping unit product. If counts are noisy, propagate uncertainty in the log ratios or compare a constrained detailed-balance likelihood against an unconstrained model. A value barely inconsistent with unity within one sparse record is not enough to establish driving.

Tutorial · Detect a hidden state with the same observed level

A detector reports two visible levels, but its lower level combines two unresolved substates. The measured lower-state survival probability is \(0.5e^{-t}+0.5e^{-9t}\) with time in seconds. Calculate the initial hazard and its long-time limit. Can a two-state Markov fit reproduce both?

Differentiate survival before interpreting the tail

The hazard is minus the derivative of \(\log S\). At zero time it is the initial weighted mean of rates, 5 per second. At long times the rapidly departing component has almost disappeared and the hazard tends to 1 per second. A single Markov exit rate would give a constant hazard for all dwell ages. The observed model cannot reproduce both limits with one rate.

A changing apparent hazard may also result from limited detector temporal resolution or variable preparation of the substates. Repeat with shorter acquisition intervals and condition the dwell distribution on the preceding visible transition or an independent preparation marker. A fitted sum of exponentials identifies a need for a richer observation or state model; it does not uniquely identify microscopic structures absent in the measurements.

Cambridge Kinetic Theory · stochastic processes and approach to equilibrium