Fundamentals / Numerical mathematics / Numerical ordinary differential equations

Numerical ordinary differential equations · Advanced study

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

  1. Conserving motion in a physical system

    Track an invariant in phase space. Compare a rotating charge, parametrically driven oscillator and magnetic orbit. Use phase and energy as independent error measurements.

  2. Multiple scales and identifiable dynamics

    Derive a system with competing rates and ask which measurements can separate them. Resolve a decaying field and a coupled mechanical instrument before interpreting the numerical trajectory.

Conserving motion in a physical system

Track an invariant in phase space. Compare a rotating charge, parametrically driven oscillator and magnetic orbit. Use phase and energy as independent error measurements.

  1. Hamiltonian motion in phase space
  2. Nonlinear stiffness and amplitude-dependent period
  3. Liouville flow and what an ensemble can remember
  4. Parametric resonance and Floquet growth
  5. A magnetic orbit that spirals outward in a perfect vacuum
  6. Relativistic particle dynamics and the field tensor
  7. Euler–Poinsot motion, torque-free nutation and the intermediate axis
  8. Symplectic transformations, Poisson brackets and the geometry of measurements
  9. Canonical perturbations, small denominators and resonant capture
  10. Distinguish a physical precession from numerical drift

Hamiltonian motion in phase space

Construct a Hamiltonian, read a phase portrait and distinguish bounded motion from rotation at a separatrix.

From first principles

Construct Hamilton’s equations by exchanging velocity for momentum

Begin with a smooth Lagrangian \(L(q,\dot q,t)\) for a conservative mechanical system. Assume the momentum definition \(p=\partial_{\dot q}L\) can locally be inverted to give \(\dot q\) as a function of \((q,p,t)\). This regularity is what lets position and momentum serve as independent state coordinates. Define the Hamiltonian and differentiate the product before substituting any equations of motion:

\[H=p\dot q-L,\]
\[dH=\dot q\,dp+p\,d\dot q-L_q\,dq-L_{\dot q}\,d\dot q-L_t\,dt .\]

The two \(d\dot q\) terms cancel by the momentum definition. Comparing the coefficients of the independent differentials gives

\[H_p=\dot q,\]
\[H_q=-L_q.\]

Hamilton's principle previously gave the Lagrange equation \(\dot p=L_q\), so

\[\dot q=\partial_pH,\]
\[\dot p=-\partial_qH,\]
\[\partial_tH=-\partial_tL .\]

Along a solution the \(q\) and \(p\) contributions to \(dH/dt\) cancel. For a time-independent Hamiltonian \(H\) is constant, so planar trajectories lie on its level sets. In the elementary case \(L=m\dot q^2/2-U(q)\), the transformation yields

\[H=p^2/(2m)+U(q).\]
Background · Generalised momentum
\[p_i=\partial L/\partial\dot q_i\]

Its units depend on the coordinate. Conjugacy to an angle gives an angular momentum. Conservation requires the associated coordinate to be cyclic in the chosen Lagrangian.

Derivation and applications

How Hamiltonian flow preserves phase-space area

An energy contour shows where a single trajectory may lie. To learn what the dynamics does to nearby initial conditions, follow a small patch of the canonical \((q,p)\) plane. Consider one degree of freedom and a twice continuously differentiable Hamiltonian. Let the system advance by a short time \(\delta t\). To first order the coordinate map is a displacement along the Hamiltonian velocity field:

\[q'=q+H_p\,\delta t,\]
\[p'=p-H_q\,\delta t .\]

The area of a sufficiently small parallelogram changes by the determinant of this map's derivative. Differentiate with respect to both initial coordinates. The product of off-diagonal elements enters only at second order:

\[\det\frac{\partial(q',p')}{\partial(q,p)}=(1+H_{pq}\delta t)(1-H_{qp}\delta t)+H_{pp}H_{qq}\delta t^2=1+O(\delta t^2).\]

For the exact continuous map its area rate is the divergence of the phase velocity. Equality of the mixed second derivatives gives

\[\frac{1}{A}\frac{dA}{dt}=\partial_q\dot q+\partial_p\dot p=H_{pq}-H_{qp}=0\]

for an infinitesimal material area \(A\). Integrating adjacent patches gives the same conclusion for a finite region. The outline can stretch and rotate. Even explicit time dependence of \(H\) does not change this volume result. A friction force imposed independently of the Hamiltonian can change it. The second-order remainder above belongs to a short expansion; repeatedly taking finite steps with an approximate rule can accumulate a spurious change.

Worked example

Track a cloud in a harmonic trap

Prepare a small rectangular set of initial states, \(2.00\) mm wide in position and \(0.0100\) kg m/s wide in momentum. Its area is \(2.00\times10^{-5}\) J s. In a trap of mass \(0.500\) kg and frequency \(\omega=4.00\) rad/s, the exact quarter-period map is \(q'=p/(m\omega)\), \(p'=-m\omega q\). The new widths are \(5.00\) mm and \(0.00400\) kg m/s. Their product retains the original area even though neither width is conserved.

Second application

Diagnose a numerical phase portrait

An explicit Euler step in the same trap uses \(q'=q+p\delta t/m\) and \(p'=p-m\omega^2q\delta t\). Its determinant is exactly \(1+\omega^2\delta t^2\). At \(\delta t=0.0500\) s it expands area by \(1.04\) per step, giving \(1.04^{50}=7.11\) times the initial area after 50 steps. A graph of the growing cloud could look like physical heating. The determinant exposes a discretization error without requiring an exact trajectory for each point.

Try it · Phase area

Vary the physical parameters in the derived relation. Use the units and assumptions in the readout to connect the curves to the two worked examples. A parameter study can test the forward prediction; the same relation can then be inverted to infer a parameter from a measurement.

Position needs a conjugate momentum

The position of a pendulum at one instant does not say which way it will swing. A state needs both a configuration coordinate and a momentum. In Lagrangian mechanics define the canonical momentum by \(p=\partial\mathcal L/\partial\dot q\). It can have different physical dimensions depending on the coordinate. For a particle on a line it has units of linear momentum. For a pendulum angle it has units of angular momentum. The pair \((q,p)\) forms a two-dimensional phase space for one degree of freedom.

Provided the relation between \(p\) and \(\dot q\) can be inverted, define \(H(q,p,t)=p\dot q-\mathcal L(q,\dot q,t)\) with the velocity expressed in terms of \(q,p\). Take a differential. The terms proportional to \(d\dot q\) cancel by the definition of \(p\). Using Lagrange’s equation \(\partial_q\mathcal L=\dot p\) gives

\[dH=\dot q\,dp-\dot p\,dq-\partial_t\mathcal L\,dt.\]

Matching the coefficients produces Hamilton’s equations

\[\dot q=\partial_p H,\]
\[\dot p=-\partial_q H.\]

For a system with ordinary quadratic kinetic energy, a velocity-independent potential and fixed constraints, \(H=K+U\). Its change along a solution is \(dH/dt=\partial_tH\) because the two terms containing the derivatives with respect to \(q,p\) cancel. A time-independent Hamiltonian confines the trajectory to a level set.

Use Poisson brackets to test conservation

Hamilton's two equations specify how \(q_i\) and \(p_i\) change. To follow an observable \(A(q,p,t)\), apply the chain rule and substitute \(\dot q_i=\partial H/\partial p_i\) and \(\dot p_i=-\partial H/\partial q_i\). This defines the Poisson bracket,

\[\frac{dA}{dt}=\frac{\partial A}{\partial t}+\{A,H\},\]
\[\{A,B\}=\sum_i\left(\frac{\partial A}{\partial q_i}\frac{\partial B}{\partial p_i}-\frac{\partial A}{\partial p_i}\frac{\partial B}{\partial q_i}\right).\]

Since \(\{q_i,p_j\}=\delta_{ij}\), a candidate change of phase-space coordinates must preserve these brackets to be canonical. A vanishing bracket with \(H\) certifies conservation for an observable having no explicit time dependence. It is a local calculation and does not require solving an orbit.

For a particle in a two-dimensional trap set \(H=(p_x^2+p_y^2)/(2m)+(k_xx^2+k_yy^2)/2\) and \(L_z=xp_y-yp_x\). The momentum derivatives in the bracket cancel the two kinetic contributions. The remaining coordinate terms give \(\dot L_z=(k_x-k_y)xy\), exactly the torque \(xF_y-yF_x\). With \(k_x=4.00\) N/m, \(k_y=6.00\) N/m and instantaneous position \((0.030,0.040)\) m, angular momentum decreases at \(2.40\times10^{-3}\) N m. At a point on either axis the instantaneous derivative vanishes even for the anisotropic trap. For a conservation law holding on every trajectory the expression must vanish throughout phase space, as it does when \(k_x=k_y\).

Draw energy contours before integrating

A rigid pendulum of mass \(m\) and length \(\ell\) has \(p=m\ell^2\dot q\) and \(H=p^2/(2m\ell^2)+mg\ell(1-\cos q)\). At the bottom \(q=0,p=0\) is a stable equilibrium. Low-energy contours are ellipses to leading order because the cosine potential is quadratic there. Each closed contour returns to its original phase point after one full oscillation. Points of greatest \(|p|\) are fastest and occur at the bottom.

The top \(q=\pi,p=0\) has energy \(2mg\ell\). Its contour separates swinging trajectories from trajectories that keep rotating in one direction. This separating curve is the separatrix. Since angles differing by \(2\pi\) label the same physical position, the full portrait lives on a cylinder. A rotation winds around that cylinder. As a trajectory approaches the separatrix, it spends a long time near the unstable top, so the small-angle period no longer estimates its return time accurately.

Compare thresholds and phase velocities

For \(m=0.50\) kg, \(\ell=0.80\) m and \(g=9.81\) m/s², the potential barrier is 7.85 J. A start from the bottom at 5.0 rad/s supplies kinetic energy \(0.5(0.50)(0.80)^2(5.0)^2=4.00\) J. At the turning point \(\cos q=1-4.00/(0.50\times9.81\times0.80)=-0.0194\). The maximum angle is about 91.1°. Energy classifies this as a swing even though a small-angle expansion would be inaccurate at the turning point.

Continuous rotation requires bottom speed above \(\sqrt{4g/\ell}=7.00\) rad/s for this ideal pendulum. At precisely that value the system approaches the upper equilibrium asymptotically. This statement assumes a rigid link that can sustain compression. A pendulum made from a flexible string may lose tension before reaching the top, in which case the assumed circular constraint fails.

Check a numerical phase portrait

For any smooth one-degree Hamiltonian the divergence of the phase velocity is

\[\partial_q\dot q+\partial_p\dot p=H_{pq}-H_{qp}=0.\]

A small patch of initial states can shear and stretch while preserving its phase-space area. Viscous damping would instead contract the patch. Numerical time integration can also produce apparent contraction or growth, so refining the step is essential before interpreting a spiral as evidence of friction.

For the harmonic oscillator, ordinary forward Euler gives

\[q'=q+\Delta t\,p/m,\]
\[p'=p-\Delta t\,kq.\]

The determinant of this linear update is \(1+\Delta t^2 k/m\), larger than one at every step. The spurious outward spiral follows from the numerical map alone. Updating momentum first and then using the new momentum for the position gives determinant one. That area property preserves the geometric structure, though it does not by itself guarantee accurate phase for a coarse step. Keep both geometry and timing in view when judging numerical trajectories.

The area inside a closed harmonic-oscillator contour provides another numerical test. Its semiaxes are \(\sqrt{2E/k}\) in position and \(\sqrt{2mE}\) in momentum. Their product times \(\pi\) gives \(2\pi E/\omega\). Increasing oscillator energy therefore expands the area in direct proportion. A phase portrait plotted using velocity replaces every momentum value by its value divided by mass, changing numerical areas and their units. Specify the vertical coordinate before comparing this diagnostic between models with different masses.

A slowly changing spring transports a phase-space area

Suppose an oscillator's spring stiffness can be varied externally during the motion. Its Hamiltonian \(H=p^2/(2m)+m\omega(t)^2q^2/2\) now depends explicitly on time, so ordinary energy conservation does not apply. At an instantaneous point on a trajectory Hamilton's equations make the terms involving \(\dot p\) and \(\dot q\) cancel in \(dH/dt\). The remaining change is

\[dE/dt=\partial H/\partial t=m\omega\dot\omega q^2.\]

Energy is supplied when the imposed parameter raises the potential at the current displacement.

Take \(|\dot\omega|\ll\omega^2\) so that many cycles occur while the frequency changes by an appreciable fraction. Over one cycle \(\omega\) and \(E\) may then be treated as nearly fixed. Because average potential and kinetic energies of a harmonic oscillator are equal,

\[\langle q^2\rangle=E/(m\omega^2).\]

Inserting this mean into the work rate gives the averaged relation

\[\frac{dE}{dt}\simeq\frac{E}{\omega}\dot\omega,\qquad \frac{d}{dt}\left(\frac E\omega\right)\simeq0 .\]

The quantity \(J=E/\omega\) is the area enclosed by the instantaneous constant-energy ellipse divided by \(2\pi\). Calling it an adiabatic invariant states both the approximation and the observable. A slowly changing system migrates between contours of different energies in a way that preserves this action to leading order. This mechanical meaning of adiabatic concerns a timescale ratio. The derivation does not assume heat exchange, dissipation or a thermodynamic temperature.

Compare a slow compression with a sudden change

A \(0.500\) kg oscillator has initial angular frequency \(20.0\) rad/s and amplitude \(0.0400\) m. Its energy is \(m\omega_i^2 A_i^2/2=0.160\) J and initial action is \(0.00800\) J s. Raise the frequency smoothly to \(40.0\) rad/s over many periods. Action conservation predicts \(E_f=0.320\) J and final amplitude \(\sqrt{2E_f/(m\omega_f^2)}=0.0283\) m. The external control supplies work even as the maximum displacement decreases.

For comparison, change the stiffness instantaneously at a turning point, retaining the same initial and final frequencies. Position and momentum are continuous, but the potential energy at that position quadruples immediately. The new energy is \(0.640\) J and the amplitude remains \(0.0400\) m. Make the same switch at the zero crossing instead and the energy initially remains \(0.160\) J because the potential vanishes there. These two outcomes distinguish a rapid change tied to an oscillator phase from the nearly phase-independent slow ramp. Recording both position and velocity after the ramp allows energy, action and phase to be assessed separately.

A time-dependent Hamiltonian still carries each small phase-space area element into one of equal area, even during a sudden change of curvature. This exact conservation for an ensemble is distinct from slow conservation of the contour area assigned to a single orbit. A group of uniformly distributed initial phases illustrates the difference: immediately after a sudden spring switch all points occupy the same locations and enclose their original region, but their new energies depend on phase. The switch maps the original single-energy contour onto points that subsequently occupy many different energy contours of the new Hamiltonian.

Nonlinear stiffness and amplitude-dependent period

Derive the leading frequency shift of a symmetric nonlinear oscillator and test whether a measured amplitude shift is consistent with a cubic spring.

From first principles

Derive the first amplitude correction to a spring’s frequency

A symmetric elastic restoring force has no quadratic displacement term; the first correction to a linear spring can therefore be cubic. Suppose a conservative oscillator satisfies \(m\ddot x+kx+\alpha x^3=0\) with \(k>0\) and \(|\alpha A^2/k|\ll1\) at measured peak amplitude \(A\). Leading motion is approximately \(A\cos\Omega t\). Cube this motion to find which frequencies enter the perturbing force:

\[x^3\simeq A^3[\tfrac34\cos\Omega t+\tfrac14\cos3\Omega t] .\]

To maintain a bounded periodic solution, its fundamental component must balance at first order. Otherwise the remaining fundamental force would resonantly grow the correction. Combine the inertia and restoring-force coefficients at \(\cos\Omega t\):

\[-m\Omega^2A+kA+\tfrac34\alpha A^3\simeq0,\qquad \Omega\simeq\sqrt{k/m}\left(1+\frac{3\alpha A^2}{8k}\right).\]

The third-harmonic component also distorts the waveform, but reinserting that order-\(\alpha\) distortion into the cubic force affects the fundamental only at the next perturbative order. Positive \(\alpha\) raises frequency with amplitude; negative \(\alpha\) lowers it within the local range where the stable weakly nonlinear model applies.

Derivation and applications

Find the third harmonic generated by a weak cubic spring

A change in oscillation period is one signature of a nonlinear restoring force. The same nonlinearity also changes the shape of the recorded motion. Let an undamped mass obey \(m\ddot x+kx+\alpha x^3=0\), with \(k>0\). Release it from rest at the measured peak displacement \(A\). Define \(\omega_0=\sqrt{k/m}\), the small signed parameter \(\epsilon=\alpha A^2/k\), and a stretched time \(\tau=\Omega t\). Write \(x/A=\cos\tau+\epsilon u(\tau)\) with \(u(0)=u'(0)=0\) so that \(A\) remains the physical turning point.

Allow the frequency to shift as \(\Omega=\omega_0(1+\epsilon\nu)\). Substitute the expansion into the equation and retain terms only to first order in \(\epsilon\). Primes below denote differentiation with respect to \(\tau\):

\[u''+u=2\nu\cos\tau-\cos^3\tau=(2\nu-3/4)\cos\tau-\tfrac14\cos3\tau .\]

A term driven at the unit frequency would grow proportionally to \(\tau\sin\tau\), contradicting a bounded, periodic correction. Choose \(\nu=3/8\) to remove it. The remaining forcing is at three times the fundamental. A trial \(C\cos3\tau\) has \(u''+u=-8C\cos3\tau\). Add the required homogeneous term to satisfy the turning-point conditions:

\[u(\tau)=\frac{\cos3\tau-\cos\tau}{32}.\]

The predicted displacement therefore contains two lines with linked amplitudes and a shifted fundamental:

\[x(t)\simeq A\!\left[(1-\epsilon/32)\cos\Omega t+(\epsilon/32)\cos3\Omega t\right],\qquad \Omega/\omega_0\simeq1+3\epsilon/8 .\]

The coefficient sign gives the third harmonic relative to the phase of a release at positive displacement. Squaring an amplitude to obtain a power spectrum erases that sign. The approximation assumes \(|\epsilon|\ll1\) and excludes appreciable dissipation during the observation.

Worked example

Estimate a micrometre-scale distortion

Take \(A=12.0\) mm, \(k=20.0\) N/m and \(\alpha=1.00\times10^4\) N/m³. Then \(\epsilon=0.0720\), so the third-harmonic displacement amplitude is

\[12.0(0.0720)/32=0.0270\,\mathrm{mm}.\]

The fundamental frequency should increase by \(2.70\%\). With \(\omega_0=10.0\) rad/s, the third-harmonic line lies close to \(30.8\) rad/s.

Second application

Test whether a measured line comes from the spring

At \(A=6.00\) mm on the same apparatus, \(\epsilon\) falls by four and the third-harmonic amplitude falls by eight to \(3.38\) micrometres. The fractional frequency shift becomes \(0.675\%\). A third-harmonic signal that instead halves with amplitude could arise from an already distorted input or readout. The two amplitude scalings plus an independent frequency measurement test the cubic model more strongly than observing a line at three times the frequency.

Try it · Duffing harmonic

Vary the physical parameters in the derived relation. Use the units and assumptions in the readout to connect the curves to the two worked examples. A parameter study can test the forward prediction; the same relation can then be inverted to infer a parameter from a measurement.

Start from a reversible force law

A spring that looks linear under small deflection can stiffen as it is displaced further. For an oscillator symmetric under \(x\mapsto-x\), the restoring force expanded about equilibrium has no even powers. Keep the leading correction and write \(m\ddot x+kx+\alpha x^3=0\), with \(k>0\) and \(\alpha\) measured in N/m³. Assume the displacement is small enough that neglected fifth-order terms remain unimportant. Positive \(\alpha\) gives a hardening spring. A negative cubic coefficient describes local softening and may need higher-order terms to represent large displacements safely within the model.

The potential is \(kx^2/2+\alpha x^4/4\). Without damping the total energy is conserved and a release at amplitude \(A\) fixes that energy. Unlike a harmonic oscillator, the quadratic curvature at the origin no longer fixes the period for every possible energy. We want a quantitative connection between the amplitude of the motion and its zero-crossing interval.

Obtain the first frequency correction

Try \(x\simeq A\cos\Omega t\) and substitute it into the cubic equation. The identity \(\cos^3 u=(3\cos u+\cos3u)/4\) shows that the nonlinearity introduces a component at the original frequency and a third harmonic. Balance the fundamental coefficient to get \(-m\Omega^2+k+3\alpha A^2/4\simeq0\). Expanding the square root gives

\[\Omega\simeq\omega_0\left(1+\frac{3\alpha A^2}{8k}\right),\]
\[\omega_0=\sqrt{k/m}.\]

The control parameter is \(|\alpha|A^2/k\), the ratio of cubic to linear force at maximum displacement. The small additional third harmonic changes the waveform at first order but only feeds back into this leading frequency result at higher order. Fitting a perfect sinusoid to a high-precision trace may therefore show a residual even when the measured average period follows this formula.

Check the result using the conserved energy

The quarter-period is the time to move from equilibrium to \(A\). Substitution of the energy at the turning point gives an integral over \(dx/\sqrt{2[E-U(x)]/m}\). Let \(x=A\sin u\) to remove the square-root endpoint. The remaining integrand is proportional to \(\{1+[\alpha A^2/(2k)](1+\sin^2u)\}^{-1/2}\). Expanding and averaging over the interval from zero to \(\pi/2\) uses mean \(\sin^2 u=1/2\), yielding \(T\simeq(2\pi/\omega_0)[1-3\alpha A^2/(8k)]\). This agrees with the reciprocal of the harmonic-balance result.

The integral approach generalises to experimentally tabulated conservative forces by integrating them first to obtain a potential. It would need modification for strong damping, where energy varies significantly between the two turning points of one cycle.

The energy integral and its straight-line approximation agree near zero cubic stiffness and separate as amplitude increases.
A positive cubic stiffness shortens the period. The first-order expansion is tangent to the energy-integral curve at zero and gradually loses accuracy away from that limit.
Try it · Duffing

Change the inputs and compare the recalculated curves with the preceding derivation and baseline figure. The axes give the units; the numerical readout states the model assumptions and any limiting cases. Reset the inputs to return to the reference setting.

Infer stiffness from period data

For \(m=0.50\) kg, \(k=200\) N/m and \(\alpha=4.0\times10^4\) N/m³, \(\omega_0=20.0\) rad/s. At \(A=0.020\) m the force ratio is 0.080, giving a leading frequency increase of 3.0% to 20.6 rad/s. At half this amplitude the predicted increase is 0.75%. Measure the period over several cycles at each amplitude, keeping the amplitude change due to loss small. A plot of frequency against the square of amplitude should be approximately straight near the origin. A nonzero intercept shift under a change of temperature could indicate a change in ordinary linear stiffness instead of a new nonlinear coefficient.

Compute the entire amplitude dependence of a pendulum

A cubic expansion is useful near equilibrium. For a pendulum it is possible to carry the energy calculation beyond every finite Taylor approximation. Take a point mass with fixed length \(\ell\), no friction and a release from rest at angle \(0<\theta_0<\pi\). Its conserved energy gives

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

Use \(\cos\theta=1-2\sin^2(\theta/2)\). Defining \(k=\sin(\theta_0/2)\) reduces the speed magnitude to \(2\sqrt{g/\ell}\sqrt{k^2-\sin^2(\theta/2)}\).

One quarter period is the time to travel between zero angle and the turning point. The reciprocal speed appears to diverge at the latter, but it has an integrable square-root singularity for every ordinary turning angle. To evaluate it stably, set \(\sin(\theta/2)=k\sin u\). The factor \(\cos u\) from differentiating cancels the same factor inside the square root. Four equivalent quarters give

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

Here \(K\) denotes the complete elliptic integral with modulus \(k\). Expanding the integrand at small \(k\) and integrating the first correction gives

\[T/T_0=1+k^2/4+\cdots=1+\theta_0^2/16+\cdots,\]

where \(T_0=2\pi\sqrt{\ell/g}\). The positive correction is the familiar softening: increasing amplitude lengthens the period because the restoring torque grows more slowly than its linear extrapolation.

Decide when a small-angle clock loses accuracy

A pendulum of length \(0.800\) m has \(T_0=1.794\) s at \(g=9.81\) m/s². At a release of \(60.0^\circ\),

\[k=\sin30^\circ=0.500.\]

Evaluating the integral gives \(K(0.500)=1.68575\) and \(T/T_0=2K/\pi=1.0732\), hence \(T=1.926\) s. The weak-angle approximation gives

\[1+(\pi/3)^2/16=1.0685.\]

It misses the exact period by roughly \(0.008\) s per cycle; a many-cycle timing record resolves the accumulated discrepancy.

As \(\theta_0\) tends to \(\pi\), the integrand near \(u=\pi/2\) approaches the reciprocal of a vanishing cosine. The integral diverges logarithmically, expressing the long time spent close to the unstable upper equilibrium. No finite polynomial in amplitude can reproduce that divergence. A numerical timing experiment should therefore locate regular zero crossings rather than demand a turning-point velocity of exactly zero in sampled data. Comparing the crossing intervals with the regularized integral distinguishes numerical resolution error from the genuine increase in physical period.

A way to evaluate the elliptic integral without a special-function library is to form the arithmetic–geometric mean. Begin with \(a_0=1\) and \(b_0=\sqrt{1-k^2}\), then replace the pair by their arithmetic and geometric means. Both converge rapidly to a common \(M\), and \(K(k)=\pi/(2M)\). For the 60° release the first pair is \(1\) and \(0.86603\), the next pair is approximately \(0.93301\) and \(0.93060\), and the subsequent pair agrees near \(0.93181\). Taking the reciprocal of the common value directly gives the period ratio. This procedure supplies an accurate independent benchmark even when the small-amplitude expansion ceases to converge quickly.

Numerical quadrature and the arithmetic–geometric mean should agree at a fixed amplitude. If a period extracted from actual trajectories differs while these two evaluations agree, examine the dynamical time step, how release angle is measured, and whether the observed oscillations have suffered appreciable damping.

Liouville flow and what an ensemble can remember

A cloud of identical noninteracting beads is released with slightly different initial positions and momenta. Its position distribution widens. Does the system occupy more phase space, or has its uncertainty merely changed shape?

Follow a small phase-space element

For one canonical degree of freedom the velocity of a point \((q,p)\) is \((\partial_pH,-\partial_qH)\). A short-time map takes \(\boldsymbol z\) to \(\boldsymbol z+\boldsymbol v(\boldsymbol z,t)\,dt\). Its Jacobian matrix is \(I+(\partial\boldsymbol v/\partial\boldsymbol z)dt\); expanding the determinant gives \(1+(\nabla_z\cdot\boldsymbol v)dt+O(dt^2)\). Hamilton's equations make the divergence zero because the two mixed second derivatives of a smooth Hamiltonian cancel. Each additional canonical pair contributes a similar cancellation. A time-dependent Hamiltonian may change energy but still preserve the instantaneous phase-space volume along the flow.

Conservation of the number of ensemble members in a moving phase-space box also gives the continuity equation \(\partial_t f+\nabla_z\cdot(f\boldsymbol v)=0\). The vanishing divergence leaves \(df/dt=0\) on each trajectory. A stationary mechanical system can admit \(f=F(H)\) as a stationary distribution because trajectories stay on energy surfaces. Such stationarity alone does not imply that one trajectory explores an entire energy surface. For example, further integrals of motion restrict regular multidimensional trajectories.

Propagate a cloud released into free flight

For mass \(m\), the exact map is \(p=p_0,\ q=q_0+tp_0/m\). Its determinant is one regardless of time. An initially uncorrelated cloud with variances \(s_q^2,s_p^2\) has evolved covariance \(C_{qp}=ts_p^2/m\). The new position variance is \(s_q^2+(ts_p/m)^2\), while the momentum variance stays fixed. Compute the determinant of this covariance matrix:

\[\sigma_q^2\sigma_p^2-C_{qp}^2=s_q^2s_p^2 .\]

For a Gaussian the ellipse at a fixed multiple of the covariance radius thus retains its area while it shears. With \(m=1\,\mathrm{kg}\), \(s_q=1\,\mathrm m\), \(s_p=0.5\,\mathrm{kg\,m/s}\), and \(t=4\,\mathrm s\), the observed position standard deviation is \(\sqrt5=2.236\,\mathrm m\). The momentum standard deviation remains 0.5 and the covariance becomes \(1.0\,\mathrm{kg\,m^2/s}\). Their uncorrected width product is 1.118 in action units. The square root of the covariance determinant is still 0.5. Multiplication of measured marginal widths alone falsely suggests an area increase.

Compare reversible shear and real drag

Now apply a linear drag \(\dot p=-\gamma p\) to each bead with constant \(\gamma>0\). Its phase-space divergence is \(-\gamma\), hence the map determinant after time \(t\) is \(e^{-\gamma t}\). Direct integration gives

\[p=e^{-\gamma t}p_0,\ q=q_0+(1-e^{-\gamma t})p_0/(m\gamma).\]

The cloud now genuinely loses area in the reduced bead description. A larger Hamiltonian model of bead plus environment can remain volume preserving. Choose a drag rate in the graph and compare the original, freely sheared and damped ellipses for the same observation time. Check there is a smooth zero-drag limit rather than substituting zero into a quotient.

Tutorial on distinguishing a shear from dissipation

A harmonic oscillator maps its scaled quadratures by a rotation. Show why an initially anisotropic cloud can periodically sharpen in position without phase-space cooling.

Work through the solution

Write its covariance as \(R\Sigma_0R^T\). Since \(\det R=1\), its determinant is unchanged. A rotation of one quarter turn exchanges the original widths, so position can sharpen when the original momentum width in scaled units was smaller. Energy extraction is unnecessary.

At \(t=3\,\mathrm s\) the measured ellipse area is 55 percent of the initial area in the linear-drag model. Infer \(\gamma\). Which independent observable checks the inference?

Work through the solution
\[\gamma=-\ln(0.55)/3=0.199\,\mathrm{s}^{-1}.\]

The ratio of final to initial momentum standard deviations should also be 0.55 for drag without random forcing. Added environmental fluctuations would modify that prediction.

Further reading · Cambridge classical dynamics, Hamiltonian flow and Liouville's theorem.

Parametric resonance and Floquet growth

A pendulum can gain energy when its length varies periodically even if no additive force acts on it. A modulation near twice a natural frequency amplifies one phase of the oscillation and attenuates another. The stability test concerns the growth of a perturbation over a complete modulation period.

Linearise the timing mechanism

Consider \(\ddot x+2\gamma\dot x+\omega_0^2[1+h\cos(\Omega t)]x=0\). Here \(h\) is the fractional modulation of the stiffness and \(\gamma\) is the amplitude damping rate. If \(x=\dot x=0\) exactly, the solution stays zero. Small fluctuations or an initial condition provide the seed. Direct differentiation of \(E=[\dot x^2+\omega_0^2(1+h\cos\Omega t)x^2]/2\) yields

\[\dot E=-2\gamma\dot x^2-h\omega_0^2\Omega x^2\sin(\Omega t)/2.\]

Energy transfer depends on the phase of \(x^2\), which naturally contains a component at twice the oscillation frequency.

Near \(\nu=\Omega/2\simeq\omega_0\), write \(x=A(t)e^{i\nu t}+A^*(t)e^{-i\nu t}\) with slowly varying \(A\). Multiplication by \(\cos(2\nu t)\) mixes the negative-frequency term back into the positive-frequency term with coefficient \(h\omega_0^2/2\). There is also a component at \(3\nu\), rapidly oscillating in this first-resonance approximation. Retain terms proportional to \(e^{i\nu t}\), neglect \(\ddot A\) and products of small damping with \(\dot A\). This gives

\[2i\nu\dot A+(\omega_0^2-\nu^2+2i\gamma\nu)A+(h\omega_0^2/2)A^*=0.\]

Find the first instability tongue

Set \(\Delta=\nu-\omega_0\) and keep leading terms in the small ratios \(h,\gamma/\omega_0,|\Delta|/\omega_0\). The slow equations are \(\dot A=(-\gamma-i\Delta)A+igA^*\) and their conjugate, where \(g=h\omega_0/4\). The two-by-two characteristic equation is

\[(s+\gamma)^2=g^2-\Delta^2.\]

The faster exponent is

\[\operatorname{Re}s_+=-\gamma+\operatorname{Re}\sqrt{(h\omega_0/4)^2-\Delta^2}.\]

The oscillation grows when \(g^2>\gamma^2+\Delta^2\). Exactly on resonance this gives \(h>4\gamma/\omega_0\). With \(\omega_0=10\,\mathrm{s^{-1}}\), \(\gamma=0.10\,\mathrm{s^{-1}}\) and \(h=0.08\), \(g=0.20\,\mathrm{s^{-1}}\), giving an on-resonance doubling time \(\ln2/0.10=6.93\,\mathrm s\). The approximate growing interval in drive angular frequency is \(20\pm0.346\,\mathrm{s^{-1}}\). A large-amplitude real oscillator can saturate as its natural frequency changes with amplitude, a mechanism absent from this linear equation.

Compute the period map without averaging

Integrate the original linear equation over one drive period from two independent initial states \((1,0)\) and \((0,1)\). Their final columns form a matrix \(M\), which maps every initial perturbation over the same period \(T\). After \(j\) periods the map is \(M^j\); the maximum asymptotic amplitude exponent is \(\ln\max|\lambda_i(M)|/T\). Its determinant also has an exact check \(e^{-2\gamma T}\) from the divergence in the \((x,\dot x)\) plane. The calculation below integrates both columns by fourth-order Runge–Kutta. Compare the numerical Floquet exponent with the averaged prediction as the modulation depth increases. Both curves describe growth rates, including negative rates for decay.

Tutorial on phase-sensitive amplification

At exact resonance and zero loss, substitute \(A=X+iY\) into \(\dot A=igA^*\). Identify the two special quadrature directions.

Work through the solution

Equating real and imaginary parts yields

\[\dot X=gY,\ \dot Y=gX.\]

Along \(Y=X\) both grow at \(g\), whereas along \(Y=-X\) they decay at \(g\). These directions reflect how timing the stiffness change can add or remove work on each cycle.

On resonance an oscillator with \(\omega_0=40\,\mathrm{s^{-1}}\) first grows near \(h=0.03\). Estimate its small-signal damping and its free amplitude e-folding time.

Work through the solution

From the weak-modulation threshold \(\gamma=h\omega_0/4=0.30\,\mathrm{s^{-1}}\). Without modulation the underdamped free amplitude falls as \(e^{-\gamma t}\), giving \(3.33\,\mathrm s\). Threshold uncertainty or nonlinear frequency shifts propagate into this inference.

Further reading · Verhulst, Utrecht University, perturbation analysis of parametric resonance.

A magnetic orbit that spirals outward in a perfect vacuum

Track a charged particle in a prescribed uniform field, derive a rotation update and separate numerical energy growth from a real magnetic force.

Use the work law before solving the trajectory

A nonrelativistic charged particle of mass \(m\) and charge \(q\) moves perpendicular to a uniform, time-independent magnetic field \(B\hat{\mathbf z}\). There is no electric field and the dilute test particles do not affect the applied field. The Lorentz force gives \(\dot v_x=\omega v_y,\ \dot v_y=-\omega v_x\) for \(\omega=qB/m\). Dotting with \(\mathbf v\) gives zero, so the speed should stay constant. This property holds for either sign of the charge; the direction of rotation changes. It is a better initial test of a trajectory solver than how circular a short segment looks on screen.

Define \(J(v_x,v_y)=(v_y,-v_x)\), so \(J^T=-J\) and \(J^2=-I\). The exact velocity over a time step \(h\) is \([\cos(\omega h)I+\sin(\omega h)J]\mathbf v\). Integration in time gives a circular orbit of radius \(v_\perp/|\omega|\) once the guiding centre is chosen. A magnetic field alone bends a trajectory without changing its kinetic energy; a slowly growing orbit radius at fixed \(B\) and fixed initial speed demands an explanation.

Why forward Euler adds energy at every step

Euler gives \(\mathbf v_+=(I+dJ)\mathbf v\) with \(d=\omega h\). Squaring the norm eliminates the cross term because \(v^TJv=0\), leaving \(\|\mathbf v_+\|^2=(1+d^2)\|\mathbf v\|^2\). No nonzero step has exact unit gain. A geometric picture makes the bias tangible: a tangent step leaves the initial velocity circle on its outside, whatever the point of departure.

After \(N\) steps the speed factor is \((1+d^2)^{N/2}\). With 24 steps per physical orbit, \(d=2\pi/24\simeq0.2618\), so a full orbit multiplies speed by roughly 2.2. At shorter times or smaller steps this can resemble weak physical acceleration. Reducing \(h\) at fixed physical duration reduces the growth. Testing one step at fixed count, rather than comparing over a fixed physical interval, underestimates the cumulative error.

Solve a centred magnetic step exactly

Use the time-centred velocity in the Lorentz force:

\[\mathbf v_+-\mathbf v=d J(\mathbf v_++\mathbf v)/2.\]

Premultiply by the transpose of \(\mathbf v_++\mathbf v\). The left side is the difference of squared speeds and the right side vanishes, so the update preserves speed for every \(d\) in exact arithmetic. Rearranging yields a two-dimensional linear solve; using \(J^2=-I\) turns it into a rotation,

\[\mathbf v_+=\frac{1-t^2}{1+t^2}\mathbf v+\frac{2t}{1+t^2}J\mathbf v,\]
\[t=d/2.\]

These coefficients are \(\cos\alpha\) and \(\sin\alpha\) for \(\alpha=2\arctan(d/2)\). This is the magnetic rotation used in the nonrelativistic Boris integrator. For simultaneous electric fields, the usual split step adds two half electric impulses around the magnetic rotation. The current experiment isolates the magnetic part; it makes no claim about a nonuniform electric field or the accuracy of interpolation from a field mesh to particles.

Speed conservation does not fix arrival time

At small \(d\),

\[\alpha=d-d^3/12+O(d^5).\]

A speed-preserving orbit lags in gyrophase, even when its energy plot stays perfectly flat. After four true orbits at 24 steps per orbit the predicted lag is about 8.14 degrees. The browser advances the Euler and rotation velocities and reports both norm and lag. The y-axis rescales to fit both curves, so a sharply growing Euler error can flatten the appearance of the well-behaved curve. Inspect numerical values as well as the picture.

Suppose an optical pickup observes the time at which a dilute ion tracer first crosses a known line of sight after several orbits. A phase error can be an important measurement error even when the speed is exact. To use the trajectory as a reference, refine the step until the crossing time changes by less than the experimental timing resolution. If the required integration spans many revolutions, a uniform field permits exact substeps. In realistic fields one can retain a structure-preserving rotation while resolving spatial variation independently.

A separate diagnostic is time reversal. Starting from the final velocity and applying the rotation with \(-d\) exactly inverts a centred step, up to rounding. Forward Euler with \(-d\) after \(+d\) gives

\[(I-dJ)(I+dJ)=(1+d^2)I.\]

A forward/backward test detects the lost reversibility without knowing a single experimental constant.

Tutorial

Given an orbit with 48 steps per period, estimate the gyrophase error after ten periods using the leading asymptotic term.

Work through the solution

There are 480 steps with \(d=2\pi/48\). The accumulated lag is about \(480d^3/12\simeq0.0897\) rad, or 5.14 degrees. Doubling the number of steps per period reduces the leading accumulated error fourfold.

A computation preserves speed but reverses the sign of its orbit relative to observation. Would the magnetic work test detect the error?

Work through the solution

Both field signs give zero work. Check a signed initial acceleration component \(a_y=-qBv_x/m\) for a positive initial \(v_x\), or observe the oriented trajectory. A scalar invariant cannot detect all vector-sign errors.

What changes in the relativistic case with appreciable kinetic energy?

Work through the solution

Evolve momentum \(\mathbf p=\gamma m\mathbf v\) and infer velocity from momentum. In a uniform magnetic field without electric work \(\gamma\) stays constant, and the orbital frequency is reduced to \(|q|B/(\gamma m)\). An energy-preserving nonrelativistic integration at the wrong frequency would still give the wrong measured period.

Relativistic particle dynamics and the field tensor

A circular track measures momentum per charge. A clock following the particle registers proper time, and a detector records how much kinetic energy it has gained. We will put these observations in one dynamical equation, solve that equation in uniform fields and exhibit a numerical pusher that can get the energy right while its orbit phase slowly slips.

What the track, clock and calorimeter measure

Consider a particle of invariant mass \(m\), signed charge \(q\) and ordinary velocity \(\mathbf v\). Inertial observers agree on the proper time between neighbouring events on its timelike worldline,

\[d\tau=dt\sqrt{1-v^2/c^2}.\]

Adopt coordinates \(x^\mu=(ct,x,y,z)\) and metric \(g=\mathrm{diag}(1,-1,-1,-1)\). Dividing the displacement by proper time produces a vector of fixed Minkowski norm. Multiplying it by invariant mass gives four-momentum.

\[u^\mu=\gamma(c,\mathbf v),\]
\[p^\mu=mu^\mu=(\mathcal E/c,\mathbf p),\]
\[\mathcal E^2-c^2|\mathbf p|^2=m^2c^4 .\]

Energy includes the rest term. Momentum is \(\gamma m\mathbf v\). Differentiating the last equation on a trajectory gives

\[d\mathcal E/dt=\mathbf v\cdot d\mathbf p/dt.\]

This identity replaces the nonrelativistic step of dotting \(m\mathbf a\) with velocity. A magnetic field can rotate momentum with fixed magnitude and energy, whereas an electric field can change energy by doing work.

Suppose an electron begins at rest and gains 10.0 keV of kinetic energy across an electrostatic potential difference in vacuum. Its rest energy is 511 keV, giving \(\gamma=1.01957\) and \(v/c=\sqrt{1-1/\gamma^2}=0.1950\). The nonrelativistic estimate is 0.1978. In a modest energy measurement the discrepancy could lie below the experimental spread. For a precise orbit calculation the 1.96 percent change in relativistic cyclotron period is measurable independently of that discrepancy in speed.

A linear map that produces the Lorentz force

Seek a local equation linear in field and four-velocity and covariant under boosts. For the energy component to give \(q\mathbf E\cdot\mathbf v\), and for the spatial components to give the electric force and the oriented cross product, construct the antisymmetric field tensor. With the stated metric and \(\epsilon^{123}=1\), set

\[F^{0i}=-E_i/c,\]
\[F^{i0}=E_i/c,\]
\[F^{ij}=-\epsilon^{ijk}B_k,\]
\[\frac{dp^\mu}{d\tau}=qF^{\mu\nu}u_\nu .\]

Lowering the index on \(u\) reverses the signs of its spatial components. The spatial product becomes \(q\gamma(\mathbf E+\mathbf v\times\mathbf B)\), and division by \(\gamma\) converts the proper-time derivative to \(d\mathbf p/dt\). The time component similarly yields

\[d\mathcal E/dt=q\mathbf E\cdot\mathbf v.\]

Contract the force with \(u_\mu\). The symmetric product \(u_\mu u_\nu\) annihilates the antisymmetric tensor, which proves that the evolution preserves the mass shell.

To recover Maxwell's kinematic constraints from potentials, put \(A^\mu=(\phi/c,\mathbf A)\) and \(F^{\mu\nu}=\partial^\mu A^\nu-\partial^\nu A^\mu\). Then \(F^{0i}=(\partial_t A_i+\partial_i\phi)/c=-E_i/c\), while the spatial-spatial components are the magnetic curl. Adding a four-gradient to \(A^\mu\) leaves the tensor unchanged because ordinary derivatives commute. The particle action \(S=-mc^2\int d\tau-q\int A_\mu dx^\mu\) gives the same force after integrating variations by parts with fixed endpoints. Gauge changes add only an endpoint term to this action. A trajectory measured with local forces cannot distinguish such potential representatives.

Compare the potentials and field-based description in the field-tensor chapter

Constant force, variable coordinate acceleration

Put a particle initially at rest in a uniform static electric field along \(x\). Let \(a_0=qE/m\) be signed. Integration of \(dp_x/dt=qE\) gives \(p_x=ma_0t\), so the speed tends to \(c\) even while momentum increases linearly. Proper-time evolution is simplest in terms of rapidity \(\eta\), where \(u^0=c\cosh\eta\), \(u^x=c\sinh\eta\). The two tensor equations imply \(d\eta/d\tau=a_0/c\).

\[t=\frac{c}{a_0}\sinh(a_0\tau/c),\]
\[x=\frac{c^2}{a_0}\{\cosh(a_0\tau/c)-1\},\]
\[\frac{dv_x}{dt}=\frac{a_0}{\gamma^3}.\]

The initial time and position are zero. The work \(qEx=mc^2(\cosh\eta-1)\) equals kinetic energy, which checks both the integration constant and the dimensional factor in the displacement. For an electron use the direction of the electric force as positive to simplify signs. At 20.0 kV/m it gains 1.0 keV in 5.0 cm. The energy gain follows from the static potential even though the speed does not grow exactly as the square root of distance. The field region must last long enough for the particle to cross it and fringe fields can alter the entry trajectory.

Compare momentum, coordinate time and proper time in the charged-worldline experiment

Helical motion, radius and period

A uniform magnetic field along \(z\) keeps \(p_z\), energy and \(|\mathbf p_\perp|\) fixed. Write \(p_x+ip_y\) as a complex number. The Lorentz force reduces to a first-order rotation equation and a single time integration gives the corresponding position. With positive \(B\), positive charges starting along \(+x\) initially turn towards \(-y\).

\[\frac{d}{dt}(p_x+ip_y)=-i\frac{qB}{\gamma m}(p_x+ip_y),\]
\[R=\frac{p_\perp}{|q|B},\]
\[T=\frac{2\pi\gamma m}{|q|B}.\]

The helical pitch is \(v_zT\). Radius gives transverse momentum and a calibrated period gives total energy through \(\gamma\). A track seen only in projection along the field gives no direct evidence that longitudinal momentum vanishes. A second view or a timing measurement can resolve this ambiguity.

At 10.0 keV the electron has \(pc=\sqrt{K(K+2mc^2)}=101.6\) keV. With entry perpendicular to a 2.0 mT field its radius is 0.169 m and its period 18.2 ns. Doubling the field halves both radius and period at fixed injection energy. Doubling momentum at fixed field doubles radius but changes period by the ratio of Lorentz factors. These are different tests of a track calibration. A beam with a spread of energies will dephase relative to a narrow timing gate even when every single particle remains in a perfectly uniform field.

A drift frame gives an exact crossed-field solution

For constant crossed fields with \(E<cB\), transform to the frame moving at \(\mathbf v_d=\mathbf E\times\mathbf B/B^2\). There \(E'=0\) and \(B'=\sqrt{B^2-E^2/c^2}\); calculate the transformed initial momentum and integrate a helix. Transform two successive equal-phase events back to the lab. Their perpendicular displacement in the electric-free frame is zero. If the motion has no component parallel to \(\mathbf B\), the entire displacement there is zero, and the average lab cycle velocity is exactly \(\mathbf v_d\). The detailed lab trace need not be circular and the instantaneous lab energy may oscillate.

Take \(E=30.0\) kV/m along \(y\) and \(B=0.50\) mT along \(z\). The drift is along \(+x\) at \(6.00\times10^7\) m/s. A particle injected at that velocity crosses the uniform fields on a straight line because the forces cancel. An initially stationary positive particle instead begins by accelerating along \(+y\). These observations can use the same field with different injected particles. If \(E\) exceeds \(cB\), this electric-free frame is unavailable. Transform to a magnetic-free frame and integrate electric acceleration instead.

Continuous rotation and a discrete experiment

A naive forward step \(\mathbf p_{n+1}=\mathbf p_n+q\Delta t\,\mathbf v_n\times\mathbf B\) adds a vector perpendicular to the previous momentum. Its squared norm increases by the squared magnitude of that kick. The apparent heating will persist in perfectly static uniform magnetic fields. For a purely magnetic update, evaluate the direction using the mean of old and new momenta. At fixed \(\gamma\), the resulting implicit two-dimensional linear map can be solved algebraically and is an exact rotation by a modified angle.

\[\delta=2\arctan\!\left(\frac{\omega_c\Delta t}{2}\right),\]
\[\omega_c=\frac{qB}{\gamma m}.\]

The sign of rotation follows the earlier complex equation. Dotting the update with the mean momentum gives zero change in squared norm, which verifies the energy property even for relatively large time steps. A common electromagnetic pusher surrounds the magnetic rotation by two electric half-kicks. In spatially varying fields, specify at what time and position each field is sampled, and check spatial interpolation and time convergence. For ultrarelativistic nearly cancelling electric and magnetic fields, preserving rotation in a pure field alone does not ensure cancellation is represented accurately.

Solve the constant tensor without transforming every time step

When uniform electric and magnetic fields are constant in spacetime, the Lorentz equation is a linear constant-coefficient equation for four-velocity as a function of proper time. Nonlinearity in ordinary time hides that simple structure, because the rate at which proper time accumulates changes along the orbit. Define the mixed tensor \(M^\mu{}_\nu=(q/m)F^{\mu\alpha}g_{\alpha\nu}\). In a uniform field it does not vary along the trajectory. A formal solution is then

\[u(\tau)=e^{M\tau}u(0),\]
\[x(\tau)-x(0)=\int_0^\tau e^{Ms}u(0)\,ds .\]

The coordinate formula is written as an integral since \(M\) can be singular, as it is in a purely magnetic field. Blindly replacing this integral by \(M^{-1}(e^{M\tau}-I)\) fails in exactly such simple cases. A power series for the integral or a block matrix exponential treats zero eigenvalues without an artificial inverse. Antisymmetry of the tensor implies \(M^{\mathsf T}g+gM=0\). Differentiating \(e^{M^{\mathsf T}\tau}ge^{M\tau}\) shows that it stays equal to \(g\), making preservation of \(u^\mu u_\mu=c^2\) a structural property of the exact mapping.

For parallel constant fields along \(z\), the matrix decomposes into a boost in the \(ct,z\) subspace and a rotation in \(x,y\). Write \(\alpha=qE/(mc)\), \(\Omega=qB/m\), and denote the initial four-velocity components by \(u_0^\mu\). The proper-time solution is

\[u^0=u_0^0\cosh\alpha\tau+u_0^z\sinh\alpha\tau,\]
\[u^z=u_0^z\cosh\alpha\tau+u_0^0\sinh\alpha\tau,\]
\[u^x+i u^y=(u_0^x+i u_0^y)e^{-i\Omega\tau}.\]

The longitudinal and transverse operations commute because they act in different subspaces. In lab time the transverse rotation slows as the electric field increases energy, although the proper-time rotation frequency stays constant. A particle therefore traces a helix whose transverse radius \(p_\perp/(|q|B)\) is fixed while the pitch evolves. A single measured turn time without a tagged position in the accelerating region is insufficient for an energy reconstruction.

As a numerical test use an electron, quoting magnitudes, with \(B=1.0\) mT, \(E=10.0\) kV/m and initial purely transverse speed \(0.10c\). One magnetic turn takes 35.72 ns in proper time and accumulates electric rapidity magnitude \(|\alpha|\tau\simeq0.2096\). The final Lorentz factor is \(\gamma_i\cosh(0.2096)=1.0272\), giving final kinetic energy about 13.9 keV, compared with 2.57 keV initially. The lab-time turn duration is \(\gamma_i\sinh(|\alpha|\tau)/|\alpha|\simeq36.2\) ns. Reversing the electric field changes the direction of the axial displacement but leaves final energy and turn duration unchanged for this initially transverse particle. Reversing the initial longitudinal velocity would generally break that energy symmetry.

Infer uncertainty and test units in a momentum reconstruction

A track fitter commonly reports field, radius, pitch, time and a fitted covariance matrix. The dynamical relation turns these observed quantities into momentum. Let \(L_z\) denote a signed pitch per turn. With known signed direction of circulation and calibrated absolute field magnitude,

\[|\mathbf p|=|q|B\sqrt{R^2+(L_z/2\pi)^2}.\]

For small errors, logarithmic differentiation gives weights for fractional radius and pitch errors:

\[d\log p=d\log B+w_R\,d\log R+w_L\,d\log |L_z|,\]
\[w_R=\frac{R^2}{R^2+(L_z/2\pi)^2},\]
\[w_L=1-w_R .\]

For \(R=0.20\) m and \(L_z=0.30\) m the radius accounts for 94.6 percent of the squared transverse-plus-longitudinal geometric factor. Independent relative uncertainties of 0.20 percent in field, 0.50 percent in radius and 2.0 percent in pitch yield about 0.525 percent uncertainty in total momentum. A common detector scale controlling both radius and pitch would enter with correlated signs and should not be counted as two independent errors. When the pitch tends to zero, use the original derivatives with respect to \(L_z\); a reported fractional error on a quantity consistent with zero is ill defined.

Differentiating \(K=\sqrt{m^2c^4+p^2c^2}-mc^2\) gives

\[d\log K=(\gamma+1)d\log p/\gamma.\]

The coefficient approaches two at low energy and one at very high energy. At the approximately 3.70 keV energy of the tutorial the above momentum error would imply about a 1.05 percent energy error. A kinetic-energy estimate from a small difference of nearly equal numbers can also lose numerical precision at much lower energies. Rationalise it as \(K=p^2c^2/(\sqrt{m^2c^4+p^2c^2}+mc^2)\) when working near rest.

Several independent checks use this reconstruction without assuming the track fitter is correct. The turn time inferred from the fitted \(\gamma\) can be compared with a separate timing channel. Reverse the magnetic field to reverse the direction of curvature while keeping the speed and energy approximately fixed. Translate the beam within a mapped uniform field and look for changing fitted radius that correlates with position, an indication of geometric or field-map bias. Finally plot the residual of the magnetic force law separately for transverse magnitude and angle. A time integrator may conserve momentum magnitude for symmetry reasons even when its field interpolation biases the phase or shifts the guiding centre systematically.

Advance a charge using relativistic momentum

Increase the impulse while following speed, energy and proper time. Identify the range where a Newtonian momentum update becomes inaccurate.

Worked timing problem · infer an accelerating voltage without a radius

A tagged electron bunch completes ten nearly circular turns in a calibrated 5.0 mT magnetic field. Two time stamps indicate an elapsed 73.0 ns. The field is perpendicular to the orbit. Assuming complete turns and negligible electrical work during the timed interval, estimate the injection energy. What timing precision would distinguish a one-percent change in that energy?

Use the relativistic period sensitivity rather than the energy fraction directly

The nonrelativistic turn period is

\[2\pi m/(eB)=7.145\,\mathrm{ns}.\]

The measured period is 7.30 ns, giving \(\gamma\simeq1.0217\) and \(K=(\gamma-1)mc^2\simeq11.1\) keV. The relative energy sensitivity is much larger than the relative period change when \(\gamma\) is close to one. A one-percent change in \(K\) corresponds to \(\Delta\gamma\simeq2.17\times10^{-4}\), or relative period change \(2.12\times10^{-4}\). Over the ten turns this gives approximately 15.5 ps.

To resolve that change spectroscopically, uncertainties in the elapsed time and field scale must together be significantly smaller than the equivalent change. A constant pickup cable delay cancels if the same electronics register both ends of the interval, while a drift of its timebase scale does not. Timing over more turns improves the total accumulated signal but also increases exposure to field inhomogeneity, energy loss and dephasing among particles with different injection energies. A narrower timing histogram does not automatically eliminate a systematic field calibration.

Finally verify the integer turn count independently. Missing a pickup crossing would cause a much larger change in inferred energy than the desired resolution. The measured wave packet may broaden so strongly that later crossings overlap. Recording the full pickup waveform and tracking ordered crossings, along with an independent rough radius estimate, can constrain the turn assignment before fitting the small relativistic shift. A perfect circular image with no time labels cannot supply that missing count.

Why momentum and kinetic energy do not gain fixed fractions together

In an electrostatic accelerating gap, the kinetic energy increment for a particle passing between two equipotential surfaces is its charge times the potential drop, regardless of injection energy. This statement follows by integrating the Lorentz power law over the actual path. A magnetic guiding field can alter the path and transit time while doing no direct work. A time-dependent electric field, a missed equipotential endpoint or appreciable radiation changes the simple inference and must be addressed separately.

For an electron entering with 10 keV and acquiring an additional 10 keV, kinetic energy doubles. Its initial momentum times \(c\) is about 101.6 keV and its final value about 144.4 keV. The radius in the same subsequent perpendicular magnetic field increases by a factor approximately 1.42. Doubling the radius would instead require doubling momentum, which demands a substantially greater energy increment at this low initial energy. Comparing radii before and after a known voltage supplies an independent check on the sign and magnitude of a particle's charge-to-mass model.

A measured energy gain below the nominal voltage does not by itself diagnose radiation. The potential actually traversed, finite angular acceptance, entrance or exit fringe fields, collision losses and biases in reconstructing longitudinal momentum can all matter. Repeat with reversed field polarity or several injection energies and compare the kinetic-energy difference rather than the two radii directly.

Tutorial · Reconstruct a track with two measurements

A particle known to be an electron or positron crosses a uniform \(+z\) field of 1.0 mT. The projected radius is 0.200 m and the pitch magnitude is 0.300 m. Recover the transverse and longitudinal momentum, energy and period. What else must the detector record to determine the sign of charge?

Reconstruct both momentum components

The transverse momentum is \(|q|BR=3.20\times10^{-23}\) kg m/s. During a cycle the parallel displacement is \(p_zT/(\gamma m)=2\pi p_z/(|q|B)\), so \(|p_z|=7.65\times10^{-24}\) kg m/s. The quadrature total is \(3.29\times10^{-23}\) kg m/s, yielding \(p/(mc)=0.1206\), \(\gamma=1.00724\), and approximately 3.70 keV kinetic energy. The period is about 36.0 ns.

Neither radius nor pitch magnitude carries the signed circulation. Record the direction of traversal relative to the calibrated direction of magnetic field. Reversing both charge and the direction of traversal yields the same unlabelled transverse ring. If timing or two ordered detectors supply a direction, the sign follows from the first Lorentz kick.

Tutorial · Can a constant-energy circle be trusted?

A pusher uses 20 uniform steps per exact cyclotron period in a uniform magnetic field. It reproduces initial kinetic energy to machine precision for 50 turns. Estimate the phase drift from the midpoint rotation formula. Design a refinement diagnostic that distinguishes a time-discretisation bias from a field calibration error.

Compare the exact and discrete angles

The exact unsigned angle per step is

\[h=2\pi/20=0.31416.\]

The discrete one is

\[2\arctan(h/2)=0.31161.\]

The accumulated deficit over 1,000 steps is about 2.55 rad, roughly 0.41 turn. The method can keep every track point on a closed momentum circle yet miss the pickup electrode by a large fraction of a revolution. Coordinate radius may depend on how positions were staggered, so perform the angular comparison on momentum first.

Double the number of steps at fixed physical end time and take the difference in unwrapped phases. The leading angular error \(h^3/12\) per step becomes a quadratic global error, so halving the step should reduce it by about four. A calibration error in \(qB/(\gamma m)\) persists under time refinement. Track both the expected frequency and the convergence of the time series; comparing the coordinates at a single late time can confuse complete turns with near agreement.

Cambridge Electromagnetism · four-vectors, fields and charged matter

Euler–Poinsot motion, torque-free nutation and the intermediate axis

A freely rotating body has fixed angular momentum in space, yet the components recorded by three body-mounted gyroscopes can vary periodically or linger near an unstable rotation. Solve the nonsymmetric top from its invariants, distinguish its body-component period from its spatial orientation, and extract a stability time scale from a measured inertia tensor.

Derive the body equations from a spatial conservation law

Choose principal axes fixed in a rigid body and label its moments \(I_1<I_2<I_3\). In the co-rotating basis the angular-momentum components are

\[L_i=I_i\omega_i.\]

For any vector expressed in that basis, its inertial derivative is its component derivative plus \(\boldsymbol\omega\times\mathbf L\). With no external torque the inertial derivative is zero. Taking components gives

\[I_1\dot\omega_1=(I_2-I_3)\omega_2\omega_3,\]
\[I_2\dot\omega_2=(I_3-I_1)\omega_3\omega_1,\]
\[I_3\dot\omega_3=(I_1-I_2)\omega_1\omega_2 .\]

Multiply these equations by the corresponding \(\omega_i\) and sum: the coefficients of \(\omega_1\omega_2\omega_3\) cancel, giving constant \(E=\sum I_i\omega_i^2/2\). Multiplying instead by \(I_i\omega_i\) gives constant \(L^2=\sum I_i^2\omega_i^2\). In body angular-momentum space the motion lies on the intersection of a sphere and an energy ellipsoid. At fixed \(L\), the possible energies range from \(L^2/(2I_3)\) to \(L^2/(2I_1)\). The intermediate value \(L^2/(2I_2)\) divides two families of closed curves and contains the unstable principal-axis orientations.

In Poinsot's construction the inertia ellipsoid in angular-velocity space rolls on an invariable plane normal to the fixed spatial angular momentum. The ellipsoid corresponding to a given energy is

\[\sum I_i\omega_i^2=2E.\]

Its normal at the instantaneous angular velocity is proportional to \(\mathbf L\); the tangent plane obeys \(\mathbf L\cdot\mathbf x=2E\). In space that plane therefore has fixed distance \(2E/L\) from the origin. Its instantaneous point in the body along \(\boldsymbol\omega\) has zero instantaneous rotational velocity because the vector cross product of angular velocity with itself is zero. These facts underlie the rolling construction. A photographed body axis traces a different curve from the moving contact point or from a body-frame gyro trace.

Test all three principal rotations locally

For rotation \((0,0,\Omega)\), linearise the first two Euler equations in transverse perturbations. Eliminating one component gives

\[\ddot\omega_1=-\Omega^2[(I_3-I_2)(I_3-I_1)/(I_1I_2)]\omega_1.\]

Small transverse deviations oscillate. Performing the analogous process about \(I_1\) also gives a restoring sign. About \((0,\Omega,0)\) the sign reverses and the growing exponent is \(\lambda=|\Omega|\sqrt{(I_2-I_1)(I_3-I_2)/(I_1I_3)}\). The unstable rotation is still an exact solution when both perturbations vanish identically. Instability describes the evolution of arbitrarily small disturbances, not a spontaneous violation of the torque-free equations.

For moments proportional to \(1,2,3\) and intermediate-axis rotation \(\Omega=6.0\,{\rm rad/s}\), \(\lambda=3.46\,{\rm s^{-1}}\) and the linear e-folding time is \(0.289\,{\rm s}\). A perturbation with a growing-mode component \(10^{-3}\) of the spin reaches roughly \(10^{-1}\) in \(\ln(100)/\lambda=1.33\,{\rm s}\). Its nonlinear fate remains bounded by the momentum sphere and energy ellipsoid. An exponential growth fit carried past the first large reorientation would therefore misrepresent the global motion. Initial perturbations projected entirely on the decaying linear eigenvector can delay the first visible flip.

Solve the low-energy family with elliptic functions

For \(L^2/(2I_3)<E<L^2/(2I_2)\) the trajectory surrounds the largest-inertia axis. Start at a crossing with \(\omega_2=0,\omega_1=A>0,\omega_3=C>0\). Solving the two invariants gives

\[A^2=(2EI_3-L^2)/[I_1(I_3-I_1)],\]
\[C^2=(L^2-2EI_1)/[I_3(I_3-I_1)].\]

When \(\omega_1\) reaches zero the other transverse component has maximum \(B^2=(2EI_3-L^2)/[I_2(I_3-I_2)]\). Use \(s=\omega_2/B\). Eliminating the other squares with the invariants gives

\[\omega_1^2=A^2(1-s^2),\]
\[\omega_3^2=C^2(1-k_e^2s^2).\]

Euler's second equation now reduces to

\[\dot s^2=\nu^2(1-s^2)(1-k_e^2s^2),\]
\[\nu^2=\frac{(I_3-I_2)(L^2-2EI_1)}{I_1I_2I_3},\]
\[k_e^2=\frac{(I_2-I_1)(2EI_3-L^2)}{(I_3-I_2)(L^2-2EI_1)} .\]

Separating variables defines \(u=\nu t=\int_0^s dw/\sqrt{(1-w^2)(1-k_e^2w^2)}\). Its inverse is Jacobi's \({\rm sn}(u,k_e)\). The continuously signed square roots are \({\rm cn}\) and \({\rm dn}\), giving \((\omega_1,\omega_2,\omega_3)=(A\,{\rm cn},B\,{\rm sn},C\,{\rm dn})\). This construction defines the special functions from the mechanical quadrature instead of assuming them as a table of answers. At \(k_e=0\) the inverse is a sine and the stabilising motion is harmonic. As \(k_e\to1\), the integral to \(s=1\) diverges logarithmically and the period grows without bound.

The body-frame period is

\[T_b=4K(k_e)/\nu,\]

with \(K\) the same integral evaluated at one. Some software defines elliptic functions in terms of parameter \(m=k_e^2\) rather than modulus \(k_e\). Supplying one to an implementation expecting the other produces a plausible curve with the wrong period. Check the derivative at the zero crossing \(\dot\omega_2(0)=B\nu\) and the time of its first maximum \(K/\nu\) before fitting a long trace. The third component \({\rm dn}\) repeats after half the full period, so a single principal-axis gyro can report a dominant frequency twice that of the full body vector.

Reconstruct the observed nutation angle

Orient the inertial vertical along \(\mathbf L\). The angle between body axis three and this fixed direction obeys \(\cos\theta=L_3/L=I_3\omega_3/L\). For \(I_1,I_2,I_3=(1,2,3)\,{\rm kg\,m^2}\) and initial \(\boldsymbol\omega=(0.50,0,1.00)\,{\rm rad/s}\), the invariants give \(L^2=9.25\), \(2E=3.25\) in SI, \(A=B=0.50\,{\rm rad/s}\), \(C=1.00\,{\rm rad/s}\), \(\nu=1.00\,{\rm s^{-1}}\), and \(k_e^2=1/12\). Thus the nutation angle changes from \(\arccos(3/\sqrt{9.25})\approx9.46^\circ\) to \(\arccos[3\sqrt{11/12}/\sqrt{9.25}]\approx19.2^\circ\). A torque is unnecessary for this change in the angle of a body axis relative to fixed \(\mathbf L\).

The principal-axis components alone determine body orientation only when supplemented with an initial attitude and the kinematic equation. For the Euler-angle convention with polar axis \(\mathbf L\), the azimuthal rate of body axis three is \(\dot\phi=L(L_1^2/I_1+L_2^2/I_2)/(L_1^2+L_2^2)\) away from the polar singularity. It follows by differentiating the body-axis unit vector in space and projecting onto its azimuthal direction. A complete period of the body components therefore leaves a finite spatial rotation about fixed \(\mathbf L\). Return of the three gyro readings does not imply that a painted mark has returned to its starting position in the laboratory.

Solve the high-energy family and join both sides at the separatrix

For \(L^2/(2I_2)<E<L^2/(2I_1)\) the closed curves on the angular-momentum sphere surround axis one. The component \(\omega_1\) now keeps its sign while \(\omega_3\) changes sign through a cycle. As in the first family, choose a phase with \(\omega_2=0\) and both other components positive. The two invariants give the same initial \(A^2=(2EI_3-L^2)/[I_1(I_3-I_1)]\) and \(C^2=(L^2-2EI_1)/[I_3(I_3-I_1)]\). Now the maximum of \(\omega_2\) occurs when \(\omega_3=0\), so

\[B^2=(L^2-2EI_1)/[I_2(I_2-I_1)].\]

Which component reaches zero is the physical branch choice that determines the arrangement of elliptic functions.

Let \(s=\omega_2/B\). The invariant equations give

\[\omega_3^2=C^2(1-s^2),\]
\[\omega_1^2=A^2(1-k_h^2s^2).\]

Substitution in the second Euler equation yields the same elliptic quadrature but with \(\nu_h^2=(I_2-I_1)(2EI_3-L^2)/(I_1I_2I_3)\) and \(k_h^2=(I_3-I_2)(L^2-2EI_1)/[(I_2-I_1)(2EI_3-L^2)]\). All components are given by \((A\,{\rm dn},B\,{\rm sn},C\,{\rm cn})(\nu_h t,k_h)\), where the notation means each function is evaluated at the same time and modulus. On this energy side \(0<k_h<1\). The low-energy modulus formula evaluated here would exceed one, signalling that the original choice of component scaling and physical extrema must be changed.

For the same inertias \(1,2,3\), choose initial \((1,0,0.20)\,{\rm rad/s}\). Then \(L^2=1.36,\ 2E=1.12\), and the high-energy inequality holds since \(2E>L^2/I_2=0.68\). The formulas give

\[A=1,\ B=\sqrt{0.12}=0.3464,\ C=0.20,\ \nu_h=\sqrt{1/3}=0.5774\,{\rm s^{-1}},\ k_h^2=0.12.\]

The minimum \(\omega_1\) is \(A\sqrt{1-k_h^2}=0.9381\,{\rm rad/s}\), so that principal gyro never reverses even though the third one does. A body-marking aligned with axis three can undergo a conspicuous reversal while the dominant axis-one spin changes only modestly. These component predictions are more specific than an energy or angular-speed trace.

At \(2E=L^2/I_2\), both moduli approach one. The definitions give

\[{\rm sn}(u,1)=\tanh u,\]
\[{\rm cn}(u,1)={\rm dn}(u,1)={\rm sech}\,u.\]

One separatrix solution therefore has \(\omega_2=B\tanh(\nu t)\) with \(\omega_1=A\,{\rm sech}(\nu t)\) and \(\omega_3=C\,{\rm sech}(\nu t)\), up to signs and time shifts consistent with Euler's equations. It connects opposite steady orientations along axis two as \(t\) goes from negative to positive infinity. Its asymptotic approach is exponential, with \(\nu\) equal to the small-disturbance growth exponent at the intermediate-axis equilibrium after inserting \(B=L/I_2\). A nearby periodic orbit spends much of its time near the unstable spin and flips more rapidly between those intervals.

Reconstruct spatial attitude without a singular azimuth

Let \(R(t)\) map body components into a laboratory basis. For body angular velocity \(\boldsymbol\omega_b\), its kinematic equation is

\[\dot R=R[\boldsymbol\omega_b]_\times,\]

where the skew matrix acts by a cross product. Starting from measured \(R(0)\), propagate by multiplying by the rotation appropriate to each short time interval. Exponentiating the skew matrix for an interval with constant estimated body angular velocity preserves orthogonality and determinant exactly. Applying a naive forward-Euler matrix addition \(R+hR[\omega]_\times\) generally stretches the basis, even if the angular velocity components came from an exact elliptic solution.

For a constant rotation about axis three at one radian per second, a single Euler step of duration \(0.10\,{\rm s}\) takes a transverse unit vector to one of length \(\sqrt{1+0.10^2}=1.00499\). After one hundred such steps the transverse length would grow by \((1.01)^{50}\approx1.64\). A quaternion or matrix exponential avoids that artificial stretch. Normalising each axis separately is insufficient if the axes lose orthogonality; check \(R^TR\) against identity and \(\det R\) against one. Also compute \(R(I_1\omega_1,I_2\omega_2,I_3\omega_3)^T\) at every time. It should give the same spatial vector in a torque-free run.

A measured attitude time series allows a different inference from fitting Euler angles separately. Use relative rotations between successive images to estimate angular velocity in the correct body or spatial frame. A camera can momentarily lose sensitivity to yaw when a marked axis points towards it; simultaneous orthogonal views or multiple non-collinear marks avoid that degeneracy. The gyro and attitude measurements together distinguish a true physical precession from an Euler-angle wrap by \(2\pi\). Synchronise their clocks before comparing the phase of a nutation extremum, since even a small time delay produces a plausible-looking mismatch near a fast flip.

Infer inertia ratios from a free-rotation record

A calibrated triad records \(\omega_i(t)\) in axes thought to be principal. Euler's equations predict that \(\dot\omega_1/(\omega_2\omega_3)\) is the constant \((I_2-I_3)/I_1\) wherever the denominator is appreciable, and similarly for cyclic indices. Instead of dividing noisy derivatives near zeros, integrate each component over a time interval. For example \(\omega_1(t_2)-\omega_1(t_1)=a_1\int_{t_1}^{t_2}\omega_2\omega_3\,dt\). Fit \(a_1\) over several intervals and repeat for \(a_2,a_3\). Select intervals with different angular configurations so that products do not all average nearly to zero. The ratios depend on inertia shape; multiplying every moment by a common constant leaves a torque-free angular-velocity record unchanged.

For a record giving \(a_1=-1.0\), \(a_2=1.0\) and \(a_3=-1/3\), solve the homogeneous equations \(I_2-I_3=-I_1\), \(I_3-I_1=I_2\), \(I_1-I_2=-I_3/3\). They give \(I_1:I_2:I_3=1:2:3\). An independent angular-momentum or torque calibration is needed to set the absolute scale. A known short applied torque impulse that changes one principal angular velocity by a measured amount can do this, provided the other gyroscopic contributions over that impulse are small or accounted for. A fit that estimates all absolute inertias from angular velocity alone can have an apparently excellent residual and still be structurally underdetermined.

If the sensors are not along principal axes the inertia matrix contains off-diagonal entries. The coordinate-free body equation is

\[I\dot{\boldsymbol\omega}+\boldsymbol\omega\times(I\boldsymbol\omega)=0.\]

Each measured time sample gives equations linear in the constant entries of the symmetric inertia tensor. With sufficiently rich motion one may estimate these entries up to scale, then diagonalise the fitted tensor to recover principal directions. Pure rotation along one axis gives insufficient excitation to reveal three distinct directions. Comparing a family of initial spins with a single tensor provides a stronger validity test than fitting a different set of effective principal inertias to each record.

Relate a body-frame period to a measured geometric phase

After a closed polhode in body angular-momentum space the laboratory orientation differs by a rotation about the fixed spatial momentum. That phase can be separated into a term accumulated at a dynamical rate and a term depending on the oriented solid angle of the body momentum path. For a fixed \(L\), the angular-velocity component along the momentum is \(\boldsymbol\omega\cdot\hat L=2E/L\), since \(\mathbf L\cdot\boldsymbol\omega=2E\). Over one body period it contributes \(2ET_b/L\). Parallel transport of a transverse reference direction along the unit momentum curve contributes minus the oriented solid angle enclosed, up to whole turns and the chosen orientation of the sphere. The resulting net attitude phase is \(2ET_b/L-\Omega_{\rm solid}\pmod{2\pi}\).

The geometric part can be visualised by carrying a local tangent basis along the closed curve. Its two basis vectors are constrained to stay perpendicular to the moving unit momentum and are transported with no imposed twist around that direction. A return to the initial unit momentum need not return that basis to its starting orientation. For a latitude circle on the unit sphere the enclosed cap area is \(2\pi(1-\cos\theta)\); shrinking the path to a point makes the geometric phase vanish modulo \(2\pi\). This is why comparing a painted mark after a nutation only to an integrated scalar spin speed can give a discrepancy even with exact torque-free motion.

In practice the total phase can be measured without choosing a cap convention. Fit the attitude at two times separated by the full gyro period, form \(R(t+T_b)R(t)^T\), and extract the relative rotation around the known fixed spatial momentum. Independently integrate \(2E/L\) over that interval and compare the difference modulo \(2\pi\) with the signed spherical area traced by normalised body momentum. A factor-of-two error in the identified period, common if only \(\omega_3\) is recorded in the low-energy family, generally leaves the relative attitude rotation axis different from \(\mathbf L\). The axis check can reveal the error before assigning a numerical geometric phase.

Identify which inertias can exist in an actual rigid body

Three positive principal moments inserted into Euler's equations define a mathematical top, but the moments of a physical nonnegative mass distribution also satisfy triangle inequalities. In principal coordinates \(I_1=\int(y^2+z^2)\,dm\),

\[I_2=\int(z^2+x^2)\,dm,\]
\[I_3=\int(x^2+y^2)\,dm.\]

Therefore \(I_1+I_2-I_3=2\int z^2\,dm\ge0\), and likewise by cyclic permutation. Equality means all mass is confined to the corresponding coordinate plane. The convenient example \(1,2,3\) lies on that boundary and can be realised by an ideal planar lamina. A fitted ratio \(1,2,3.5\) would imply negative mean squared distance along one direction and should prompt a calibration or modelling check.

A uniform thin rectangular plate of mass \(M\) and side lengths \(b\) along body axis one and \(a\) along body axis two has \(I_1=Ma^2/12,\ I_2=Mb^2/12,\ I_3=M(a^2+b^2)/12\). Choosing \(b=\sqrt2\,a\) gives exactly \(1:2:3\). For \(M=0.60\,{\rm kg}\), \(a=0.20\,{\rm m}\), \(b=0.283\,{\rm m}\), the moments are approximately \(0.0020,0.0040,0.0060\,{\rm kg\,m^2}\). The component equations for these moments give the same time histories as the scaled numerical example for identical initial angular velocities, while the actual angular momentum and energy are smaller by a factor 500. This gives a physical specimen for checking principal-axis stability without requiring a massive rotor.

Adding a small mass at a known location changes both inertia and possibly the centre of mass. If a symmetric pair of equal small masses is attached at \(\pm d\hat e_3\), their combined mass \(m_a\) adds \(m_a d^2\) to \(I_1\) and \(I_2\), nothing to \(I_3\), and leaves the centre fixed. For the plate above and \(m_a=0.10\,{\rm kg}, d=0.10\,{\rm m}\), the new moments are \(0.0030,0.0050,0.0060\,{\rm kg\,m^2}\). The intermediate-axis growth exponent at fixed \(\Omega\) changes from \(|\Omega|/\sqrt3\) to \(|\Omega|\sqrt{(0.005-0.003)(0.006-0.005)/(0.003\cdot0.006)}=|\Omega|/3\). A reversible mass-placement experiment tests the inertia dependence of instability, not merely the existence of a visually dramatic flip.

Test intermediate-axis stability with the full body equations

Change the initial tilt and spin. Compare the linear perturbation and the complete torque-free motion while monitoring energy and angular momentum in the OneSimulation output.

Estimate distance from a separatrix using dwell time

Near the intermediate-axis energy, elliptic modulus approaches one on either side. Writing \(d=1-k_e^2\) on the low-energy family gives \(K\sim\ln(4/\sqrt d)\). Thus \(T_b\sim4\ln(4/\sqrt d)/\nu\) for a slowly varying scale \(\nu\). Changing \(d\) by a factor of one hundred increases the expected body period by approximately \(4\ln10/\nu\). A tiny difference in the initial inertia-weighted energy can produce a readily observed increase in the time between reorientation events while the maximum angular speed scarcely changes. The logarithm follows from passages near a hyperbolic equilibrium, where the signed unstable perturbation grows exponentially.

If \(\nu=3.0\,{\rm s^{-1}}\) and \(d=10^{-4}\), the leading estimate is

\[T_b=(4/3)\ln400\approx7.99\,{\rm s}.\]

Reducing \(d\) to \(10^{-6}\) gives \(T_b\approx11.06\,{\rm s}\). Inverting this relation makes estimates of \(d\) exponentially sensitive to a period offset. An uncertain start or stop event of a few tenths of a second, or a weak external torque during a long dwell, can affect an inferred separatrix energy considerably. Report the uncertainty of \(E-L^2/(2I_2)\) as well as the fitted period when claiming close approach to the unstable family.

One experimental check is to use both the crossing speed of \(\omega_2=0\) and the time between successive such crossings. At a low-energy upward crossing the slope has magnitude \(B\nu\); it remains finite near the separatrix even while the period diverges. A simple global slowdown from increased bearing drag tends to modify the crossing speed as well as the dwell. A correctly prepared near-separatrix torque-free motion has relatively rapid crossings separated by long intervals close to intermediate-axis rotation. The distinction is visible in the time domain and does not depend on estimating a derivative at the slowest, noisiest part of the record.

A fit places a nominally torque-free experiment slightly above the separatrix when \(E,L\) are computed from gyros, but below it when inferred from the oscillating component pattern. What should be checked first?

Work through the solution

Recalculate both invariants from the same time stamps, calibrated orientation and inertia axes. The energy classification subtracts comparable quantities and can be sensitive to cross-axis bias. The low-energy family keeps its third component's sign, whereas the high-energy family keeps its first component's sign with the stated ordering. Verify that a full body period was actually recorded and that sign changes were resolvable. Persistent disagreement after uncertainty and sampling checks can indicate a slow torque, changing mass distribution or a misspecified principal-axis alignment.

Quantify a small external torque before fitting a free-top period

Suppose the laboratory angular momentum has magnitude \(3.0\,{\rm kg\,m^2/s}\) and an approximately constant transverse torque \(0.010\,{\rm N\,m}\) acts for a \(6.0\,{\rm s}\) body period. The accumulated transverse impulse is \(0.060\,{\rm kg\,m^2/s}\), enough to tilt the spatial angular-momentum direction by roughly \(0.020\,{\rm rad}\), or \(1.15^\circ\). Its magnitude changes only to second order if the torque remains perpendicular to the initial momentum. A check using only \(L^2\) could therefore show a small relative error while the invariable plane has moved perceptibly.

Use two marked inertial reference directions to track the spatial momentum vector and plot its Cartesian increments against the integrated measured torque. When gravity acts about a support whose line passes through the mass centre, its torque vanishes ideally, but a small offset can supply just such a transverse disturbance. Reversing the initial spin while retaining the support geometry helps distinguish a fixed parasitic torque from gyro bias. If the spatial direction changes appreciably during one long near-separatrix dwell, fitting a torque-free elliptic period to the complete signal becomes inaccurate even if the early, fast gyro crossings agree with the free model.

Tutorial on a torque-free body's time scales

What period should be measured for the transverse gyro in the worked example? Use the small-parameter expansion \(K=(\pi/2)[1+m/4+9m^2/64+\cdots]\) with \(m=k_e^2\).

Work through the solution

Substitution of \(m=1/12\) gives \(K\approx1.605\) and \(T_b\approx6.42\,{\rm s}\). The third-axis component repeats after about \(3.21\,{\rm s}\), while the second component first reaches its positive maximum at \(1.61\,{\rm s}\). Checking all three features tests the phase relation among the gyros and helps identify a sensor axis swap.

For a body with \(I_1=I_2<I_3\), how do Euler's equations simplify and which feature of the asymmetric example disappears?

Work through the solution

The third body component remains exactly constant, and the first two rotate sinusoidally at body-frame frequency \((I_3-I_1)|\omega_3|/I_1\). The polar angle to fixed angular momentum is constant. A body axis can still precess in space, but the varying torque-free polar nutation caused by distinct transverse inertias disappears. Taking this limit in the low-energy solution gives \(k_e\to0\) consistently.

A gyro experiment reports slow amplitude decay along with fixed spatial angular momentum. Can that arise in a strictly rigid, torque-free model conserving kinetic energy?

Work through the solution

The two rigid-body invariants fix the allowed intersection curve, so a persistent drift between such curves requires an effect beyond that ideal model or a changing calibration. Internal dissipation in a deformable body can decrease kinetic energy while conserving total spatial angular momentum, favouring rotation about the largest-inertia axis. An external torque could instead change angular momentum. Measuring both invariants helps distinguish the two explanations.

Compare principal-axis stability before fitting an asymmetric-top gyro trace.

David Tong derives the Euler equations, Euler angles and free-top motion.

Symplectic transformations, Poisson brackets and the geometry of measurements

Two phase-space plots can enclose the same volume while predicting different responses to an impulse. Derive the stronger condition that makes a change of variables canonical, test it on measured linear maps and use Poisson brackets to propagate observables without solving separately for every coordinate.

Derive the matrix condition from Hamilton's equations

Collect \(n\) canonical positions and momenta into \(z=(q_1,\ldots,q_n,p_1,\ldots,p_n)^T\). Write Hamilton's equations as \(\dot z=J\nabla_z H\), where \(J\) has zero diagonal blocks, identity upper right and minus identity lower left. For a time-independent change \(Z=f(z)\) with Jacobian \(S=\partial Z/\partial z\), the chain rule gives

\[\dot Z=S J S^T\nabla_Z H.\]

To preserve the canonical form for every differentiable Hamiltonian require

\[SJS^T=J.\]

For an invertible square matrix this is equivalent to \(S^TJS=J\). In geometric terms the bilinear antisymmetric form \(\omega(u,v)=u^TJv\) has the same value on any transported pair of tangent vectors.

Taking determinants gives \((\det S)^2=1\), and symplectic maps have positive determinant equal to one. One way to see the sign is to take the top exterior power of the preserved two-form: \(\omega^n\) fixes an oriented volume. In one canonical pair the identity \(S^TJS=(\det S)J\) makes determinant one sufficient. In two or more pairs a single volume condition cannot enforce every entry of the matrix condition. For example in ordering \((q_1,q_2,p_1,p_2)\), scaling by diagonal entries \((2,1,1,1/2)\) preserves four-dimensional volume. But \(\{Q_1,P_1\}=2\) and \(\{Q_2,P_2\}=1/2\), so neither conjugate pair has the required bracket. A volume-preserving histogram test alone would miss this failure.

Identify brackets of observables and what they measure

Define \(\{A,B\}=(\nabla A)^T J\nabla B=\sum_i(A_{q_i}B_{p_i}-A_{p_i}B_{q_i})\). For any explicitly time-dependent observable \(A(z,t)\), differentiation along Hamiltonian trajectories gives

\[\dot A=\{A,H\}+\partial_t A.\]

The bracket is antisymmetric and obeys the product rule. Computing it with the chain rule in the new variables proves that canonical transformations preserve brackets, even between nonlinear observables. Conversely the fundamental brackets \(\{Q_i,P_j\}=\delta_{ij}\), \(\{Q_i,Q_j\}=\{P_i,P_j\}=0\) are precisely the entries of \(SJS^T=J\).

For a particle set \(L_z=xp_y-yp_x\). Its Hamiltonian flow as a generator sends \(x\) to \(x-\varepsilon y\), \(y\) to \(y+\varepsilon x\) and rotates momenta by the same infinitesimal angle. The angular momentum components satisfy \(\{L_x,L_y\}=L_z\) with cyclic permutations. Derive one entry directly for \(L_x=yp_z-zp_y\) and \(L_y=zp_x-xp_z\). The \(z,p_z\) pair contributes \(xp_y-yp_x\), with the other terms zero. Rotations about two different axes generally fail to commute. The resulting commutator has the form of a rotation about the third axis even though each underlying infinitesimal motion preserves every canonical bracket.

Jacobi's identity \(\{A,\{B,C\}\}+\{B,\{C,A\}\}+\{C,\{A,B\}\}=0\) implies that the bracket of two time-independent conserved quantities is conserved under the same Hamiltonian. If the Hamiltonian is invariant under rotations about \(x\) and \(y\), its invariance about \(z\) follows from this relation and \(\{L_x,L_y\}=L_z\). Conservation alone need not make two observables commute. A central force can conserve all three angular momentum components, but their mutual brackets remain nonzero. For independent commuting integrals in an integrability argument one must check the involution condition explicitly.

Construct a canonical map for any smooth point transformation

Suppose new coordinates depend only on old coordinates, \(Q=f(q)\). Preserve the canonical one-form exactly,

\[p^T dq=P^T dQ=P^T Df\,dq.\]

Thus \(p=(Df)^TP\) and \(P=(Df)^{-T}p\). Applying the same coordinate matrix to momenta works only for a restricted case such as an orthogonal change of coordinates. An extension of position must be accompanied by a reciprocal rescaling of its conjugate momentum. For \(Q=q^2\) on \(q>0\), for example, \(P=p/(2q)\). The free Hamiltonian becomes \(2QP^2/m\); even a physically free particle can acquire a coordinate-dependent expression for its kinetic energy.

Polar coordinates demonstrate why a momentum variable need not equal a measured tangential component. In the plane \(x=r\cos\varphi,y=r\sin\varphi\). Substituting into \(p_xdx+p_ydy\) gives

\[p_r=\mathbf p\cdot\hat r,\]
\[p_\varphi=r\,\mathbf p\cdot\hat\varphi=L_z.\]

The physical tangential momentum is \(p_\varphi/r\). At radius \(0.40\,{\rm m}\) and transverse momentum \(0.60\,{\rm kg\,m/s}\), the canonical angular momentum is \(0.24\,{\rm kg\,m^2/s}\). Treating the transverse component itself as conjugate to angle would make \(\{\varphi,p_\varphi^{\rm wrong}\}=1/r\). The coordinate singularity at \(r=0\) also prevents these canonical polar variables from covering the entire original phase space with one chart.

Generate shears and test a numerical map

A type-two generating function \(F_2(q,P,t)\) defines \(p=\partial_qF_2\), \(Q=\partial_P F_2\), and \(K=H+\partial_tF_2\) where the transformation can be locally inverted. The differential \(d(F_2-QP)\) equals \(p\,dq-P\,dQ+(K-H)\,dt\). Thus the actions differ only by an endpoint term; taking another exterior derivative at fixed time gives the symplectic form condition. For \(F_2=qP+sP^2/(2m)\), the map is \(p=P,Q=q+sp/m\), free drift over time \(s\). For \(F_2=qP+sV(q)\), the map is \(P=p-sV'(q),Q=q\), a potential kick. Their composition is canonical for any step size even though an alternating drift and kick need not give the exact trajectory.

Take a unit-mass, unit-frequency oscillator with \(h=0.5\). A kick followed by drift gives \(P=p-hq\), \(Q=q+hP=(1-h^2)q+hp\). Its amplification matrix has determinant one and trace \(2-h^2=1.75\), so its eigenvalues form a unit-modulus conjugate pair. The numerical phase per step is \(\arccos(1-h^2/2)=0.50536\), slightly ahead of the exact phase \(0.50000\). Starting at \(q=1,p=0\), the first step gives \(Q=0.75,P=-0.50\), and physical energy becomes \(0.40625\) instead of \(0.5\). Exact bracket preservation does not imply exact conservation of the original energy at every point. If \(h>2\) the same matrix remains symplectic but has a real expanding and contracting eigenvalue; geometric preservation is compatible with numerical instability.

For a numerical implementation with analytic equations unavailable, approximate the Jacobian of a one-step map at selected states by perturbing one canonical component at a time. Compute \(S^TJS-J\) after nondimensionalising coordinates and momenta in conjugate pairs. Repeat with smaller perturbations and at different integration tolerances. A determinant close to one in four dimensions is insufficient. Testing the transported brackets of one position–momentum pair and one cross-pair can reveal a swapped column or misplaced mass factor before a long simulation exhibits visible energy drift.

Track canonical area for a transported experimental ensemble

A narrow group of trajectories lets an experimenter estimate a tangent map without applying a separate perturbation to each coordinate at the same time. Prepare a small covariance ellipse in one canonical pair \(z=(q,p)\), propagate each member through a known linear Hamiltonian device, and compute \(\Sigma_{\rm out}=S\Sigma_{\rm in}S^T\). The ellipse area is proportional to \(\sqrt{\det\Sigma}\), and a symplectic map in one pair preserves that area. Its projections can grow or contract individually: a focusing device can reduce position spread while increasing momentum spread or correlation. Measuring only the two marginal widths ignores their covariance and can falsely suggest area growth.

For a free unit-mass drift of duration two in scaled units,

\[S=\begin{pmatrix}1&2\\0&1\end{pmatrix}.\]

Start with \(\Sigma=\mathrm{diag}(1,1)\). The outgoing covariance has entries \(\Sigma_{qq}=5,\Sigma_{pp}=1,\Sigma_{qp}=2\). The apparent rectangle of marginal standard deviations grows by \(\sqrt5\), yet the determinant remains \(5-4=1\). A plot that suppresses the correlation has discarded exactly the information needed for the area test. Noise in the two channels also contributes to observed covariance, so calibrate sensor variances independently before attributing a small apparent growth to physical dissipation or numerical smoothing.

For two pairs it is possible for a perfectly canonical coupling to exchange projected emittances. Take a uniform rotation of the two positions and the same rotation of their conjugate momenta. It is canonical by construction. If the two incoming pairs have different covariance areas, a ninety-degree rotation swaps them completely; at forty-five degrees each outgoing projected pair contains a mixture. The full four-dimensional symplectic structure remains intact. An experimentally available two-dimensional marginal then tests only part of the dynamics. Counting phase-space points in a volume and measuring cross-pair brackets answer different questions about a strongly coupled system.

The eigenvalues of \(J\Sigma\) are invariant under the linear canonical covariance transport. Indeed \(J S=S^{-T}J\) for symplectic \(S\), so \(J\Sigma_{\rm out}=S^{-T}(J\Sigma_{\rm in})S^T\), a similarity transformation. For a positive covariance these eigenvalues occur as conjugate imaginary pairs, and their positive magnitudes give symplectic covariance scales. This algebraic test can distinguish loss of correlations in a fitted transfer matrix from actual exchange between pairs. It assumes linear propagation of the ensemble. A nonlinear canonical map can stretch a finite ellipse into a curved shape whose covariance determinant changes while its exact enclosed area remains preserved.

Use generating functions to find a moving normal-mode basis

Consider a two-dimensional isotropic oscillator and rotate its coordinate axes by a prescribed time-dependent angle \(\alpha(t)\). Let \(Q=R(\alpha)^Tq\), \(P=R(\alpha)^Tp\) for a proper planar rotation. At any fixed time the map is orthogonal and symplectic. To derive the Hamiltonian in these moving variables, use \(F_2(q,P,t)=q^TR(\alpha)P\). Its time derivative at fixed old \(q\) and new \(P\) is \(-\dot\alpha(Q_xP_y-Q_yP_x)\), with the sign corresponding to axes rotating counterclockwise in the laboratory. The transformed Hamiltonian is therefore

\[K=H_0(Q,P)-\dot\alpha L_z.\]

For constant rotation rate and an isotropic potential the new Hamiltonian has no explicit time dependence. Its value is the combination energy minus rotation rate times angular momentum encountered in the Noether argument. Hamilton's equations now include \(-\dot\alpha\,\hat z\times Q\) in \(\dot Q\) relative to the rotated physical velocity. Thus the transformed canonical momentum \(P\) equals the rotated laboratory momentum rather than \(m\dot Q\). Confusing the two yields incorrect initial conditions for a rotating-frame simulation even if the transformation matrix at the starting instant is the identity.

Take \(m=1.0\,{\rm kg}\), a laboratory point initially at \(q=(0.20,0)\,{\rm m}\) with \(p=(0,0.30)\,{\rm kg\,m/s}\), and axes initially aligned but rotating at \(2.0\,{\rm rad/s}\). The canonical \(P_y\) is \(0.30\,{\rm kg\,m/s}\). The derivative of the rotating-frame coordinate is

\[0.30-2.0(0.20)=-0.10\,{\rm m/s}.\]

It moves in the negative rotating-frame \(y\) direction while its laboratory velocity points positive \(y\). The angular momentum is \(0.060\,{\rm kg\,m^2/s}\), so \(K\) lies \(0.120\,{\rm J}\) below the laboratory Hamiltonian. Both position–momentum transformations preserve brackets; the extra term derives from the moving basis, not a failure of canonical geometry.

An oscillator with two nearly equal natural frequencies provides another reason to track the generating function. If one diagonalises a slowly changing stiffness matrix at each time and keeps only the instantaneous diagonal frequencies, the omitted rotation of the eigenvectors couples the nominal modes through a term of this type. When the eigendirections turn rapidly near a degeneracy, the coupling can be appreciable even if both eigenvalues change little. Measuring the orientation as well as the eigenfrequencies allows the size of this effect to be estimated before fitting amplitude transfer to a spurious dissipation term.

Compare exact phase transport with a dissipative fit

A damped oscillator with \(m\ddot q+c\dot q+kq=0\) has equations \(\dot q=p/m\), \(\dot p=-kq-cp/m\). In the physical \((q,p)\) plane their divergence is \(-c/m\). A small material phase-space area therefore contracts as \(A(t)=A(0)e^{-ct/m}\). No time-independent canonical coordinate change on the same two-dimensional isolated phase space can turn that physical contraction into a Hamiltonian flow preserving area. This conclusion concerns the reduced dissipative description. An expanded system including the degrees of freedom that absorb energy can still be Hamiltonian.

For \(c/m=0.40\,{\rm s^{-1}}\), a pair of independent initial perturbations spanning area one in calibrated coordinates spans only \(0.449\) after two seconds. A numerical step of \(0.10\,{\rm s}\) fitted to that exact map should have determinant \(e^{-0.04}=0.9608\). Forcing its determinant to one during system identification would remove a real dissipative measurement. Conversely a conservative oscillator propagated by forward Euler at matched units and \(h=0.10\) has amplification determinant \(1+h^2=1.01\), corresponding to a spurious area growth. A geometric diagnostic is interpretable only after deciding what physical system and coordinate pair were actually observed.

The pair \(q,v\) differs from canonical \(q,p\) by a constant mass scaling for an ordinary single particle. In one pair with constant mass that scaling does not change a measured same-coordinate before-and-after determinant. For a position-dependent mass, constrained coordinates with a varying metric, or explicit time-dependent changes of measurement scale, volume in raw position–velocity coordinates need not equal canonical volume. For example a free particle expressed in \(Q=q^2\) has canonical momentum \(P=m\dot Q/(4Q)\). A detector estimating phase area in \((Q,\dot Q)\) without the \(Q\)-dependent factor can infer contraction or expansion even when canonical phase area is exactly conserved.

Compute a bracket of mechanical momenta and recover the Lorentz force

For a charge \(e\) in a prescribed vector potential write mechanical momentum \(\boldsymbol\pi=\mathbf p-e\mathbf A(\mathbf q,t)\). The canonical brackets are \(\{q_i,p_j\}=\delta_{ij}\), but the measured mechanical components satisfy

\[\{\pi_i,\pi_j\}=e(\partial_i A_j-\partial_j A_i)=e\epsilon_{ijk}B_k.\]

At nonzero magnetic field they are not simultaneously canonical momenta conjugate to the Cartesian positions. This result is gauge invariant because it involves only the curl of the vector potential. It offers a physical example where replacing canonical by measured momenta in a software interface changes the matrix of fundamental brackets.

With \(H=\pi^2/(2m)+e\phi\), the time derivative is

\[\dot\pi_i=\{\pi_i,H\}+\partial_t\pi_i.\]

The kinetic-energy bracket contributes \((e/m)(\boldsymbol\pi\times\mathbf B)_i\); the scalar potential contributes \(-e\partial_i\phi\); and the explicit derivative supplies \(-e\partial_t A_i\). Their sum is \(e[\mathbf E+(\boldsymbol\pi/m)\times\mathbf B]_i\). Dropping the last term would make time-dependent electric acceleration depend on gauge. In a static uniform \(B_z\), the transverse mechanical momenta rotate although their energy is constant. Canonical bracket structure therefore contains observable information about the force even before integrating a trajectory.

A useful finite-difference test sets \(A_y=B x\) and samples the map from canonical to mechanical variables around one state. The measured bracket \(\{\pi_x,\pi_y\}=eB\) should be constant in space. A code that insists on zero will attribute the entire magnetic response to an erroneous Hamiltonian gradient. A code using mechanical variables legitimately can instead use their noncanonical bracket matrix; its equations must then preserve the correct transformed structure, not the original constant \(J\). Testing the resulting acceleration at zero velocity and at a transverse velocity distinguishes electric and magnetic terms and catches sign errors in the antisymmetric entries.

Derive a reversible drift–kick–drift scheme and its measured phase

For \(H=p^2/(2m)+V(q)\), exact kinetic flow for a duration \(t\) is \(D_t:(q,p)\mapsto(q+tp/m,p)\). Exact potential flow is \(K_t:(q,p)\mapsto(q,p-tV'(q))\). Each is canonical. Compose \(D_{h/2}K_hD_{h/2}\) in chronological order. Applying the same construction with \(-h\) undoes each substep in reverse order, so the full map is time reversible. Symmetry eliminates the even local-error powers in the effective generator, giving a second-order method for smooth \(V\). The individual Hamiltonian pieces need not commute; if they did, the split map would be exact at any step.

For a unit oscillator, carrying out the algebra gives

\[Q=(1-h^2/2)q+h(1-h^2/4)p,\]
\[P=-h q+(1-h^2/2)p.\]

Verify directly that the determinant is one. The trace gives the same step angle \(2\arcsin(h/2)\) as the first-order kick–drift matrix in its stable range, but the new off-diagonal coefficients make the amplitude errors and time reversal different. Starting from \(q=1,p=0\) at \(h=0.50\), one gets \(Q=0.875,P=-0.50\), energy \(0.5078125\). A negative step returns to the initial values apart from roundoff. Passing this one reversal test says nothing about absolute phase accumulated over hundreds of periods.

The map preserves \(q^2+(1-h^2/4)p^2\) exactly for the harmonic test. At \(h=0.5\) the coefficient of \(p^2\) is \(0.9375\), so the preserved ellipses differ slightly from the circles of physical energy. Their reversible oscillation in physical energy is bounded for \(|h|<2\). The per-step phase is about \(0.50536\) at this step, giving a phase gain \(0.536\) radians after one hundred steps. As \(h\) is halved while physical integration time stays fixed, the overall phase error falls approximately by four. Measuring an energy oscillation, a reversal residual and a return time therefore probes three different properties of one apparently simple map.

Compare a symplectic map with the phase of a physical orbit

Change the step of the midpoint update. Distinguish preservation of phase-space structure from agreement of the measured oscillation frequency.

Relate the order of two pulses to their Poisson bracket

A canonical transformation close to identity can be built by applying two brief Hamiltonian operations in different orders. Take one free drift and one potential kick, each of short duration \(s\). A drift then a kick gives

\[q'=q+sp/m,\ p'=p-sV'(q+sp/m).\]

A kick then a drift gives

\[p''=p-sV'(q),\ q''=q+s[p-sV'(q)]/m.\]

To second order their coordinate difference is \(q'-q''=s^2V'(q)/m\); their momentum difference is \(p'-p''=-s^2pV''(q)/m+O(s^3)\). The difference vector equals the Hamiltonian vector generated by \(G=pV'(q)/m=\{V,T\}\), multiplied by \(s^2\). The bracket sets the leading effect of reversing the operation order.

For the harmonic oscillator at \(q=1,p=0,m=k=1\) with \(s=0.10\), a drift then kick gives \((1,-0.10)\); kick then drift gives \((0.99,-0.10)\). The coordinate difference \(0.01\) equals \(s^2V'/m\), and the leading momentum difference is zero for this initial condition. At \(q=0,p=1\), the complementary experiment gives a momentum difference of \(-0.01\) and no coordinate difference. Running both initial states tests the two components of the bracket-generated perturbation. A single apparently correct coordinate update would not detect a sign swap in the other component.

An experimental implementation might use a short force pulse as a kick and free propagation between pulses. The pulse must be short enough that motion during the kick is negligible; otherwise its own kinetic drift enters the comparison at the same order as the desired bracket. Extrapolate the measured difference divided by \(s^2\) to small \(s\), and separately measure acquisition noise, which grows in relative importance under that division. Alternating the pulse order cancels many static calibration shifts but does not magically remove timing offsets correlated with the order. Treat the small bracket signal as a physical difference between two specified protocols.

A transformation preserves all coordinate–momentum brackets but a time integration on the transformed variables produces the wrong laboratory trajectory. Can the bracket check alone identify the error?

Work through the solution

Canonical coordinates guarantee the form of Hamilton's equations. Their actual trajectories still require the correct transformed Hamiltonian, including explicit time dependence of the generating function, consistent initial momenta and a sufficiently accurate integrator. Transform an independently known initial state, compare the initial velocity and acceleration of a measurable coordinate, and follow both descriptions back to the same laboratory frame. A bracket test can establish that a change of variables is admissible without establishing that the correct energy function or physical input was attached to it.

Set compatible units before inspecting a symplectic residual

Suppose position is recorded in millimetres and momentum in kilogram metres per second. Scaling each numerical coordinate to unit variance is convenient for fitting a matrix, but independent scaling of each coordinate and momentum can change the bracket matrix from its textbook form. If \(z'=Dz\) with diagonal \(D\), then \(J'=DJD^T\). For one pair this multiplies its bracket by the product of the position and momentum scale factors. In two pairs these factors can differ. A residual computed against the original \(J\) can flag a harmless unit change or, conversely, mask an error if scales happen to compensate.

Choose a characteristic length \(q_0\), momentum \(p_0\), and common action scale \(q_0p_0\) for each pair if the dimensionless chart is to have a common symplectic scale. Otherwise carry the transformed bracket explicitly through the test. With two oscillators of different physical units, a canonical nondimensionalisation may balance the dynamics better than using the same numerical length scale for both. Report the dimensional transformation along with any determinant or defect norm so another calculation can reconstruct which tangent vectors and measurement units were actually compared.

Tutorial on canonical tests

In two degrees of freedom try \(Q_1=q_1,\ Q_2=q_2,\ P_1=p_1+\alpha q_2,\ P_2=p_2\). Is this map canonical? What is the simplest modification that restores the condition?

Work through the solution

The fundamental mixed momentum bracket is \(\{P_1,P_2\}=\alpha\). Restore zero by also taking \(P_2=p_2+\alpha q_1\), since then the extra term \(\{p_1,\alpha q_1\}=-\alpha\) cancels. The added momentum vector is now the gradient of the scalar \(\alpha q_1q_2\), whose derivative matrix is symmetric. Both candidate maps preserve volume, reinforcing why volume alone cannot decide.

For the unit oscillator kick–drift map find a quadratic quantity it preserves exactly while its physical energy changes.

Work through the solution

Direct substitution gives \(Q^2+P^2-hQP=q^2+p^2-hqp\) for the kick–drift convention above. Multiplying by one half gives a positive modified quadratic invariant when \(|h|<2\). The first step at \(h=0.5\) gives \(0.75^2+(-0.50)^2-0.5(0.75)(-0.50)=1.0\), equal to its initial value. At \(h=2\) the quadratic becomes degenerate and beyond it no longer bounds the motion.

A time-dependent momentum shift is generated by \(F_2=qP-a(t)q\). For a free physical particle find the transformed Hamiltonian and verify constant physical momentum.

Work through the solution

The transformation gives

\[p=P-a,\ Q=q,\]
\[K=(P-a)^2/(2m)-\dot a\,Q.\]

Hamilton's equation gives \(\dot P=+\dot a\), hence \(\dot p=0\). Omitting the explicit \(\partial_tF_2\) term would predict constant \(P\) and a spurious acceleration of the original free particle. This test uses an observable whose physical behaviour is already fixed independently.

Compare generated canonical changes and numerical determinant tests.

David Tong develops canonical transformations and Poisson brackets in Hamiltonian dynamics.

Canonical perturbations, small denominators and resonant capture

A weak periodic force can produce a bounded ripple on most trajectories and a large change on a narrow band of initial conditions. Derive the averaging transformation away from resonance, construct the slow resonant dynamics where that transformation fails, and estimate the physically observable width and time scale of a resonance.

Separate the unperturbed clock from a weak correction

Take an integrable Hamiltonian \(H(I,\theta,t)=H_0(I)+\epsilon H_1(I,\theta,t)\) in action–angle variables. With \(\epsilon=0\), actions are constants and angles advance at \(\boldsymbol\omega(I)=\partial_I H_0\). A perturbation with Fourier component \(h_{\mathbf n}(I)\cos(\mathbf n\cdot\theta-\Omega t)\) drives action changes proportional to its sine. If the phase sweeps quickly through all angles, positive and negative contributions largely cancel. If \(\mathbf n\cdot\boldsymbol\omega-\Omega\) is small, the perturbation acts with a coherent sign over a long time. We want a transformation that makes both statements quantitative.

Use a near-identity type-two generating function \(F_2(\theta,J,t)=\theta\cdot J+\epsilon S_1(\theta,J,t)\). Old actions are \(I=J+\epsilon\partial_\theta S_1\), and new angles are \(\psi=\theta+\epsilon\partial_JS_1\). Expand \(H_0(I)=H_0(J)+\epsilon\boldsymbol\omega(J)\cdot\partial_\theta S_1+O(\epsilon^2)\). At first order the new Hamiltonian is \(K=H_0(J)+\epsilon[H_1+\partial_t S_1+\boldsymbol\omega\cdot\partial_\theta S_1]\). Replacing old by new angles inside that bracket produces only higher-order errors. To leave the averaged part \(\langle H_1\rangle\), solve the homological equation

\[(\partial_t+\boldsymbol\omega\cdot\partial_\theta)S_1=-\big(H_1-\langle H_1\rangle\big).\]

For an oscillating cosine with detuning \(\Delta=\mathbf n\cdot\boldsymbol\omega-\Omega\), choose \(S_1=-h_{\mathbf n}\sin(\mathbf n\cdot\theta-\Omega t)/\Delta\). The transformation is useful while the resulting action displacement \(\epsilon|\partial_\theta S_1|\) is small on the relevant action scale and the derivatives entering the angle transformation remain controlled. Small \(\epsilon\) alone is insufficient if \(\Delta\) is even smaller. A singular denominator says that this choice to remove the harmonic is unsuitable, not that the underlying mechanical force becomes infinite.

Obtain a nonlinear frequency shift from the angle average

A free oscillator with mass \(m\), small-amplitude frequency \(\omega_0\), and quartic correction \(\beta q^4/4\) has unperturbed coordinates \(q=\sqrt{2I/(m\omega_0)}\sin\theta\). Substituting gives the correction \(\beta I^2\sin^4\theta/(m^2\omega_0^2)\). Since \(\langle\sin^4\theta\rangle=3/8\), the first-order averaged Hamiltonian is \(K=\omega_0J+3\beta J^2/(8m^2\omega_0^2)\). Its derivative gives

\[\omega=\omega_0+3\beta J/(4m^2\omega_0^2).\]

Expressing \(J\simeq m\omega_0 A^2/2\) in terms of leading oscillation amplitude yields the frequency shift \(3\beta A^2/(8m\omega_0)\). Oscillatory harmonics at \(2\theta,4\theta\) change the waveform but do not contribute directly to this averaged first-order clock.

For \(m=0.20\,{\rm kg}\), \(\omega_0=10.0\,{\rm s^{-1}}\), \(\beta=80\,{\rm N/m^3}\), and \(A=0.10\,{\rm m}\), the predicted shift is \(0.150\,{\rm s^{-1}}\), about \(1.5\%\). The nonlinear-to-linear force ratio at maximum displacement is \(\beta A^2/(m\omega_0^2)=0.040\), consistent with the expansion. At twice the amplitude the shift quadruples and the expansion parameter grows to \(0.16\). Measuring period over several amplitudes and plotting the frequency against \(A^2\) tests both the slope and the onset of curvature from higher orders. A positive \(\beta\) stiffens the spring; a negative quartic term is only a local approximation unless higher powers restore global confinement.

Solve the slow motion in the resonant frame

Consider a rotor \(H=I^2/(2{\cal I})-\epsilon V\cos(\theta-\Omega t)\), where \({\cal I}\) is moment of inertia and \(\epsilon V>0\) has energy units. Choose \(F_2=(\theta-\Omega t)P\), so \(P=I\),

\[\phi=\theta-\Omega t,\]
\[K=P^2/(2{\cal I})-\Omega P-\epsilon V\cos\phi.\]

Completing the square gives \(K=(P-P_*)^2/(2{\cal I})-\epsilon V\cos\phi+\mathrm{constant}\) with \(P_*={\cal I}\Omega\). This is an exact pendulum in the rotating frame. It retains the resonant cosine instead of attempting to average it away. Phase locking means libration of \(\phi\) around zero; outside its separatrix the relative phase circulates.

The stable fixed point has \(P=P_*,\phi=0\); its small libration frequency is

\[\omega_{\rm lib}=\sqrt{\epsilon V/{\cal I}}.\]

The saddle at \(\phi=\pi\) has energy \(+\epsilon V\) relative to the same constant. At \(\phi=0\) that energy is reached for \(|P-P_*|=2\sqrt{{\cal I}\epsilon V}\), the resonance half-width in action. Its complete width is twice that number. For \({\cal I}=0.050\,{\rm kg\,m^2}\), \(\Omega=8.0\,{\rm s^{-1}}\) and \(\epsilon V=0.0020\,{\rm J}\), the central action is \(0.40\,{\rm kg\,m^2/s}\); the half-width is \(0.020\,{\rm kg\,m^2/s}\) and small libration period \(31.4\,{\rm s}\). The rotor makes many laboratory turns while its slow relative phase completes one libration.

An initial action inside the quoted half-width is necessary but not sufficient for trapping at every phase. At \(\phi=\pi\), any nonzero \(P-P_*\) is above the saddle energy. Compute the actual rotating-frame energy of the initial state and compare with the saddle. For \(\phi=0,P=0.415\), the kinetic detuning energy is \(0.00225\,{\rm J}\); subtracting \(0.0020\,{\rm J}\) gives \(0.00025\,{\rm J}\), below the saddle. With the same action at \(\phi=\pi\) the value is \(0.00425\,{\rm J}\), above the saddle. Selecting trajectories by mean frequency alone can therefore mix trapped and circulating populations.

Retain a resonant harmonic in a general integrable system

For one action with \(H_0'(I_*)=\Omega\), use the rotating frame and expand \(H_0(I)-\Omega I\) about \(I_*\). The linear term vanishes, leaving \(H_0''(I_*)(I-I_*)^2/2\). Retain the slowly varying resonant cosine and average the rapidly varying harmonics. When \(H_0''\ne0\), this gives the same pendulum normal form with an effective inertia and possibly a reversed sign of the stable phase. The action half-width scales as \(2\sqrt{\epsilon|V/H_0''|}\). Thus a weak perturbation can influence a band of width proportional to \(\sqrt\epsilon\), parametrically larger than a typical nonresonant action ripple proportional to \(\epsilon\).

For an exactly harmonic oscillator \(H_0=\omega_0 I\) the curvature vanishes. One cannot replace \(H_0''\) with zero in the width formula. An exactly tuned additive drive in a linear oscillator instead produces secular growth until damping, detuning, nonlinearity or a finite drive interval intervenes. In multiple actions, one first transforms to the resonant phase \(\mathbf n\cdot\theta-\Omega t\) and complementary angles, preserving the canonical one-form. Other near-resonances can prevent isolation of a single pendulum. Apparent chaos inferred from a short irregular time trace alone needs additional tests, including resolved phase portraits, convergence under time refinement and identification of competing resonances.

Calculate a phase-locking threshold for a drive that sweeps in frequency

The exact rotating rotor also allows a tractable time-dependent drive frequency. Write the pattern angle as \(\alpha(t)\), with \(\Omega(t)=\dot\alpha\). In its frame \(K=P^2/(2{\cal I})-\Omega(t)P-\epsilon V\cos\phi\). Hamilton's equations give

\[\dot\phi=P/{\cal I}-\Omega(t),\]
\[\dot P=-\epsilon V\sin\phi.\]

Define the detuning momentum \(p=P-{\cal I}\Omega(t)\). Even when \(\dot\phi=0\) at one instant, phase locking throughout a ramp requires \(\dot p=0\) and hence \(\sin\phi_0=-{\cal I}\dot\Omega/(\epsilon V)\). The restoring torque must be sufficient to accelerate the rotor along with the changing pattern.

For constant \(\dot\Omega\) and \(|{\cal I}\dot\Omega|<\epsilon V\), a stable locked phase with \(\cos\phi_0>0\) exists. Perturbing the phase by \(\eta\) gives \(\ddot\eta+(\epsilon V/{\cal I})\cos\phi_0\,\eta=0\), so the libration softens as the required torque approaches its maximum. At threshold the stable and unstable stationary phases meet. Above it no fixed phase can provide the torque needed by the ramp. The mere existence of a stable locked solution still does not imply that an arbitrary initial phase and momentum will be captured in it. In a conservative system initial phase-space location and separatrix crossing are essential.

With the previous \({\cal I}=0.050\,{\rm kg\,m^2}\) and \(\epsilon V=0.0020\,{\rm J}\), the largest trackable constant acceleration in this model is \(0.040\,{\rm rad/s^2}\). At half that value the stable phase lags by \(\pi/6\), and the small relative-phase frequency is

\[0.20\sqrt{\cos(\pi/6)}=0.186\,{\rm s^{-1}}.\]

Increasing the drive frequency by \(1.0\,{\rm rad/s}\) at this rate takes \(50\,{\rm s}\), only about one and a half libration periods. Adiabatic capture estimates that additionally require many libration periods may therefore be unconvincing even though the elementary torque threshold is satisfied. A measured lag versus sweep rate assesses the static torque condition, while a full phase trajectory tests dynamic capture.

The same equations admit a tilted effective washboard potential in the accelerating frame, \(U_{\rm rel}=-\epsilon V\cos\phi+{\cal I}\dot\Omega\,\phi\), as long as \(\dot\Omega\) is constant. Its potential difference over a whole \(2\pi\) turn is nonzero, so unwrap the relative phase before using its energy. Mapping every phase back to \([-\pi,\pi)\) hides this difference and produces artificial jumps in the inferred energy. In the original variables the physical motor does work. There is no contradiction between a conserved local accelerating-frame energy for a constant ramp and the changing laboratory kinetic energy of a locked rotor.

Derive secular energy exchange in a pair of weakly coupled oscillators

Take two equal masses \(m\) with individual natural frequency \(\omega_0\) and potential coupling \(k_c(q_1-q_2)^2/2\). The normal coordinates \(Q_\pm=(q_1\pm q_2)/\sqrt2\) have frequencies \(\omega_+=\omega_0\),

\[\omega_-=\sqrt{\omega_0^2+2k_c/m}.\]

Release mass one at displacement \(A\) with both velocities and \(q_2\) initially zero. Superposition gives

\[q_1=A[\cos\omega_+ t+\cos\omega_-t]/2,\]
\[q_2=A[\cos\omega_+t-\cos\omega_-t]/2.\]

The slowly varying difference phase transfers oscillation amplitude between the masses over a time much longer than their rapid periods.

For \(\omega_0=10\,{\rm s^{-1}}\) and \(k_c/m=1.0\,{\rm s^{-2}}\), the exact separation is

\[\sqrt{102}-10=0.0995\,{\rm s^{-1}}.\]

The first near-complete exchange occurs at \(t=\pi/|\omega_--\omega_+|\approx31.6\,{\rm s}\). Over a single fast period the displacements can look almost like uncoupled oscillations, despite large later energy redistribution. Perturbing two isolated oscillators while trying to average the coupling over both independent fast angles would discard a term depending on their slow difference phase. Retaining the resonant combination predicts the exchange; diagonalising the linear model supplies a reference solution for that approximation.

Detune the uncoupled springs so their natural frequencies have a separation large compared with \(k_c/(m\omega_0)\). The coupled normal modes then align more closely with the original oscillators, and the energy exchange cannot reach its former depth. In a nonlinear problem the individual frequencies also depend on action, so the energy transfer can detune itself. To interpret an observed beating envelope, measure both normal frequencies and relative phases. An apparent loss of amplitude in oscillator one can be energy stored in oscillator two, distinguishable from damping through recovery at later times and a balance of the total Hamiltonian.

Estimate the accuracy of averaging over a finite observation time

For a nonresonant perturbation with initially slow action change, one can integrate the first-order drive along the unperturbed trajectory over the actual observation window instead of assuming an infinite-time average. For \(H_1=A\cos(\theta-\Omega t)\), \(\dot I=A\sin(\Delta t+\phi_0)\) to leading order with \(\Delta=\omega_0-\Omega\). Thus \(\Delta I(T)=A[\cos\phi_0-\cos(\Delta T+\phi_0)]/\Delta\). For \(\Delta\ne0\) its absolute value remains at most \(2|A/\Delta|\), and its largest possible value over initial phase is \(2|A\sin(\Delta T/2)/\Delta|\). For \(\Delta\to0\) the phase-dependent result tends to \(AT\sin\phi_0\). The finite-time expression is regular right at resonance and shows exactly when a secular term emerges.

For \(A=0.001\,{\rm J}\), \(T=10\,{\rm s}\) and \(\Delta=0.20\,{\rm s^{-1}}\), the maximum-amplitude change in action over initial phase is \(0.00841\,{\rm J\,s}\). At zero detuning the leading largest change is \(0.0100\,{\rm J\,s}\), only modestly larger because this observation window resolves a frequency band of order \(1/T\). For \(\Delta=2\pi/T\) the change after exactly \(T\) vanishes, although the action swung during the interval. A final-minus-initial measurement alone can mistake a completed nonresonant excursion for an entirely unperturbed trajectory. Recording at an additional end time tests that cancellation.

At leading order a force of finite duration produces this sine-over-detuning envelope even in a linear system. It is an observation-time bandwidth, distinct from the dynamical resonance width proportional to \(\sqrt{\epsilon}\) in the nonlinear rotor. Repeat the experiment with doubled drive duration at fixed amplitude. Features that narrow inversely with the duration are evidence of finite-time spectral selection. A persistent bounded island in a stroboscopic phase portrait, with the predicted amplitude-dependent width and libration frequency, is evidence of the phase-locking dynamics. If drive amplitude is large enough to change the natural frequency appreciably over the interval, the unperturbed phase-integration formula ceases to describe the trajectory.

Construct a stroboscopic section with the right clock

For a time-periodic Hamiltonian sample \((I,\theta)\) every period of the external drive at a fixed drive phase. This creates a two-dimensional area-preserving map for one periodically forced degree of freedom. A phase-locked solution can become a fixed point of this map, and librating trajectories around it can form an island. Sampling at each crossing of a moving coordinate threshold instead can produce a different return map and a different phase weight. A return plot can look irregular simply because the drive phase was not held fixed at the samples.

Consider a rigid rotor commanded at \(\Omega=8\,{\rm s^{-1}}\). Its drive period is

\[2\pi/8=0.7854\,{\rm s}.\]

An acquisition system sampling nominally every \(0.7900\,{\rm s}\) accumulates approximately \(8(0.7900-0.7854)=0.0368\,{\rm rad}\) of phase error per sample. After one hundred samples the sampling phase has moved about \(3.68\,{\rm rad}\), enough to smear a narrow island across a substantial fraction of the plot. Interpolating trajectories to timestamps from a synchronised drive encoder controls that effect. Keep unwrapped relative phase as a separate channel to count actual slips.

A numerical area test on the stroboscopic map should use canonical action and angle or an equivalent canonical coordinate pair. A scatter plot of polar angle against angular velocity for a state-dependent inertia can distort area. Changes of pixel density, trajectory dwell time and resolution near the separatrix further affect visual appearance. To identify a resonance quantitatively, measure the action extent at the stable phase, the local libration period and the saddle crossing energy on independently prepared trajectories. Agreement among those three observations is less easily mimicked by a sampling artefact than the existence of a visually closed loop alone.

Recover a frequency shift by removing a secular term

Canonical averaging yields a frequency correction for the quartic oscillator. An independent derivation makes clear why a small difference in frequency can become a large trajectory error at long times. Write the equation as \(\ddot q+\omega_0^2q+(\beta/m)q^3=0\). Put \(q=A x\), \(\tau=\omega t\), \(\lambda=\beta A^2/(m\omega_0^2)\) and seek \(\omega=\omega_0(1+c\lambda+\cdots)\),

\[x=x_0+\lambda x_1+\cdots.\]

Leading initial conditions \(x(0)=1,x'(0)=0\) give

\[x_0=\cos\tau.\]

At first order one finds

\[x_1''+x_1=2c\cos\tau-\cos^3\tau.\]

Using \(\cos^3\tau=(3\cos\tau+\cos3\tau)/4\), the right-hand side contains a term \((2c-3/4)\cos\tau\) resonant with the leading motion. Choosing \(c=3/8\) removes the forcing that would otherwise generate a term proportional to \(\tau\sin\tau\). The frequency then agrees with the action-angle calculation. The remaining particular solution is \(\cos3\tau/32\). Including the homogeneous term required by \(x_1(0)=x_1'(0)=0\) gives

\[x_1=(\cos3\tau-\cos\tau)/32.\]

This separates the leading frequency shift from an actual third-harmonic distortion of the orbit. Fitting only frequency and overlooking the small third harmonic cannot generally reproduce a precise waveform.

In the earlier example \(\lambda=0.040\), so the displacement amplitude at the third harmonic is \(A\lambda/32=0.125\,{\rm mm}\) at \(A=0.10\,{\rm m}\). The frequency shift is about \(0.15\,{\rm s^{-1}}\). After twenty seconds the uncorrected harmonic prediction is nearly three radians out of phase, far larger than the instantaneous third-harmonic displacement. A small-amplitude correction to the right-hand side can therefore cause an order-one error in the long-time phase. Measuring both the third harmonic and frequency gives two independent checks of the same inferred quartic stiffness. A drive electronics harmonic can mimic the former without producing the amplitude-dependent free-oscillation frequency.

Inspect growth on a parametrically driven orbit

Move the drive away from resonance and examine stroboscopic growth. Determine whether changing phase, amplitude or forcing frequency is responsible.

Test overlap of nearby resonances without declaring chaos from one curve

Take a rotor driven by two weak periodic patterns with distinct angular speeds \(\Omega_1,\Omega_2\). For an isolated pattern \(j\), the earlier calculation gives a resonant centre \(P_j={\cal I}\Omega_j\) and half-width \(\Delta P_j=2\sqrt{{\cal I}\epsilon V_j}\). Comparing the sum of estimated half-widths with the separation \(|P_2-P_1|\) is a practical indication of when the isolated-island approximation may fail. It does not by itself prove every trajectory between the resonances is chaotic. The relative phases, other harmonics and the actual time dependence determine the global structure.

For the same inertia \(0.050\,{\rm kg\,m^2}\), choose \(\Omega_1=8.0\,{\rm s^{-1}}\), \(\Omega_2=8.6\,{\rm s^{-1}}\), and forcing energies \(0.0020\) and \(0.00050\,{\rm J}\). The centres differ by \(0.030\,{\rm kg\,m^2/s}\); the individual half-widths are \(0.020\) and \(0.010\,{\rm kg\,m^2/s}\). Their nominal intervals just touch. Halving both forcing energies shrinks both widths by \(1/\sqrt2\), leaving a gap. Doubling both makes the estimated intervals overlap. The speed difference corresponds to a beat period \(2\pi/0.6=10.47\,{\rm s}\), another clock that must be resolved when recording nearby motion.

Transforming into the first rotating frame makes the first perturbation stationary and leaves the second with time dependence proportional to \(\cos[\phi-(\Omega_2-\Omega_1)t]\). A stroboscopic map sampled at the beat period is therefore more informative than a map with unsynchronised lab sampling. Prepare nearby initial conditions, compare their separation over multiple beat periods, and repeat with a refined symplectic time step and a modestly varied observation interval. Short-term stretching near an ordinary hyperbolic fixed point is possible even in a fully integrable pendulum. Evidence for widespread chaotic transport requires more than the growth of one separation during one saddle passage.

A student finds an apparent threshold by plotting whether the momentum ever crosses the midpoint between the two resonant centres. What additional evidence distinguishes irregular transport from a single large regular libration?

Work through the solution

A regular libration may cross that midpoint repeatedly inside one island, especially near its separatrix. Plot return pairs at a fixed beat phase, check for closed invariant curves or broader area filling, and track unwrapped relative phase to see whether it slips irregularly between the two patterns. Vary initial conditions and compare the statistical trend with the isolated-width estimate. Confirm that energy balance in the driven system includes explicit work by both patterns; a drift of the autonomous single-pattern energy is expected once the second drive is present.

Use phase reversal to isolate the resonant action transfer

For an initially weak sinusoidal drive, prepare two otherwise identical trajectories with initial relative phases differing by \(\pi\). Their leading changes of action during a short resonant pulse have opposite signs, since \(\dot I\) is proportional to \(\sin\phi_0\). Half the difference isolates that phase-sensitive term, whereas half the sum can reveal phase-independent heating or higher-order effects. With drive coefficient \(A=0.001\,{\rm J}\), duration \(2.0\,{\rm s}\) and initial phases \(\pm\pi/2\), short-pulse first-order predictions differ by \(0.0040\,{\rm J\,s}\). The test requires that detuning and nonlinear phase drift over the pulse remain small.

Perform the comparison at several durations. A linear growth of the early phase-sensitive difference is compatible with coherent transfer. Subsequent saturation, reversal or a slow oscillation can reflect the resonant pendulum dynamics once the action shift changes the phase. Friction can also saturate a response, but it produces mechanical energy loss and typically modifies the two phase preparations in different ways from conservative trapping. Measuring work from the applied torque and the full phase history adds the independent information needed to separate those explanations. A final amplitude alone gives neither the sign of the action transfer nor its phase dependence.

Tutorial on weak forcing

Far from resonance let a one-mode perturbation be \(A\cos(\theta-\Omega t)\) with \(A=0.001\,{\rm J}\) and detuning \(0.50\,{\rm s^{-1}}\). What first-order ripple scale should appear in the old action?

Work through the solution

The generating function has amplitude \(A/|\Delta|=0.002\,{\rm J\,s}\). For harmonic number one its angle derivative has the same amplitude, so the old action oscillates about the averaged action on that scale. At detuning \(0.01\,{\rm s^{-1}}\) the nominal ripple would be fifty times larger. Check its size against the action scale and the change of detuning across the ripple before trusting that continuation.

In the rotor example the forcing energy is multiplied by four. What happens to the resonant action, action width and small-amplitude libration period?

Work through the solution

The central action is set by \(H_0'=\Omega\) and stays \(0.40\,{\rm kg\,m^2/s}\). The half-width doubles to \(0.040\,{\rm kg\,m^2/s}\). The libration frequency doubles, so the period halves to \(15.7\,{\rm s}\). These predictions apply to the exact sinusoidal rotor model; other harmonics of a physical drive may also change as its amplitude increases.

A slowly swept drive seems to carry a phase-locked rotor beyond its original resonance band. Is this inconsistent with the static separatrix estimate?

Work through the solution

A varying \(\Omega(t)\) moves the resonance centre \({\cal I}\Omega(t)\). In coordinates measured from that moving centre the equation for detuning momentum has an additional torque-like term \(-{\cal I}\dot\Omega\). Locking can persist if the available restoring torque can track the ramp and the initial motion stays inside the evolving island. The static width describes a fixed-frequency section. Comparing a captured trajectory to its initial centre after the sweep tests the wrong phase portrait.

Compare a resonance driven by a varying stiffness with a rotating additive potential.

David Tong's Hamiltonian course develops canonical variables and adiabatic invariants.

Distinguish a physical precession from numerical drift

A bound orbit circulates many times about its centre. A small change in the angle of successive closest approaches could be physical or could be accumulated phase error. Construct an exactly solvable family of precessing orbits that lets the two effects be compared without assuming a reference trajectory from another code.

Replace time by the measured polar angle

A particle of mass \(m\) moves in a static central potential \(V(r)=-k/r+\alpha/(2r^2)\) with \(k>0\). The radial force is \(-k/r^2+\alpha/r^3\). Angular momentum \(L=mr^2\dot\phi\) is constant. Put \(u=1/r\) and differentiate with respect to \(\phi\), denoting this derivative by a prime. The identities \(\dot r=-(L/m)u'\) and \(\ddot r=-(L^2/m^2)u^2u''\) follow by the chain rule. Subtracting the centripetal term \(r\dot\phi^2=(L^2/m^2)u^3\) from radial acceleration gives Binet's equation.

\[u''+(1+\delta)u=\frac{mk}{L^2},\]
\[\delta=\frac{m\alpha}{L^2}.\]

The sign of the perturbation matters. Positive \(\alpha\) gives a repulsive short-range correction, increasing radial frequency per unit angle. A mildly negative correction decreases it. This family is a test potential; a measured nonzero advance in nature need not have this particular cause.

Read apses from a harmonic equation

For \(1+\delta>0\), write \(\nu=\sqrt{1+\delta}\), \(u_c=mk/[L^2(1+\delta)]\) and impose \(u(0)=u_c(1+e)\), \(u'(0)=0\) with \(0<e<1\). Then \(u=u_c[1+e\cos(\nu\phi)]\). The radial minimum corresponds to a maximum of \(u\). Its next occurrence is at angle \(2\pi/\nu\), so the change of line of apsides per radial period is

\[\Delta\omega=2\pi\left(\frac{1}{\sqrt{1+\delta}}-1\right).\]

For \(\delta=0.04\), successive pericentres rotate backwards by approximately 7.0 degrees. At \(\delta=0\) the Kepler ellipse closes. For a strictly circular orbit the algebraic radial frequency has a well-defined small-oscillation limit, but the direction of pericentre of the observed circle has no unique value. A nearly circular orbit therefore has a genuine experimental difficulty even when the integration is accurate.

Compute the bias of a discrete orbit exactly

Shift \(v=u-u_c\). On a uniform angular grid of spacing \(h\), the centred second difference gives

\[v_{j+1}=2v_j-v_{j-1}-(h\nu)^2v_j.\]

Insert the trial \(v_j=e^{ij\psi}\) and simplify:

\[\cos\psi=1-\tfrac12(h\nu)^2,\]
\[\nu_h=\frac{2}{h}\arcsin(h\nu/2).\]

The numerical mode oscillates if \(h\nu<2\). Inside that range it is too fast, since the arcsine exceeds its argument. A bounded orbit can thus accumulate a negative apsidal error. For an unperturbed Kepler case and a 30-degree grid, the numerical angular frequency is roughly 1.012. Treating this as a physical result would infer a retrograde precession of roughly four degrees per revolution. Refining \(h\) halves the angular step and quarters the leading error, because \(\nu_h=\nu+\nu^3h^2/24+\cdots\).

The experiment plots radial phase after multiple nominal revolutions and reports the implied apsidal angles. Vary the perturbation at fixed step first, then halve the step at fixed perturbation. Distinguish the discrepancy that persists in the continuum from the discrepancy that can be extrapolated away. Starting all curves at pericentre makes the phase convention identical.

Hold the force exactly Newtonian. Compare the accumulated numerical phase on a 30° grid and 6° grid. The exact radial phase stays at zero in both runs. Use the exported values to estimate how the phase error scales when the angular step is divided by five.

Tutorial

A measured radial period is 364 degrees of azimuthal advance. In this family, which sign of \(\alpha\) is indicated and what is \(\delta\)?

Work through the solution

The radial cycle takes more than 360 degrees, so the radial frequency per unit angle is below one. The inferred correction is attractive,

\[\delta=(360/364)^2-1\simeq-0.02186.\]

A simulation reports advances of −1.20, −0.60 and −0.45 degrees at successive halvings of the angular step. What leading continuum estimate follows?

Work through the solution

With second-order phase bias, the final difference 0.15 equals three times the remaining magnitude of that bias. Adding 0.05 to −0.45 gives −0.40 degrees. The earlier pair gives the same estimate. An additional refinement tests the assumed scaling.

Can a long observation of a closed numerically integrated orbit rule out a time-step error in the orbital period?

Work through the solution

No. Closure depends on a ratio of radial to azimuthal phase advances. Both may be biased in the same proportion. Independently time successive crossings and compare with an analytic period or a finer integration. Different observables can hide different errors.

The midpoint experiment shows the converse sign of phase error for another bounded integrator.

Multiple scales and identifiable dynamics

Derive a system with competing rates and ask which measurements can separate them. Resolve a decaying field and a coupled mechanical instrument before interpreting the numerical trajectory.

  1. Closed-loop poles, damping and performance
  2. Sampling, saturation and commissioning
  3. Impulse response and finite-duration loading
  4. Finite-amplitude oscillations and model validity
  5. How a magnetic field relaxes into a finite conductor
  6. Posing an electromagnetic evolution problem
  7. A moving-coil galvanometer as an electrical and mechanical system
  8. Eddy-current braking, magnetic penetration and the heat left behind
  9. Estimate a cavity linewidth from a finite, biased record
  10. Choose a frequency that identifies a coil's stored and dissipated energy
  11. Master equations, detailed balance and probability currents
  12. How an unobserved environment changes a quantum state

Closed-loop poles, damping and performance

Translate a time-domain requirement into acceptable poles and find when additional gain destabilises a higher-order plant.

From first principles

Connect characteristic roots to decay and oscillation

Near an equilibrium, many closed-loop positioning stages reduce to a constant-coefficient second-order equation. Consider the free response after the reference has become constant. Let \(x\) be deviation from its final value, \(\omega_n>0\) the natural frequency and \(\zeta\) the dimensionless damping ratio. Try an exponential response because time derivatives of an exponential reproduce the same waveform.

\[\ddot x+2\zeta\omega_n\dot x+\omega_n^2x=0,\]
\[x=e^{st}\ \Longrightarrow\ s^2+2\zeta\omega_n s+\omega_n^2=0 .\]

For \(0<\zeta<1\) solving the quadratic produces conjugate roots. Their real part sets the exponential decay rate and their imaginary part sets the observed angular oscillation frequency.

\[s_{1,2}=-\zeta\omega_n\pm i\omega_n\sqrt{1-\zeta^2},\]
\[x=e^{-\zeta\omega_nt}(A\cos\omega_dt+B\sin\omega_dt).\]

Here \(\omega_d=\omega_n\sqrt{1-\zeta^2}\) and the initial displacement and velocity set \(A,B\). A measured period gives \(\omega_d\) while the decaying peak envelope gives \(\zeta\omega_n\). Stable poles describe decay of free modes. The numerator of a forced response also influences how prominently each mode appears.

Derivation and applications

Separate a cubic stability boundary from oscillation frequency

Feedback gain can move an oscillatory pair across the imaginary axis even with every characteristic coefficient positive. Take a continuous linear unity-feedback loop whose open-loop transfer is \(K/[s(s+a)(s+b)]\) with positive \(a,b,K\). The integral mode can represent a position obtained from velocity; the other poles can represent actuator and measurement dynamics. Add unity to the loop transfer and clear its denominator to obtain the closed-loop polynomial.

\[p(s)=s^3+(a+b)s^2+ab\,s+K .\]

A marginal oscillation has \(s=i\omega\) with real nonzero \(\omega\). Separate the real and imaginary parts. The imaginary equation sets the frequency without requiring the gain, while the real equation selects the gain that supports it.

\[K-(a+b)\omega^2=0,\]
\[\omega(ab-\omega^2)=0,\]
\[K_{\rm crit}=ab(a+b).\]

At this gain the cubic factors exactly into a real stable pole and a pair of purely imaginary roots. The cubic Routh first column determines which side of the boundary is stable. Its first two entries are positive, making the sign of the third entry decisive for positive gain.

\[p_{\rm crit}(s)=(s+a+b)(s^2+ab),\qquad \text{first column: }1,\ a+b,\ ab-\frac{K}{a+b},\ K .\]

Below the threshold all entries have the same sign. Above it there are two sign changes and therefore two right-half-plane roots. The model treats actuator authority as unlimited and omits nonlinear friction; a finite observed oscillation amplitude requires additional physics beyond the pole crossing.

Worked example

Predict the onset period of a positioning loop

Set \(a=2.00\) s⁻¹ and \(b=8.00\) s⁻¹. Marginal gain is \(K_{\rm crit}=160\) s⁻³. The oscillation has frequency \(4.00\) rad/s, hence period \(2\pi/4.00=1.57\) s. At \(K=120\) s⁻³ the third entry is \(16-12=4.00\), giving stability. At \(K=180\) s⁻³ it is \(-2.00\) and the pair grows.

Change the inputs and inspect this calculation below

Second application

Recover the two lag rates from a marginal test

Another loop reaches marginality at \(K=60.0\) s⁻³ with a measured oscillation of \(\sqrt{10}\) rad/s. The rates have product \(ab=10.0\) s⁻² and sum \(K/(ab)=6.00\) s⁻¹. These observations cannot describe two positive real lag rates because the maximum product at fixed sum is \(6^2/4=9.00\) s⁻². The failed consistency check flags model structure or calibration before attributing a unique time constant to either stage.

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.

Relate polynomial coefficients to observed motion

For a normalised second-order system, the free response satisfies \(\ddot y+2\zeta\omega_n\dot y+\omega_n^2y=0\). Substitution of \(e^{st}\) gives

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

The real part sets the decay rate. For \(0<\zeta<1\), the imaginary part \(\omega_d=\omega_n\sqrt{1-\zeta^2}\) sets the time between successive extrema. Doubling \(\omega_n\) at fixed \(\zeta\) halves all characteristic times but leaves the fraction of overshoot unchanged.

Assume a unit DC gain, a constant numerator and zero initial displacement and velocity. The step response is

\[y=1-e^{-\zeta\omega_n t}[\cos(\omega_dt)+(\zeta\omega_n/\omega_d)\sin(\omega_dt)].\]

Differentiate the bracket together with its envelope. The cosine terms cancel and the remaining derivative is proportional to \(e^{-\zeta\omega_n t}\sin(\omega_dt)\). The first peak occurs at \(t_p=\pi/\omega_d\). Substituting that time gives the fractional overshoot

\[M_p=\exp\!\left(-\frac{\pi\zeta}{\sqrt{1-\zeta^2}}\right).\]

Design for a specified peak

Suppose a positioning axis may overshoot a 10 mm command by at most 1 mm. Solving the previous expression for the limiting damping ratio gives

\[\zeta=-\ln M_p/\sqrt{\pi^2+(\ln M_p)^2}=0.591.\]

At \(\omega_n=5\) rad/s the corresponding poles are approximately \(-2.96\pm4.03i\) per second and the first peak occurs at 0.779 s. A nominal oscillatory second-order system with this damping just meets the 1 mm bound. A zero near the dominant poles, a saturated drive or another slow pole changes the transient, so the result should be checked against the full model after the poles are chosen.

A settling specification differs from a peak specification. The absolute normalised error stays below the envelope \(e^{-\zeta\omega_n t}/\sqrt{1-\zeta^2}\). To guarantee a 2% settling band using this bound, solve \(t\ge-\ln[0.02\sqrt{1-\zeta^2}]/(\zeta\omega_n)\). This conservative time for the example is about 1.40 s. The commonly used \(4/(\zeta\omega_n)\) is a convenient estimate. The envelope bound spells out both the tolerance and its assumptions.

Follow a gain change on a third-order plant

A plant with two lags and an integrator has open-loop transfer \(K/[s(s+1)(s+2)]\) in units normalised to a common time base. Close unity negative feedback. The characteristic polynomial is \(s^3+3s^2+2s+K\). Its coefficients are all positive for \(K>0\), which rules out positive real roots but allows an unstable complex pair. Form the first column of the Routh array: \(1,\ 3,\ (6-K)/3,\ K\). All entries must have the same sign for strict stability. Thus \(0<K<6\).

At \(K=6\) the polynomial factors as \((s+3)(s^2+2)\). The step excites an undamped pair at angular frequency \(\sqrt2\), alongside a decaying component. At \(K=7\) the first-column signs change twice, so two roots have crossed into the right half-plane. The input-output gain alone did not reveal this upper bound. Additional lags allow feedback to arrive out of phase with motion. Chapter 4 reaches the same type of conclusion by examining sine-wave responses, which can often be measured even when coefficients of a polynomial are poorly known.

Find the effect of a finite closed-loop zero

Pole locations specify the available exponential terms of a causal linear response. Their coefficients depend on the numerator and initial condition. To isolate this distinction, choose two positive times \(\tau_1\ne\tau_2\) and a transfer function \(G(s)=(1+T_zs)/[(1+\tau_1s)(1+\tau_2s)]\). It has unit static gain for every \(T_z\), so changing the numerator neither moves the poles nor changes the final unit-step response. For zero initial state and a unit step \(Y(s)=G(s)/s\). Write \(Y=1/s+A/(s+1/\tau_1)+B/(s+1/\tau_2)\).

The initial value \(y(0^+)=0\) gives \(A+B=-1\). The initial-slope theorem gives

\[\dot y(0^+)=\lim_{s\to\infty}sG(s)=T_z/(\tau_1\tau_2);\]

equivalently \(-A/\tau_1-B/\tau_2=T_z/(\tau_1\tau_2)\). Solving and transforming back gives

\[y(t)=1-\frac{\tau_1-T_z}{\tau_1-\tau_2}e^{-t/\tau_1}+\frac{\tau_2-T_z}{\tau_1-\tau_2}e^{-t/\tau_2}.\]

For \(T_z=\tau_1\) one mode has zero coefficient in this particular input–output map. A physical internal state with that mode can still respond to a nonzero initial condition or another input. With \(T_z<0\) the zero lies in the right half-plane and the initial output slope opposes the eventual response. That inverse response can be a serious limitation when interpreting an early excursion as a sign error in the actuator.

Time the undershoot of two competing actuator paths

Consider an actuator that changes a measured quantity through a slow positive effect and an immediate faster opposing effect. Let \(\tau_1=4\) s, \(\tau_2=1\) s and \(T_z=-2\) s. The poles are both stable, and the output approaches one under a unit command. Yet the response is

\[y=1-2e^{-t/4}+e^{-t},\]

with initial slope \(-0.50\,\mathrm{s^{-1}}\). Set \(\dot y=0.5e^{-t/4}-e^{-t}=0\). It follows that \(e^{-3t/4}=0.5\), so the minimum occurs after \(t=4\ln2/3=0.924\,\mathrm s\). Its value is

\[1-2(0.794)+0.397=-0.191.\]

For a 10 mm final position change this model briefly produces about 1.91 mm motion in the wrong direction. A physical travel limit 1.0 mm behind the starting point would therefore be violated even though the real parts of both poles meet a settling-time target. Compare instead \(T_z=0\) with identical poles and DC gain: the initial slope vanishes and the response rises monotonically. Before changing controller gain to correct an observed undershoot, measure which pathway acts first. Inverting the right-half-plane zero with a causal stable feedforward filter is impossible, since exact inversion would introduce an unstable pole.

For this response the first crossing back through the initial position is later than the minimum. Let \(u=e^{-t/4}\); solving \(1-2u+u^4=0\) gives the trivial root \(u=1\) at release and a further root near 0.544. Thus the measured position remains on the wrong side for about \(-4\ln(0.544)=2.44\) s. A simple diagnostic that samples only once after two seconds would label the overall gain as negative. At one minute the same test reads nearly the full positive change. Recording the full waveform distinguishes an initial inverse response from an overall sensor polarity error. A disturbance entering the two paths at a different location can exhibit yet another zero, which is why a zero should always be quoted for a specified input and output.

OneSimulation · Which path is responsible for the initial undershoot?

Two stable first-order actuators contribute to the same output. Give the slow path gain \(+2\) and a two-second time constant, the fast path gain \(-1\) and a quarter-second time constant. Both start at rest and receive the same unit step. Predict the direction of the first and last movements from the initial slope and final value.

\[y(t)=1-2e^{-t/2}+e^{-4t},\]
\[\dot y(0)=1-4=-3~\mathrm{s}^{-1},\]
\[y(\infty)=1.\]

Integrate the two state equations using the fourth-order OneSimulation time stepper and compare every sample with the exponential solution. The grid minimum is −0.436 at 0.40 s. The component curves identify the mechanism. Initially the negative path builds up fastest; once it has nearly settled the slow positive path continues to grow. Vary the two time constants while keeping their gains fixed to see when the initial slope changes sign.

"""A positive step drives two stable paths with opposite output signs."""
import matplotlib.pyplot as plt
import numpy as np
from onesim.numerics.time.methods.backends.fixed_step import FixedStepRungeKutta

tau = np.array([2., 0.25])  # seconds, slow and fast paths
weights = np.array([2., -1.])
solver = FixedStepRungeKutta("rk4")
run = solver.integrate(lambda t, x: (1-x)/tau, np.zeros(2), 0., 8., step=0.02)
t = run.times
terms = run.states * weights
output = terms.sum(axis=1)
reference = (1-np.exp(-t[:, None]/tau)) @ weights
assert np.max(abs(output-reference)) < 1e-6
index = np.argmin(output)
print(f"First minimum on the grid: {output[index]:.3f} at {t[index]:.2f} s")

fig, ax = plt.subplots(figsize=(7, 4), constrained_layout=True)
ax.plot(t, terms[:, 0], "--", color="#51809c", label="Slow path")
ax.plot(t, terms[:, 1], ":", color="#a5442e", label="Fast path")
ax.plot(t, output, color="#19596a", label="Measured sum")
ax.axhline(0, color="0.5", linewidth=0.7)
ax.set(xlabel="Time after unit step (s)", ylabel="Normalised output")
ax.legend()
fig.savefig("control-engineering.png", dpi=170)
Slow positive and fast negative step responses sum to a signal that initially falls, then crosses zero and approaches one.
The ability to plot both internal states separates an inverse response caused by competing paths from a sign mistake in the output sensor.

Download the Python example

Change the inputs of this exact example and compare the recalculated curves with the recorded OneSimulation output above. The browser evaluates the stated analytical or modal reference.

Assign the poles of a spring-mounted positioning stage with PID

A positioning loop can measure displacement, accumulate position error and damp measured motion. Let a stage of mass \(m\), viscous damping \(c\) and return spring \(k\) obey \(m\ddot y+c\dot y+ky=u+d\), with actuator force \(u\) and disturbance force \(d\). The controller uses \(e=r-y\), \(\dot z=e\), and \(u=K_pe+K_iz-K_d\dot y\). Differentiating the measured position supplies damping without turning a step in commanded position into an impulsive force command.

To find the natural motion, set \(r=d=0\) and substitute \(u=-K_py+K_iz-K_d\dot y\). Move the feedback terms to the left and differentiate once to eliminate \(z\), using \(\dot z=-y\). The resulting characteristic polynomial is

\[m s^3+(c+K_d)s^2+(k+K_p)s+K_i.\]

The derivative gain adds viscous damping, the proportional gain adds stiffness, and closing an integral loop adds a state. At any stable equilibrium with a constant reference, \(\dot z=0\) requires \(y=r\). The integrator can then supply whatever constant force the spring and disturbance require, within actuator limits. The transient still depends on how the reference enters the controller.

Take \(m=2.0\,\mathrm{kg}\),

\[c=3.0\,\mathrm{N\,s\,m^{-1}},\]
\[k=5.0\,\mathrm{N\,m^{-1}}.\]

Suppose the desired poles are \(-2,-3,-4\,\mathrm{s^{-1}}\). Multiplying the three factors gives the desired polynomial \(2(s+2)(s+3)(s+4)=2s^3+18s^2+52s+48\). Comparing coefficients produces \(K_d=15\,\mathrm{N\,s\,m^{-1}}\),

\[K_p=47\,\mathrm{N\,m^{-1}},\]
\[K_i=48\,\mathrm{N\,m^{-1}s^{-1}}.\]

For a 20 mm command from rest the initial proportional force is \(0.940\,\mathrm N\). At the final resting position with \(d=0\), the spring needs \(0.100\,\mathrm N\). \(K_i z\) supplies it and the proportional contribution is zero. A filtered derivative introduces an additional pole, so this ideal coefficient match must be checked again against the implemented controller bandwidth.

Settle a tracking step without hiding its peak

Apply a unit step to a unity-DC second-order transfer function with no zeros. Keep natural frequency fixed. The first maximum occurs when \(\omega_d t=\pi\); use the waveform both to check the overshoot formula and to see how late oscillations affect a settling band.

Settle a tracking step without hiding its peak. Horizontal axis: Time × natural frequency. Vertical axis: Output / command. Data follow the figure.
At ζ = 0.55 the first overshoot is about 12.6%. A design with a smaller damping ratio may cross the command sooner while taking much longer to stay within a narrow tolerance.
Read values from the plot
Output / command at selected values of Time × natural frequency.
Time × natural frequencyDamping ratio 0.25Damping ratio 0.55Damping ratio 0.8
0000
31.43061.07940.90282
60.827721.01241.0122
91.06210.993251.0003
120.981371.00160.99989

Download all 361 plotted samples (CSV)

Interactive calculation · change the inputs of this example

Move through critical damping and compare overshoot, peak time and the duration of the tail.

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

Sampling, saturation and commissioning

Carry a continuous-time design onto a sampled actuator, predict where its operating assumptions fail, and distinguish an observed final value from an equilibrium.

From first principles

Integrate a held command across one sample

A sampled actuator holds its command fixed until the next update. Consider a stable first-order plant \(\tau\dot y+y=Ku\) with constant coefficients and sample interval \(h\). Let \(y_k\) be the value at the start of interval \(k\) and \(u_k\) the command held throughout it. During that interval the equilibrium for the applied command is the constant \(Ku_k\). Subtract it and integrate the homogeneous decay over exactly one interval.

\[\frac d{dt}(y-Ku_k)=-\frac{y-Ku_k}{\tau},\]
\[y_{k+1}-Ku_k=e^{-h/\tau}(y_k-Ku_k).\]

Set \(a=e^{-h/\tau}\). The resulting discrete plant is an exact sample-to-sample model under a zero-order hold. For proportional feedback with unit reference scale, substitute \(u_k=g(r_k-y_k)\) to see where the sampled free response pole lies.

\[y_{k+1}=a y_k+K(1-a)u_k,\]
\[z_{\rm cl}=a-K(1-a)g .\]

A sample-to-sample deviation is multiplied repeatedly by \(z_{\rm cl}\), so decay requires \(|z_{\rm cl}|<1\). This condition depends on the time at which the command is applied. A full sample of computational delay changes the state update and its characteristic equation.

Background · Discrete pole
\[z=e^{sT_s}\]

This maps a continuous modal exponent into a sampled multiplier over interval Ts. Different continuous frequencies can give the same sampled phase.

Derivation and applications

Quantify the phase and attenuation introduced by a hold

A digital controller sends a piecewise-constant command to a continuous actuator. Even ideal sampling and instantaneous arithmetic do not make the resulting fundamental sinusoid identical to the requested one. Consider samples of a complex sinusoid at period \(h\). A zero-order hold outputs each sample unchanged over the following interval. For times \(t=kh+s\) within interval \(k\), the ratio of held signal to the desired continuous sinusoid is periodic in the within-sample time \(s\).

\[u_h(kh+s)=e^{i\omega kh},\]
\[\frac{u_h(kh+s)}{e^{i\omega(kh+s)}}=e^{-i\omega s},\quad 0\leq s<h .\]

The zero-frequency Fourier coefficient of this periodic ratio gives the component at the original sinusoidal frequency. The remaining coefficients produce spectral images spaced by the sample frequency. Integrate the ratio over one hold interval and factor out the midpoint phase.

\[H_0(i\omega)=\frac1h\int_0^h e^{-i\omega s}ds=e^{-i\omega h/2}\frac{\sin(\omega h/2)}{\omega h/2}.\]

Below Nyquist the sine factor is positive. The fundamental therefore has phase equivalent to a delay of half a sample and a frequency-dependent gain. For small \(\omega h\), the sine expansion makes the leading attenuation quadratic while phase lag is linear.

\[\arg H_0=-\frac{\omega h}{2},\]
\[|H_0|=1-\frac{(\omega h)^2}{24}+O((\omega h)^4).\]

This calculation concerns the fundamental component of a held command. Additional computation latency and sensor filtering accumulate their own phase. Frequencies approaching Nyquist also require examining the sampled closed-loop dynamics directly.

Worked example

Check a servo's phase allowance

At 50.0 Hz crossover and 1.00 kHz sampling,

\[\omega h/2=\pi(50/1000)=0.1571.\]

The hold contributes \(-9.00^\circ\) and its fundamental magnitude is 0.9959. A further full sample of computation delay contributes \(-18.0^\circ\), giving \(-27.0^\circ\) combined at that frequency. The small gain change would conceal this phase cost in a magnitude-only measurement.

Change the inputs and inspect this calculation below

Second application

Choose a sampling interval from a phase budget

At a proposed crossover of 80.0 Hz, allocate at most 6.00° lag to the hold. Since the magnitude of the phase in degrees is \(180fh\), the interval must satisfy \(h\leq6/(180\times80)=0.417\) ms, or a sample rate of at least 2.40 kHz. At this limit the fundamental magnitude is

\[\sin(6^\circ)/(6\pi/180)=0.9982.\]

The resulting condition addresses the hold alone.

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.

Why one sample of latency can change the stability margin

A desktop position servo has a first-order response with time constant \(\tau\). A digital controller samples position every \(h\) seconds and holds each command constant until another is applied. Two firmware versions use the same sample period and proportional gain, yet one applies the command one whole sample later. Derive their closed-loop recurrences before attributing an observed oscillation to a different physical plant.

For the unit-gain plant \(\tau\dot x+x=u\), solve the differential equation over a single interval with constant input \(u_k\). The result is

\[x_{k+1}=a x_k+b u_k,\]

where \(a=e^{-h/\tau}\) and \(b=1-a\). Under immediate regulation to zero the command is \(u_k=-Kx_k\). Then there is one closed-loop pole, \(a-bK\), and the positive gain range is \(0\le K<(1+a)/b\). At equality the pole sits at minus one and a step-to-step sign alternation persists.

With a one-sample delay the command is \(u_k=-Kx_{k-1}\). A trial solution \(x_k=z^k\) now gives

\[z^2-az+bK=0.\]

For \(0<a<1\) and \(K\ge0\) the two roots both lie inside the unit circle exactly when \(bK<1\). One can see the source of the upper limit by following the roots. At low gain they are real, lie between zero and \(a\), and meet when \(bK=a^2/4\). Beyond that value they are conjugate and their common modulus is \(\sqrt{bK}\), since their product equals \(bK\).

Time histories compare immediately applied and delayed commands, and pole moduli show their different upper gain bounds.
The nearly deadbeat immediate update has one small pole. Adding a remembered sample gives two oscillatory poles for exactly the same plant and feedback gain.

Take \(\tau=0.50\) s, \(h=0.10\) s and \(K=4.5\). The exact hold gives \(a=0.81873\), \(b=0.18127\). Immediate application produces a pole near 0.0030, while the delayed poles are about \(0.4094\pm0.8051i\), of modulus 0.903. Starting at unit displacement with the old stored sample equal to zero, the delayed plant first decays naturally. If the old sample had instead already equalled one, the first two data points would differ even though the subsequent recurrence and its poles were unchanged.

The complex argument of a delayed pole supplies another quantity to measure. At the default gain the pole angle is approximately 1.10 radians per sample. The damped oscillation therefore takes \(2\pi/1.10\) samples per cycle, approximately 0.57 s of physical time. Its envelope shrinks to about \(0.903^{10}=0.36\) of its original value over one second. Estimate both quantities from a simulated sequence. Divide the measured period by the sampling interval before comparing with the pole angle. When the response is sampled sparsely, looking only at the step-to-step change of sign can obscure an oscillation that takes nearly six samples to repeat.

Choose a gain for which immediate feedback is stable and delayed feedback is unstable, and quantify the growth.

Work through the solution

The two limiting gains are 10.033 and 5.517. At \(K=7\), the immediate pole is

\[0.81873-7(0.18127)\simeq-0.450.\]

The delayed conjugate pair has modulus \(\sqrt{7(0.18127)}\simeq1.126\), so its envelope grows by about 12.6% per sample. In the notebook, compare these predictions using the same physical-time horizon. If an actual processor has a fixed time delay, shortening \(h\) changes the delay in samples; the one-sample derivation must then be replaced with the actual timing model.

Interactive calculation · Sample delay motion

Vary the notebook inputs and compare both plotted observables. The same equations generate the browser curves and the notebook reference; fixed material, geometry and model assumptions are stated in the readout.

Download the editable notebook for this example

Interactive calculation · Sample delay poles

Vary the notebook inputs and compare both plotted observables. The same equations generate the browser curves and the notebook reference; fixed material, geometry and model assumptions are stated in the readout.

Download the editable notebook for this example

Derive the held-input model

A processor reads a sensor every \(h\) seconds and holds its most recent command until the next sample. Solve \(\tau\dot y+y=Ku_k\) exactly from \(kh\) to \((k+1)h\) with this constant input. The result is

\[y_{k+1}=a y_k+K(1-a)u_k,\]

where \(a=e^{-h/\tau}\). This recursion is exact at the sampling instants for the assumed hold. Taking a large Euler step through the continuous closed-loop equation describes a different experiment. A real controller has only the sampled information available when it computes \(u_k\).

With proportional control \(u_k=K_p(r_k-y_k)\) the discrete pole is \(z=a-KK_p(1-a)\). Stability requires \(|z|\lt1\). A negative pole of modulus less than one alternates sign each update while decaying. For \(K=1,\ \tau=1\) s and \(K_p=3\), \(h=0.2\) s gives \(z=0.275\); \(h=0.8\) s gives \(z=-1.203\). The same nominal continuous design gives radically different sampled records. For positive gain the upper gain limit is \((1+a)/[K(1-a)]\). Additional computation and transport delays lower the available margin further.

Held-input step responses settle quickly at 0.2 seconds between samples, alternate and settle at 0.5 seconds, and grow in amplitude at 0.8 seconds.
Same plant and gain, three sample intervals. The lines show the exact continuous output between updates; the held quantity is the actuator command.

Locate the sampling limit in a computed trace

Keep the plant integration at 40 RK4 substeps per hold. Predict which sample intervals give a monotone response, a decaying oscillation or a growing one. Compare the stored OneSimulation traces on either side of 0.69 s. Estimate the discrete pole from two successive output increments; their ratio removes the unknown equilibrium.

At 0.65 s the measured pole is −0.9118, while at 0.70 s it is −1.0137. The latter increasingly overshoots even though the internal integration resolves each hold. Try 0.69 s and 0.70 s with python sampled-feedback.py --period 0.69, then double --substeps to check that the stability change is a sampling effect. Download the runnable OneSimulation model.

Why a saturated integrator remembers the past

Let \(v_k=K_p e_k+I_k\) be the requested command, and \(u_k\) its value clipped to the actuator range. An unconstrained integrator adds \(hK_i e_k\) to \(I_k\) at every sample. While an unreachable command holds a heater at its upper limit, positive error keeps accumulating; when the command becomes reachable again the stored integral may keep the heater fully on. This delayed recovery is called windup. Logging only actual heater power hides the growth of the internal demand. Log both signals and the integral state.

A back-calculation update feeds the clipping discrepancy back to the integrator:

\[I_{k+1}=I_k+h[K_i e_k+(u_k-v_k)/T_t].\]

When the request exceeds the upper stop, the second term is negative. At fixed error and fixed clipping level, this update attracts the requested command toward a value consistent with saturation, provided its discrete tracking dynamics are stable. For example, with \(h=0.1\) s, \(K_i=1\), \(e=2\), \(u=5\), \(v=8\), and \(T_t=0.5\) s, the integral increment is \(-0.4\), compared with \(+0.2\) without correction. Tuning \(T_t\) must account for the sample interval and actuator dynamics. Anti-windup cannot make an infeasible steady torque available.

Use a numerical result to distinguish two errors

Return to the OneSimulation tracking experiment. It models a continuous, unsaturated proportional loop and reports the error at a finite time. For a unit step from rest with loop gain \(g=KK_p\), the error after \(N\) closed-loop time constants is \(e_N=(1+g e^{-N})/(1+g)\). With \(g=8\) and \(N=6\), predict \(0.11331\). Its difference from the equilibrium \(1/9\) is transient motion. Halving the plant speed changes the physical time needed to reach the same dimensionless sample, while this sampled error stays fixed.

Test the interpretation by recording at three and six time constants and taking the ratio of the two deviations from equilibrium. Predict \(e^{-3}\) for the later deviation divided by the earlier. A persistent discrepancy warrants checking the recorded timestamps, the implementation of the step and whether a limit was active. To examine sampling or clipping, explicitly add these mechanisms to the model before comparing with the equations above. The logged linear-loop runs answer the finite-record question directly.

Derive an exact sampled stability boundary with a delayed command

A digital controller may acquire a sample at the start of an interval but only deliver its computed command at the following update. The one-sample computation delay then introduces an additional dynamic state. Consider a first-order plant \(\tau\dot y+y=Ku\) with an ideal zero-order hold and sampling period \(T\). Its exact sample-to-sample relation is

\[y_{k+1}=a y_k+b u_k,\]

with \(a=e^{-T/\tau}\) and \(b=K(1-a)\). Assume proportional negative feedback about a zero reference and express gains with dimensions chosen so that \(bg\) is dimensionless.

With negligible computation delay, \(u_k=-gy_k\) yields one pole \(a-bg\), so stability requires \(|a-bg|<1\). With a one-sample delay the applied command is \(u_k=-gy_{k-1}\), giving \(y_{k+1}=a y_k-bg y_{k-1}\). Substitution of a trial sequence \(z^k\) gives the characteristic polynomial \(z^2-az+bg\). For a real monic quadratic \(z^2+c_1z+c_0\), the unit-disc conditions are \(1+c_1+c_0>0,\ 1-c_1+c_0>0,\ 1-c_0>0\). For \(0<a<1,\ b>0,\ g>0\) only the last condition limits increasing gain: \(bg<1\).

Once the delayed poles form a complex pair, their product equals their squared modulus. That makes the bound physically transparent: as \(bg\) reaches one the oscillation no longer decays between samples. This mechanism is invisible if a continuously implemented controller is analysed and merely evaluated at plotting intervals.

Compare two software schedules at the same sampling rate

Take \(K=1\),

\[\tau=0.50\,\mathrm s,\]
\[T=0.10\,\mathrm s.\]

The exact coefficients are

\[a=0.8187,\ b=0.1813.\]

Without delay the positive gain limit is

\[(1+a)/b=10.03.\]

With a delayed command it is \(1/b=5.52\). A gain of 7.0 gives a stable immediate pole \(0.8187-7(0.1813)=-0.450\). The negative sign predicts an alternating error whose sample values decrease in magnitude.

Apply the same gain through the delayed schedule. The characteristic polynomial becomes \(z^2-0.8187z+1.2689\). Its roots are complex with modulus \(\sqrt{1.2689}=1.126\), implying about 12.6% growth per sample in the envelope. An input limit may eventually bound the motion or produce a limit cycle, but it does not restore local linear stability around the unsaturated equilibrium. A controller test that records sensor samples and commanded values with separate timestamps can distinguish this delay from a sign error or an incorrectly discretised plant. Reduce the delayed gain to 4.0 and the predicted modulus becomes 0.852; the same clock can operate stably with a different response speed.

To recognise the delayed oscillation in a recorded trace, compute its angle as well as its modulus. At gain seven each real part is

\[a/2=0.4094.\]

Dividing by the modulus 1.126 gives \(\cos\theta=0.364\), so \(\theta=1.20\,\mathrm{rad/sample}\). The apparent oscillation period is about \(2\pi(0.10)/1.20=0.52\) s. By comparison the immediate negative real pole produces a two-sample alternating pattern with period 0.20 s. A controller log showing roughly five samples per growing cycle accords with the delayed implementation, whereas alternating every sample points towards the immediate model operating too aggressively. This interpretation uses the synchronised physical actuator output; a software variable computed today for application tomorrow may have a different timestamp from the hardware.

Why a fast vibration can appear as a slow feedback error

An analogue position sensor may detect a genuine low-frequency displacement and a much faster frame vibration. Sampling can make the two contributions indistinguishable. For a sampling interval \(T_s=1/f_s\), evaluate a complex sinusoid at sample \(n\):

\[e^{i2\pi(f+kf_s)nT_s}=e^{i2\pi fnT_s}e^{i2\pi kn}=e^{i2\pi fnT_s},\qquad k\in\mathbb Z.\]

A real cosine is also unchanged by reversal of frequency, so its apparent frequency can be folded into \(0\le f_a\le f_s/2\). At \(f_s=100\,\mathrm{Hz}\), a 92 Hz cosine gives precisely the samples of an 8 Hz cosine with reversed phase angle. If both are present, their sampled amplitudes combine according to phase. Removing 8 Hz in software would remove the true 8 Hz motion as well. Filter the continuous sensor signal before sampling if the higher component must be attenuated independently.

Suppose an encoder sees an unwanted sinusoidal displacement of amplitude \(0.50\,\mathrm{mm}\) at 92 Hz, while feedback must track motion through 8 Hz. A fourth-order analogue Butterworth low-pass filter with cutoff 20 Hz has magnitude \(|H(f)|=[1+(f/20\,\mathrm{Hz})^8]^{-1/2}\). At 92 Hz the ratio is 0.00223, or approximately \(-53.0\,\mathrm{dB}\): the folded displacement amplitude is only \(1.12\,\mathrm{\mu m}\). At 8 Hz the ratio is 0.99967, so a \(0.10\,\mathrm{mm}\) desired component retains about \(99.97\,\mathrm{\mu m}\). These are separate amplitude tests on the analogue filter. If both vibrations persist, the sampled 8 Hz component can vary with their relative phase.

A passband magnitude close to one does not bound the filter's phase lag. A controller designed with substantial gain near 8 Hz must also include the filter's complex frequency response in its phase-margin calculation. Aliasing, sample-and-hold delay and computational delay are three different contributions to the observed loop dynamics.

Find the stability boundary from three measured outputs

Sample the unit first-order plant three times with gain 3 and a constant reference. A one-pole response gives \(\Delta y_{k+1}=z\Delta y_k\), so the ratio of increments identifies the discrete pole without knowing the final value. Here the plant uses forty RK4 substeps per controller interval.

Find the stability boundary from three measured outputs. Horizontal axis: Controller hold period (s). Vertical axis: Pole inferred from output increments. Data follow the figure.
The measured pole crosses −1 between 0.69 and 0.71 seconds. From the exact hold map z = 4 exp(−h) − 3, the critical period is ln 2 seconds. A continuous plant integrated more accurately at the same hold period still sees the same delay in the controller update.
Read values from the plot
Pole inferred from output increments at selected values of Controller hold period (s).
Controller hold period (s)OneSimulation plantAlternating stability boundary
0.45−0.44949−1
0.57−0.7379−1
0.67−0.95317−1
0.77−1.1479−1
0.89−1.3574−1

Download all 23 plotted samples (CSV)

Download the OneSimulation model (Python)

Interactive calculation · change the inputs of this example

Change controller gain and plant time constant, then find the sample interval where the discrete pole crosses minus one.

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

Impulse response and finite-duration loading

Construct the response to a short pulse and determine when an impulse approximation preserves the peak motion.

From first principles

Build a transient response by accumulating elementary impulses

An impulse \(J\) is the time integral of applied force. Across an ideal instantaneous impulse the displacement of mass \(m\) stays continuous, while integrating Newton's law gives a velocity jump \(J/m\). Finite spring and viscous forces have vanishing impulse over that ideal interval. For an initially stationary undamped mount with stiffness \(k\), the following motion is free vibration with angular frequency \(\omega_n=\sqrt{k/m}\) and the new initial velocity.

\[x(0^+)=0,\]
\[\dot x(0^+)=J/m,\]
\[x(t)=\frac{J}{m\omega_n}\sin(\omega_nt).\]

Now divide a finite force trace into short intervals. The interval starting at \(s\) contributes impulse \(F(s)\,ds\). For a linear time-invariant system its later displacement is the impulse solution delayed by \(s\) and scaled by that impulse. Summing over all earlier intervals yields

\[x(t)=\frac{1}{m\omega_n}\int_0^t F(s)\sin[\omega_n(t-s)]\,ds .\]

An existing initial displacement or velocity contributes a separate free response by superposition. If the pulse is very short relative to the vibration period, the sine factor changes little during it and the area of the pulse controls the subsequent motion.

Derivation and applications

Obtain the residual vibration after a ramped force is removed

The time integral of a force sets momentum change only when the support forces have little time to act. For longer pulses a linear undamped oscillator retains information about the shape and timing of the load. Consider mass \(m\), stiffness \(k\), natural frequency \(\omega=\sqrt{k/m}\) and zero initial motion. For a force acting only from zero to \(T\), the post-pulse displacement follows the convolution with the impulse response.

\[x(t)=\frac{1}{m\omega}\int_0^T F(s)\sin[\omega(t-s)]ds,\qquad t\geq T.\]

Expand the sine of the difference into sine and cosine of \(t\). The two integrals multiply quadrature components of free vibration. Their resultant magnitude is the modulus of a single Fourier integral at the natural frequency. For a symmetric triangular pulse centred at \(T/2\), its area is \(J=F_pT/2\) and its transform factorises because the triangle is a convolution of two equal rectangles of duration \(T/2\).

\[A=\frac{1}{m\omega}\left|\int_0^T F(s)e^{-i\omega s}ds\right|,\]
\[\int_0^T F(s)e^{-i\omega s}ds=J e^{-i\omega T/2}\left[\frac{\sin(\omega T/4)}{\omega T/4}\right]^2.\]

Each rectangle contributes the average complex phase over its duration; the product of these averages produces the squared factor. The impulse estimate is recovered for a very short triangle, while certain longer pulses leave no residual motion in the ideal model.

\[\frac{A}{J/(m\omega)}=\left[\frac{\sin(\omega T/4)}{\omega T/4}\right]^2,\]
\[T_{\rm first\ zero}=\frac{4\pi}{\omega}.\]

Worked example

Compare a triangular pulse with its impulse limit

For \(m=2.00\) kg and \(\omega=20.0\) rad/s choose \(T=\pi/10\) s and \(F_p=4.00\) N. Pulse area is 0.628 N s and the impulse estimate is 15.7 mm. Here \(\omega T/4=\pi/2\) and the squared factor is

\[4/\pi^2=0.405.\]

Actual residual amplitude is 6.37 mm. The cancellation occurs because different increments of force reach different phases of the oscillator.

Change the inputs and inspect this calculation below

Second application

Design a pulse with zero residual motion

Another lightly damped test rig is idealised as undamped at 5.00 Hz. The first zero requires a symmetric triangular pulse lasting two periods, \(T=0.400\) s. To deliver impulse 0.300 N s, choose \(F_p=2J/T=1.50\) N. The mass can move during the pulse, but its final displacement and velocity are both zero in the ideal model. A measured ring-down identifies sensitivity to frequency error, damping or a distorted force shape.

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.

A short event and a long response

A latch strikes a mounted instrument for only a few milliseconds, but its motion persists after contact has ended. Peak force alone gives an incomplete description of that motion. Duration, impulse and the system’s natural time scale all matter. Define impulse \(J=\int F(t)\,dt\), with units N·s. Integrating \(m\ddot x+c\dot x+kx=F\) over an ideal instantaneous event leaves \(m[\dot x(0^+)-\dot x(0^-)]=J\). The position remains continuous since no finite mass can jump a finite distance in zero time under a finite impulse.

For an initially resting underdamped oscillator, the subsequent response follows from the two initial conditions \(x(0^+)=0\) and \(\dot x(0^+)=J/m\). With \(\alpha=c/(2m)\) and \(\omega_d=\sqrt{k/m-\alpha^2}\), the displacement is \(x=Je^{-\alpha t}\sin(\omega_dt)/(m\omega_d)\) for \(t>0\). The response to a unit impulse is the same expression with \(J=1\). Its units are displacement per unit impulse.

Build a solution from elementary impulses

Divide a general forcing record into short intervals at times \(s\). Each interval contributes impulse \(F(s)\,ds\) and creates a response delayed by \(s\). Adding all contributions in a linear time-invariant system with zero initial state produces the convolution

\[x(t)=\int_0^t F(s)\,\frac{e^{-\alpha(t-s)}\sin[\omega_d(t-s)]}{m\omega_d}\,ds.\]

This construction makes causality explicit: later parts of the force record cannot influence the current response. Nonzero initial conditions add the free solution. In a multi-mode system each mode has its own impulse response, and the load’s location determines the force projection into it. Replacing the structure by its first mode may describe long-wave displacement well while missing a short, local acceleration peak.

Work a pulse of known duration

Neglect damping and apply constant force \(F_0\) for \(0<t<t_p\). During the pulse integration gives

\[x=(F_0/k)[1-\cos(\omega_n t)],\]
\[\dot x=F_0\omega_n\sin(\omega_n t)/k.\]

After unloading the mass oscillates freely. Compute its amplitude from the end displacement and velocity:

\[A=\sqrt{x(t_p)^2+\big[\dot x(t_p)/\omega_n\big]^2}=\frac{2F_0}{k}\left|\sin(\omega_n t_p/2)\right|.\]

Let \(m=4.0\) kg, \(k=1600\) N/m, \(F_0=20\) N and \(t_p=0.050\) s. Then \(\omega_n=20\) rad/s and the impulse is 1.0 N·s. The formula predicts \(A=25\sin(0.50)=12.0\) mm after unloading. Replacing the whole pulse by an instantaneous impulse gives

\[A_{\rm imp}=J/(m\omega_n)=12.5\,\mathrm{mm}.\]

Some restoring force developed during the real pulse, so the impulse approximation is slightly high.

Find the criterion and its limitations

Divide the finite-pulse amplitude by the impulse approximation to obtain \(|\sin z/z|\) with \(z=\omega_nt_p/2\). Its small-\(z\) expansion is \(1-z^2/6+\cdots\). At fixed impulse, a sufficiently short pulse therefore gives about the same low-mode amplitude regardless of duration. A shorter event has a broader frequency content, potentially increasing the importance of higher modes.

A pulse lasting exactly one natural period gives zero residual amplitude in the ideal undamped oscillator, although the displacement during the pulse peaks at \(2F_0/k\). Checking only the post-event motion would miss that maximum. In experiments record the force and response during contact as well as after it. Damping, uncertain pulse shape or nearby modes make exact cancellation unlikely, but the example shows why pulse duration must accompany a quoted peak force.

Compare pulses of equal impulse

A force transducer may report identical total impulse for a sharp tap and a broader pulse. For an undamped mode, the amplitude after the force has ended is the modulus of its frequency-weighted impulse divided by \(m\omega_n\):

\[A=|\int F(t)e^{-i\omega_nt}dt|/(m\omega_n).\]

This follows by expanding the sine kernel of the convolution into two quadratures. For a rectangular pulse the ratio to the ideal instantaneous-impulse amplitude is \(|\sin(\omega_nt_p/2)/(\omega_nt_p/2)|\). At a duration equal to half the natural period that factor is

\[2/\pi=0.637.\]

Two force records with equal signed area can therefore have visibly different post-event amplitudes at one sensor if their durations differ. A short force pulse can consequently calibrate a low-frequency mode while underexciting a faster one in the same structure.

Derive an energy-consistent time update for a force record

A measured force history may be irregular enough that a closed-form convolution is inconvenient. The constant-average-acceleration Newmark update advances a linear oscillator one time step at a time. Let \(x_n,v_n,a_n\) be displacement, velocity and acceleration at \(t_n\). Approximate the acceleration over the step through its endpoint average in the velocity update, and use the corresponding trapezoidal velocity update for displacement. With step \(h\) the relations are

\[v_{n+1}=v_n+\tfrac h2(a_n+a_{n+1}),\]
\[x_{n+1}=x_n+hv_n+\tfrac{h^2}4(a_n+a_{n+1}).\]

Enforce the actual equation \(ma_{n+1}+cv_{n+1}+kx_{n+1}=F_{n+1}\) at the new time. Gathering unknown acceleration terms gives effective mass \(m+ch/2+kh^2/4\). The right side is \(F_{n+1}-c(v_n+ha_n/2)-k(x_n+hv_n+h^2a_n/4)\). Solve that scalar equation and back-substitute into both kinematic updates. For several coupled linear coordinates the same derivation gives a linear system with an effective matrix.

For undamped unforced systems, multiply the average endpoint equilibrium by \(x_{n+1}-x_n=h(v_{n+1}+v_n)/2\). Differences of squares show that the discrete change in kinetic energy plus potential energy vanishes exactly. This property detects sign or unit errors in an implementation. It does not guarantee accurate phase at a coarse time step.

Check one step and distinguish stability from temporal resolution

Take \(m=2\,\mathrm{kg}\), \(c=0\), \(k=200\,\mathrm{N/m}\). Begin from \(x_0=0.010\,\mathrm m,\ v_0=0\) and release without applied force. Initial acceleration is

\[-kx_0/m=-1.00\,\mathrm{m/s^2}.\]

With \(h=0.10\,\mathrm s\), effective mass is

\[2+200(0.10)^2/4=2.50\,\mathrm{kg}.\]

Its right side is \(-200[0.010+0.10^2(-1)/4]=-1.50\,\mathrm N\), giving \(a_1=-0.600\,\mathrm{m/s^2}\). The updates give

\[v_1=-0.0800\,\mathrm{m/s}, x_1=0.00600\,\mathrm m.\]

The initial energy is

\[200(0.010)^2/2=0.0100\,\mathrm J;\]

after one step it is

\[2(0.080)^2/2+200(0.006)^2/2=0.0100\,\mathrm J.\]

The exact displacement at 0.10 s is nevertheless \(0.010\cos(1)=0.00540\,\mathrm m\). The numerical oscillator advances through angle \(2\arctan(\omega_nh/2)=0.9273\) rad per step instead of 1.00 rad. Over many cycles this small period error accumulates. Halving the step is a direct temporal convergence test. For a measured force pulse, a second check is that its sampled impulse and timing converge as well; an accurate oscillator update cannot recover a force feature missed by the acquisition system.

It is possible to predict the amount of step refinement needed for a phase-sensitive comparison. For small \(z=\omega_n h/2\), expand \(2\arctan z=2z-2z^3/3+\cdots\). Dividing the numerical angular advance by the true advance gives \(1-(\omega_n h)^2/12+\cdots\). The leading relative frequency error therefore falls by a factor of four when the step is halved. A one-percent target suggests \(\omega_nh\lesssim\sqrt{0.12}=0.346\) for this single undamped mode. At 10 rad/s that means roughly 0.035 s or less, before checking the sampling of the force itself. This criterion addresses the fundamental frequency, not the fastest contributing mode in a multi-degree model. If a high-frequency mode contributes significantly at the measurement station, use its frequency to assess temporal phase resolution or test convergence of the complete measured signal directly.

Once these conditions are met, comparing the computed displacement and velocity at the end of loading also tests the predicted initial condition for the subsequent free ring-down.

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.

How a magnetic field relaxes into a finite conductor

A conducting sheet initially shields its interior from an applied magnetic step. Given time, a normal resistive metal admits a static tangential magnetic field. The same equations give a finite slab a discrete relaxation spectrum and a periodic drive a complex penetration depth. These are different initial and boundary conditions for one diffusion operator.

Identify the time derivative lost in the approximation

Let the conductor be stationary, Ohmic, uniform and isotropic with conductivity \(\sigma\), permeability \(\mu\) and permittivity \(\epsilon\). In the full Maxwell equations both \(\sigma\boldsymbol E\) and \(\epsilon\partial_t\boldsymbol E\) contribute to the curl of \(\boldsymbol H\). At a characteristic angular frequency \(\omega\), the ratio of the latter to the former is \(\omega\epsilon/\sigma\). For a good conductor at low frequencies this is very small. Neglect displacement current only in that constitutive region; a vacuum gap or a capacitor elsewhere can still carry significant displacement current. Ampère then gives

\[\boldsymbol E=(\nabla\times\boldsymbol B)/(\mu\sigma).\]

Substitution into Faraday and use of \(\nabla\cdot\boldsymbol B=0\) yield

\[\partial_t\boldsymbol B=D\nabla^2\boldsymbol B,\]
\[D=1/(\mu\sigma).\]

The diffusion time for scale \(a\) is of order \(a^2/D\). Increasing conductivity reduces \(D\), because smaller electric fields can sustain stronger opposing currents. In an ideal mathematical conductor with \(\sigma\to\infty\), an initial flux can be frozen in this model. That is a different preparation from a superconductor expelling a field in equilibrium. Magnetic diffusion alone contains neither a thermodynamic superconducting transition nor London screening. At sufficiently short times the dropped displacement current also matters: an ideal step is an approximation to a finite-risetime drive, and the diffusion equation's nonzero Gaussian tails at arbitrarily large distances should not be used to infer a superluminal signal.

Obtain a transient similarity profile

Take a half-space \(x>0\) with field \(\boldsymbol B=B_z(x,t)\hat{\boldsymbol z}\); the surface is driven to \(B_s\) at \(t=0^+\), while initially the interior has zero field. Scaling \(x\) by \(\sqrt{Dt}\) suggests \(B_z/B_s=F(\eta)\), \(\eta=x/(2\sqrt{Dt})\). Compute \(\partial_tF=-\eta F'/(2t)\) and \(D\partial_x^2F=F''/(4t)\); hence

\[F''+2\eta F'=0.\]

Its first integral is

\[F'=Ce^{-\eta^2}.\]

Set \(F(0)=1,F(\infty)=0\) and use the Gaussian integral to obtain

\[F(\eta)=\operatorname{erfc}\eta.\]

The associated current \(J_y=-(1/\mu)\partial_xB_z\) is positive for this sign of surface field and has a Gaussian depth profile.

\[J_y(x,t)=\frac{B_s}{\mu\sqrt{\pi Dt}}e^{-x^2/(4Dt)},\]
\[\int_0^\infty J_y\,dx=\frac{B_s}{\mu}.\]

The current integral remains fixed as the profile spreads, even though the surface current density falls as \(t^{-1/2}\). A finite conductivity does not imply uniform current at every instant. For \(\sigma=5.8\times10^7\,\mathrm{S/m}\) and \(\mu=\mu_0\), \(D=0.01372\,\mathrm{m^2/s}\). The point reaching half the surface field is

\[x=2\operatorname{erfc}^{-1}(1/2)\sqrt{Dt}=0.9539\sqrt{Dt}.\]

At \(0.10\,\mathrm{ms}\) it is \(1.12\,\mathrm{mm}\) deep. At \(0.40\,\mathrm{ms}\), four times the time, it is twice as deep. Measuring several half-amplitude positions against time lets one fit \(D\) without calibrating the absolute magnetic field strength.

Satisfy both faces of a finite slab

Let the conductor occupy \(-a<x<a\). Impose the same sudden tangential field \(B_s\) at both faces. At long time the unique steady solution with these equal boundaries is uniform \(B_s\). Subtract this final value by defining the deficit \(u=1-B_z/B_s\). It satisfies homogeneous boundary values \(u(\pm a,t)=0\) and begins at one inside. Even symmetry permits cosine modes \(\cos(k_mx)\) with \(k_ma=(m+1/2)\pi\). Separating time gives the multiplier \(e^{-Dk_m^2t}\). Orthogonality on \((-a,a)\) gives squared norm \(a\) for each cosine and projection of the constant equal to \(2\sin(k_ma)/(ak_m)\). Thus

\[\frac{B_z(x,t)}{B_s}=1-\frac4\pi\sum_{m=0}^\infty\frac{(-1)^m}{2m+1}\cos\!\frac{(2m+1)\pi x}{2a}\,\exp\!\left[-(2m+1)^2t/\tau_0\right],\]
\[\tau_0=\frac{4a^2}{\pi^2D}.\]

The initial boundary jump is real in the idealisation; the series reproduces the interior initial value in the usual Fourier sense, while the imposed boundary value applies for \(t>0\). Later times damp the higher spatial harmonics most rapidly. At the centre and \(t=\tau_0\), the first term predicts

\[B/B_s=1-(4/\pi)e^{-1}=0.5316.\]

The next correction is \(4e^{-9}/(3\pi)=0.0000524\), so this is already accurate to within \(6\times10^{-5}\). At very early times many terms are needed because their cancellations encode a nearly field-free interior. A half-space similarity expression near each face can be more efficient there.

For a \(4.0\,\mathrm{mm}\)-thick copper slab \(a=2.0\,\mathrm{mm}\), giving \(\tau_0=0.118\,\mathrm{ms}\). At late times the centre deficit \(1-B/B_s\) approaches a single exponential with log slope \(-1/\tau_0\). Reaching 90 percent at the centre requires

\[t\simeq\tau_0\ln(4/(0.1\pi))=2.54\tau_0=0.300\,\mathrm{ms}.\]

The initial square-root penetration law cannot simply be extrapolated into this final regime, since the penetration fronts from both sides interact. Doubling full thickness at constant material quadruples the long relaxation time.

Compare a periodic solution and a surface impedance

Instead drive the half-space sinusoidally and adopt \(e^{i\omega t}\) peak phasors. Solving \(i\omega\widetilde B=D\,d^2\widetilde B/dx^2\) gives \(\widetilde B=B_se^{-(1+i)x/\delta}\) with the root \(\delta=\sqrt{2D/\omega}\) that decays towards infinity. The envelope falls as \(e^{-x/\delta}\), while phase lags the boundary by \(x/\delta\). The electrical surface field follows by differentiating, yielding \(\widetilde E_y=(1+i)\widetilde H_z/(\sigma\delta)\). The surface impedance in these orientations is \(Z_s=(1+i)/(\sigma\delta)\). Its positive real part measures dissipation, and the equal quadrature term records energy storage with this convention.

At \(f=1.0\,\mathrm{kHz}\) in the copper model, \(\delta=2.09\,\mathrm{mm}\) and \(\operatorname{Re}Z_s=8.25\,\mu\Omega\). A tangential surface peak field \(H_s=1000\,\mathrm{A/m}\) gives mean incoming power density \(\operatorname{Re}Z_s|H_s|^2/2=4.13\,\mathrm{W/m^2}\). The same number follows from volume Joule heating. Integrate \(\sigma|\widetilde E_y|^2/2\) over depth; the squared envelope \(e^{-2x/\delta}\) integrates to \(\delta/2\). An experiment monitoring just the in-phase field can find a zero at \(x=\pi\delta/2\) while the full harmonic magnitude is still \(e^{-\pi/2}=0.208\) of the surface amplitude.

Compare a half-space step and a sinusoidal depth profile using the same material

Use the solution to design a convergence test

A mesh across the finite slab can step \(B_j^{n+1}=B_j^n+r(B_{j+1}^n-2B_j^n+B_{j-1}^n)\), with \(r=D\Delta t/h^2\). A Fourier mode \(e^{ikjh}\) is multiplied by \(1-4r\sin^2(kh/2)\), so forward Euler is stable for \(0\le r\le1/2\). Above that bound a high-frequency grid mode can grow despite the physical diffusion being dissipative. For \(h=0.20\,\mathrm{mm}\) in the copper model, \(\Delta t\le1.46\,\mu\mathrm s\). Halving the mesh spacing demands quartering this explicit time step. An implicit scheme can overcome the same stability restriction but still needs small enough steps to resolve the measured transient.

Set both face values, initialise the interior once and record the centre at \(t=\tau_0\). Compare first against the series, then against a second mesh and time step. A mistaken use of full thickness in \(\tau_0\) would shift the inferred time by a factor four even if the code has converged perfectly. Independent checks include reflection symmetry about the slab centre, zero gradient at that centre, a bounded response between zero and \(B_s\) for the continuous problem, and ohmic heating that is nonnegative at every point. The latter can catch sign mistakes in an energy budget even though squaring \(J\) hides the sign of a local measured current.

Compare surface and centre in a periodically driven finite slab

At a fixed angular frequency a finite slab with equal tangential field on both faces has a different profile from a half-space. Write the phasor equation \(d^2\widetilde B/dx^2=k^2\widetilde B\), \(k=(1+i)/\delta\) for temporal dependence \(e^{i\omega t}\), and impose \(\widetilde B(\pm a)=B_s\). Even symmetry eliminates \(\sinh kx\), giving \(\widetilde B(x)=B_s\cosh(kx)/\cosh(ka)\). The centre amplitude is \(1/|\cosh[(1+i)a/\delta]|\) of the applied field, and its phase lag is the argument of that denominator. Both incoming penetration profiles must be combined as complex amplitudes satisfying boundary conditions; adding two decaying real envelopes is not a valid phasor solution.

The low-frequency limit has \(ka\ll1\), yielding \(B(0)/B_s\simeq1-(ka)^2/2=1-i(a/\delta)^2\). The leading correction is a phase lag, while the magnitude change starts at higher order. Thus a sensitive phase detector can pick up eddy-current effects before a large change of amplitude is visible. At \(a/\delta=1\), \(\cosh(1+i)=\cosh1\cos1+i\sinh1\sin1\simeq0.834+0.989i\), giving centre amplitude 0.773 and lag \(0.870\) radians. An isolated half-space viewed one skin depth in from a single face would have amplitude 0.368 and lag 1.00 radian. These are genuinely different field boundary conditions, not two definitions of skin depth.

The phasor of the current varies as \(\sinh(kx)\) and is odd. Current on one half of the slab runs opposite to that on the other; the net integrated current across both halves vanishes for equal exterior fields. That cancellation does not suppress losses, because local Joule heating is proportional to \(|J|^2\). In the thin-slab limit expand Faraday directly. If \(B_z(t)\) is nearly uniform,

\[\partial_x E_y=-\dot B_z.\]

Symmetry about the centre gives

\[E_y\simeq-x\dot B_z.\]

For a sinusoidal peak field \(B_s\), the mean volumetric loss averaged across thickness is \(\sigma\omega^2 B_s^2 a^2/6\). The \(a^2\) scaling at fixed total magnetic volume explains why dividing a core into electrically insulated thin laminations can reduce classical eddy losses when the applied field lies along the lamination faces. The thin-slab approximation, isolation between laminae and field orientation are essential parts of that conclusion.

For a material with \(\sigma=2.0\times10^6\,\mathrm{S/m}\), half-thickness \(0.10\,\mathrm{mm}\), sinusoidal peak field 0.10 T and frequency 50 Hz, the formula gives \(3.29\,\mathrm{W/m^3}\). If effective permeability were \(100\mu_0\), the skin depth at that frequency would be about \(5.03\,\mathrm{mm}\), so the thin-slab ordering is internally consistent for these model numbers. Hysteresis or anomalous dynamic losses can still dominate a measured sample. Halving full lamination thickness at fixed material volume should quarter only this classical contribution, not every loss mechanism in the test fixture.

A thin conducting cylindrical shell gives a single time constant

A different finite system exposes how geometry changes a diffusion transient. Consider a long cylindrical shell of radius \(a\) and wall thickness \(w\ll a\) surrounding vacuum. Assume the skin depth in the wall exceeds \(w\) on the important time scales, so current is approximately uniform across the wall, and the solenoid producing an approximately uniform external axial field is sufficiently long. An azimuthal sheet current \(K_\varphi\) produces an additional axial field inside and negligible external field in the long-cylinder approximation. The boundary condition is

\[B_{\rm in}=B_{\rm ext}+\mu_0K_\varphi.\]

Faraday's law around the shell gives

\[2\pi a E_\varphi=-\pi a^2\dot B_{\rm in}.\]

The sheet obeys \(K_\varphi=\sigma w E_\varphi\). Combining the three relations gives

\[B_{\rm in}+\tau_s\dot B_{\rm in}=B_{\rm ext},\]
\[\tau_s=\mu_0\sigma w a/2 .\]

For a step from zero to \(B_s\) the field inside grows as \(B_s(1-e^{-t/\tau_s})\). For a sinusoid the interior phasor transfer is \(1/(1+i\omega\tau_s)\). This model has a single time constant instead of a slab's infinite relaxation spectrum because the wall thickness has been collapsed into one azimuthal sheet-current degree of freedom; magnetic energy is stored mainly throughout the bore. Take copper with \(a=0.030\,\mathrm m,w=0.10\,\mathrm{mm}\) to obtain \(\tau_s=0.109\,\mathrm{ms}\). At its half-power frequency \(f=1/(2\pi\tau_s)\simeq1.46\,\mathrm{kHz}\), the copper skin depth is about 1.73 mm, comfortably larger than the specified wall. At 100 times this frequency the uniform-wall assumption is much weaker.

This result also suggests a discriminating experiment. Compare shells made of the same material with fixed wall thickness and different bore radius. The leading screening time grows linearly with radius. Compare solid sheets of different normal penetration thickness in the earlier slab experiment and their time grows with thickness squared. Either system can display a late exponential, so an observed straight tail in a semilog trace does not alone reveal which diffusion path limits the response. The thickness and radius dependences, together with the phase response and the known current paths, provide independent evidence. A longitudinal insulating slit in the cylindrical shell interrupts its closed eddy-current path, substantially altering the ideal shielding despite leaving most of the metal present.

Distinguish propagation from diffusion

Change conductivity or drive frequency and inspect how the field attenuates with depth. Compare its amplitude decay and phase lag.

Account for every joule admitted by a magnetic step

A conducting half-space initially has zero internal field. At \(t=0\) a source clamps the surface induction to \(B_s\hat z\). Let \(x>0\) measure inward distance and \(D=1/(\mu\sigma)\). The previously derived field profile is \(B_z=B_s\,{\rm erfc}[x/(2\sqrt{Dt})]\). An observer sees an ever-deepening field front even though the surface induction subsequently remains constant. Someone must provide both the magnetic field energy and the Joule heat generated by the induced current. The appropriate bookkeeping is Poynting's theorem, with positive surface power defined into the conductor.

In this geometry Ampère's law gives

\[J_y=-(1/\mu)\partial_x B_z.\]

Differentiating the error function produces a Gaussian current density \(J_y=B_s[\mu\sqrt{\pi Dt}]^{-1}\exp[-x^2/(4Dt)]\). Ohm's law sets \(E_y=J_y/\sigma\). At the surface the Poynting vector \(E_yH_z\hat x\) points into the material and has magnitude

\[\frac{P_{\rm in}}{A}=\frac{B_s^2}{\mu}\sqrt{\frac{D}{\pi t}}.\]

The initial mathematical step creates an integrable square-root singularity in the surface power. Holding \(B_s\) fixed still requires the source to deliver power for \(t>0\). Faraday's law relates the surface electric field to the changing flux below the surface. Its value falls with time because the depth derivative of the induction spreads and weakens. A physical source with a finite rise time smooths the initial singularity and sets the earliest time for which the ideal step is a useful approximation.

To calculate heat production, square the full depth-dependent current and integrate \(J_y^2/\sigma\) from zero to infinity. The squared Gaussian has exponent \(-x^2/(2Dt)\), and its integral on the half-line is \(\sqrt{\pi Dt/2}\). The result is

\[P_{\rm heat}/A=(B_s^2/\mu)\sqrt{D/(2\pi t)}.\]

Consequently the heat fraction of instantaneous input is \(1/\sqrt{2}\), about \(70.7\%\). The rest, \(1-1/\sqrt{2}\), supplies an increasing store of magnetic field energy. Both powers decay as \(t^{-1/2}\); their integrals up to a finite time increase as \(\sqrt t\). These fractions belong to the step-driven semi-infinite problem. They do not describe steady sinusoidal loss or a finite specimen after the diffusion front traverses it.

With \(B_s=10\,{\rm mT}\), copper conductivity \(5.8\times10^7\,{\rm S/m}\), and permeability close to \(\mu_0\), the diffusion coefficient is \(0.0137\,{\rm m^2/s}\). At \(100\,\mu{\rm s}\), the incoming power is about \(526\,{\rm W/m^2}\). Joule heating accounts for \(372\,{\rm W/m^2}\), and field energy is increasing at about \(154\,{\rm W/m^2}\). Integration from the ideal step to this time gives \(2tP_{\rm in}(t)/A=0.105\,{\rm J/m^2}\), split into approximately \(0.0744\,{\rm J/m^2}\) of heat and \(0.0308\,{\rm J/m^2}\) of stored field energy. At that time \(2\sqrt{Dt}\) is about \(2.34\,{\rm mm}\). Applying these numbers to a foil much thinner than a millimetre would use the half-space solution beyond its range.

A finite slab of thickness \(d\) is driven from both faces by the same step. How much magnetic energy is eventually stored, and why must a decaying input replace the half-space power law?

Work through the solution

At long times, Ampère's law allows a uniform induction \(B_s\) with zero current and the prescribed values on both faces. Its stored magnetic energy is \(dB_s^2/(2\mu)\) per unit footprint, independent of conductivity. With \(d=5.0\,{\rm mm}\) and the parameters above this is about \(0.199\,{\rm J/m^2}\). At early times each face behaves approximately as an independent half-space. Once their diffusion profiles overlap, extended use of that approximation would predict unlimited energy accumulation in a finite volume with bounded field magnitude. The finite-slab modes replace the late algebraic law by exponential decay of the current and the surface electric field.

What is the total heat in a finite linear slab after full penetration if both surface inductions are clamped to the same ideal step?

Work through the solution

Integrate the inward surface Poynting power over all time. With symmetry about the midplane, Faraday's law on the upper half relates the magnitude of the surface electric field to \(d[\int_0^{d/2}B\,dx]/dt\). The surface magnetic field after the step is the constant \(B_s/\mu\). Including both faces gives total input energy per area \(B_s^2d/\mu\). Half remains stored, so half has been dissipated as heat, or about \(0.199\,{\rm J/m^2}\) in the example. The integrated fraction one half over the complete finite transient differs from the early-time half-space fraction. This energy identity provides a stringent check of a discretised slab calculation because it tests the surface flux, the volume heating and their time integration together.

Hermann Haus and James Melcher, Magnetoquasistatic Relaxation and Diffusion, including experimental demonstrations.

Tutorial on extracting material parameters

The late centre deficit of a slab of full thickness 6.0 mm falls by a factor \(e\) in \(0.60\,\mathrm{ms}\). Find \(D\), and estimate \(\sigma\) if \(\mu=2\mu_0\).

Work through the solution

Using \(a=3.0\,\mathrm{mm}\) gives

\[D=4a^2/(\pi^2\tau_0)=0.00608\,\mathrm{m^2/s}.\]

Then

\[\sigma=1/(\mu D)=6.55\times10^7\,\mathrm{S/m}.\]

A transient alone determines \(\mu\sigma\); the independent permeability assumption is essential.

At fixed frequency the signal amplitude at one depth is 10 percent of the surface amplitude in a periodic half-space experiment. Find the phase lag there and predict the new amplitude when frequency drops to one quarter.

Work through the solution

The depth is \(x=\delta\ln10\), so the lag is 2.303 radians. Quartering frequency doubles the skin depth; the ratio becomes

\[e^{-(\ln10)/2}=0.3162.\]

Treating the original 10 percent as an intensity ratio instead of a field ratio would produce a different inferred depth.

A step field applied at \(t=0\) is removed again at \(t=T\). Obtain the field after removal and explain why it need not vanish immediately in the interior.

Work through the solution

By linearity superpose a positive step and a delayed negative step. For \(t>T\) the normalised half-space profile is \(\operatorname{erfc}[x/(2\sqrt{Dt})]-\operatorname{erfc}[x/(2\sqrt{D(t-T)})]\). It vanishes at the driven boundary but remains positive at interior points where the later disturbance has not substantially diffused. The induced currents subsequently relax and dissipate energy.

Posing an electromagnetic evolution problem

A solver cannot evolve 'a pulse in a box' from geometry and a time step alone. It needs material laws, compatible initial fields, a charge-conserving source, and enough boundary data to specify what enters the domain. The same bookkeeping is required when interpreting a real transient measurement.

Separate the evolution equations from the constraints

In vacuum with prescribed sources the evolution system can be written \(\partial_t\boldsymbol B=-\nabla\times\boldsymbol E\) and \(\partial_t\boldsymbol E=c^2\nabla\times\boldsymbol B-\boldsymbol J/\epsilon_0\). The divergence conditions \(\nabla\cdot\boldsymbol B=0\) and \(\nabla\cdot\boldsymbol E=\rho/\epsilon_0\) constrain the initial data. Differentiating the first in time gives zero from the divergence of a curl. Differentiating the second constraint residual gives \(-[\nabla\cdot\boldsymbol J+\partial_t\rho]/\epsilon_0\). Compatible charge evolution therefore preserves an initially satisfied Gauss constraint. An arbitrarily chosen charge movie and unrelated current movie can violate it before a single boundary reflection occurs.

A numerical solver based only on the two curl equations does not automatically repair bad initial data. In an initial periodic vacuum box a uniform charge density of one sign is inadmissible because the integral of a periodic divergence is zero. One can prescribe a neutralising background as part of a separately justified model, choose net-neutral initial sources, or choose open boundaries that permit net electric flux. Silently discarding the zero Fourier mode of the charge would solve a different problem. Similarly, preserving a constant divergence error exactly during time integration shows consistency of the discrete curls with the chosen derivative, not correctness of the initial physical state.

Construct a right-running pulse from two initial fields

In one-dimensional vacuum choose \(\boldsymbol E=E_y(x,t)\hat{\boldsymbol y},\ \boldsymbol B=B_z(x,t)\hat{\boldsymbol z}\). Then

\[\partial_tE_y=-c^2\partial_x B_z,\ \partial_tB_z=-\partial_xE_y.\]

Define \(w_+=E_y+cB_z,\ w_-=E_y-cB_z\). Addition and subtraction give

\[\partial_tw_++c\partial_xw_+=0,\]
\[\partial_tw_- -c\partial_xw_-=0 .\]

Thus \(w_+\) travels towards \(+x\) and \(w_-\) towards \(-x\). The initial conditions \(E_y=E_0e^{-(x-x_0)^2/(2s^2)}\), \(B_z=E_y/c\) specify a right-running packet. Prescribing the same electric shape but \(B_z=0\) launches two oppositely directed electric pulses each of half the original height. Measuring only the initial electric waveform would fail to distinguish the two preparations. At \(E_0=60\,\mathrm{V/m}\), the peak magnetic field for the first preparation is \(0.200\,\mu\mathrm T\). An observer \(0.90\) m farther right sees its peak \(3.00\) ns later in vacuum.

The component energies provide another independent comparison. Initialising only \(E_y\) contains half as much total energy as initialising \(E_y\) and its matched \(B_z\). At late times when the two pulses no longer overlap, each half-amplitude pulse has one quarter of the energy of the full matched pulse; the sum is half, as required. In the overlap region it is better to use the characteristic combinations themselves. In these units \(u=\epsilon_0(w_+^2+w_-^2)/4\) and \(S_x=\epsilon_0c(w_+^2-w_-^2)/4\) for the transverse fields. Equal oppositely running amplitudes can store energy with zero net flux.

Specify only incoming characteristic information at an open end

In \(0<x<L\), \(w_+\) enters at the left end and \(w_-\) at the right. Values travelling out are determined by the interior solution. For a pure outgoing plane wave at the right boundary prescribe \(w_-=0\), equivalently \(E_y-cB_z=0\), while allowing \(w_+\) to exit. At a perfectly conducting fixed wall the tangential electric field vanishes, so there \(w_-=-w_+\), reflecting the electric amplitude with a sign reversal. A boundary with a real voltage-like reflection coefficient \(r\) gives \(w_-=r w_+\) in this one-dimensional equal-medium case. The time-integrated returned energy fraction is \(r^2\). Specifying both \(E_y\) and \(B_z\) independently at all times generally overdetermines a wave boundary and can amount to fixing both incident and reflected waves inconsistently.

Suppose \(L=1.20\,\mathrm m,\ x_0=0.30\,\mathrm m\). The centre of a right-running pulse reaches the conducting end at \(3.00\,\mathrm{ns}\). A detector at \(x=0.60\,\mathrm m\) first sees the incident centre after \(1.00\,\mathrm{ns}\), then the reflected centre after \((0.90+0.60)\mathrm m/c=5.00\,\mathrm{ns}\). The two electric traces have opposite signs, while their magnetic contributions at the wall add. Swapping the conducting end for a matched boundary removes the reflected peak within this exact one-dimensional model. A local planar absorbing condition on a curved three-dimensional boundary may still reflect oblique waves; the exact statement depended on one normal mode and its wave impedance.

Derive uniqueness from energy

Take two solutions with the same sources, initial data and perfectly conducting closed boundaries in vacuum. Their difference satisfies homogeneous Maxwell equations with zero initial fields and zero tangential electric field at the wall. Poynting's theorem for the difference says \(dU_\Delta/dt=-\oint(\boldsymbol E_\Delta\times\boldsymbol H_\Delta)\cdot\boldsymbol n\,dA=0\) because the flux normal to a conducting wall vanishes. Since \(U_\Delta\) is a sum of nonnegative squared fields and initially zero, it stays zero. Thus the interior fields agree. A passive outgoing boundary can only remove this difference energy, so the same conclusion holds given no incoming difference signal. This proof shows why specifying incoming boundary data and initial fields correctly is more fundamental than choosing a particular potential gauge.

The argument also supplies a stability target for computation. With no drive and a perfectly reflecting cavity the discrete total energy should remain bounded, and with an absorbing passive end the loss of field energy should match outgoing flux. An unphysical sign in the wall update can inject energy, producing a growing solution even when the interior scheme is stable. Fixing the numerical grid spacing alone cannot cure an active boundary condition. At a material interface Maxwell jump conditions must be applied to the appropriate tangential or normal fields, since setting all Cartesian components continuous would generally violate flux or polarisation physics.

Discretise space and time without destroying wave kinematics

For the one-dimensional system use \(E_j^n\) at integer time and integer position, with \(B_{j+1/2}^{n+1/2}\) at half steps in both. Integrating Faraday on a small rectangular loop gives

\[B_{j+1/2}^{n+1/2}=B_{j+1/2}^{n-1/2}-(\Delta t/h)(E_{j+1}^{n}-E_j^n).\]

Ampère then gives \(E_j^{n+1}=E_j^n-c^2(\Delta t/h)(B_{j+1/2}^{n+1/2}-B_{j-1/2}^{n+1/2})\) without current. For material sources include the appropriate time-centred current. The staggered layout places discrete curls where the updated component lives. In several dimensions a compatible divergence of the curl vanishes by cancellation of oriented face-edge contributions.

Substitution of waves \(e^{i(kjh-\omega n\Delta t)}\) with the matching half-step phases yields \(\sin(\omega\Delta t/2)=(c\Delta t/h)\sin(kh/2)\) on the positive-frequency branch. Stability on a one-dimensional uniform grid requires \(c\Delta t/h\le1\). For \(h=5.0\,\mathrm{mm}\), the upper vacuum time step is \(16.7\,\mathrm{ps}\). A cubic three-dimensional mesh imposes the more restrictive \(c\Delta t/h\le1/\sqrt3\), about \(9.63\,\mathrm{ps}\). In one dimension the equality case transports compatible resolved plane waves at the correct speed on this grid. Numerical dispersion generally returns at smaller Courant number or for diagonal propagation in multiple dimensions. Sample a pulse across enough sites that phase and dispersion errors lie below the intended time-delay uncertainty.

A careful initialisation also respects the half time step. Assign \(B^{1/2}\) from the analytic field at that shifted time or use a consistent half-step update. Assigning \(B^0\) directly where \(B^{1/2}\) is required can create a spurious left-running component in what should have been a one-way pulse. Examine \(w_-\) reconstructed at common space and time before attributing a tiny backward peak to the material. For a real calculation, refine both space and time, compare detector arrival times as well as peak amplitudes, and integrate energy flux over complete transit windows. Solver convergence, charge compatibility, and a pulse moving in the intended direction are independent tests.

Compare a matched return and a reflected pulse on a line

Match a travelling pulse at a material boundary

A single homogeneous characteristic impedance was built into the one-dimensional end conditions. Replace the boundary by an interface between lossless homogeneous nondispersive media with positive real impedances \(Z_1,Z_2\). At normal incidence from the left, write electric amplitudes \(E_i,E_r,E_t\) and choose the magnetic sign so a right-running wave has \(H=E/Z\) and a left-running one \(H=-E/Z\). With no free sheet current and no singular electric field at the interface, tangential continuity gives

\[E_i+E_r=E_t,\]
\[(E_i-E_r)/Z_1=E_t/Z_2.\]

Solving these two equations yields

\[r=\frac{Z_2-Z_1}{Z_2+Z_1},\]
\[t=\frac{2Z_2}{Z_2+Z_1},\]
\[\mathcal R=|r|^2,\]
\[\mathcal T=\frac{Z_1}{Z_2}|t|^2 .\]

The impedance factor in transmitted power is required even when electric continuity makes \(t=1+r\). With \(Z_1=300\,\Omega,Z_2=100\,\Omega\), the electric reflection is \(-1/2\) and transmission \(+1/2\). The reflected energy is one quarter, while transmitted energy is three quarters. Mistaking both energy fractions for one quarter merely because the two electric amplitudes have equal magnitudes leaves half the input pulse energy unexplained. At \(Z_2\to0\) the coefficients approach an electric short: the tangential electric field vanishes, even though the magnetic field doubles in the incident medium. Matching the impedances gives zero reflection even if material wave speeds differ, since those speeds depend on the product \(\mu\epsilon\) whereas impedance depends on their ratio.

Inject a short pulse with known area and width a sufficient distance to the left that it initially lies entirely in medium one. If the media are nondispersive and impedance independent of frequency across the pulse band, each electric waveform copies the incident temporal shape multiplied by its amplitude coefficient. A transmitted wave travelling at a different speed has a different spatial width for the same temporal width, so comparing stored energy by squaring peak fields and comparing equal geometrical intervals can easily mislead. A fixed detector measuring \(\int(E H)\,dt\) across a complete pulse directly measures transmitted energy per area. In a simulation integrate forward and backward flux at separate planes, include any energy still between the planes, and check that the field boundary gives the same answer when the detector positions are changed.

Manufacture a source that obeys charge continuity exactly

A verification case with prescribed charge and current can test different components from a source-free travelling wave. Consider a one-dimensional periodic interval with period \(2\pi/k\). Choose a longitudinal electric field \(E_x(x,t)=E_a \sin(kx)\cos(\omega t)\) and zero magnetic field. Gauss's law fixes \(\rho=\epsilon_0 kE_a\cos(kx)\cos(\omega t)\). Ampère–Maxwell requires

\[J_x=-\epsilon_0\partial_tE_x=\epsilon_0\omega E_a\sin(kx)\sin(\omega t).\]

Faraday gives no magnetic-field change because a purely \(x\)-directed function of \(x\) has zero curl. Differentiating the two source expressions verifies \(\partial_t\rho+\partial_xJ_x=0\), and the periodic spatial mean of the charge vanishes. This is a prescribed-source test of the equations, not a claim that an unspecified material spontaneously supplies those currents.

For period \(0.20\,\mathrm m\), \(E_a=100\,\mathrm{V/m}\), and \(f=2.0\,\mathrm{MHz}\),

\[k=31.42\,\mathrm{m^{-1}}.\]

The charge-density amplitude is \(27.8\,\mathrm{nC/m^3}\) and the free-current-density amplitude \(0.0111\,\mathrm{A/m^2}\). At \(t=0\) the longitudinal electric energy is maximal and current vanishes. One quarter period later the electric field and charge are zero while the source current is maximal at the spatial electric-field antinodes. At every point where \(E,J\) are nonzero their product is \(-\partial_t(\epsilon_0E^2/2)\); the prescribed external charges exchange energy with the field without a magnetic Poynting flux. A discrete divergence residual and an independently measured field-energy change can therefore check the signs and amplitudes of the source implementation.

Prescribing those continuous formulas sampled separately on a staggered mesh does not necessarily produce exact *discrete* continuity. If the numerical current is sampled at half time and half space, integrate the cell continuity equation to update \(\rho\) from numerical boundary currents. Alternatively use the corresponding discrete sinusoidal differentiation factors \(2\sin(kh/2)/h\) and \(2\sin(\omega\Delta t/2)/\Delta t\) when manufacturing exact discrete data. Comparing the continuous and discrete constructions separates a model truncation error that converges with mesh refinement from a genuinely nonconserving source injection. A code can look excellent on transverse vacuum pulses and still fail this test because those pulses never challenge its charge handling.

Decide what a late echo means

A narrow pulse incident on a material slab can return signals from both interfaces. Separate the two in time when possible. If the slab thickness is \(d\) and its propagation speed \(v_2\), the round-trip delay inside it is \(2d/v_2\). Later echoes spaced by that delay suggest repeated internal reflections. Changing the outer computational boundary location while keeping the material and detector fixed provides a different test: an artificial wall echo moves in time by twice the boundary displacement divided by exterior speed. A genuine material echo keeps its material-defined delay. A calibrated single detector trace and these two perturbations can thus identify which part of the model causes a late pulse.

For \(d=0.30\,\mathrm m\) and \(v_2=1.5\times10^8\,\mathrm{m/s}\) the material echo spacing is \(4.0\,\mathrm{ns}\). Moving an external vacuum boundary outward by \(0.45\,\mathrm m\) would delay a returning boundary echo by \(3.0\,\mathrm{ns}\). If the incident pulse lasts 8 ns the echoes overlap strongly and individual peaks are difficult to assign. Broadening the bandwidth with a shorter source or fitting the full complex frequency response is then more informative than selecting the largest local maximum. Any comparison must include the source bandwidth and detector response because a perfectly converged field solution can still predict a different voltage from a finite-bandwidth probe.

Check a discretised field evolution against its phase

Keep the equations and initial mode fixed while refining the grid. Examine numerical phase delay alongside the physical propagation law.

Set a cavity ringing from specified initial fields

A one-dimensional lossless cavity consists of perfectly conducting parallel planes at \(x=0\) and \(x=L\). Use a polarisation \(E_y,B_z\) and ignore lateral edges. With no sources inside, the incoming characteristic at each wall is set by the condition \(E_y=0\). Instead of injecting a pulse during the calculation, prescribe an initial field \(E_y(x,0)=E_0\sin(\pi x/L)\) and \(B_z(x,0)=0\). These data obey the tangential electric wall condition. They also obey the divergence constraints because the spatial variation is along \(x\) while the fields are transverse. Initial data that satisfy a wave equation but violate either of these checks would model a different physical preparation.

Let \(k=\pi/L\) and try \(E_y(x,t)=E_0\sin(kx)F(t)\). The wave equation gives

\[F''+c^2k^2F=0.\]

The initial magnetic field has no spatial gradient and the source-free Maxwell–Ampère law therefore sets \(F'(0)=0\). It follows that \(F=\cos\omega t\), with \(\omega=ck\). Use Faraday's first-order equation to find the sign and phase of \(B_z\), obtaining

\[E_y=E_0\sin(kx)\cos\omega t,\]
\[B_z=-\frac{E_0}{c}\cos(kx)\sin\omega t.\]

For a first-order time solver this pair gives a stronger check than the electric standing-wave frequency alone. A code with an incorrect sign in one curl can reproduce an electric snapshot but will transfer energy incorrectly on the next advance. The signs of the magnetic fields at the two ends are opposite. Their amplitudes peak one quarter period after the initial electric maximum. Perfectly conducting walls carry the necessary surface currents. The standing solution has no Poynting flux through them because the tangential electric field at each wall vanishes.

Per unit transverse area the total initial energy is \(\epsilon_0E_0^2L/4\), since the integral of \(\sin^2(kx)\) over the cavity is \(L/2\). At a general time the electric share is that total multiplied by \(\cos^2\omega t\), and the magnetic share is the same total multiplied by \(\sin^2\omega t\). The integral of their sum is constant, although energy continually flows within the cavity. For \(L=0.30\,{\rm m}\) the fundamental frequency is \(c/(2L)=499.65\,{\rm MHz}\) and its quarter period is about \(0.500\,{\rm ns}\). If \(E_0=100\,{\rm V/m}\), the stored energy is \(6.64\,{\rm nJ/m^2}\) and the peak induction is \(0.334\,\mu{\rm T}\).

The experiment can also reveal the discrete wave speed. A staggered one-dimensional mesh with spacing \(h=L/10\) and Courant number \(C=c\Delta t/h=0.5\) obeys \(\sin(\omega_{\rm num}\Delta t/2)=C\sin(kh/2)\). The predicted frequency ratio is \(2\arcsin[C\sin(kh/2)]/(Ckh)\), approximately \(0.9969\) here. Measuring too short a time interval to distinguish this phase lag from sampling uncertainty would give little information about spatial accuracy. Track many periods, use consistent time-centred field estimates, and halve \(h\) at fixed \(C\). At these small \(kh\), the leading phase error should decrease by roughly a factor of four.

A student prepares a mixture \(E_y(x,0)=E_0[\sin(\pi x/L)+0.30\sin(3\pi x/L)]\), still with initial \(B_z=0\). What should a midplane electric probe observe, and what fraction of the initial total energy is in the third mode?

Work through the solution

At the midplane the fundamental sine equals \(+1\), while the third sine equals \(-1\). The probe therefore reads \(E_0[\cos(\omega t)-0.30\cos(3\omega t)]\). Integrated over the full cavity, cross terms vanish because sine modes of different integer index are orthogonal. The third mode's energy fraction is

\[0.30^2/(1+0.30^2)=0.0826.\]

A single spatial probe samples mode amplitudes times their local shape and cannot identify an energy fraction directly. At the midplane all even modes have a node and would escape detection even if they contained substantial energy.

A solver allows an arbitrary spatially uniform constant to be added to \(B_z\) while leaving the computed oscillating electric field unchanged. Is this necessarily a bug?

Work through the solution

A constant transverse magnetic induction has zero curl and divergence in the ideal interior. It can be added as a static bias if the physical initial magnetic field and the exterior wall-current preparation permit it. In the test posed above the initial magnetic field was explicitly specified as zero, so a later spontaneously generated offset would be a numerical error. Monitoring the spatial mean of \(B_z\) provides a direct test: integrating Faraday's law over the interval gives its rate of change proportional to the difference of the wall electric fields, which is zero. This check tracks an initial-data constraint invisible to a comparison of electric oscillation frequencies alone.

Hermann Haus and James Melcher, Electrodynamic Fields, on wave propagation and standing waves.

Tutorial on initial and boundary compatibility

A vacuum pulse has at its centre \(E_y=100\,\mathrm{V/m}\) and \(cB_z=60\,\mathrm{V/m}\). If both fields have the same spatial shape, infer the two travelling electric amplitudes and the ratio of the energies associated with the two directions.

Work through the solution

The characteristics are \(w_+=160\) and \(w_-=40\,\mathrm{V/m}\). Since \(E=(w_++w_-)/2\), the component electric amplitudes are 80 and 20 V/m. Their separate directional energy ratio is \(160^2/40^2=16\), assuming identical envelopes. The total local flux initially points right although neither characteristic is zero.

A numerical field in a periodic box starts with \(\nabla\cdot\boldsymbol B=10^{-4}\) in some cells. The code uses a discrete divergence of its discrete curl that is identically zero and carries that pattern unchanged. Does reaching a small time-step tolerance guarantee physically acceptable initial conditions?

Work through the solution

No. The curl evolution preserves its initially supplied divergence. A compatible projection or constrained initialisation must remove the error in the correct discrete divergence norm, subject to boundary conditions and any physical mean field. Refining the time integration of inconsistent initial data leaves inconsistency.

A detector sees an amplitude echo 0.15 of an incident Gaussian pulse after reflection at a passive boundary. What is the reflected energy fraction and how much of the input energy remains unaccounted for if measured transmitted energy is 92 percent?

Work through the solution

Same-medium, same-shape electric amplitudes give \(0.15^2=0.0225\) reflected energy. With 0.92 transmitted, the remainder is \(1-0.0225-0.92=0.0575\) or 5.75 percent. It may include absorption, energy still in the structure, lateral flux or measurement error. A completed energy audit distinguishes these possibilities.

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.

Eddy-current braking, magnetic penetration and the heat left behind

A conducting loop moves above a row of magnetic poles. The drag first increases with speed, but a rapid crossing need not generate proportionally greater braking. Trace the work done against the Lorentz force into circuit energy, heat and a measurable temperature change. Then decide which features of a solid plate the single-loop model can capture.

Generate a voltage from a spatially periodic field

Let a rectangular loop of height \(h\) along \(y\) and width \(w\) along \(x\) translate to the right above a stationary magnetic pattern. At the loop let the normal induction be \(B_z(x)=B_0\cos(kx)\), with \(k=2\pi/\lambda\). Its two active sides are centred symmetrically about the coordinate \(x_c\). Assume the field varies negligibly along \(y\) over this height. Integrating through the loop gives

\[\Phi=h\int_{x_c-w/2}^{x_c+w/2}B_0\cos(kx)\,dx=[2hB_0\sin(kw/2)/k]\cos(kx_c).\]

A uniform translation \(x_c=ut\) therefore produces an external emf with peak amplitude \(E_{\rm pk}=K u\), where \(K=2hB_0|\sin(kw/2)|\).

This spatial averaging explains an initially surprising design feature. A loop spanning precisely one full spatial period always links zero net flux from the sinusoidal field and therefore generates no emf in this ideal geometry. A loop of half a period has maximum coupling at a specified height. If \(w\) is much smaller than the period,

\[\sin(kw/2)\simeq kw/2,\]
\[K\simeq h w B_0 k.\]

This is exactly the small-loop result from using its area times the local gradient of induction. Reversing velocity reverses the emf at a fixed position. At a fixed positive speed the temporal frequency is \(f=u/\lambda\), so the same conductor experiences different electrical frequencies at different mechanical speeds.

Include finite inductance and derive the drag curve

Model the current path by a constant resistance \(R\) and self-inductance \(L\). Its steady periodic current solves \(L\dot i+Ri=\mathcal E(t)\). In phasor notation its magnitude is \(E_{\rm pk}/\sqrt{R^2+(\omega L)^2}\), lagging the emf by \(\arctan(\omega L/R)\), where \(\omega=ku\). The current develops field energy \(Li^2/2\) and dissipates \(Ri^2\). Multiplying the circuit equation by \(i\) and averaging over a period eliminates the derivative of stored energy. The average mechanical power delivered against the drag is therefore the mean Joule heating \(P=E_{\rm pk}^2R/[2(R^2+\omega^2L^2)]\). Dividing by the speed gives the drag magnitude

\[F(u)=\frac{K^2u}{2R[1+(u/u_c)^2]},\]
\[u_c=\frac{R}{kL}.\]

At low speed the drag is proportional to velocity. At the crossover \(u=u_c\) it reaches \(K^2u_c/(4R)\), and at much larger speeds it falls approximately as \(1/u\) within the assumed lumped model. The incoming mechanical power then tends to a constant rather than growing without bound. Why is there a maximum? Increasing speed raises the emf, but it also raises the reversal frequency. An inductive current increasingly lags the driving emf, and its component in phase with the emf does the net dissipative work. A measured turnover therefore tests both an electrical time scale and the spatial scale of the magnet pattern.

Use \(h=50\,{\rm mm}\), \(w=25\,{\rm mm}\), \(\lambda=0.100\,{\rm m}\), \(B_0=0.20\,{\rm T}\), \(R=0.050\,\Omega\) and \(L=0.150\,{\rm mH}\). Then \(K=0.01414\,{\rm T\,m}\), \(u_c=5.31\,{\rm m/s}\), and maximum mean drag is \(5.31\,{\rm mN}\). At \(u=2.0\,{\rm m/s}\) the field alternates at \(20\,{\rm Hz}\), giving an emf of \(28.3\,{\rm mV}\) peak. The current is \(0.529\,{\rm A}\) peak and its phase lag \(20.7^\circ\). The resistor receives approximately \(7.00\,{\rm mW}\), and the motor maintaining translation supplies a mean force of \(3.50\,{\rm mN}\). Using peak current in \(I^2R\) without its factor one half would overstate the mechanical force by a factor two.

Determine whether the current penetrates a real plate

A continuous metal plate contains many possible current paths, unlike a preformed loop. Their resistances, inductances and mutual couplings depend on the plate boundary, magnet geometry and frequency. For a good homogeneous conductor the magnetic diffusion equation gives a skin depth \(\delta=\sqrt{2/(\mu\sigma\omega)}\) under sinusoidal excitation. At a depth \(\delta\) a field entering a locally planar half-space has lost a factor \(e\) in amplitude and acquired a phase delay of one radian. The frequency to use is the frequency experienced by the moving material; the fact that the magnets are stationary in the laboratory does not make this frequency zero.

For copper with \(\sigma=5.8\times10^7\,{\rm S/m}\) and permeability close to \(\mu_0\), the skin depth is about \(14.8\,{\rm mm}\) at \(20\,{\rm Hz}\) and \(1.48\,{\rm mm}\) at \(2.0\,{\rm kHz}\). A \(2.0\,{\rm mm}\) plate therefore sees little through-thickness attenuation in the first experiment but may need a diffusion calculation in the second. The plate's lateral current pattern can still matter when the through-thickness current density is nearly uniform. Slots interrupt wide current loops and usually reduce drag even when the mass and the bulk conductivity change little. Comparing a slotted and an unslotted plate directly tests the importance of current closure.

If a plate experiences sharply separated poles, its applied field in the moving frame contains a fundamental and higher harmonics. Harmonic \(n\) has a skin depth smaller by \(\sqrt n\), so checking only the fundamental can miss surface concentration associated with narrow features. A Hall scan along the track supplies the actual spatial field spectrum. Multiplying each spatial wavenumber by the speed converts it into a temporal angular frequency for a constant-speed pass. Once the speed changes significantly over one pole spacing, a time-domain calculation using the measured position trace is preferable to this fixed-frequency conversion.

Close a mechanical and thermal energy budget

Take a rotating brake as a second experiment. A flywheel of known inertia \(J_{\rm rot}=0.020\,{\rm kg\,m^2}\) slows from \(120\) to \(80\,{\rm rad/s}\) while no drive supplies power. The released rotational kinetic energy is

\[J_{\rm rot}(120^2-80^2)/2=80.0\,{\rm J}.\]

A separate run with the magnet removed measures bearing and air losses. Suppose the corresponding speed-dependent losses integrated over the magnetic braking trajectory total \(8.0\,{\rm J}\). Then the electromagnetic channel receives \(72.0\,{\rm J}\). Using the reference run's total energy over an arbitrary equal time could give a different answer, since the two speed histories affect the parasitic losses.

A calorimeter enclosing the conducting rotor has effective heat capacity \(C=60\,{\rm J/K}\) and a thermal link of conductance \(G=0.12\,{\rm W/K}\) to an environment at constant temperature \(T_a\). Its balance is

\[C\,dT/dt=P_{\rm deposited}-G(T-T_a).\]

During a \(20\,{\rm s}\) run, suppose the time-averaged rise above ambient is \(0.50\,{\rm K}\). Then \(1.20\,{\rm J}\) flowed through the thermal link. If all electromagnetic heat entered the calorimeter, its final rise from an ambient start is

\[(72.0-1.20)/60=1.18\,{\rm K}.\]

A measured rise near \(0.80\,{\rm K}\) would leave an energy discrepancy of approximately \(23\,{\rm J}\). Check conduction into a shaft, heat stored outside the instrumented volume, and the estimate of parasitic torque before adjusting the electromagnetic theory.

Find the spatial features that dominate a measured braking signal

A single Fourier component of field already produces an informative turnover. In a tracked experiment the field often has a measurable third harmonic. Let \(B(x)=B_1\cos kx+B_3\cos(3kx+\varphi)\), with constant translation speed. Flux integration across the finite loop multiplies each harmonic by its own width factor. The corresponding emf peak is \(2h|B_n|u|\sin(nkw/2)|\), and its temporal angular frequency is \(nku\). The linear \(RL\) equation treats the two drives independently. Orthogonality over a complete fundamental period makes the mean of their product vanish, so total mean heat can be found by adding the individual resistive powers. Within one period the interference terms do affect instantaneous torque and power.

Suppose \(B_3/B_1=0.20\) and keep the preceding \(w=\lambda/4\). Here \(\sin(kw/2)\) and \(\sin(3kw/2)\) both have magnitude \(1/\sqrt2\). At low speed the third harmonic therefore adds about four percent to mean drag. At \(u=u_c\), however, its angular frequency sees inductive impedance \(3R\) while the fundamental sees \(R\). The third-harmonic share relative to the fundamental becomes \(0.20^2(1+1)/(1+9)=0.008\), only \(0.8\%\). A peak-to-peak field reading can change visibly without a comparable change in mean drag. Conversely, if the loop width happens to null one spatial harmonic, another smaller harmonic can supply most of the signal. A field map and the loop geometry together determine what source drives the circuit.

In a solid plate, predicting force from field and speed needs a field solution that enforces current closure. In the slowly moving conductor, \(\mathbf J=\sigma[-\nabla\phi+\mathbf u\times\mathbf B]\) when the imposed magnetic pattern is effectively time independent in the laboratory and the induced magnetic field can be neglected. Charge conservation then gives

\[\nabla\cdot[\sigma(-\nabla\phi+\mathbf u\times\mathbf B)]=0.\]

On an electrically insulated plate edge, enforce \(\mathbf n\cdot\mathbf J=0\). Solving this potential problem accounts for charge accumulation that redirects currents at a boundary. Simply setting \(\mathbf J=\sigma\mathbf u\times\mathbf B\) can predict current flowing straight out of an insulating edge. The force follows from integrating \(\mathbf J\times\mathbf B\) through the conducting volume, and Joule heat follows from \(\int J^2/\sigma\,dV\).

A useful check on such a field calculation is a finite plate translating wholly inside an exactly uniform static magnetic field. Charges can rearrange until a uniform electrostatic field cancels \(\mathbf u\times\mathbf B\). An isolated plate in this steady limit then has zero transport current and zero drag. Motion alone does not guarantee braking. At an entry edge, the moving conductor spans a spatial change of induction, and one scalar potential generally cannot cancel the motional drive around every closed path. Slits, thickness variations, a conducting contact at a boundary, and the induced field at higher speeds each change this test problem in an identifiable way.

Interpret a thermal transient without assuming it is instantaneous

If the brake runs at a stable speed and equilibrium electrical conditions, a local single-temperature model sees a nearly constant power. Its step response from ambient is \(\Delta T=(P/G)[1-\exp(-Gt/C)]\). Removing the drive gives an exponential decay with the same time constant \(C/G\). Measuring that cooling tail fixes the ratio of heat capacity to conductance but does not set either one separately. A known heater power or an independent heat-capacity measurement supplies the missing absolute scale. A slope evaluated over a long interval without correcting leakage will underestimate the input power as the sample warms.

Take a small bench calorimeter enclosing the single test loop with \(C=1.20\,{\rm J/K}\) and \(G=0.020\,{\rm W/K}\). The \(7.00\,{\rm mW}\) low-speed run gives a \(0.350\,{\rm K}\) eventual rise and a \(60\,{\rm s}\) time constant. After \(30\,{\rm s}\) the rise is about \(0.138\,{\rm K}\), whereas a thermally isolated calculation would give \(0.175\,{\rm K}\). Its stored heat \(0.166\,{\rm J}\) is less than the \(0.210\,{\rm J}\) mechanical work over that interval; the thermal link accounts for the remainder. Loading the conductor thermally with an additional copper holder increases the response time and changes the initial slope without changing the final rise if conductance to the bath remains the same.

Compare predictions at a chosen travel speed

The live graph displays the force predicted by the finite-inductance loop alongside the resistive low-frequency extrapolation. Choose a speed, calculate the apparent excitation frequency, and compare the returned skin depth to the actual conductor thickness before interpreting the prediction as a plate measurement. Try choosing an inductance twice as large. The location of maximum force halves in speed, but the low-speed slope at fixed geometry and resistance is unchanged. A real plate whose high-speed drag does not follow the single-loop curve can still agree with the model on its low-speed slope. Plotting the measured residuals against speed can reveal the point where extra current paths or through-thickness diffusion become important.

A plate and holder cool from \(0.240\,{\rm K}\) above ambient to \(0.120\,{\rm K}\) in \(42\,{\rm s}\) after a run. Can these two readings establish the braking power?

Work through the solution

The half-life gives

\[C/G=42/\ln2=60.6\,{\rm s},\]

which agrees approximately with the small calorimeter example. It determines only a ratio. If an independent steady \(10.0\,{\rm mW}\) heater then produces a \(0.500\,{\rm K}\) temperature rise, \(G=0.0200\,{\rm W/K}\) and \(C=1.21\,{\rm J/K}\). A magnetic run that settles at \(0.350\,{\rm K}\) now corresponds to \(7.00\,{\rm mW}\), provided the thermal boundary and deposition pattern are sufficiently similar to the calibration.

Check the sign of instantaneous electromagnetic work

At a phase where the applied emf has just crossed zero, a finite-inductance loop may still carry considerable current. During part of a cycle the emf and current can have opposite signs. The product \(\mathcal E i\) is then negative even though \(Ri^2\) remains positive. The difference is a negative derivative of the magnetic store \(Li^2/2\). The loop briefly returns energy mechanically while its stored field decreases, and some of that release also becomes heat. A force transducer resolving separate pole passages can therefore see instantaneous variations that a mean braking-force estimate suppresses.

For the numerical \(2.0\,{\rm m/s}\) case the peak field energy is \(L I_{\rm pk}^2/2\approx21.0\,\mu{\rm J}\). The dissipated energy per full pole period is

\[7.00\,{\rm mW}/20\,{\rm Hz}=350\,\mu{\rm J}.\]

These quantities serve different purposes. The first is a reversible instantaneous store; the second is net irreversible energy delivered each time the conductor moves one spatial period. Dividing the second by the spatial period of \(0.100\,{\rm m}\) recovers the mean drag of \(3.50\,{\rm mN}\) without using the translational speed explicitly.

Tutorial on braking measurements

At \(u=2.0\,{\rm m/s}\) the loop above experiences a mean drag of \(3.50\,{\rm mN}\). Predict what halving the induction and doubling the speed does, keeping its geometry and electrical properties fixed.

Work through the solution

Halving induction quarters \(K^2\). The speed factor contributes \(2[1+(2/5.31)^2]/[1+(4/5.31)^2]\approx1.46\). The combined change gives a drag about \(0.364\) times the original, or \(1.27\,{\rm mN}\). The mechanical power decreases less because speed has doubled. A linear-speed extrapolation would miss the inductive phase lag, already significant at \(4\,{\rm m/s}\).

In a repeated flywheel test the brake becomes warmer with every run. Which electrical parameter change can explain a change of drag even with the magnets held fixed?

Work through the solution

The resistance of an ordinary metal generally increases with temperature. At a fixed speed \(F\) is proportional to \(R/[R^2+(\omega L)^2]\). Raising resistance reduces drag on the low-frequency resistive side and can increase it on the high-frequency inductive side. The maximum occurs at \(R=\omega L\) if electrical geometry and inductance stay fixed. Measuring the temperature and resistance before each run helps distinguish this effect from a weakening field or a changed gap.

Compare a step-driven diffusion profile with sinusoidal skin penetration.

Estimate a cavity linewidth from a finite, biased record

Connect the time and frequency descriptions of one damped mode, then diagnose why a weak detector background systematically biases the inferred quality factor.

Know whether the detector reads field or energy

After a drive switches off, let a single cavity mode have complex analytic amplitude \(a(t)=a_0e^{-\kappa t/2}e^{-i\omega_0t}\) for \(t\ge0\). The energy is proportional to \(|a|^2\), giving \(U=U_0e^{-\kappa t}\). Its instantaneous decay rate \(-U'/U=\kappa\) implies

\[Q=\omega_0 U/P_\mathrm{loss}=\omega_0/\kappa.\]

A phase-sensitive receiver measuring field amplitude sees a time constant twice as long as the energy lifetime. Before fitting the data, ask how the measurement transducer converts the field into a reported number.

Fourier transforming the causal decaying amplitude gives an integral proportional to \(1/[\kappa/2-i(\omega-\omega_0)]\), up to the time convention. Its squared magnitude has half-power points at \(|\omega-\omega_0|=\kappa/2\). Therefore the full power linewidth in hertz is \(\Delta f=\kappa/(2\pi)\). A measurement of either the energy decay time \(\tau_U=1/\kappa\) or the spectral width can test the other without having to calibrate the absolute detector gain.

At \(f_0=2.0\) GHz and \(\tau_U=0.50\ \mu\mathrm s\), we obtain \(\kappa=2.0\times10^6\) s⁻¹, \(\Delta f\simeq318.3\) kHz and \(Q\simeq6283\). A field receiver would report an amplitude time constant of 1.0 μs. Substituting that time directly into \(Q=2\pi f_0\tau_U\) would double the apparent quality.

Derive the two-point fit with a detector offset

Let a power detector report \(S(t)=A e^{-\kappa t}+B\), with a constant background \(B>0\). In the absence of background two samples separated by \(\Delta t\) give

\[\widehat\kappa=\log[S(t)/S(t+\Delta t)]/\Delta t.\]

With background, the logarithmic derivative is

\[-\frac{d}{dt}\log S=\kappa\frac{Ae^{-\kappa t}}{Ae^{-\kappa t}+B}.\]

It starts below the true rate and tends to zero in the tail. A straight line fitted to late log data can therefore look impressively precise while overestimating the lifetime. Increasing the acquisition duration can worsen this bias if the entire record is forced into a straight-line model.

In the experiment set \(b=B/A=0.04\). A two-point fit from one true lifetime to two has dimensionless rate \(\log[(e^{-1}+0.04)/(e^{-2}+0.04)]\), approximately 0.844. Its apparent lifetime is about 18.5% high. The source, walls and coupling have not changed. Only the interpretation of detector output has changed. Move the start of the fit towards three lifetimes and inspect the increasing gap from the ideal log line.

Design a second independent inference

With three equally spaced, noiseless readings \(S_0,S_1,S_2\) of one exponential plus a constant, subtract consecutive values before taking a logarithm. If \(a=e^{-\kappa\Delta t}\), the differences are \(A'(1-a)\) and \(A'a(1-a)\), giving \(a=(S_1-S_2)/(S_0-S_1)\). This cancels the constant background. At an interval of one lifetime, a first signal of unit energy and background 0.04 gives approximately \(1.04,0.407879,0.175335\). Their ratio of differences recovers \(e^{-1}\). In a real noise floor two nearly equal readings make this division unreliable. Use multiple windows or fit the raw signal with a measured noise model.

Finite spectral resolution creates a separate challenge. Multiplying the measured field by a rectangular window of duration \(T\) convolves its spectrum with a sinc-like response of width of order \(1/T\). For the 318 kHz linewidth in the example, \(T=1\) μs gives frequency bins spaced by 1 MHz in a basic Fourier transform. Zero padding can interpolate its curve, but cannot restore the unmeasured late-time signal. A parametric fit may extract a sub-bin frequency or decay rate by using its model assumptions; its uncertainty then depends on signal-to-noise ratio and on whether the one-mode theory is adequate.

Check the single-mode model before refining its fit

If two nearby modes reach the same detector, their fields add before squaring. The result contains an interference term oscillating at their frequency difference on top of a decaying envelope. A scalar positive background cannot explain that alternating residual. Test by narrowing the excitation band, moving the pickup to a symmetry node of one mode, or examining a complex receiver's quadratures. A model with two exponentials has more degrees of freedom and can fit noise as well as signal; require consistency across independent records.

An honest linewidth report specifies the measured quantity, acquisition window, background treatment, coupling state, reference frequency and uncertainty. A fit to stored energy measures total loss. Inferring internal absorption alone additionally requires a known port coupling or a measurement that changes it separately, as in the course's cavity project.

Tutorial

A detector background is independently measured but subtracted too aggressively. What feature can appear in the logarithmic tail?

Work through the solution

The corrected signal can approach zero and cross below it. The logarithm then becomes undefined. Even before that point its apparent local slope can become arbitrarily large. Inspect the raw signed residual and its uncertainty instead of dropping nonpositive points without accounting for selection bias.

A second experiment doubles the peak stored energy while the absolute detector offset is fixed. What should happen to the shape of the normalised log tail?

Work through the solution

\(b=B/A\) halves. Background contamination becomes important later by about \(\tau_U\ln2\). A real change in the physical lifetime need not follow that shift when the response remains linear.

Can a passive resonator's intrinsic losses be determined from a single ring-down measured at one port?

Work through the solution

The observed decay is the sum of internal and external rates. A single accurately measured lifetime identifies their sum. A calibrated change in coupling or an independent power budget is needed to separate them.

Choose a frequency that identifies a coil's stored and dissipated energy

Design a small-signal experiment to estimate resistance and inductance, propagate amplitude and phase uncertainty and decide when a distributed field model is needed.

A measured impedance is one complex number

A laboratory sensing coil is driven by a small sinusoidal current at angular frequency \(\omega\). In its simplest usable range, a series model predicts \(Z=R+i\omega L\). The voltage across a port defines the sign of current entering the positive terminal. With peak phasors, complex power is

\[S=VI^*/2=|I|^2(R+i\omega L)/2.\]

Thus the real part measures average irreversible loss. Magnetic energy at peak current is \(L|I|^2/2\); reactive power equals \(\omega\) times this peak energy. These equalities supply two routes to the same parameters provided parasitic capacitance and frequency-dependent losses remain negligible.

At 100 Hz, a coil with \(R=20\ \Omega\) and \(L=40\) mH has reactance \(2\pi(100)(0.040)=25.13\ \Omega\), magnitude 32.12 Ω and phase about 51.49 degrees. A 10 mA peak current produces about 0.321 V peak and 1 mW average resistive loss. The peak magnetic energy is only \(2\,\mu\mathrm J\). Check that the reactive power obtained from the phase and current is about 1.26 mvar. Confusion between RMS and peak phasors easily introduces a factor two while still leaving the impedance ratio correct.

Derive what an amplitude error and a timing error do

Suppose the readout gives magnitude \(M\) and phase \(\phi\). Then \(R=M\cos\phi\), \(L=M\sin\phi/\omega\). For small independent uncertainties and known \(\omega\), differentiate both expressions. The relative first-order perturbations are

\[\frac{\delta R}{R}=\frac{\delta M}{M}-\tan\phi\,\delta\phi,\qquad\]

\frac{\delta L}{L}=\frac{\delta M}{M}+\cot\phi\,\delta\phi .

The phase uncertainty must be expressed in radians. For independent random errors their variances add with the squared coefficients; the signed equations above describe individual perturbations. Near zero phase even a very accurate amplitude tells little about inductance, while near 90 degrees inferring resistance requires exceptional phase accuracy. A near-45-degree measurement balances these two sensitivities when the uncertainty budget treats them similarly.

If the phase uncertainty is 0.5° and relative magnitude uncertainty is 1%, the 45-degree standard deviation in either recovered parameter is approximately \(\sqrt{0.01^2+0.00873^2}=0.0133\), or 1.33%. At five degrees the relative inductance contribution from phase alone is \(\cot5^\circ \times0.00873\simeq10\%\). Taking data at more digits does not improve phase calibration.

Choose the operating point, then challenge the model

Vary frequency at fixed inductance and read where resistive and reactive contributions are equal. The crossover is \(f_c=R/(2\pi L)\), about 79.58 Hz for the default coil. Now double the inductance without changing \(R\); the crossover halves. The graph is a prediction with known parameters. In an actual inverse experiment you know only rough bounds initially. Begin with a small frequency sweep that brackets the crossover, then allocate repeated measurements where the target parameter is most sensitive.

Measure at two or more separated frequencies and reconstruct \(R\) and \(L\) independently at each. A frequency-dependent apparent \(R\) could be caused by skin effect or core loss. A falling apparent inductance near a self-resonance can signal stray capacitance. Simply allowing \(R,L\) to take arbitrary values at each frequency fits all data without explaining the mechanism. Add a candidate physical effect and check an independent observable such as loss under a different current amplitude, ring-down frequency or a change in lead geometry.

Close the loop from a fitted parameter to a field calculation

The lumped magnetic energy \(LI^2/2\) should match the field integral \(\int \mathbf B\cdot\mathbf H\,dV/2\) for a linear reversible system that includes the relevant surrounding field. This is why the exterior air region and its imposed boundary can affect a numerical estimate even when the measured coil is compact. Increase the domain and refine the mesh separately. A converged mesh in a small box can deliver a very repeatable value for the wrong boundary problem. The earlier chapter on mutual-inductance matrices generalises this check to cross terms between currents.

Another independent measurement uses a slowly executed current ramp with a known winding resistance. Subtract the measured resistive voltage from terminal voltage and integrate over time. Under the linear model,

\[\int(V-RI)\,dt=L\Delta I.\]

This test weights offsets very differently from sinusoidal phase detection: a constant voltmeter offset integrates into a bias proportional to record duration, while a high-frequency phase error drops out. Agreement of the two methods is stronger evidence than repeating a single instrument setup at the same frequency.

Tutorial

Only voltage and current magnitudes are available, but two frequencies are accurately known. Can a constant \(R\) and \(L\) be recovered, and what makes the inference fragile?

Work through the solution
\[M_i^2=R^2+\omega_i^2 L^2.\]

Subtract the equations to get

\[L^2=(M_2^2-M_1^2)/(\omega_2^2-\omega_1^2).\]

Insert this in either equation for \(R^2\) and take positive roots. Nearly equal frequencies produce a small denominator; nearly equal magnitudes amplify measurement noise. Under a misspecified model the inferred square can even become negative.

At a fixed frequency the current reverses direction in a repeat measurement but its reference voltage polarity is held fixed. What measurement error could this create?

Work through the solution

Reversing the defined port-current orientation multiplies the inferred impedance by −1 unless the voltage reference is reversed consistently. An apparent negative resistance in passive hardware may be a port convention issue. Check the direction of measured power flow with a known reference resistor.

What extra evidence would justify carrying a fitted inductance into a time-domain prediction?

Work through the solution

Make the prediction for a current waveform whose spectrum lies within the validated range of the measurements. Test at another amplitude for nonlinearity or hysteresis and record the residual voltage after subtracting \(RI+L\,dI/dt\). A successful fit at one frequency alone does not establish a broadband constitutive law.

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

How an unobserved environment changes a quantum state

Model a qubit and a two-state environment by a joint unitary. Derive channels, the continuous-time master equation and the relation between longitudinal and transverse relaxation. A recorded event and an unread detector produce different conditional predictions.

Derive loss of coherence from a larger unitary system

A qubit prepared in \(\alpha|0\rangle+\beta|1\rangle\) interacts with an environment initially in \(|e\rangle\). A joint unitary correlates \(|0,e\rangle\to|0,e_0\rangle,\ |1,e\rangle\to|1,e_1\rangle\), with both environmental states normalised. The joint output is a pure state. Its qubit density matrix follows by tracing over a complete environment basis. Populations stay \(|\alpha|^2,|\beta|^2\). The off-diagonal entry is \(\alpha\beta^*\langle e_1|e_0\rangle\). Orthogonal environment records remove coherence from all local qubit observations; identical records leave its magnitude intact. Partial distinguishability gives a continuous range in between. Energy need not flow in this controlled dephasing model. An observed reduction in fringe contrast can arise from entanglement with unobserved degrees of freedom even when total evolution is unitary.

Consider instead amplitude loss from an excited qubit to an initially empty environment mode:

\[|0,0_e\rangle\mapsto |0,0_e\rangle,\qquad |1,0_e\rangle\mapsto\sqrt{1-p}|1,0_e\rangle+\sqrt p|0,1_e\rangle .\]

The two output states remain orthogonal and unit-normalised, so this map on the prepared environment subspace can be extended to a unitary on the full joint space. If environment state \(k\) is unobserved, sum the associated unnormalised alternatives in density-matrix form:

\[\rho'=\sum_kK_k\rho K_k^\dagger.\]

Here \(K_0=|0\rangle\langle0|+\sqrt{1-p}|1\rangle\langle1|\) and \(K_1=\sqrt p|0\rangle\langle1|\). Since \(\sum K_k^\dagger K_k=I\), trace is preserved. The excited population obeys \(\rho_{11}'=(1-p)\rho_{11}\) and the coherence \(\rho'_{01}=\sqrt{1-p}\rho_{01}\). Averaging state vectors before forming outer products would introduce interference between orthogonal environmental records that have already been traced out.

Take a controlled infinitesimal limit

In a memoryless approximation each small interval \(dt\) meets a fresh environment record with vanishing probability of a previously lost excitation returning. Let jump operators \(L_j\) have units \(1/\sqrt{\mathrm s}\), set \(K_j=\sqrt{dt}\,L_j\) for events and \(K_0=I-dt(iH/\hbar+\sum L_j^\dagger L_j/2)\). Expanding the completeness relation shows trace preservation through first order in \(dt\). Expand \(\sum K_k\rho K_k^\dagger-\rho\), divide by \(dt\) and keep the finite terms:

\[\frac{d\rho}{dt}=-\frac i\hbar[H,\rho]+\sum_j\left(L_j\rho L_j^\dagger-\tfrac12 L_j^\dagger L_j\rho-\tfrac12 \rho L_j^\dagger L_j\right).\]

The first term of each dissipative bracket adds probability after an event and the anticommutator subtracts probability from the no-event branch. Their traces cancel. This construction is completely positive, meaning that the same local channel remains positive even when tensored with identity on an unused entangled ancilla. Positivity only on isolated input states would be too weak: transposition maps density matrices to density matrices on a single system, yet partial transposition can produce a negative eigenvalue when applied to half an entangled pair. The Lindblad form embodies the relevant stronger constraint for the assumed Markovian dynamics.

Independent loss and pure dephasing can be represented by \(L_1=\sqrt{\Gamma_1}|0\rangle\langle1|\),

\[L_\phi=\sqrt{\Gamma_\phi/2}\,\sigma_z.\]

The factor one half in the dephasing operator fixes our convention for \(\Gamma_\phi\). Direct substitution gives \(\dot\rho_{11}=-\Gamma_1\rho_{11}\), while \(\dot\rho_{01}\) acquires \(-(\Gamma_1/2+\Gamma_\phi)\rho_{01}\) in addition to its Hamiltonian phase. Thus

\[T_1=\Gamma_1^{-1},\]
\[T_2^{-1}=(2T_1)^{-1}+\Gamma_\phi .\]

At zero temperature with these mechanisms, \(T_2\le2T_1\). This upper bound is tied to definitions and assumptions. A broad ensemble with static detuning spread, a driven nonequilibrium sample or a refocused pulse sequence may yield an observed envelope with a different shape and timescale. Fitting every contrast decay with one exponential and interpreting that number as the homogeneous \(T_2\) can assign an unphysical dephasing rate.

Update a state when an individual event is recorded

If an ideal detector reports branch \(j\), the probability is \(p_j=\operatorname{tr}K_j\rho K_j^\dagger\), and the normalised conditional output is \(K_j\rho K_j^\dagger/p_j\). The conditional evolution depends on which environment observable is measured; summing outcomes gives the same physical unconditioned channel. In the loss model, detecting one emission places the qubit in its ground state. Absence of an emission also carries information. At finite duration \(t\), no emission acts by \(K_0=|0\rangle\langle0|+e^{-\Gamma_1t/2}|1\rangle\langle1|\) for the simple undriven zero-temperature case.

From initial \((|0\rangle+|1\rangle)/\sqrt2\), at \(t=T_1\ln2\) the no-event probability is

\[(1+1/2)/2=3/4.\]

Conditional excited probability is

\[(1/2)/(1+1/2)=1/3.\]

With the event branch in the ground state, the unconditioned excited probability is \((3/4)(1/3)=1/4\), agreeing with exponential decay of its initial one half. Repeatedly renormalising only no-event trajectories and calling their mean the ensemble population would overestimate survival. If the event detector misses photons, “no click” groups genuine no-emission with undetected emissions and its conditional state is generally mixed.

Use heating and cooling to infer the reservoir

Allow upward and downward transitions at rates \(\Gamma_\uparrow,\Gamma_\downarrow\). Rate equations give

\[\dot p_1=\Gamma_\uparrow(1-p_1)-\Gamma_\downarrow p_1,\]
\[p_{1,\infty}=\frac{\Gamma_\uparrow}{\Gamma_\uparrow+\Gamma_\downarrow},\quad\]
\[p_1(t)=p_{1,\infty}+[p_1(0)-p_{1,\infty}]e^{-(\Gamma_\uparrow+\Gamma_\downarrow)t}.\]

Both upward and downward rates contribute half their sum to coherence decay. If the reservoir is in thermal equilibrium, detailed balance gives

\[\Gamma_\uparrow/\Gamma_\downarrow=e^{-\hbar\omega/(k_BT)}.\]

The population relaxation time measures their sum and equilibrium population measures their ratio, allowing a substantive check of a proposed bath temperature. The relation is a thermodynamic assumption in addition to the two-state rate model. A pumped bath can have the same measured relaxation time with an entirely different stationary population.

For a 5.00 GHz transition, \(\hbar\omega/k_B=h(5\,\mathrm{GHz})/k_B\simeq0.240\) K. A stationary excited fraction 0.10 would imply \(T=0.240/\ln9=0.109\) K under equilibrium. With population relaxation 20 μs the sum of rates is \(5.0\times10^4\,\mathrm{s^{-1}}\), giving 5000 upward and \(45\,000\) downward transitions per second for the respective source populations. Verified independent upward and downward preparations test more than fitting the decay of an initially excited state alone.

Discriminate static detuning, Markovian dephasing and coherent error

A Ramsey experiment prepares an equal superposition, allows free evolution for time \(t\), then converts relative phase to a population by a final analysis pulse. If the detuning \(\delta\) is fixed in each run but varies randomly between runs, then the ensemble coherence is multiplied by the characteristic function \(C(t)=\int p(\delta)e^{-i\delta t}d\delta\). Here \(\delta\) is an angular frequency. For a Gaussian detuning of mean \(\delta_0\) and standard deviation \(\sigma\),

\[C=e^{-i\delta_0t}e^{-\sigma^2t^2/2}.\]

A uniform detuning offset shifts fringe phase without reducing the contrast of a fully coherent, identically repeated preparation. A Lorentzian distribution yields an exponential envelope which can resemble homogeneous Markovian dephasing in a simple time scan. The fitted functional form alone may therefore fail to identify the physical cause of lost contrast.

An ideal instantaneous \(\pi\) pulse about \(x\) halfway through free evolution reverses the effect of a static \(z\)-detuning on relative phase: \(e^{-i\delta t\sigma_z/4}\sigma_x e^{-i\delta t\sigma_z/4}=\sigma_x\), since \(\sigma_x\) anticommutes with \(\sigma_z\). All static offsets refocus at the echo. Independent white Markovian dephasing accumulated in each half is uncorrelated and cannot be undone in this way. The deterministic Hamiltonian error and a rapidly fluctuating environment can share a short Ramsey contrast while giving different echo contrasts. If the pulse itself has finite duration or an angle error, the algebraic cancellation is no longer exact; repeating at two pulse powers tests that particular assumption.

Take \(\sigma/2\pi=20.0\) kHz and negligible damping. At \(t=10.0\,\mu\mathrm s\) the free Ramsey contrast from Gaussian detuning alone is

\[e^{-(1.257)^2/2}=0.454.\]

An ideal echo returns unity. Add independent \(T_1=80\,\mu\mathrm s,\ T_\phi=50\,\mu\mathrm s\). The homogeneous coherence time is

\[[1/(160\,\mu{\rm s})+1/(50\,\mu{\rm s})]^{-1}=38.1\,\mu\mathrm s.\]

The expected echo contrast is now \(e^{-10/38.1}=0.769\) and the ordinary Ramsey contrast \(0.349\). A single fitted \(T_2^*\) cannot display these three separate timescales. Measuring populations, Ramsey fringes and echoes on consistent ensembles gives three complementary observables with independently interpretable limits.

For a time-dependent classical detuning \(\delta(t)\), pulse sequences choose a modulation \(y(t)=\pm1\) multiplying the noise phase. The phase error is

\[\phi=\int y(t)\delta(t)dt.\]

For stationary zero-mean Gaussian noise, \(\langle e^{-i\phi}\rangle=e^{-\langle\phi^2\rangle/2}\) and the variance is a double integral of the noise correlation weighted by \(y(t)y(t')\). Equivalently it is the spectral integral of the power density weighted by \(|\int y(t)e^{i\omega t}dt|^2\), with the normalisation set by the chosen two-sided Fourier convention. A single echo has zero weight at \(\omega=0\) because its two half integrals cancel, while keeping finite-frequency sensitivity. Families of pulse spacings can therefore probe noise timescales rather than simply fitting larger and larger numbers to a nominal coherence time.

Find the damped saturation curve from optical Bloch equations

A continuously driven qubit has an additional route to separate population and coherence relaxation. In a rotating frame let \(H=\hbar(\Omega\sigma_x+\Delta\sigma_z)/2\), with \(z=p_e-p_g\), equilibrium \(z_{\rm eq}=-1\) at zero temperature, and transverse damping \(1/T_2\). Choose a consistent Bloch basis so the commutator gives the cross product of \((\Omega,0,\Delta)\) with \((x,y,z)\). The equations are

\[\dot x=-\Delta y-x/T_2,\]
\[\dot y=\Delta x-\Omega z-y/T_2,\]
\[\dot z=\Omega y-(z-z_{\rm eq})/T_1 .\]

At steady state the first equation gives

\[x=-\Delta T_2 y.\]

The second then gives

\[y=-\Omega T_2 z/(1+\Delta^2T_2^2).\]

Inserting into the third gives

\[z=z_{\rm eq}/[1+\Omega^2T_1T_2/(1+\Delta^2T_2^2)].\]

Thus the excited fraction for \(z_{\rm eq}=-1\) is

\[p_{e,\infty}=\frac{\Omega^2T_1T_2}{2[1+\Delta^2T_2^2+\Omega^2T_1T_2]}.\]

A weak resonant drive gives a population proportional to its power, and a strong continuous drive saturates toward one half rather than preparing a permanently inverted state. Coherent \(\pi\)-pulse inversion is a transient unitary process; continuous steady balance with relaxation gives a different preparation. The full angular-frequency width at half of the on-resonance excitation is \(2\sqrt{1+\Omega^2T_1T_2}/T_2\), so increasing power broadens the line even at unchanged intrinsic \(T_2\).

Choose \(T_1=20\) μs, \(T_2=16\) μs and resonant \(\Omega/2\pi=10\) kHz. The saturation parameter is

\[s=\Omega^2 T_1T_2=1.26.\]

The stationary excited fraction is \(s/[2(1+s)]=0.279\), and the ordinary-frequency full width is

\[\sqrt{1+s}/(\pi T_2)=29.9\,\mathrm{kHz}.\]

At very low drive it would be 19.9 kHz. A measured linewidth that increases approximately as the square root of power at high drive can have this coherent saturation origin without any increase in the environment's pure-dephasing rate. Comparing the zero-power linewidth extrapolation with an independent time-domain \(T_2\) is a stronger test than fitting a single apparent line broadening.

Connect an individual event stream to an ensemble lifetime

The lifetime \(T_1\) of one excited qubit is a distribution of observed emission times across many trials. With perfect detection, no drive and initially excited state, survival \(S(t)=e^{-\Gamma t}\) implies waiting-time density \(w(t)=-dS/dt=\Gamma e^{-\Gamma t}\). The mean waiting time and standard deviation are both \(1/\Gamma\). A no-click trajectory stays in the excited state conditionally until its first emission when the initial preparation is certainly excited. Its unnormalised weight decays exponentially, but assigning every no-click trajectory a continuously decreasing normalised excitation would confuse conditional and unconditioned statements. For an initial superposition the absence record instead changes the normalised state as derived earlier.

Real acquisitions may stop each trial at a fixed deadline \(T_{\rm stop}\). Treating all no-click trials as though they emitted exactly at the deadline biases lifetime inference. For \(n\) observed emissions at times \(t_j\) and \(m\) censored trials with no emission through \(T_{\rm stop}\), the likelihood is proportional to \(\prod_{j=1}^n\Gamma e^{-\Gamma t_j}\prod_{k=1}^m e^{-\Gamma T_{\rm stop}}\). Optimising gives

\[\hat\Gamma=n/(\sum_j t_j+mT_{\rm stop}).\]

The numerator is actual events and the denominator all time observed at risk. For 40 detections totalling 480 μs and 10 additional censored runs each observed 30 μs, the estimate is \(40/780=0.0513\,\mu\mathrm s^{-1}\), or \(T_1\simeq19.5\,\mu\mathrm s\). Discarding the censored runs instead would report 12 μs from the mean detected delay. This statistical correction follows directly from the same physical survival law used for the quantum channel.

Detection inefficiency can cause a different data problem. In a single-excitation undriven trial, a missed decay leaves a qubit in its ground state and unable to emit again. The probability of no registered event up to \(t\) is \(1-\eta[1-e^{-\Gamma t}]\) at constant efficiency \(\eta\), with a nonzero late plateau \(1-\eta\). It is not \(e^{-\eta\Gamma t}\), which would describe thinning a renewable stationary Poisson event stream. Long-time survival of the recorded count and independent final-state readout can distinguish a missed emission from a genuinely long-lived excitation. This example shows why the detector model must specify whether events can repeat after one has been missed.

Audit a reconstructed Pauli noise channel

Suppose three independently prepared Bloch components appear to shrink by factors \(\lambda_x,\lambda_y,\lambda_z\) after a calibrated waiting time, with no displacement of the centre. A diagonal unital qubit channel can be written \(\mathcal E(\rho)=\sum_{\nu=0,x,y,z}p_\nu\sigma_\nu\rho\sigma_\nu\) for a physical Pauli mixture. Expanding its action on the three axes and inverting gives

\[p_0=(1+\lambda_x+\lambda_y+\lambda_z)/4,\]
\[p_x=(1+\lambda_x-\lambda_y-\lambda_z)/4,\]

with cyclic partners for \(p_y,p_z\). Complete positivity demands all four numbers be nonnegative. Checking each \(|\lambda_i|\le1\) only checks lengths along single Bloch axes and, for this diagonal map, positivity on a single qubit. It does not guarantee that the reconstructed operation is consistent on half of an entangled system.

For \(\lambda=(0.9,0.9,0.5)\), every axis appears to shrink, yet \(p_z=(1-0.9-0.9+0.5)/4=-0.075\). Thus the exact diagonal unital channel inferred from those numbers is not completely positive. Finite measurement noise, neglected affine offsets or changing preparation could be responsible. Compare the fit with uncertainty regions and a constrained process model; simply forcing each measured contraction coefficient into \([-1,1]\) cannot repair this violation. As a constructive control, \(\lambda=(0.8,0.7,0.6)\) gives \(p_0=0.775,\ p_x=0.125,\ p_y=0.075,\ p_z=0.025\), all valid and summing to one. A simulator using these four random Pauli operations on entangled inputs then supplies a direct check of the estimated channel beyond single-qubit positivity.

Test how a coherence measurement depends on an ensemble

Compare quasistatic frequency spread with homogeneous decay in a Ramsey sequence. Identify which further measurement could distinguish the mechanisms.

Prove when two different event descriptions give the same channel

A given unconditioned quantum operation does not determine a unique set of environmental records. Suppose a set of Kraus operators \(K_j\) describes a channel. If an environment detector resolves an alternative orthonormal basis related by unitary \(U=(u_{\alpha j})\), its new system operators are \(\tilde K_\alpha=\sum_j u_{\alpha j}K_j\). Summing the unnormalised conditional outputs gives

\[\sum_{\alpha,j,k}u_{\alpha j}u_{\alpha k}^*K_j\rho K_k^\dagger=\sum_jK_j\rho K_j^\dagger.\]

This calculation explains why environment-dependent state trajectories can be quite different while every unconditioned prediction on the system agrees. A simulator's choice of individual jump records only describes a particular monitoring scheme when the environment observable actually corresponds to those records.

Consider complete dephasing in the \(z\) basis. One representation is \(K_0=|0\rangle\langle0|,\ K_1=|1\rangle\langle1|\), an ideal path measurement with its result forgotten. Rotate the two environment labels by the Hadamard matrix to obtain

\[\tilde K_+=(I/\sqrt2),\ \tilde K_-=(\sigma_z/\sqrt2).\]

These describe equally likely identity or phase-flip operations. For input \(|+x\rangle\), the first recorded instrument conditionally gives \(|0\rangle\) or \(|1\rangle\); the second gives \(|+x\rangle\) or \(|-x\rangle\). Both produce \(I/2\) if their outcome is ignored. For initial \(|0\rangle\) the first record is deterministic, while the second remains equally random and leaves the state unchanged up to a phase. Measuring only the system after discarding the labels cannot tell which set was used, but correlations with a retained environmental measurement can immediately tell them apart.

The same distinction is useful for a partially dephasing environment. If \(|0\rangle,|1\rangle\) become correlated with environment states of real overlap \(c\), the qubit's transverse Bloch vector contracts by \(c\). For \(-1\le c\le1\) a random phase-flip representation has probabilities \(p_I=(1+c)/2,\ p_Z=(1-c)/2\). For \(c<0\) a fringe phase reversal accompanies partial contraction; a reported positive “visibility” loses that sign. One can separate a deterministic phase rotation from the magnitude of random or entangling dephasing if the phase reference is maintained. Over independent identical intervals a real \(c\) multiplies repeatedly; the coherence after \(n\) steps is \(c^n\). If the same randomly chosen phase flip is instead held fixed throughout all intervals, successive errors are correlated and the even-step coherence can return to one. A single-step channel tomography cannot identify the environmental memory shared across steps.

Tell apart a memoryless phase-flip channel and a fixed hidden phase

Both devices individually implement \(p_Z=0.20\) over a calibrated interval for freshly prepared qubits. In device A the phase-flip draws at successive intervals are independent. In device B one draw is held fixed for both consecutive intervals. Predict \(+x\) readout after one and two intervals for an initial \(|+x\rangle\).

Derive and check the result

One interval leaves \(x=1-2p_Z=0.60\), so both devices give

\[P(+x)=0.80.\]

Independence in A gives \(x=0.60^2=0.36\) after two intervals, or \(P(+x)=0.68\). For B, two identical phase flips multiply to identity whether the hidden choice was identity or \(Z\), hence \(P(+x)=1\). In both devices the one-step process applied to an independently prepared ensemble is consistent with the measured completely positive map. Composing that map twice implicitly assumed fresh, independent environment conditions; a memory experiment tests exactly that assumption. Observing a revival thus need not imply an energy input, a negative probability or a nonunitary failure in the larger coupled system.

Distinguish dipole coherence from an excited-state population lifetime

Consider a single initially excited emitter in a memoryless zero-temperature environment with radiative population decay \(\Gamma\) and no additional dephasing. The probability density of emitting at time \(t\ge0\) is \(\Gamma e^{-\Gamma t}\). A normalised single-photon temporal mode consistent with this ideal undistinguished radiative channel is \(g(t)=\sqrt{\Gamma}\,e^{-\Gamma t/2}e^{-i\omega_0t}\) on \(t\ge0\). Its field amplitude decays twice as slowly as the population probability. Use the Fourier convention \(\tilde g(\omega)=(2\pi)^{-1/2}\int g(t)e^{i\omega t}dt\). The half-line exponential integral gives

\[|\tilde g(\omega)|^2=\frac{\Gamma}{2\pi[(\Gamma/2)^2+(\omega-\omega_0)^2]} .\]

It integrates to one in angular frequency. At a detuning of \(\Gamma/2\) the intensity has half its peak, so the full angular-frequency linewidth is \(\Gamma\), or \(\Gamma/(2\pi)\) in hertz. Using the population decay directly as a field amplitude would predict a linewidth twice too large and the wrong wave-packet envelope. The transform-limited result requires a single radiative mode in the sense of a pure emitted temporal state and absence of additional phase randomisation. Extra pure dephasing broadens the spectrum while population decay may remain unchanged.

For \(\Gamma^{-1}=10.0\) ns the ideal linewidth is 15.9 MHz. Add independent homogeneous pure dephasing at \(\Gamma_\phi=2.0\times10^7\ \mathrm{s^{-1}}\). The first-order dipole correlation decays at \(\Gamma/2+\Gamma_\phi\), giving a full line width \((\Gamma/2+\Gamma_\phi)/\pi=22.3\) MHz. The photon detection time distribution can still have 10 ns decay. A measured line twice its nominal transform-limited width might indicate pure dephasing, but spatially varying frequencies, slow source drift or spectral resolution can also broaden the observed distribution. A lifetime measurement alone does not calibrate those effects.

The acquisition window has an independently calculable consequence. If only photons arriving before time \(T\) are retained, their normalised temporal mode is a truncated exponential divided by \(\sqrt{1-e^{-\Gamma T}}\) in this ideal pure-emission model. Its Fourier amplitude gains factor \(1-e^{-[\Gamma/2-i(\omega-\omega_0)]T}\) in the numerator. At \(T\ll1/\Gamma\) the shape approaches the squared sinc of a short rectangular temporal window. Selecting only early photons can thus broaden the spectrum even though the emitter and its environment are unchanged. A time gate, an energy filter and unconditioned counting describe different optical preparations and different uncertainty budgets.

Infer the transform-limited fraction from a linewidth and test the model

A homogeneous line has measured weak-drive full width 25.0 MHz and population lifetime 10.0 ns. Compute \(T_2\) and the implied pure dephasing rate assuming ideal Lorentzian broadening. Which second measurement would discriminate this inference from static sample inhomogeneity?

Derive and check the result

With angular half width \(1/T_2\), the frequency full width is \(1/(\pi T_2)\), so \(T_2=12.73\) ns. Subtracting \(1/(2T_1)=5.00\times10^7\ \mathrm{s^{-1}}\) from \(1/T_2=7.85\times10^7\ \mathrm{s^{-1}}\) gives

\[\Gamma_\phi=2.85\times10^7\ \mathrm{s^{-1}}.\]

The coherence relative to the radiative limit is

\[T_2/(2T_1)=0.637.\]

Compare a time-domain echo, a single-emitter linewidth or spectra over short acquisition segments with the ensemble line. A recoverable component of contrast or slowly wandering line centres would indicate a static or slow contribution instead of assigning every megahertz to homogeneous phase damping.

Tutorial · distinguish different sources of coherence loss

Recover a pure-dephasing rate and assess a conflicting fit

A population measurement gives

\[T_1=30.0\,\mu\mathrm s;\]

homogeneous Ramsey contrast gives

\[T_2=24.0\,\mu\mathrm s.\]

Find \(T_\phi\). What would a reported \(T_2=80\,\mu\mathrm s\) imply in the same model?

Work through the solution

Subtract \(1/(60\,\mu{\rm s})\) from \(1/(24\,\mu{\rm s})\) to get \(\Gamma_\phi=0.0250\,\mu{\rm s}^{-1}\), hence \(T_\phi=40.0\,\mu\mathrm s\). Replacing 24 by 80 yields a negative pure dephasing rate, incompatible with the specified independent time-homogeneous channels. Check the fitted envelope, uncertainties, thermally shifted equilibrium population and whether the two times were measured under comparable conditions. A negative fitted number is evidence about the model or data interpretation, not a physically negative random-event rate.

Calculate an inefficient no-click update

The initial excited probability is one half, the decay probability for an initially excited qubit during the window is 0.40, and a true emitted excitation is detected with efficiency 0.75. Find the probability of no click, its conditional excited fraction and the unconditioned population.

Work through the solution

A real emission occurs with probability \(0.5\times0.40=0.20\); a click is seen with probability 0.15, so no click has probability 0.85. Remaining excited and no click occurs with probability \(0.5(1-0.40)=0.30\). Conditional excitation is \(0.30/0.85=0.3529\); the unconditioned excitation is 0.30 since clicked branches are ground. For an initially coherent preparation the no-click off-diagonal term must also be updated by grouping the undetected-emission and true-no-emission Kraus outcomes. Simply replacing \(p\) by detector efficiency times \(p\) would predict the wrong physical excitation loss.

Diagnose a nonphysical time step and repair it

Apply one forward-Euler step to \(\dot p_1=-\Gamma p_1\) with initially excited state and \(\Gamma\Delta t=1.2\). Compute the prediction and an exact completely positive alternative. Would enforcing unit trace fix Euler's failure?

Work through the solution

Euler gives \(p_1=1-1.2=-0.2,\ p_0=1.2\), already with exact trace one. The finite-time amplitude-damping channel has \(p=1-e^{-1.2}=0.6988\), giving \(p_1=0.3012\). For this simple model the exact Kraus step can be applied repeatedly at arbitrary duration. In a driven model an operator-splitting scheme with unitary Hamiltonian substeps and completely positive damping substeps maintains positivity while introducing a controllable splitting error. Check convergence by halving the step and comparing with an independent observable. Renormalising trace or clipping a negative eigenvalue changes the numerical trajectory without diagnosing the original time-step error.

Further reading