Fundamentals / Numerical mathematics / Numerical linear algebra

Numerical linear algebra · Advanced study

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

  1. Operators derived from a physical balance

    Construct the matrix of a constrained network, a mechanical mode or a spatial field. Determine its nullspace, symmetry and natural inner product before choosing a factorisation.

  2. Ill conditioning and information

    Inspect the small singular directions in actual observation operators. Distinguish a good residual from a well-determined physical parameter.

Operators derived from a physical balance

Construct the matrix of a constrained network, a mechanical mode or a spatial field. Determine its nullspace, symmetry and natural inner product before choosing a factorisation.

  1. How a continuum balance becomes a finite-element stiffness matrix
  2. Finding a displacement when no load acts in its direction
  3. Coupled oscillators and normal coordinates
  4. Estimating a cantilever frequency from energy
  5. Incompressibility and discrete pressure modes
  6. Pure flux boundaries, compatibility and the missing constant
  7. Why two finite-element wave solvers propagate the same mode at different speeds
  8. A converged field solver can still give the wrong voltage
  9. Measure tunnelling from a four-site spectrum
  10. How many lattice sites remember the colour of a neighbour?

How a continuum balance becomes a finite-element stiffness matrix

A single bar element can predict an end displacement exactly and still miss the stress field inside. The difference follows directly from the balance it is asked to satisfy.

Turn a differential balance into work against a test displacement

Let a straight small-strain bar of length \(L\) have area \(A\), Young’s modulus \(E\), displacement \(u(x)\) and distributed axial load \(q(x)\) in N/m. Tensile axial resultant is \(N=EAu'\). Force balance on a slice gives \(N'+q=0\). Clamp the left end and prescribe a right-end force \(P\). Multiply the balance by any smooth virtual displacement \(v\) satisfying \(v(0)=0\), integrate along the bar, and integrate the derivative of \(N\) by parts.

\[\int_0^L EA\,u'v'\,dx=P\,v(L)+\int_0^L qv\,dx .\]

The boundary term at the clamp disappears because that displacement is prescribed. The unknown reaction can later be recovered by equilibrium. This formulation requires only first derivatives of trial displacements. Piecewise linear displacements are therefore admissible even though their slopes may jump at internal nodes.

Compute the stiffness rather than memorising it

On an element from \(x=0\) to \(h\), interpolate the two nodal displacements linearly:

\[u=(1-x/h)u_1+(x/h)u_2.\]

Let the test displacement have the same two basis functions. A virtual change of the first or second node gives the corresponding row of the balance. Both derivatives are constant with opposite signs.

\[B=\begin{bmatrix}-1/h&1/h\end{bmatrix},\qquad K_e=\int_0^h B^T EA B\,dx=\frac{EA}{h}\begin{bmatrix}1&-1\\-1&1\end{bmatrix}.\]

For a constant distributed load, each basis function integrates to \(h/2\), so each node receives equivalent load \(qh/2\). The two rows of stiffness sum to zero. A uniform translation stores no strain energy. At a shared node the neighbouring virtual-work contributions add because both elements refer to the same unknown displacement.

Worked example · compare a nodal value with the stress in a cell

Take a 1 m bar with \(EA=2.0\) MN, uniform \(q=1200\) N/m and free right end. Exact balance integrated from \(N(L)=0\) gives

\[N=q(L-x).\]

Integrating strain from the clamp produces \(u=q(Lx-x^2/2)/(EA)\). The free-end displacement is 0.300 mm. With a single element the free row of the discrete system has stiffness \(EA/L\) and load \(qL/2\), giving the same displacement. Yet its piecewise constant axial force is

\[EAu(L)/L=600\,\mathrm{N}.\]

The exact force ranges from 1200 N at the clamp to zero at the free end. The numerical force represents the mean over the cell.

Worked example · see what doubling resolution changes

Divide the bar into two equal elements. The middle node receives 600 N from both halves together, while the free node receives 300 N. The right element carries 300 N. Equilibrium of the middle node then puts 900 N in the left element. Their extensions are \(900(0.5)/(2\times10^6)=0.225\) mm and 0.075 mm. Nodal displacements agree with the exact quadratic at both nodes. The largest one-sided stress-resultant error within either element is now 300 N instead of 600 N. Comparing only tip displacements would hide this improvement.

Double the number of cells until the force error is below 100 N for the baseline load. Inspect the values on both sides of an element boundary and explain why agreement in tip displacement alone could have ended this refinement study too early.

A related OneSimulation calculation

Compare the bar’s nodal displacement with a OneSimulation truss assembled from axial members. Run the area-doubling case and check the predicted inverse-area change in displacement.

Run the truss stiffness comparison in OneSimulation

Tutorial · find the support reaction from the discarded row

For the two-element calculation, recover the left reaction using the assembled loads and displacement. Then derive an expression for the maximum axial-force error with \(n\) equal elements. Why can two different mesh studies give two different conclusions?

Evaluate the clamp row and the local profile

The left internal nodal force is \(-900\) N. The left external distributed-load share is \(+300\) N. Equilibrium requires an additional reaction \(-1200\) N. On an element of width \(L/n\) the exact linearly varying force changes by \(qL/n\); its constant midpoint approximation misses an endpoint by \(qL/(2n)\). Tip displacement and maximum local force answer different engineering questions. Mesh convergence must therefore name its measured quantity.

Further reading · A. F. Bower, Applied Mechanics of Solids, §8.1, finite-element equations for elastic solids

Finding a displacement when no load acts in its direction

A displacement gauge measures the lateral travel of a truss joint under a vertical load. A force balance determines the bar forces, but cannot directly give the sideways motion. Introduce a dummy load, differentiate the stored energy and recover the gauge reading with its sign.

Link an external force coordinate to stored strain energy

For a linear elastic pin-jointed truss, neglect support movement and temperature changes and assume small displacements. Bar i has constant axial force \(N_i\), length \(L_i\), modulus \(E_i\) and area \(A_i\). Integrating its force against its extension gives

\[U_i=N_i^2L_i/(2E_iA_i).\]

Superposition makes each force linear in the external loads. A small increment of load changes the equilibrium configuration. For a linear elastic conservative system the complementary energy equals U and its derivative with respect to an independent applied force gives displacement along that force.

\[U=\sum_i{N_i^2L_i\over2E_iA_i},\]
\[\delta_Q={\partial U\over\partial Q}=\sum_i {N_i n_i L_i\over E_iA_i},\]
\[n_i={\partial N_i\over\partial Q}.\]

The derivative \(n_i\) is the member force produced per unit trial load in the requested direction, with all other independent loads held fixed. Solve this trial equilibrium even if \(Q=0\) physically. Setting \(Q=0\) before differentiating erases its entire contribution. As a dimensional check, \(n_i\) is dimensionless when Q and \(N_i\) both use newtons, and the sum has dimensions of length.

Compute the two-bar flexibility matrix

A joint hangs from two overhead pins by straight bars slanting up-left and up-right, each at 45° to horizontal. Positive joint coordinates are rightward and downward. Let V be the applied downward force and H the rightward force; bars carry tension positive. Equilibrium gives

\[N_L=(V+H)/\sqrt2,\ N_R=(V-H)/\sqrt2.\]

Define bar axial compliances \(c_i=L_i/(E_iA_i)\). Insert the forces into the energy and differentiate with respect to H and V independently:

\[\begin{bmatrix}\delta_H\\\delta_V\end{bmatrix}={1\over2}\begin{bmatrix}c_L+c_R&c_L-c_R\\c_L-c_R&c_L+c_R\end{bmatrix}\begin{bmatrix}H\\V\end{bmatrix}.\]

The cross coefficients are equal because the mixed derivatives of the stored energy commute. This is Maxwell–Betti reciprocity. A cross displacement can be negative even though both direct compliances and stored energy are positive. The eigenvalues of this particular flexibility matrix are \(c_L,c_R\), corresponding to the two independent bar-extension directions.

Predict a sideways gauge reading and reverse the test

Take \(c_L=0.0020,\ c_R=0.0040\) mm/N. At \(V=100\) N and \(H=0\), both members carry 70.71 N. The vertical displacement is \(0.300\) mm, and the horizontal displacement is −0.100 mm. The more compliant right bar stretches farther; the joint moves left and down to accommodate both bar extensions. Half the vertical load times its displacement gives 15 N mm of strain energy. Summing the two bar energies independently gives the same result.

Apply instead \(H=100\) N and \(V=0\), assuming the slender right bar remains stable under compression. The vertical reading is −0.100 mm and horizontal motion is +0.300 mm. Thus the lateral response to the vertical test predicts the vertical response to a lateral test of equal magnitude. Equalizing bar areas would remove the cross response if the lengths and moduli matched. In practice a pin with clearance or a cable that goes slack can break the assumed linear bilateral response.

Exchange the left and right compliances. Before looking at the new graph, mark which readout should reverse sign and which should remain equal. Then set the two values alike and identify the symmetry that removes cross-coupling.

A related OneSimulation calculation

Use the course truss to test the same flexibility scaling on a larger assembly. Double every member area at fixed loads and geometry, then compare the joint displacement with the separately calculated chord force.

Run the OneSimulation truss experiment

Tutorial · identify the two member compliances from one load case

A 200 N vertical test gives +0.50 mm down and +0.10 mm right. Estimate each compliance and predict horizontal travel under simultaneous 60 N rightward and 100 N downward loading. How can one additional gauge reading test reciprocity?

Show the identification and loading prediction

Direct compliance is \(0.50/200=0.0025\) mm/N and cross compliance is \(0.10/200=0.0005\) mm/N. Adding and subtracting gives \(c_L=0.0030,\ c_R=0.0020\) mm/N. The predicted horizontal motion is

\[0.0025(60)+0.0005(100)=0.200\,\mathrm{mm}.\]

A 200 N rightward test should give +0.10 mm down. A disagreement after changing load direction suggests checking seating and the linear-elastic domain before assigning a single compliance to each bar.

Further reading · David Roylance, MIT 3.11 · truss displacements, strain energy and Castigliano’s theorem

Coupled oscillators and normal coordinates

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

From first principles

Find natural modes from the free force balance

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

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

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

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

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

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

Derivation and applications

Quantify the splitting of two weakly coupled modes

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

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

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

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

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

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

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

Worked example

Time the exchange of motion

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

Change the inputs and inspect this calculation below

Second application

Estimate coupling from a beat measurement

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

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

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

Interactive calculation · Change the inputs of this example

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

Two masses allow two independent shapes

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

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

Separate space from time

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

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

Taking both signs of the square root gives

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

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

Predict a release test at both instruments

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

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

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

Distinguish available modes from visible modes

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

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

Predict which mode responds to adding rotary inertia

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

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

Derive bounce and pitch modes of a supported machine

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

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

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

Separate a heaving mode from a rocking mode

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

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

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

For the lower mode the first row implies

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

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

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

Find a sensor position that can see a mode

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

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

Download all 201 plotted samples (CSV)

Interactive calculation · change the inputs of this example

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

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

Estimating a cantilever frequency from energy

A clamped beam carries a small sensor at its tip. Its precise mode shape is unknown. Use the static deflection shape to approximate the fundamental frequency and see why concentrating a small mass at the tip has a large effect.

Choose a displacement field that respects the support

Write \(w(x,t)=q(t)\phi(s)\) with \(s=x/L\), taking \(q\) as tip displacement. Choose the shape from a uniform cantilever under a static transverse tip force. The bending moment varies linearly from root to tip. Integrating curvature twice with \(w(0)=w'(0)=0\), then normalizing at \(s=1\), gives

\[\phi=s^2(3-s)/2.\]

The shape satisfies both essential clamp conditions. Its free-tip shear need not match the exact unloaded vibration mode. The energy formulation can use such admissible trial shapes.

Background · Rayleigh quotient
\[R(u)=u^\mathsf TK u/(u^\mathsf TM u)\]

For symmetric stiffness and positive mass this estimates squared angular frequency. A kinematically admissible displacement is required for a useful structural estimate.

Compute effective stiffness and mass from the same field

The strain energy density of a slender beam in bending is \(\tfrac12 EI w_{xx}^2\). Its translational kinetic energy is \(\tfrac12\rho A w_t^2\) per unit length. Changing variables from x to s introduces different powers of L into the two integrals. Include a point mass M at the tip, neglecting its rotary inertia.

\[U={EI q^2\over 2L^3}\int_0^1(\phi'')^2\,ds,\]
\[K={\dot q^2\over2}\left[\rho AL\int_0^1\phi^2\,ds+M\right].\]

Since \(\phi''=3(1-s)\), the stiffness integral is 3. Squaring \(s^2(3-s)/2\) and integrating \( (9s^4-6s^5+s^6)/4\) gives \(33/140\). The Euler–Lagrange equation for q is consequently a single oscillator equation with

\[\omega_R^2={3EI/L^3\over(33/140)\rho AL+M}.\]

For M=0 this gives the dimensionless coefficient \(\sqrt{140/11}=3.5675\). Solving the exact unloaded cantilever condition \(\cosh\beta\cos\beta=-1\) gives

\[\beta_1^2=3.5160.\]

The estimate is high by about 1.5%. The Rayleigh minimum principle explains that direction of error for conservative systems with admissible trial shapes. Restricting motion to a single shape restricts the set over which the energy quotient can attain its minimum.

Choose a sensor after estimating its dynamic effect

Take \(EI=10\) N m², \(L=0.50\) m and total beam mass 0.40 kg. The tip stiffness is 240 N/m and the distributed effective mass is only 0.0943 kg. The estimate gives 8.03 Hz without a sensor and 6.49 Hz with a 0.05 kg tip sensor. The sensor weighs one eighth of the beam, yet it has over half the effective mass associated with the chosen tip coordinate.

Place the same sensor at half-span instead. There \(\phi(0.5)=0.3125\). Its kinetic energy contributes \(M\phi(0.5)^2=0.00488\) kg to the effective mass, so the estimate rises to 7.83 Hz. The sensor measures a smaller local motion as it perturbs the frequency less. Compare that trade-off at different attachment positions with the plot.

Move along the position axis with a fixed sensor mass. Identify the interval in which frequency is most sensitive to changing attachment position. Double the sensor mass and check whether the change in frequency doubles at the tip.

A related OneSimulation calculation

The course frame model has several modes and an independently variable payload rotary inertia. Compare a pure translation-mass change with a rotary-inertia change; the scalar point-mass estimate above addresses the first mechanism.

Open the OneSimulation frame eigenvalue experiment

Tutorial · estimate an unknown attached mass

The same bare beam is fitted with a small tip part and resonates at 6.0 Hz. Estimate the attached mass. Give one reason the inferred mass could differ from a scale reading even when the frequency measurement is accurate.

Show the mass estimate

The required effective mass is

\[240/(2\pi\cdot6)^2=0.1689\,\mathrm{kg}.\]

Subtract 0.0943 kg for the beam to obtain about 0.0746 kg. Clamp compliance would reduce the effective stiffness and frequency, which this fit would interpret as extra tip mass. The trial shape and omission of rotary inertia also limit the estimate for a part with appreciable extent.

Further reading · Bower, Applied Mechanics of Solids · Rayleigh–Ritz methods

Incompressibility and discrete pressure modes

Derive the velocity–pressure block system and use a periodic mesh to detect a pressure pattern that exerts no discrete force.

From first principles

Eliminate velocity to expose the pressure equation

In a mixed incompressible discretization, velocity responds to applied force and pressure while pressure enforces zero discrete divergence. Let \(A\) be a positive definite velocity block after applying boundary conditions, \(B\) the discrete divergence, and use \(B^\mathsf T\) with the corresponding weak pressure sign convention. With forcing \(f\) and prescribed divergence \(g\) the block equations are

\[Au+B^\mathsf T p=f,\]
\[Bu=g .\]

Eliminate velocity by applying the inverse action of \(A\) to the first equation and substituting into the second. The resulting pressure Schur system is

\[S p=BA^{-1}f-g,\]
\[S=BA^{-1}B^\mathsf T .\]

Since \(p^\mathsf TSp=(B^\mathsf Tp)^\mathsf T A^{-1}(B^\mathsf Tp)\), a pressure vector is invisible precisely when its discrete gradient vanishes. A constant pressure often has this property by physics; additional oscillatory pressure null modes can indicate incompatible spaces. Fixing a pressure reference removes the arbitrary constant but does not cure those extra modes. Once pressure is obtained, substitute it back to recover a velocity satisfying the original continuity equation.

Derivation and applications

Follow a pressure Fourier mode through two discrete gradients

The divergence and pressure-gradient operators must recognize every nonconstant pressure that is meant to constrain the velocity. Consider an even number of uniformly spaced periodic cells along a line, with pressure \(p_j\) at cell centres. A one-dimensional Fourier mode \(p_j=e^{ij\theta}\) is a convenient algebraic test; the constant mode is the expected arbitrary pressure reference. Suppose a colocated method uses a centred pressure gradient at the same locations:

\[(G_cp)_j=(p_{j+1}-p_{j-1})/(2h)=i[\sin\theta/h]e^{ij\theta}.\]

The pressure Schur operator in a simplified projection with identity velocity mass is \(G_c^\ast G_c\). Its eigenvalue is the squared magnitude of that gradient multiplier. It vanishes both at \(\theta=0\) and at the checkerboard \(\theta=\pi\). To compare, place normal velocity at faces and difference its adjacent cell pressures:

\[(G_sp)_{j+1/2}=(p_{j+1}-p_j)/h=\frac{2i\sin(\theta/2)}h e^{i(j+1/2)\theta}.\]

Combining the face gradient with its adjoint yields two different pressure operators on the same grid:

\[\lambda_c(\theta)=\sin^2\theta/h^2,\]
\[\lambda_s(\theta)=4\sin^2(\theta/2)/h^2 .\]

At long wavelengths both agree with \(k^2\) for physical wavenumber \(k=\theta/h\). At the alternating mode, staggered differences detect adjacent pressure differences even though a centred two-cell difference cancels them. This calculation isolates one spatial compatibility issue; other geometries and velocity boundary conditions require the full divergence-gradient pairing to be checked.

Worked example

Compare a resolved oscillation with a checkerboard

On a grid with \(h=0.100\) m, choose \(\theta=\pi/2\). The two Schur eigenvalues are \(100\) and \(200\) m⁻². At \(\theta=\pi\) they become zero and \(400\) m⁻² respectively. A unit-amplitude alternating pressure consequently produces zero centred forces, although its differences across neighbouring faces have magnitude \(20.0\) per metre.

Second application

Test the effect of setting the pressure mean to zero

An even periodic grid with pressure values \(+3,-3,+3,-3\) Pa has zero arithmetic mean. Fixing that mean does nothing to its spurious mode in the centred scheme. With face velocities the pressure gradients alternate between \(-60\) and \(+60\) Pa/m for \(h=0.100\) m. A compatible projection sees these forces and excludes this pattern from the nullspace. Removing an arbitrary constant addresses a different degeneracy.

Pressure enforces a constraint

For a steady incompressible viscous fluid, one simplified model is \(-\mu\Delta u+\nabla p=f\), \(\nabla\cdot u=0\), with prescribed wall velocity. Multiplying momentum by a velocity test function vanishing at the wall and integrating by parts gives

\[\mu\int\nabla v:\nabla u-\int p\,\nabla\cdot v=\int f\cdot v.\]

Testing incompressibility with a pressure test function completes a coupled weak formulation. Adding a constant to pressure leaves its gradient unchanged, so use a reference pressure or impose zero mean in a closed domain.

Choose discrete velocity and pressure spaces, and define \(B\) as the negative weak divergence. After eliminating prescribed velocities, the block equations are

\[Au+B^Tp=f,\ Bu=0,\]

with \(A\) positive definite under these boundary conditions. Eliminating velocity yields the pressure operator \(BA^{-1}B^T\). Its quadratic form is \((B^Tp)^TA^{-1}(B^Tp)\). A nonconstant pressure whose discrete gradient vanishes therefore survives as a spurious null mode, even if the velocity block is exceptionally well conditioned.

Test a checkerboard

On an even periodic one-dimensional grid use the collocated centred gradient \((p_{j+1}-p_{j-1})/(2h)\). Choose \(p_j=(-1)^j\). The two neighbouring pressures match, so the gradient is zero at every velocity point. The pressure has zero mean and amplitude one, making it independent of the constant pressure ambiguity. For values \(1,-1,1,-1\) and \(h=0.25\), the result is still the identically zero vector. A pressure solver applied to such a discretisation can retain arbitrary amounts of this alternating pattern without changing the velocity residual.

Placing velocities on the faces instead leads to a face gradient \((p_{j+1}-p_j)/h\). On the same four-cell grid its magnitudes are all 8 with alternating signs. This layout couples the previously invisible pressure variation to the velocity unknowns. The one-dimensional example diagnoses an algebraic pairing issue. In higher dimensions the geometry, boundaries and full selection of discrete spaces also affect stability.

A uniform coupling requirement

A family of stable mixed spaces requires a lower bound, independent of mesh size, on the largest discrete divergence pairing a normalised pressure can obtain with a normalised velocity test. This is the discrete inf-sup condition, with pressures measured after removing their constant ambiguity. It excludes both exact checkerboards and nearly invisible modes that become worse as the mesh is refined. A standard finite-element pairing on suitable triangulations combines continuous quadratic velocities with continuous linear pressures. Other pairings need a separate stability argument or stabilising terms.

Check discrete divergence and momentum, then inspect pressure on grid-scale patterns. A smooth velocity, or even a small residual in both block equations, provides very little information about the amplitude of a pressure component on which those equations have no sensitivity.

Give pressure a reference without changing forces

Replacing a four-cell periodic pressure vector \((2,4,6,8)^T\) by its zero-mean representative \((-3,-1,1,3)^T\) leaves every face difference unchanged. The mean removal fixes one arbitrary pressure level. Adding the checkerboard \((1,-1,1,-1)^T\) also preserves its mean, yet changes the individual face differences. This distinction makes a practical diagnostic: verify a constant shift has no physical effect, then test whether a nonconstant alternating shift produces a physically nonzero force in the chosen velocity space. Passing the former test alone cannot reveal uncoupled pressure coordinates.

Project a tentative velocity onto discrete incompressibility

After an explicit force update a tentative velocity \(v^\ast\) may have nonzero discrete divergence. Suppose \(M\) is a symmetric positive definite velocity mass matrix and the desired constraint is \(Bv=0\). Find the divergence-free velocity closest to \(v^\ast\) in the kinetic metric by minimising \((v-v^\ast)^TM(v-v^\ast)/2\). Introducing a multiplier \(p\) gives

\[M(v-v^\ast)+B^Tp=0.\]

Applying \(B\) to the resulting corrected velocity yields

\[BM^{-1}B^Tp=Bv^\ast.\]

Here \(p\) acts as a pressure impulse; conversion to a physical pressure depends on the time-step and scaling conventions.

The correction \(M^{-1}B^Tp\) is mass-orthogonal to every admissible velocity \(w\), since \(w^TB^Tp=(Bw)^Tp=0\). Hence the norm of the tentative state splits into squared norms of the corrected velocity and removed component. This projection never increases kinetic energy in homogeneous constraints. A null pressure mode with \(B^Tp=0\) does not affect the corrected velocity; fixing a gauge can select a unique multiplier. If the discrete gradient and divergence are assembled inconsistently, the orthogonality and corresponding energy argument may fail even if a pressure equation is solved accurately.

Follow an impulse through three velocity unknowns

Choose \(M=\operatorname{diag}(1,2,1)\), and let \(Bv=(v_1-v_2,v_2-v_3)^T\). Constraint-compatible velocities have all three components equal. The tentative velocity is \((0,0,2)^T\), with weighted momentum two and kinetic energy two. Its divergence vector is \((0,-2)^T\). Multiplying \(BM^{-1}B^T\) gives diagonal entries 1.5 and off-diagonal entries −0.5. Solving this two-by-two system yields

\[p=(-0.5,-1.5)^T.\]

Recover \(B^Tp=(-0.5,-1,1.5)^T\), then

\[M^{-1}B^Tp=(-0.5,-0.5,1.5)^T.\]

Subtracting gives \(v=(0.5,0.5,0.5)^T\), now satisfying both constraints. Its weighted momentum is still two because the constant velocity vector is admissible and therefore mass-orthogonal to the correction. The final kinetic energy is 0.5. The removed component has energy \([0.25+2(0.25)+2.25]/2=1.5\), exactly the energy difference. Both conservation of uniform momentum and removal of the incompatible component have been checked numerically.

With prescribed boundary fluxes the target constraint is generally inhomogeneous. The closest admissible velocity then lies in an affine space; the preceding zero-centred energy decrease need no longer hold because boundaries can do work. Transforming to fluctuations about a boundary-compatible lifting can restore an orthogonality statement for the correction. Before interpreting a pressure projection's apparent dissipation or energy injection, specify the boundary conditions and the metric used in its derivation.

For the same tentative state an ordinary unweighted Euclidean projection would set all velocities to their arithmetic mean \(2/3\). That also makes both discrete differences zero, but the weighted momentum becomes \(8/3\), exceeding its initial value two. A check on incompressibility alone would accept this physically different state. Choosing a mass matrix in the pressure correction is therefore consequential whenever cell masses, staggered volumes or basis-function weights differ. Evaluating both the discrete divergence and the physically weighted momentum provides information that neither result supplies on its own.

The impulse components give an additional equation-level diagnostic because applying their discrete gradient must reproduce the actual velocity correction.

Change parameters · Explore the worked calculation

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

Pure flux boundaries, compatibility and the missing constant

If a steady diffusion equation prescribes only fluxes, a solver can return a singular-matrix warning for two different physical reasons. Derive the mass balance and the nullspace separately, then decide when choosing a reference value resolves the problem.

Test the continuum equation with a constant

On \(0<x<1\) take a unit conductivity, positive rightward flux \(q=-u'\), and a steady source f with \(q'=f\). Prescribe the rightward flux at both endpoints as \(q_L,q_R\). Integrating the divergence equation gives

\[q_R-q_L=\int_0^1 f\,dx.\]

The outward unit normal is negative at the left endpoint, so the net outward flow is \(q_R-q_L\), even when both recorded sensor values are positive. In several dimensions the same requirement follows by integrating the divergence and applying the divergence theorem.

\[\int_0^1 u'v'\,dx=\int_0^1 fv\,dx+q_L v(0)-q_R v(1).\]

Testing the weak equation with \(v=1\) makes its left side identically zero. This recovers the flux balance without differentiating an approximate field. For every compatible right-hand side, adding any constant to u leaves its gradient and both prescribed fluxes unchanged. The magnitude of a potential is undetermined, while potential differences and flux can be well defined. Each disconnected region with pure-flux boundaries has its own compatibility equation and arbitrary constant.

Background · Compatibility condition
\[\int_\Omega f\,dV=-\int_{\partial\Omega}\partial_nu\,dA\]

For minus the Laplacian of u equal to f with pure Neumann data, this integral condition is required. A constant still has to be fixed separately.

Separate the left nullspace test from the gauge condition

Take cell-centred finite volumes with equal width h and face flux \(q_{i+1/2}=-(u_{i+1}-u_i)/h\). The balance of each cell is \(q_{i+1/2}-q_{i-1/2}=h f_i\), with prescribed values replacing the two exterior faces. Add all rows. Interior face contributions cancel in equal and opposite pairs. The resulting symmetric matrix A has a constant right null vector and its range is orthogonal to that vector. Let b be the integrated loads including boundary terms and \(w_i=h\) the integration weights. A mean value \(\bar u\) on this unit interval can be imposed by the augmented system

\[\begin{bmatrix}A&w\\ w^T&0\end{bmatrix}\begin{bmatrix}u\\ \lambda\end{bmatrix}=\begin{bmatrix}b\\\bar u\end{bmatrix},\qquad \lambda={\mathbf 1^T b\over \mathbf 1^Tw}.\]

For compatible data \(\lambda=0\). For incompatible data the first block solves for a deliberately modified source \(f_i-\lambda\). Choosing a mean makes the augmented system solvable either way; checking the multiplier identifies what it solved. Pinning a node and silently dropping one conservation equation can conceal the same mismatch as an artificial reaction at the pin.

Predict four cell values and audit an inconsistent measurement

Set \(f=2,\ q_L=0,\ q_R=2\). Exact integration gives

\[q=2x,\ u=-x^2+C.\]

For a continuous mean of zero \(C=1/3\). With four equal cells the centre coordinates are 1/8, 3/8, 5/8 and 7/8. The centroid samples of \(-x^2\) have mean −0.328125, so the discrete mean-zero solution is \(0.3125,0.1875,-0.0625,-0.4375\). Adjacent differences give interior face fluxes 0.5, 1.0 and 1.5. The difference between the discrete centre values and the continuous mean-zero samples is the constant \(-h^2/12\); every interior face gradient is exact.

Now change only the recorded right flux to 2.4. The original source supplies 2 units per unit time and the boundaries demand 2.4. Thus \(\lambda=-0.40\) and the augmented system supplies an effective uniform source of 2.4. Alternatively, keeping the original source and the left measurement forces a right flux of 2. The plot shows both reconstructions and tells which data were modified. Adjusting only the mean translates either field without changing its slope. In a transient storage model, imbalance would change the mean in time instead of permitting a steady solution.

Set a nonzero flux mismatch, then vary the mean and the cell count independently. Observe which differences can be removed by a vertical translation. Check that the integrated imbalance remains the same under refinement.

Tutorial · locate the bias and choose a comparison observable

A unit-length domain receives \(f(x)=1+2x\). A left sensor reports rightward flux 0.3 and a right sensor reports 2.1. Compute the integrated residual. If both flux sensors are trusted, find the constant source adjustment implied by the augmented system. If only the source and left sensor are trusted, predict the right measurement. What quantity can two solvers compare without agreeing on a gauge?

Show the diagnostic

The source integral is 2 and net outflow is

\[2.1-0.3=1.8.\]

Their difference is +0.2. The multiplier is +0.2, so the adjusted source would be \(0.8+2x\). Keeping the original source instead predicts

\[q_R=0.3+2=2.3.\]

Differences \(u(x_b)-u(x_a)\), gradients and fluxes are gauge independent. A single imbalance equation cannot tell which instrument is wrong. Independent source or flux measurements are needed to choose between these reconstructions.

Further reading · FEniCS Project · Poisson equation with pure Neumann boundary conditions and a mean-value multiplier

Why two finite-element wave solvers propagate the same mode at different speeds

Build the element mass matrix by integrating shape functions and track the effect of diagonal lumping on the wave spectrum.

From a continuum wave to nodal masses

For \(u_{tt}=c^2u_{xx}\), multiply by a test function and integrate by parts. On a periodic line the boundary contributions cancel. A piecewise-linear element of width \(h\) uses shape functions \(1-\xi,\xi\), with \(\xi\in[0,1]\). Integrating products of shape functions gives

\[M_e=(h/6)\left(\begin{smallmatrix}2&1\\1&2\end{smallmatrix}\right).\]

Integrating derivative products gives

\[K_e=(c^2/h)\left(\begin{smallmatrix}1&-1\\-1&1\end{smallmatrix}\right).\]

Row-sum lumping replaces each mass row by its sum on the corresponding diagonal, \(h/2\). This preserves the mass associated with a uniform velocity but changes the response to a velocity that varies within an element.

Background · Numerical dispersion
\[c_{\rm ph,h}=\omega_h(k)/k\]

A discretised wave can retain its amplitude and still propagate at the wrong speed. Compare phase and group errors over the actual resolved wavelengths.

Diagonalise the assembled periodic problem

A periodic nodal mode has \(u_j=e^{ij\theta}\). Each neighbour contributes \(e^{\pm i\theta}\) relative to node \(j\). Thus \(K\) multiplies by \(2c^2(1-\cos\theta)/h\), consistent \(M\) by \(h(2+\cos\theta)/3\), and lumped \(M\) by \(h\). Dividing stiffness by mass gives the discrete squared frequency. Relative to the exact frequency \(c\theta/h\),

\[\frac{\omega_L}{c\theta/h}=\frac{2\sin(\theta/2)}{\theta},\]
\[\frac{\omega_C}{c\theta/h}=\frac{2\sin(\theta/2)}{\theta}\sqrt{\frac{3}{2+\cos\theta}}.\]

Both tend to one for long waves; the leading quadratic errors have opposite signs. This is a spatial effect, present even with exact time integration.

Two wavelengths in one mesh

At four cells per wavelength \(\theta=\pi/2\). The lumped ratio is \(2\sqrt2/\pi\approx0.9003\); the consistent ratio is about 1.1027. One wave solver lags by roughly ten per cent and the other leads by roughly ten per cent. At eight cells per wavelength the ratios move much closer to one, but repeated propagation over many wavelengths can still accumulate visible phase error.

At the shortest grid mode \(\theta=\pi\), the consistent frequency is \(\sqrt{12}c/h\) and the lumped frequency \(2c/h\). A central-difference time integrator stable for \(h_t\omega\le2\) therefore requires a smaller step for the consistent mass. Accuracy at one wavelength and stability at the grid scale are different design criteria.

Tutorial on interpreting a convergence test

Which mass gives the exact kinetic energy for a linear velocity varying from \(v\) to \(-v\) on one element?

Worked solution

The continuum energy with unit density is \(hv^2/6\). The consistent matrix reproduces it by exact integration. The lumped kinetic energy is \(hv^2/2\), because it assigns both end masses the full endpoint speed.

How would you isolate spatial dispersion from time stepping in a measurement of a cavity eigenfrequency?

Worked solution

Solve the generalised eigenproblem \(Kq=\omega^2Mq\) directly for increasingly fine meshes or converge time steps on each fixed mesh. Then compare with the continuum frequency and report both \(h\) and the time tolerance.

A converged field solver can still give the wrong voltage

Verify a two-dimensional electrostatic calculation with two independent charge patterns. Use symmetry to distinguish a transposed output, a coarse mesh and a poorly converged linear solve.

Choose a voltage before choosing a solver

A very long grounded tube has a square cross section \(0\le x,y\le L\), with \(L=1\) m. The contents are uniform along the axis. A model of its transverse charge density should predict what a voltage probe placed inside would measure. Three numerical statements that can sound similar are actually quite different: the discrete equations have a small residual, the grid solution approximates the continuous solution, and the physical source describes the tube. We can test the first two in a laboratory problem where the last is specified exactly.

Start by prescribing a voltage that satisfies all four walls. Introduce \(s_m(x)=\sin(m\pi x/L)\) and choose \(V_*(x,y)=[s_1(x)+g s_2(x)]s_1(y)\) volts. The parameter \(g\) is the signed amplitude of the second spatial pattern relative to the first. A probe at the centre sees exactly 1 V for every \(g\), since \(s_2(L/2)=0\). A calculation checked at that point alone could entirely lose the second pattern and still pass. At \(x=L/4\) on the centreline, \(V_*=1/\sqrt2+g\); at \(3L/4\) it is \(1/\sqrt2-g\). Their difference is \(2g\) volts. First write down all three expected readings for \(g=0.5\).

Manufacture the source by differentiating the field

The physical problem uses Gauss's law and the electrostatic relation \(\mathbf E=-\nabla V\). For uniform vacuum permittivity they yield

\[-\nabla^2V=\rho/\epsilon_0.\]

A product \(s_m(x)s_1(y)\) returns the factor \((m^2+1)\pi^2/L^2\) when acted on by the negative Laplacian. Applying this separately to the two patterns gives

\[\rho/\epsilon_0=(\pi/L)^2[2s_1(x)+5g s_2(x)]s_1(y)\ {\rm V}.\]

The right side has dimensions V/m² after including the factor \(L^{-2}\); multiplication by permittivity gives C/m³. When \(g\) becomes large enough, part of the imposed density changes sign. That is permissible for a manufactured source. The calculation represents a solution of the stated Poisson problem. Judging whether a particular apparatus could maintain that charge requires its own charge-transport model.

Uniqueness gives the reference solution special status. If there were a different voltage for the same walls and charge, their difference \(w\) would satisfy Laplace's equation with zero boundary value. Integrate \(w(-\nabla^2 w)\) over the square. Integration by parts leaves \(\int|\nabla w|^2\), because \(w\) is zero on the boundary. The integral must vanish; \(w\) is constant and its boundary makes that constant zero. This is why agreement with the manufactured voltage is a test of the solver and its input, rather than a choice between two physical solutions.

Background · How can the same source test a second boundary condition?

A smooth manufactured solution that vanishes on every edge tests a homogeneous Dirichlet solve. A code that incorrectly sets every requested boundary voltage to zero may still pass. Add a harmonic lift to the known field on a square of width \(L\). For a constant permittivity the charge depends on the Laplacian, so the exact source is unchanged.

\[\widetilde V(x,y)=V(x,y)+V_0\!\left(1+\frac{x}{L}\right),\]
\[-\epsilon\nabla^2\widetilde V=-\epsilon\nabla^2 V.\]

Prescribe the lifted values on all four sides and solve again using the same charge samples. The difference of the computed solutions should be the linear lift, which a centred second difference represents exactly on a uniform grid. A discrepancy points first to boundary-value handling or to the way known values enter the right-hand side. This comparison isolates that error from the truncation error on the original sine modes.

Solve the discrete problem on paper as a second reference

Let \(h=L/n\). The standard negative Laplacian has centre coefficient \(4/h^2\) and four neighbouring coefficients \(-1/h^2\). Substitute the samples of \(s_m(x)s_1(y)\). In the \(x\) direction the sum of forward and backward neighbours is twice the centre value times \(\cos(m\pi/n)\). Collect the corresponding \(y\) term. The resulting positive grid eigenvalue is

\[\lambda_{h,m}=\frac{4}{h^2}\left[\sin^2\!\frac{m\pi}{2n}+\sin^2\!\frac{\pi}{2n}\right].\]

The continuum eigenvalue is \(\lambda_m=(m^2+1)(\pi/L)^2\). If the source is the continuous source sampled at the nodes, the discrete voltage coefficient is multiplied by \(\lambda_m/\lambda_{h,m}\). Since \(\sin z<z\) for positive \(z\), each factor exceeds one on a resolving grid. The faster spatial oscillation has the larger relative bias. The resulting total pointwise error can still change sign because the spatial modes themselves have signs.

This provides three independent calculations: a continuous closed-form field, an exact solution of the chosen difference equations and a numerical linear solve. Agreement of the latter two isolates assembly, indexing and algebraic errors. Comparing either with the continuous solution measures spatial discretisation error. Tightening an iterative tolerance indefinitely cannot remove a difference between \(\lambda_{h,m}\) and \(\lambda_m\).

Run the full field and compare genuinely different observations

The browser constructs the right-hand side over the two-dimensional interior and applies conjugate gradients to the five-point operator from an all-zero initial field. The two-mode right-hand side belongs to a two-dimensional invariant subspace, so exact-arithmetic convergence takes at most two iterations. In the special case \(g=0\), only one mode is excited. This unusually small iteration count is a property of the test and says very little about a rough source on the same grid.

Download the model and run the displayed case. Its CSV contains the midline \(y=L/2\), ordered by increasing \(x\). For \(n=16,\ g=2\) the value at \(x=0.1875\) m is about 2.42542 V on the grid and 2.40333 V analytically. If the centre is correct but the 0.1875 m reading is about 0.55736 V, check the orientation of the sampled data array. Keeping \(x\) fixed at its midpoint instead of \(y\) happens to annihilate the entire second mode.

A convergence report a second person can reproduce

Set \(g=0.5\). Record the centre voltage, the quarter-point voltage difference, the largest nodal error and the relative algebraic residual for \(n=8,16,32\). Use even grids divisible by four if reading exact quarter points. Estimate an order from two successive maximum errors using \(p=\log(E_n/E_{2n})/\log2\). For this smooth problem the leading difference between \(\sin^2 z\) and \(z^2\) is proportional to \(z^4\), giving a second-order spatial error at fixed physical modes. If \(g\) or the physical source profile changes during refinement, the ratio no longer tests that claim.

An experiment that quotes only the centre voltage has poor sensitivity to \(g\). An experiment quoting only the algebraic residual may perfectly solve the wrong mesh problem. An experiment that compares each plot to itself after smoothing lacks an independent reference. The three diagnostics above address these difficulties with quantities small enough to check by hand.

Extend the verification to a genuinely three-dimensional field

Ground all six faces of a cube with side length L=1 m. A potential that varies in every coordinate is

\[V_*(x,y,z)=A\sin(\pi x/L)\sin(\pi y/L)\sin(\pi z/L),\]
\[\rho=3\epsilon(\pi/L)^2 V_*.\]

Each second derivative contributes −(π/L)² times the potential. Adding the three derivatives gives the source above; every boundary vanishes because one sine is zero. This is a manufactured source for checking a numerical method. In the supplied calculation ε=1 F/m and A=1 V; scaling both charge and permittivity together leaves the voltage unchanged.

On a uniform nodal grid, the seven-point negative Laplacian has centre coefficient 6/h² and six neighbour coefficients −1/h². The same sine addition identity used in two dimensions gives

\[\lambda_h={12\over h^2}\sin^2\!\left({\pi h\over2L}\right),\]
\[V_h={3(\pi/L)^2\over\lambda_h}V_* .\]

The browser evaluates this discrete eigenmode directly. The spatial view places a coloured slice inside the cube; its height is the physical z coordinate. Moving that slice reveals the interior field while the companion line plot compares the grid values with the exact three-dimensional solution. The numerical potential is slightly too large because λh is smaller than its continuum limit.

Try it · Rotate a 3D field, move its slice and refine its mesh

Move the plane from the centre to a grounded face and predict the change. Then compare 8 and 16 cells per direction: the maximum nodal error should decrease by approximately four. Doubling A doubles the absolute error while leaving the relative error almost unchanged. Rotation changes the viewpoint only.

Download the 3D OneSimulation notebook · Download Python script

The notebook assembles and solves the full 3D OneSimulation finite-difference model. It reports an RMS error at cell centres; the browser reports a maximum error at nodes for its stated seven-point operator. These are different diagnostics. Compare each against its own continuous reference and repeat with a finer mesh.

"""Solve a grounded three-dimensional cube with OneSimulation and verify the field."""
import argparse
from dataclasses import dataclass
import numpy as np
import matplotlib.pyplot as plt
from onesim.cad.d3 import Box
from onesim.meshing import StructuredHexahedralMesher
from onesim.numerics import Numerics
from onesim.numerics.linear import SparseDirect
from onesim.numerics.fdm import FiniteDifference, CentralDifference, CentralLaplacian
from onesim.physics.electrostatics import FixedPotential, PoissonEquation
from onesim.simulation import Problem, Simulation

parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--cells', type=int, default=16)
parser.add_argument('--amplitude', type=float, default=1.0, help='Reference potential amplitude in V')
parser.add_argument('--slice', type=float, default=50, help='Depth as a percentage of the cube')
args = parser.parse_args()
if not 8 <= args.cells <= 24 or not np.isfinite(args.amplitude) or args.amplitude <= 0 or not 0 <= args.slice <= 100:
    parser.error('Use 8–24 cells, a finite positive amplitude, and a slice between 0 and 100 percent')

@dataclass(frozen=True)
class Permittivity:
    unit = 'F/m'
    def evaluate(self, **state):
        return 1.0

cube = Box(length=1, width=1, height=1)
exact = lambda x, y, z: args.amplitude * np.sin(np.pi*x) * np.sin(np.pi*y) * np.sin(np.pi*z)
field = PoissonEquation(domain=cube.volume, permittivity=Permittivity(),
                        charge_density=lambda x, y, z: 3*np.pi**2*exact(x,y,z))
problem = Problem(name='Three-dimensional manufactured potential', geometry=cube, physics=(field,),
                  boundary_conditions=(FixedPotential(physics=field, boundary=cube.boundaries.all, value=0.0),))
mesh = StructuredHexahedralMesher(cells=(args.cells,)*3).generate(cube)
simulation = Simulation(problem=problem, mesh=mesh, numerics=Numerics(
    spatial=FiniteDifference(gradient=CentralDifference(), diffusion=CentralLaplacian()),
    linear_solver=SparseDirect()))
simulation.validate().require_valid()
result = simulation.solve_stationary()
potential = result.field(field.potential)
centres = mesh.coordinates[mesh.cells].mean(axis=1)
computed = potential.evaluate(centres)
reference = exact(*centres.T)
error = np.sqrt(np.mean((computed-reference)**2))
z = round(args.cells*args.slice/100)/args.cells
print(f'{args.cells}³ cells; source amplitude {args.amplitude:g} V; slice z={z:.3f} m')
print(f'Cell-centre RMS error against the exact 3D solution: {error:.6e} V')

x = np.linspace(0,1,41)
X,Y = np.meshgrid(x,x)
points = np.column_stack([X.ravel(),Y.ravel(),np.full(X.size,z)])
V = potential.evaluate(points).reshape(X.shape)
line = np.column_stack([x,np.full_like(x,.5),np.full_like(x,z)])
fig = plt.figure(figsize=(10,4),layout='constrained')
ax = fig.add_subplot(121,projection='3d')
surface = ax.plot_surface(X,Y,V,cmap='viridis',linewidth=0)
ax.set(xlabel='x (m)',ylabel='y (m)',zlabel='Potential (V)',title=f'Computed slice at z={z:g} m')
ax = fig.add_subplot(122)
ax.plot(x,potential.evaluate(line),'o',markevery=2,label='OneSimulation FDM')
ax.plot(x,exact(x,.5,z),'--',label='Exact 3D solution')
ax.set(xlabel='x at y=0.5 m (m)',ylabel='Potential (V)')
ax.grid(alpha=.2); ax.legend()
fig.savefig('poisson-cube-3d.png',dpi=170)
assert np.isfinite(error) and error/args.amplitude < .02

Measured output at the default settings:

16³ cells; source amplitude 1 V; slice z=0.500 m
Cell-centre RMS error against the exact 3D solution: 1.138076e-03 V
OneSimulation potential on the midplane of a grounded three-dimensional cube, with a centreline comparison to the exact solution
Actual OneSimulation output. Here the left panel plots potential as height above the selected x–y plane; the right panel compares the same field along y=0.5 m.

Tutorial

A colleague sets \(g=-0.4\) and reports quarter-point voltages 1.107 V and 0.307 V on a very fine grid. Which change in the recorded setup would explain the observation?

Work through the solution

For the stated sign, the expected pair in increasing \(x\) is 0.3071 V then 1.1071 V. Reversing the \(x\) axis interchanges the pair while preserving the centre and the symmetric mode. Reversing the sign of the second source mode produces the same pair. A field measurement with a labelled coordinate direction distinguishes these possibilities.

You prescribe the discrete eigenvalue as the source amplitude during every refinement. The returned solution agrees with your analytic curve at all nodes to machine precision. Which part of the verification has disappeared?

Work through the solution

This tests the algebra of the discrete eigenmode and the linear solve. It changes the continuum source on every grid and cancels exactly the spatial discretisation error you intended to measure. Rerun with a wavelength and source amplitude specified in physical units independently of the grid.

A second probe has independent voltage noise of standard deviation 5 mV. Estimate the standard deviation of \(g\) inferred from the difference of the two quarter-point readings, if both probes have the same independent noise.

Work through the solution

The difference has variance \(2(0.005)^2\) V² and equals \(2g\) volts. Dividing by two gives standard deviation \(0.005/\sqrt2\simeq0.00354\) in the dimensionless amplitude. A shared additive offset cancels; a gain error common to both readings does not.

Measure tunnelling from a four-site spectrum

Four localised orbitals form a minimal double well. Raise the inner two site energies and ask why two states concentrated in the outer wells still acquire different energies. Measure the splitting in the spectrum, predict an oscillation in time and reproduce the levels independently with OneSimulation.

Construct an operator before drawing an energy diagram

Label the sites \(1,2,3,4\) in order. The end orbitals have on-site energy zero, the middle two have energy \(V>0\) and every neighbouring pair has real hopping matrix element \(-t\) with \(t>0\). The four occupation states form an orthonormal basis for one particle. Equal diagonal energies of the ends do not make their symmetric and antisymmetric combinations degenerate when there is a virtual path through the interior. There are no direct links between sites one and three or one and four. Keeping track of every allowed step will fix the power of \(t\) in the final answer.

\[H=\begin{pmatrix}0&-t&0&0\\-t&V&-t&0\\0&-t&V&-t\\0&0&-t&0\end{pmatrix}.\]

Reflection maps \(1\leftrightarrow4\) and \(2\leftrightarrow3\), and commutes with \(H\). In each parity sector use the normalised outer and inner basis vectors \((|1\rangle\pm|4\rangle)/\sqrt2\) and \((|2\rangle\pm|3\rangle)/\sqrt2\). The diagonal outer element vanishes in both sectors; the hopping inside the middle pair shifts its even and odd energies to \(D_e=V-t\) and \(D_o=V+t\). The outer–inner matrix element remains \(-t\). This reduces the four-dimensional problem to two symmetric two-by-two matrices without neglecting any state.

Eliminate the barrier amplitudes and estimate the splitting

In a sector with interior energy \(D\), the secular equation is

\[E(E-D)=t^2.\]

The lower root is \(E_-(D)=[D-\sqrt{D^2+4t^2}]/2\), or the numerically better \(-2t^2/(D+\sqrt{D^2+4t^2})\). For \(D\gg t\) the shift is approximately \(-t^2/D\). It is more negative for the even state because \(D_e<D_o\). Subtract the two shifts before approximating their difference.

\[\Delta E=E_-(D_o)-E_-(D_e)\simeq t^2\left(\frac{1}{V-t}-\frac{1}{V+t}\right)\simeq\frac{2t^3}{V^2}.\]

A single outward excursion produces an order-\(t^2/V\) shift in both end states. Only a three-hop path connects the different ends, so their splitting is smaller. Measuring an overall displacement of two spectral lines and measuring the distance between them test different physical mechanisms.

Predict a time trace and define what is measured

Denote the two low-energy eigenstates by \(|e\rangle,|o\rangle\). Prepare \((|e\rangle+|o\rangle)/\sqrt2\). In the corresponding opposite superposition \((|e\rangle-|o\rangle)/\sqrt2\), the occupation at time \(\tau\) equals \(\sin^2(\Delta E\,\tau/2\hbar)\). Its first maximum is at \(\pi\hbar/\Delta E\). These superpositions include interior weight, especially at low barrier. A detector on site four alone measures a different projector. Preparing bare site one excites both high and low doublets and can generate additional fast oscillations.

For \(V/t=4\), the two lower eigenvalues in units of \(t\) are \((3-\sqrt{13})/2\) and \((5-\sqrt{29})/2\), about −0.30278 and −0.19258. Their separation is about \(0.11019t\). The high-barrier approximation gives \(0.125t\). With \(t=1\,\mathrm{meV}\), \(\hbar=0.65821\,\mathrm{meV\,ps}\) and the first complete transfer in the dressed basis takes about 18.8 ps. If a measurement integrates over many such oscillations, it may return one half despite perfectly coherent evolution.

Compare spectra from three independent constructions

Use the parameter controls to vary the middle barrier and hopping. The plot shows the exact splitting and its leading virtual-hopping prediction over a range of \(V/t\). The printed result gives an actual transfer time. The downloadable OneSimulation model builds the original four-site Hamiltonian and solves its eigenvalue problem by contour integration. Compare all four eigenvalues with the two parity blocks before interpreting their small difference. A wrong sign on one edge of this open chain can be removed by a local change of basis and may leave its spectrum unchanged, so also check any phase-sensitive observable used for preparation.

Keep the hopping fixed at 1 meV and compare two barriers. Start with a 4 meV barrier and raise it to 8 meV. Record both splittings and estimate the change in the first transfer time before reading off the prediction.

Tutorial

Hold \(V\) fixed and halve \(t\) in the high-barrier limit. How do the common shift, splitting and transfer time change?

Work through the solution

The leading common shift scales as \(t^2/V\) and falls by four. The splitting scales as \(t^3/V^2\) and falls by eight. The transfer time grows eightfold. Halving both \(V\) and \(t\) instead keeps their ratio fixed and halves every eigenvalue.

Explain why a small static asymmetry between the end wells can suppress almost complete transfer while increasing their measured frequency splitting.

Work through the solution

In a two-state reduction, detuning \(\delta\) and coupling \(J\) give separation \(\sqrt{\delta^2+4J^2}\). Starting in one localised state, the maximum transfer probability is \(4J^2/(\delta^2+4J^2)\). Both the frequency and the contrast are needed to infer the coupling.

How could one check that a contour solver has found both members of a closely spaced doublet rather than printing one twice?

Work through the solution

Check the rank of the independent projected vectors and the residual norm for each vector. Then exploit reflection parity or solve in each symmetry sector independently. Repeating a low residual for two nearly parallel vectors does not establish a two-dimensional eigenspace.

The continuous barrier calculation provides a different model in which barrier width eventually produces an exponential dependence.

How many lattice sites remember the colour of a neighbour?

A chain of three-state spins gains energy when adjacent colours agree. A weak field favours one colour over the other two. Use a transfer matrix to calculate both free energy and the distance over which correlations survive. Recover the same numbers from OneSimulation eigenvalues without relying on symmetry reduction.

Find a local weight whose product counts each energy once

Each site has colour \(a=0,1,2\). A matching pair contributes energy \(-J\), with \(J>0\), and a site of colour zero earns an additional \(-H\). In a periodic ring each site belongs to two adjacent bonds. Give each of those bonds half the local field energy so the product of their weights counts each field term exactly once. Define \(K=J/(k_BT)\) and \(h=H/J\).

\[M_{ab}=\exp\!\left[K\left(\delta_{ab}+\frac h2(\delta_{a0}+\delta_{b0})\right)\right],\]
\[Z_N=\operatorname{tr}(M^N).\]

To see the trace, write the partition function as a sum over \(a_1,\dots,a_N\) of the product \(M_{a_1a_2}\cdots M_{a_Na_1}\). Summing an intermediate index is matrix multiplication; closing the initial and final index is the trace. This is exact even for a short periodic chain defined by that bond count. The transfer matrix contains no time step: multiplying it advances spatial position.

Compare the leading eigenvalue with the next one

Without bias the matrix has diagonal \(e^K\) and all other entries one. The uniform vector has eigenvalue \(e^K+2\). Every vector with components summing to zero has eigenvalue \(e^K-1\), twice degenerate. Thus \(Z_N=(e^K+2)^N+2(e^K-1)^N\). The thermodynamic free energy per site is \(-k_BT\ln(e^K+2)\). To measure a connected spatial correlation, insert a diagonal colour observable at sites separated by \(r\) transfer operations. The uniform contribution cancels from the connected part; each nonuniform mode contributes a factor \((\lambda_j/\lambda_1)^r\) when its overlap is nonzero. The longest correlation length in sites is

\[\xi^{-1}=\ln(\lambda_1/|\lambda_2|).\]

At \(k_BT=J\) and zero bias, \(\lambda_1=4.71828,\ \lambda_2=1.71828\) and \(\xi=0.9900\) sites. At low temperature \(e^K\) is large and \(\xi\simeq e^K/3\). A finite chain can then appear ordered simply because it is shorter than its correlation length. There is no finite positive temperature at which these two one-dimensional eigenvalues cross.

Keep track of a mode that a chosen detector cannot see

At \(h\ne0\), colours one and two remain interchangeable. Their difference vector is an eigenmode of eigenvalue \(e^K-1\). In the orthonormal basis comprising colour zero and the sum of one and two, the remaining block is

\[\begin{pmatrix}e^{K(1+h)}&\sqrt2 e^{Kh/2}\\\sqrt2 e^{Kh/2}&e^K+1\end{pmatrix}.\]

Its eigenvalues follow from the trace and the square root of the squared diagonal difference plus four times the squared off-diagonal element. Sort all three eigenvalues. A detector sensitive only to whether the spin is zero is invariant under interchange of colours one and two. It has no overlap with their odd difference mode, even if that mode sets the mathematically longest length. A resolved measurement of colours one and two can see it. Quoting a correlation length from eigenvalues requires specifying which observation can actually couple to that eigenvector.

Change temperature and examine the spectral gap

Vary reduced temperature and reduced field \(H/J\) independently. The plot compares the longest colour-correlation length to the exact zero-field result. At a chosen point the downloadable model constructs the full three-by-three matrix and computes its modes using OneSimulation's contour eigensolver. It reports free energy per site and all three eigenvalues. In this small system the direct reduction above is available as an independent check. The same matrix construction generalises to more states even when no colour symmetry reduces the size.

Compare two chains at the same temperature. Set the colour bias to zero and apply a positive bias of 0.30 J. Use the transfer-matrix eigenvalue ratio to explain the change in the longest correlation length.

Tutorial

At \(k_BT=J,\ h=0\) what fraction of the asymptotic leading contribution to a connected correlation survives after three lattice sites?

Work through the solution

The factor is \((1.71828/4.71828)^3\simeq0.0483\). The correlation observable sets its initial amplitude; the eigenvalue ratio sets this fraction.

Why does squaring a single bond weight to represent the effect of two bonds give the wrong two-step transition amplitude?

Work through the solution

Two steps can pass through any of the three intermediate colours. Matrix multiplication sums all possibilities \(M_{ab}M_{bc}\) over \(b\). Squaring the single number \(M_{ac}\) loses those intermediate configurations.

Suppose only the leading eigenvalue is reliably resolved. Which thermodynamic-limit prediction is possible and which remains undetermined?

Work through the solution

One can obtain free energy per site, and with its parameter dependence the derivatives giving energy or magnetisation. A connected spatial length requires a subleading eigenvalue and overlap of the chosen observable. A precise leading free energy alone cannot give that numerical length.

Compare this transfer calculation with the two-state Ising chain experiment.

Ill conditioning and information

Inspect the small singular directions in actual observation operators. Distinguish a good residual from a well-determined physical parameter.

  1. Weighted least squares and residual diagnostics
  2. Singular systems and the amplification of noise
  3. Regularisation, resolution and the price of stability
  4. Adjoint gradients through a forward solver
  5. Choosing regularisation when the true answer is hidden
  6. How model error masquerades as a fitted physical parameter
  7. Capacitance matrices, floating nodes and controlled approximation bounds
  8. Reconstructing a source from noisy voltage measurements
  9. Which part of a sample changes a four-electrode impedance measurement?
  10. Scattering from a central potential and what angular data can recover

Weighted least squares and residual diagnostics

Derive the fitting criterion from measurement error and separate the uncertainty of an estimated mean from the scatter of a new observation.

From first principles

Derive the least-squares distance from the instrument noise

Suppose \(y=Ax+\epsilon\), with Gaussian measurement noise of zero mean and known positive definite covariance \(\Sigma\). Independent errors of unequal sizes should not count equally in raw units, and correlated errors should not be counted twice. Factor \(\Sigma=LL^T\) and multiply the model by \(L^{-1}\). The transformed noise has unit covariance,

\[b=L^{-1}y,\]
\[B=L^{-1}A,\]
\[\operatorname{Cov}(L^{-1}\epsilon)=I .\]

For a candidate state, the negative log likelihood differs by a constant from half the squared norm of the transformed residual. This follows from the Gaussian density,

\[\tfrac12(y-Ax)^T\Sigma^{-1}(y-Ax)=\tfrac12\|b-Bx\|_2^2 .\]

The likeliest state therefore minimizes ordinary squared residuals in these whitened coordinates. Solves with the triangular factor \(L\) preserve this interpretation without forming its inverse. If the covariance is estimated or state dependent, the stated probability model and resulting uncertainty estimates need to include that extra information.

Background · Whitened residual
\[r=\Sigma^{-1/2}(y-G(m))\]

For a known positive covariance this expresses mismatch in noise units and removes the modelled correlations between measurements.

Derivation and applications

Construct a model check that requires no fitted parameters

A residual can be compared with noise most cleanly when the particular combination of readings was forced to vanish by the model itself. Consider \(y=Ax+\epsilon\) with zero-mean noise of known positive definite covariance \(\Sigma\). Choose a nonzero contrast \(c\) satisfying \(A^Tc=0\). No value of the unknown \(x\) can change the predicted contrast because its mean is

\[\operatorname{E}(c^Ty)=c^TAx=0,\]
\[\operatorname{var}(c^Ty)=c^T\Sigma c .\]

Under a Gaussian noise model its standardized value is a unit normal random variable. Squaring it gives a one-degree-of-freedom discrepancy,

\[Z=\frac{c^Ty}{\sqrt{c^T\Sigma c}},\qquad Z^2\sim\chi^2_1 .\]

The corresponding fit interpretation follows by whitening \(b=L^{-1}y,\ B=L^{-1}A\). The vector \(u=L^Tc/\sqrt{c^T\Sigma c}\) has unit norm and is perpendicular to every column of \(B\). Thus every fitted residual has projection \(Z\) along the same direction,

\[u^T(b-B\widehat x)=u^Tb=Z,\qquad \|b-B\widehat x\|^2\ge Z^2 .\]

When there is exactly one independent residual direction, equality holds for the least-squares fit. The contrast is a model check only to the extent that the covariance and zero-mean error assumption are justified. It identifies a combination of inconsistent readings, without uniquely locating a faulty sensor.

Worked example

Check an affine trend from three measurements

At times \(0,1,2\) a linear trend predicts zero second difference. Observations \(2,3,6\), each with independent standard deviation \(0.20\), give contrast \(2-2(3)+6=2\). Its standard deviation is \(0.20\sqrt6=0.490\), hence \(Z=4.08\) and \(Z^2=16.7\). Fitting the intercept and slope cannot remove that discrepancy.

Second application

Include a shared calibration mode in a conservation test

Three independent channels should satisfy a balance with contrast \(c=(1,1,-1)^T\). Suppose their independent errors each have deviation \(0.10\) and a common additive offset has independent deviation \(0.20\). Since \(c^T(1,1,1)^T=1\), the offset contributes \(0.20^2\) to contrast variance. For readings \(1.0,2.0,2.6\) the discrepancy is \(0.4/\sqrt{0.03+0.04}=1.51\) standard deviations. Dropping the shared offset would inflate it to \(2.31\).

A distance in data space depends on the instrument

Let \(y=Ax+\epsilon\) with zero-mean error of known positive-definite covariance \(\Sigma\). If the errors are jointly Gaussian, the negative log likelihood differs from \((y-Ax)^\mathsf{T}\Sigma^{-1}(y-Ax)/2\) only by constants independent of \(x\). This expression still defines a weighted least-squares criterion without normality. Correlated readings can vary together substantially while their difference is very precise; individually dividing them by standard deviations fails to capture that information.

Factor \(\Sigma=LL^\mathsf{T}\) and solve \(L b=y,\ L B=A\) by triangular substitution. Then \(b=Bx+\eta\) with \(\operatorname{Cov}\eta=I\); \(\|b-Bx\|^2\) is the original weighted distance. This is whitening. It also cures a units problem: residuals measured in different units are compared after division by their uncertainty scales. For truly independent readings of standard deviations \(s_i\), the transformation simply divides each row and response by \(s_i\).

Derive the projection and compute it without losing precision

Differentiating the squared norm gives

\[B^\mathsf{T}(b-B\hat x)=0.\]

Thus \(B\hat x\) is the orthogonal projection of \(b\) onto the column space. For full column rank write a thin QR factorisation \(B=QR\) with \(Q^\mathsf{T}Q=I\). The minimiser solves \(R\hat x=Q^\mathsf{T}b\). Forming the normal matrix \(B^\mathsf{T}B\) instead squares its two-norm condition number. QR avoids this extra source of precision loss, though it cannot create information absent from the measurements.

Suppose two instruments measure one constant as 10 and 14 with independent standard deviations 1 and 2. The weighted mean is \((10+14/4)/(1+1/4)=10.8\), with standard deviation \((1+1/4)^{-1/2}=0.894\). The less precise instrument still contributes, but with one quarter of the weight. Giving it half the weight would confuse standard deviation with variance. If both instruments share an unknown calibration bias, the stated independence model overstates what averaging can achieve.

Background · Why can two whitening transformations give the same fitted curve?

A symmetric inverse square root and a triangular Cholesky solve generally give different coordinates for the whitened residual. Let both transformations \(W_1,W_2\) whiten the same positive definite covariance \(\Sigma\). Then the change of coordinates \(Q=W_2W_1^{-1}\) obeys

\[QQ^T=W_2\Sigma W_2^T=I.\]

Whitened residual vectors are therefore related by an orthogonal transformation. Their squared lengths and hence their least-squares minimisers agree. Two individual whitened components can nevertheless have different magnitudes. If a diagnostic needs to identify which physical sensor was faulty, interpret its residual in the original measurement coordinates alongside the correlation model. A large component obtained after rotation cannot by itself identify a physical channel.

Work with residuals after fitting

The fitted whitened response is \(Hb\) with \(H=QQ^\mathsf{T}\), and residual \(r=(I-H)b\) has covariance \(I-H\). Consequently raw whitened residuals after fitting do not have equal independent unit variance. Observation \(i\) has leverage \(H_{ii}\); a high-leverage point can pull the fit toward itself and show a deceptively small residual. Under the stated model, \(\mathbb E\|r\|^2=m-p\) for \(m\) observations and \(p\) independent fitted coefficients. With Gaussian errors the sum has a chi-square distribution with those degrees of freedom. Plot signed residuals against input, time and sensor identity to look for omitted curvature, drift or serial correlation.

Uncertainty in a fitted trend and a future measurement

In the full-rank linear model \(\operatorname{Cov}\hat x=(B^\mathsf{T}B)^{-1}\). For the model mean \(c^\mathsf{T}\hat x\) the variance is \(c^\mathsf{T}\operatorname{Cov}(\hat x)c\); solve \(R^\mathsf{T}v=c\) to obtain it as \(\|v\|^2\). Predicting a future individual reading requires adding its independent measurement variance. This distinction matters when validating fitted response curves. A single point can legitimately lie far outside a narrow interval for the mean. When only relative weights are known, estimate a common variance scale from the residual degrees of freedom and state the additional assumption.

Separate common and independent errors before estimating a mean

Measurements made after one calibration often share a random offset. Write \(y_i=\mu+b+e_i\), where the common offset has mean zero and variance \(\tau^2\), and the individual errors are independent of one another and of \(b\), with variances \(s_i^2\). The covariance matrix is the diagonal matrix of individual variances plus the rank-one matrix \(\tau^2{\bf1}{\bf1}^T\). Consider any linear estimate \(w^Ty\) that reproduces an arbitrary constant, so that \(\sum_iw_i=1\). Its variance separates into \(\tau^2+\sum_iw_i^2s_i^2\). The first term survives every admissible choice of weights because the shared error is indistinguishable from the unknown mean within this set of readings.

Minimising the second term with a multiplier for the sum constraint gives

\[2s_i^2w_i=\lambda.\]

Normalisation yields weights proportional to the individual precisions, with variance \(\tau^2+1/\sum_i s_i^{-2}\). In particular, estimating the weights from the marginal variances \(s_i^2+\tau^2\) as if every reading were independent gives both an incorrect covariance and generally incorrect relative weights. This derivation uses only second moments. Gaussian assumptions enter if the standard deviation is subsequently turned into a normal-theory probability interval.

Decide whether to repeat a reading or recalibrate

A balance has a random calibration uncertainty of 0.30 g. The first reading is 12.40 g with individual standard deviation 0.10 g. The second, acquired during a shorter averaging window, is 11.90 g with individual standard deviation 0.20 g. The individual precisions are 100 and 25 per g², so the relative weights are 0.8 and 0.2. The estimate is 12.30 g. Its variance is \(0.09+1/125=0.098\) g², giving standard deviation 0.313 g. A long sequence of additional readings using this same calibration can only push that standard deviation toward 0.30 g.

The difference between these two readings removes both \(\mu\) and the shared offset. Its standard deviation is

\[\sqrt{0.10^2+0.20^2}=0.224\,\mathrm{g}.\]

The observed difference of 0.50 g is about 2.24 such standard deviations. That discrepancy is relevant to the model for individual readings and averaging windows. It supplies no direct evidence for or against a common calibration offset of a particular size, because that offset has cancelled algebraically.

What if the entire two-reading procedure is repeated after an independent calibration? Averaging the two independently calibrated group estimates gives variance \(0.098/2=0.049\) g² and standard deviation 0.221 g. Taking the same number of readings with one calibration instead gives variance \(0.09+1/250=0.094\) g². The choice of sampling protocol changes the uncertainty even when the balance, total reading count and individual variances are identical. If calibrations share an uncertain reference standard, independence between groups must itself be revised.

A separate reference mass weighed during each calibration provides another way to estimate a shared offset. Subtracting that reference reading removes the offset but also introduces the reference measurement error into every corrected value. The corrected readings are therefore correlated again, now through the shared reference. Their covariance should be recomputed from this modified measurement protocol.

Find a measurement floor that averaging cannot remove

Each reading has independent noise of variance one and the same additional zero-mean calibration offset. Repeating the measurement divides the independent variance by the number of readings. The calibration error is shared by every term in their average.

Find a measurement floor that averaging cannot remove. Horizontal axis: Number of readings. Vertical axis: Standard deviation of sample mean. Data follow the figure.
With common standard deviation 0.3, averaging one hundred readings with independent sensor noise would still leave total standard deviation about 0.316. Fitting a diagonal covariance and extrapolating a 1/√N law misses this limiting uncertainty.
Read values from the plot
Standard deviation of sample mean at selected values of Number of readings.
Number of readingsCommon calibration σ = 0Common calibration σ = 0.3Common calibration σ = 1
111.0441.4142
260.196120.358421.019
510.140030.331071.0098
750.115470.321461.0066
1000.10.316231.005

Download all 100 plotted samples (CSV)

Change parameters · Find a measurement floor that averaging cannot remove

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

Singular systems and the amplification of noise

Identify which patterns survive a forward measurement and which become dominated by uncertainty when inverted.

From first principles

Identify the measured pattern hidden in each singular direction

A forward measurement \(y=Ax+\epsilon\) is easiest to interpret in orthonormal directions where \(A\) acts by simple scaling. For a singular triplet with positive \(\sigma_j\), \(Av_j=\sigma_ju_j\) and \(A^Tu_j=\sigma_jv_j\). Project the complete data equation onto its output direction,

\[u_j^Ty=\sigma_j v_j^Tx+u_j^T\epsilon .\]

Recovering the coefficient in the state divides the measured projection by \(\sigma_j\). Thus the reconstruction error in that direction is

\[v_j^T(\widehat x-x)=\frac{u_j^T\epsilon}{\sigma_j}.\]

When the data are whitened with unit noise covariance, the projected noise has standard deviation one and the recovered coefficient has noise standard deviation \(1/\sigma_j\). A zero singular value hides the corresponding state component completely. The numerical rank of a matrix and the set of coefficients that can be inferred at useful precision can therefore differ even for an exactly known forward model.

Derivation and applications

Derive the singular spectrum of a local averaging instrument

An instrument that averages neighbouring locations transmits broad patterns and attenuates rapid changes. Consider a periodic one-dimensional array of \(N\) equally spaced cells. At every cell the detector returns a symmetric three-point average, with response coefficient \(0\le a\le1/2\). With wraparound indices the noiseless map is

\[(Ax)_j=a x_{j-1}+(1-2a)x_j+a x_{j+1}.\]

Translation symmetry suggests using normalized Fourier patterns \(v_k(j)=e^{2\pi ikj/N}/\sqrt N\). Neighbouring samples of one mode differ only by a phase. Substitution yields its eigenvalue,

\[A v_k=\lambda_k v_k,\]
\[\lambda_k=1-2a+2a\cos(2\pi k/N)=1-4a\sin^2(\pi k/N).\]

The averaging matrix is symmetric and the Fourier modes are orthonormal, so the singular value of each mode is \(|\lambda_k|\). A negative eigenvalue reverses the measured phase of a real sinusoidal pattern but has the same noise amplification as a positive one of equal magnitude. A zero destroys the mode. For independent equal-variance data errors of variance \(s^2\), an inverse on a nonzero mode gives

\[\operatorname{E}|\delta x_k|^2=\frac{s^2}{|\lambda_k|^2}.\]

The periodic boundary assumption supplies the Fourier eigenvectors; a finite array with distinct edge rules generally has a different spectrum. Preservation of the constant mode, \(\lambda_0=1\), checks that the normalized averaging kernel conserves total signal.

Worked example

Identify an invisible checkerboard pattern

For \(N=8\) and \(a=1/4\), the alternating vector corresponds to \(k=4\) and has \(\lambda_4=0\). No improvement in readout precision can infer its coefficient from these data. The quarter-cycle mode \(k=2\) instead has \(\lambda_2=1/2\); noise of standard deviation \(0.020\) in its measured coefficient becomes \(0.040\) in the inferred amplitude.

Second application

Change the optical mixing and forecast a contrast limit

A second array has \(a=0.20\) and even \(N\), giving alternating-mode gain \(1-4(0.20)=0.20\). A true normalized contrast coefficient \(0.30\) appears as \(0.060\) in the data. At coefficient noise deviation \(0.030\) that is only a two-standard-deviation response. To infer the same state coefficient with deviation \(0.050\), the measurement deviation must fall to \(0.20(0.050)=0.010\).

Rotate the coordinates to expose the experiment

For a whitened matrix \(B=U\Sigma V^\mathsf{T}\), the unit vector \(v_j\) is mapped to \(\sigma_j u_j\). Parameter patterns \(v_j\) and measurement patterns \(u_j\) are orthonormal in their respective coordinates. A small singular value means a full unit change in a particular parameter combination makes only a small change in the data. This conclusion depends on scaling: metres or millimetres for one coordinate change the geometry. Scale each parameter by a physically meaningful range before interpreting a singular vector as a weak process.

For nonzero singular values the least-squares minimum-norm inverse takes the form

\[\hat x=\sum_{\sigma_j>0}\frac{u_j^\mathsf{T}b}{\sigma_j}v_j .\]

Left-singular directions orthogonal to the range contribute to the residual and cannot be fitted. Right-null directions contribute nothing to the data and are assigned zero by the minimum-norm convention. For a full-column-rank matrix the largest response of the inverse to a unit data perturbation has norm \(1/\sigma_{\min}\). A relative worst-case bound involves \(\kappa_2=\sigma_{\max}/\sigma_{\min}\); the actual perturbation direction can be far less damaging.

A blur that almost removes the contrast

Let a sensor mix two unknown levels with \(A=\left(\begin{smallmatrix}0.505&0.495\\0.495&0.505\end{smallmatrix}\right)\). It passes the average direction unchanged and attenuates the difference direction by 0.01. For \(x=(2,0)\) it predicts \(y=(1.01,0.99)\). Add the modest perturbation \((0.01,-0.01)\). Inverting the perturbed data exactly gives \((3,-1)\): a 0.01 perturbation per sensor produced a unit change in each reconstructed level. In contrast, perturbation \((0.01,0.01)\) just raises both fitted levels by 0.01. Both inversions have zero residual. Compare the recovered patterns with independently known precision to decide which interpretation is supportable.

Why finer discretisation can make an inverse problem harder

An integrating or blurring instrument smooths rapidly oscillating parameter fields. Discretising more finely introduces additional oscillatory patterns, each with very small image under the forward map. For a convolution on a periodic grid the Fourier modes themselves diagonalise the operation: the response to each frequency is the Fourier transform of the kernel there. In a Gaussian blur this multiplier falls rapidly with frequency. Formally dividing by it at every resolved frequency amplifies high-frequency noise. Finer output sampling cannot automatically recover what the original acquisition smoothed away.

Plot \(\sigma_j,\ |u_j^\mathsf{T}b|\), and their ratio against index. For recoverable modes the projected signal can be distinguished from the noise floor. When the singular values keep decreasing but the data coefficients fluctuate at roughly constant noise magnitude, division begins to generate structure from noise. The transition can be gradual and projections are random, especially in a short record. Use noise estimates or replicated observations before choosing a cutoff.

Distinguish numerical rank from usable resolution

A singular value large enough to represent in floating point may still give a parameter uncertainty too large for the scientific question. Conversely several poorly measured parameters may admit a well-measured sum. In whitened coordinates the uncertainty of a linear functional follows from how it projects onto \(v_j\). A functional orthogonal to small-singular-value directions can remain stable without the full reconstruction being stable. The next chapter makes the decision to suppress these directions explicit and quantifies the bias it creates.

Ask whether a continuum solution has finite energy

A finite matrix has only finitely many singular values, so a formally inverted vector can always be printed after zero modes have been removed. For a compact smoothing operator on a space of square-integrable functions, there can be infinitely many positive singular values tending to zero. Write the data coefficients as \(b_j\) in the left singular basis, with no data component orthogonal to the closure of the range. Solving mode by mode forces the state coefficients to be \(x_j=b_j/\sigma_j\). Orthogonality gives

\[\|x\|^2=\sum_j |b_j/\sigma_j|^2.\]

A square-integrable solution exists exactly when that last series converges; an arbitrary additional nullspace component can then be added if the operator is not injective.

This range condition explains why diminishing data amplitudes are insufficient evidence of a reconstructible state. They must diminish sufficiently fast relative to the strength with which the instrument transmits each mode. The converse is constructive: if the squared quotient series converges then the partial reconstructed states converge in norm, and continuity of the forward operator takes their limit to the original compatible data. A finite truncation conceals failure of this condition because every partial sum is finite.

Follow two spectra as the reconstruction grid grows

Take singular values \(\sigma_j=1/j\), and compare data sets with coefficients \(j^{-2}\) and \(j^{-3/2}\), respectively. Both data sets have finite squared norm. In the first, the reconstructed coefficients are \(1/j\) and the squared state norm is \(\sum j^{-2}\), which converges. Beyond a cutoff \(N\), its tail is bounded by \(\int_N^\infty x^{-2}dx=1/N\). Keeping 100 modes therefore leaves state error at most 0.10 in this particular normalisation. A corresponding forward residual can be much smaller because applying the operator divides each tail term by an additional \(j\).

In the second data set, the state coefficients are \(1/\sqrt j\). Their squared norm through mode \(N\) is the harmonic sum. From 100 to 200 retained modes it increases by about \(\log 2\), and the same approximate increase recurs on every doubling. Meanwhile the squared data discrepancy after truncation is \(\sum_{j>N}j^{-3}\), bounded by \(1/(2N^2)\). At 100 modes the data residual is at most 0.0071. The residual can become arbitrarily small although no finite-energy exact state exists for this idealised data set.

In a measured spectrum, only finitely many coefficients are observed and their far tail includes instrument noise. Exact membership in an infinite-dimensional range cannot be proven by drawing a straight line through a short log plot. The continuum calculation instead suggests two independent checks during refinement: inspect whether reconstruction norms stabilise, and compare data coefficients to an independently estimated noise floor before dividing them by small singular values.

For the first sequence even an excellent forward residual is a relatively optimistic diagnostic: the squared forward tail behaves like \(N^{-3}\), while the squared state tail behaves only like \(N^{-1}\). Comparing norms without specifying whether the operator has already smoothed the discrepancy makes the two convergence rates appear contradictory.

Change parameters · Singular systems and the amplification of noise

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

Regularisation, resolution and the price of stability

Choose which features to recover, derive the associated filter and quantify the bias introduced by that choice.

From first principles

Derive how a quadratic penalty filters small singular values

Suppose whitened data \(b\) are modeled by \(Ax\), and large reconstructed coefficients are implausible. Penalize their squared norm with strength \(\lambda^2>0\). The minimizer balances the measured residual and penalty,

\[\min_x\,\|Ax-b\|^2+\lambda^2\|x\|^2 .\]

In singular-vector coordinates let \(z_j=v_j^Tx\) and \(\beta_j=u_j^Tb\), where \(Av_j=\sigma_j u_j\). Orthogonality makes the objective a sum of scalar terms \((\sigma_jz_j-\beta_j)^2+\lambda^2z_j^2\), plus a constant from unmodeled data directions. Setting the derivative of each term to zero gives

\[z_j=\frac{\sigma_j}{\sigma_j^2+\lambda^2}\beta_j .\]

At \(\sigma_j\gg\lambda\) this is close to the ordinary inverse. At a tiny singular value it avoids dividing the noise by that tiny number, at the price of attenuating the true coefficient. A null component is set to zero by this penalty. A different physical reference state or a derivative penalty imposes different information and changes what the reconstruction preserves.

Background · Tikhonov estimate
\[\arg\min_m\{\|Gm-y\|^2+\alpha\|Lm\|^2\}\]

The regularisation operator selects which departures are costly. Compare values of alpha only after fixing how both terms are scaled.

Derivation and applications

Predict a withheld observation without repeating every regularized fit

Suppose a linear model has independent equal-variance readings \(y_i\), design rows \(a_i^T\), and a fixed positive quadratic penalty \(\lambda^2\|x\|^2\). One way to compare penalty strengths is prediction on withheld readings. Define \(H=A^TA+\lambda^2I\), fit all rows to obtain \(\widehat x\), and let \(\widehat x_{-i}\) be the fit with row \(i\) removed while retaining the same penalty. Adding and subtracting the omitted row in the smaller normal equations yields

\[H\widehat x=A^Ty,\]
\[H\widehat x_{-i}=A^Ty-a_i(y_i-a_i^T\widehat x_{-i}).\]

Subtract the second identity from the first. Multiplying by \(a_i^TH^{-1}\) shows that the shift in the fitted prediction is proportional to the withheld residual. The constant of proportionality \(h_i\) is its regularized leverage,

\[a_i^T(\widehat x-\widehat x_{-i})=h_i(y_i-a_i^T\widehat x_{-i}),\]
\[h_i=a_i^TH^{-1}a_i .\]

Writing \(r_i=y_i-a_i^T\widehat x\) and rearranging gives the leave-one-out residual and corresponding validation score,

\[y_i-a_i^T\widehat x_{-i}=\frac{r_i}{1-h_i},\]
\[{\rm CV}(\lambda)=\frac1m\sum_{i=1}^m\left(\frac{r_i}{1-h_i}\right)^2 .\]

A point with large leverage helps set its own fitted value, so its ordinary residual can be misleadingly small. The formula assumes rowwise omission makes sense for the data. If nearby observations share noise or the intended prediction is a whole new experiment, withholding complete independent groups answers a different question.

Worked example

Check the shortcut against two explicit refits

Fit a constant to \(y=(1,3)^T\) with \(\lambda^2=1\). The all-data estimate is \(4/3\), and both leverages are \(1/3\). Dividing the ordinary residuals by \(2/3\) gives withheld errors \(-0.5,2.5\), hence \({\rm CV}=3.25\). Fitting only 3 yields \(3/2\); fitting only 1 yields \(1/2\), confirming both predictions.

Second application

Detect a high-leverage reading

For another scalar fit take sensitivities \(1,3\), data \(2,4\) and \(\lambda^2=1\). The estimate is \(14/11\), and the second reading has ordinary residual \(2/11\) and leverage \(9/11\). Its withheld error is

\[(2/11)/(2/11)=1.\]

Directly using only the first reading gives \(x=1\), which predicts 3 at the second station rather than the observed 4.

Two ways to control the unstable inverse

A truncated SVD keeps only the first \(k\) singular vectors ordered by decreasing singular value. All retained coefficients are inverted exactly; the others are set to zero. Its noiseless reconstruction is a projection onto the retained right-singular subspace. The choice is transparent but a hard cutoff can place two comparably informative directions on opposite sides of the threshold. In some spatial reconstructions sharp spectral cutoffs also introduce oscillations.

A smoother choice is zero-order Tikhonov regularisation. In scaled parameters and whitened measurements minimise \(\|Bx-b\|^2+\lambda^2\|x\|^2\) for \(\lambda>0\). Differentiation gives

\[(B^\mathsf{T}B+\lambda^2 I)x_\lambda=B^\mathsf{T}b.\]

Solve with an augmented QR or with the SVD. Each coefficient now carries a filter:

\[x_\lambda=\sum_j\frac{\sigma_j}{\sigma_j^2+\lambda^2}(u_j^\mathsf{T}b)v_j,\]
\[f_j=\frac{\sigma_j^2}{\sigma_j^2+\lambda^2}.\]

If \(b=Bx\) exactly, the estimate of \(v_j^\mathsf{T}x\) is the true coefficient times \(f_j\). Where \(\sigma_j=\lambda\) the noiseless amplitude is halved. For a very small singular value, the noise gain now approaches zero; the price is that a real fine-scale feature in the same direction is also suppressed.

A smooth Tikhonov curve rises through one half at a singular value equal to lambda; a truncated singular-value filter jumps from zero to one there.
Noiseless resolution of an individual singular mode. A value of one half means that the inversion retains half of the true amplitude, even with perfect data.

Calculate the bias and variance for one component

Suppose a scalar instrument reads \(b=0.1x+\epsilon\), true \(x=2\), with noise standard deviation 0.1. Direct inversion gives an unbiased estimate with standard deviation 1. At \(\lambda=0.1\) the filter is \(1/2\); the estimated mean is 1 and the standard deviation is 0.5. Mean squared error is bias squared plus variance: 1.25 here, compared with 1 for direct inversion. For true \(x=0\) the same regularisation would reduce mean squared error from 1 to 0.25. Stabilising an estimate does not guarantee a smaller error for every possible signal. The importance assigned to plausible signals is part of the modelling decision.

Turn a source condition into a noise-dependent accuracy bound

The bias–variance calculation describes a particular signal and a noise distribution. Suppose instead we know only a deterministic data-error bound \(\|b^\delta-Bx^\dagger\|_2\le\delta\). To derive a uniform reconstruction guarantee we must also specify which signals qualify. One useful assumption is the source condition \(x^\dagger=B^Tw,\ \|w\|_2\le R\), in scaled coordinates. In singular coordinates a coefficient of \(x^\dagger\) is then \(\sigma_j\) times a coefficient of \(w\). Thus arbitrarily large features cannot hide in arbitrarily weak directions for the given \(R\). This assumption also excludes a component in the null space.

Write \(\alpha=\lambda^2\) for the penalty coefficient. Split the reconstruction error into the data perturbation passed through the regularised inverse and the loss produced by regularising exact data. In a mode of singular value \(\sigma\), the noise multiplier is \(\sigma/(\sigma^2+\alpha)\). The noiseless bias is \(-\alpha/(\sigma^2+\alpha)\) times the true coefficient, or \(-\alpha\sigma/(\sigma^2+\alpha)\) times the source coefficient. Because \((\sigma-\sqrt\alpha)^2\ge0\), the first multiplier is bounded by \(1/(2\sqrt\alpha)\). The same inequality bounds the magnitude of the second by \(\sqrt\alpha/2\). Orthogonality and the triangle inequality now give

\[\|x_\alpha^\delta-x^\dagger\|_2\le\frac{\delta}{2\sqrt\alpha}+\frac{R\sqrt\alpha}{2}.\]

If \(R,\delta>0\), the two terms balance at \(\alpha=\delta/R\), giving the bound \(\sqrt{R\delta}\). This is an a priori parameter choice based on stated uncertainty. For a family of increasingly resolved operators, keeping \(R\) controlled matters. If the model class admits large coefficients in directions of vanishing sensitivity, the same claim has no uniform basis.

When bias and data error reinforce one another

Take \(B=\operatorname{diag}(1,0.1)\) and \(w=(0,1)^T\), so \(R=1\), the true signal is \((0,0.1)^T\), and exact data are \((0,0.01)^T\). Suppose the second measurement is perturbed downwards by \(0.01\). Then

\[\delta=0.01,\ \alpha=0.01.\]

With exact data, reconstruction would retain half the weak coefficient, producing \(0.05\) and bias \(-0.05\). The data perturbation is multiplied by \(0.1/(0.01+0.01)=5\), adding another \(-0.05\). The reported signal is zero, and the error \(0.1\) attains the theoretical bound. Here the vulnerable direction has precisely \(\sigma=\sqrt\alpha\). On another spectrum the achievable error may be much smaller.

Choose what the penalty expresses

For an expected background \(x_0\) and a derivative operator \(D\), a suitable criterion may use \(\|D(x-x_0)\|^2\). A first-difference penalty discourages adjacent jumps while leaving constants unpenalised; a second-difference penalty instead leaves affine trends unpenalised on a simple uniform open grid. The minimiser is unique if \(\ker B\cap\ker D=\{0\}\) for \(\lambda>0\). Check this condition before interpreting a smooth result. Penalising a field whose true behaviour has a sharp interface spreads the interface; inspect the response to a synthetic sharp feature before claiming a physical transition width.

Choose a strength from measurements, then report resolution

If a bound \(\delta\) for the whitened data error is known, the discrepancy principle seeks a fit whose residual norm is comparable to \(\delta\). Smaller \(\lambda\) usually fits data more closely; larger values raise residual and reduce the penalised norm. A noise level estimated in the original physical units must be transformed consistently. If model error alone exceeds the assumed discrepancy, no amount of careful parameter tuning makes the noise model correct. Other choices include validation on genuinely independent observations and examining the residual-versus-penalty curve across several decades.

Report the chosen operator, units, strength and selection criterion. Alongside a reconstruction, show how its resolution changes under a modest change of regularisation. A feature that vanishes under a noise-consistent alternative requires more evidence. A predicted quantity can remain stable despite substantial uncertainty in the underlying image; testing that quantity directly can be the scientifically relevant validation.

Per Christian Hansen develops the singular-value picture and parameter choice further in Discrete Inverse Problems.

When a specified discrepancy determines a unique strength

Consider the zero-background quadratic penalty and express the data in left singular coordinates \(b_j\). Substituting the filtered solution back into the forward model gives residual coefficient \(\lambda^2 b_j/(\sigma_j^2+\lambda^2)\), with the sign chosen as data minus prediction. The data component \(b_\perp\) orthogonal to the range of the matrix survives unchanged for every strength. Orthogonality therefore expresses the squared discrepancy as \(\|b_\perp\|^2+\sum_j |b_j|^2[\lambda^2/(\sigma_j^2+\lambda^2)]^2\), with the sum taken over positive singular values. This equation allows a statement more definite than the heuristic that smoothing worsens the fit.

For each positive singular value the quantity in brackets increases strictly from zero to one as \(\lambda\) grows from zero to infinity. Thus the residual norm increases continuously from the irreducible distance \(\|b_\perp\|\) to the full data norm. There is a unique positive finite strength for every target strictly between these endpoints provided at least one measured singular component is nonzero. A target below the first endpoint is infeasible. A target near the upper endpoint can permit a nearly zero reconstruction. The exact same reasoning for general penalties needs care when some physical modes receive no penalty.

Allocate a discrepancy after accounting for an unmodelled reading

A scaled instrument produces \(b=(3,1)^T\) for a single unknown \(x\), with predictions \(Bx=(2x,0)^T\). The second channel, which should be zero according to the stated model, already consumes one unit of residual norm. Set a total target of \(\sqrt{1.36}\) and use the zero-background criterion. Squaring the norm leaves \(1.36-1=0.36\) for the squared discrepancy in channel one. The required nonnegative first-coordinate discrepancy is therefore 0.6. Its prediction is \(3-0.6=2.4\), so the reconstructed coefficient must be 1.2.

Check by solving the actual penalised problem. The normal equation is

\[(4+\lambda^2)x=6.\]

Substituting \(x=1.2\) gives \(4+\lambda^2=5\), hence \(\lambda=1\). The noiseless resolution factor for that coefficient is

\[4/(4+1)=0.8.\]

This calculation identifies the amplitude tradeoff associated with the selected discrepancy. It also shows why setting the target to 0.9 could never work: the second channel alone contributes one unit for every value of \(x\).

Suppose a second independent reading of the missing channel also repeatedly lies near one, despite a nominal uncertainty of only 0.05 units. The persistent signed defect would be evidence to inspect the forward model or reference subtraction. Treating that behaviour as an excuse to enlarge the noise budget can produce an attainable discrepancy while systematically oversmoothing the channel that does measure \(x\). Inspect residuals by physical observation as well as their aggregate norm before attributing a discrepancy-selected strength to the uncertainty of the instrument.

In this example the formula for arbitrary strength is \(x=6/(4+\lambda^2)\). Differentiating it shows that near \(\lambda=1\) a strength increase of 0.1 initially lowers the coefficient by about 0.048. This local sensitivity is another interpretable number to publish if the noise target is itself estimated from a short calibration series.

Change parameters · Regularisation, resolution and the price of stability

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

Adjoint gradients through a forward solver

Differentiate a scalar objective with respect to many parameters without recomputing a separate perturbed solution for each one.

From first principles

Differentiate a scalar objective through a linear state equation

Suppose the state \(u\) solves \(K(p)u=f(p)\) for a given parameter vector, with nonsingular \(K\), and a scalar objective \(J(u,p)\) measures mismatch. A small parameter perturbation changes the state through both the load and the operator. Differentiating the balance gives

\[K\,du=df-(dK)u,\]
\[dJ=J_u^Tdu+J_p^Tdp .\]

To obtain a scalar derivative without computing every state sensitivity, solve the transpose system \(K^T\lambda=J_u\) once. Substitution eliminates \(du\),

\[dJ=J_p^Tdp+\lambda^T[df-(dK)u].\]

Each parameter then contributes through its derivatives of \(f,K,J\). The transpose is required even if the forward solver is more familiar; it moves the scalar objective’s weights backward through the linear response. A directional finite difference of the complete objective is an independent check on a computed adjoint gradient.

Background · Adjoint sensitivity
\[J^\mathsf T r\]

This operation maps a data-space vector back to parameter space. For a discretised physical model the chosen inner products determine the correct adjoint.

Derivation and applications

Propagate a terminal measurement backward through continuous time

Consider a scalar state satisfying \(\dot u=a(t)u+p\,b(t)\) over \(0\le t\le T\), with known initial state independent of \(p\). A sensor observes \(u(T)\), giving loss \(J=\tfrac12[u(T)-y]^2\). Assume continuous coefficients and exact evolution for this calculation. The forward derivative \(w=\partial u/\partial p\) satisfies an inhomogeneous initial-value problem, and the objective derivative depends on its endpoint,

\[\dot w=a(t)w+b(t),\]
\[w(0)=0,\]
\[\frac{dJ}{dp}=[u(T)-y]w(T).\]

Instead of solving for every possible forcing sensitivity separately, introduce a terminal weight \(\lambda(T)=u(T)-y\). Choose its evolution to cancel the term proportional to \(w\) in the derivative of \(\lambda w\). The product rule gives

\[\dot\lambda=-a(t)\lambda,\]
\[\frac{d}{dt}(\lambda w)=\lambda b(t).\]

Integrate over the interval. The initial product vanishes because \(w(0)=0\), and the terminal product equals the desired gradient. Thus

\[\frac{dJ}{dp}=\int_0^T\lambda(t)b(t)\,dt .\]

One backward weight suffices for many scalar parameters entering through different forcing shapes. A parameter-dependent initial condition would add \(\lambda(0)\partial_pu(0)\). A discrete time integrator approximating the continuous equations also introduces integration error; differentiating the actual discrete steps gives the derivative of the computed loss at that finite step size.

Worked example

Reconstruct a sensitivity in a decaying reservoir

For \(a=-1,\ b=1,\ T=\ln 2,\ u(0)=0,\ p=4\), the terminal state is

\[4(1-e^{-T})=2.\]

With observation \(y=1.5\), the terminal adjoint is \(0.5\). Earlier weights are \(\lambda(t)=0.5e^{-(T-t)}\), so

\[dJ/dp=0.5(1-e^{-T})=0.25.\]

Direct differentiation of \(\tfrac12(p/2-1.5)^2\) at four confirms the result.

Second application

Compare two controls observed only at the endpoint

For \(\dot u=-u\) between two instantaneous unit-gain input pulses, consider their amplitudes as independent parameters. A pulse at time \(t_i\) contributes \(e^{-(T-t_i)}\) to terminal-state sensitivity. At \(T=3\) with terminal residual 2, the gradient for a pulse at \(t=1\) is \(2e^{-2}=0.271\); for a pulse at \(t=2\) it is

\[2e^{-1}=0.736.\]

Later forcing has greater leverage because it has less time to decay.

Does the gradient see where the instruments were actually placed?

A periodic ring of parameter nodes is mapped to fewer instrument readings in two operations. First a narrow, slightly asymmetric sensor spreads each nodal signal to its neighbours. Write this as a matrix \(S\). Next the instruments sample between nodes. For an instrument a fraction \(f\) of the way from node \(j\) to \(j+1\), the corresponding row of \(B\) has entries \(1-f\) and \(f\) at those nodes. The complete forward model is \(A=BS\). It is rarely necessary to assemble this product on a large mesh, but a small explicit example makes it possible to audit every entry.

Take Euclidean inner products so the conventions are clear. An adjoint must satisfy \((Av)^Tw=v^TA^Tw\) for every parameter direction \(v\) and sensor residual \(w\). Moving each matrix across the scalar product yields

\[A^Tw=S^T(B^Tw).\]

The interpolation transpose scatters a sensor residual back to both neighbouring nodes with exactly the original weights. The smoothing transpose then exchanges the left and right coefficients of the stencil. Applying the forward smoothing again can look plausible and still shift the inferred sensitivity footprint.

The influence of one sensor on parameter nodes and the Taylor remainder for two candidate gradients are displayed side by side.Open full-size diagram
Reusing a slightly asymmetric forward stencil produces a plausible-looking sensitivity. Its first-order remainder betrays the error when the objective is perturbed in an independent parameter direction.

To test the gradient choose the merit function \(J(m)=\tfrac12\|Am-y\|^2\). Its directional derivative is \(v^TA^T(Am-y)\). Expand the quadratic objective exactly to find

\[J(m+hv)-J(m)-hv^TA^T(Am-y)=h^2\|Av\|^2/2.\]

Halving \(h\) divides the remainder by four until rounding intervenes. Substituting a wrong derivative leaves an extra term linear in \(h\). The notebook checks both the observed scaling and the coefficient of the quadratic term at one finite step. Several independent directions help avoid a chance cancellation in a single test.

With a fraction \(f=0.35\), one unit of observation residual is split into 0.65 and 0.35 before reverse smoothing. Its total remains one because the row weights sum to one, but conservation of that sum is a weak test: using the wrong asymmetric stencil also preserves it. If the underlying inversion uses volume-weighted mesh or measurement inner products, those weights must be included consistently; the plain transpose in this experiment applies to its explicitly chosen Euclidean metric.

The pictured footprint is obtained by sending a single residual backwards. It can also be reconstructed element by element by perturbing one parameter node forwards and recording just that sensor. The two pictures should agree for every node. This costs more forward evaluations, but on a small test ring it checks the location of a discrepancy directly.

Suppose the continuous forward code records a sensor at fraction 0.35 while its adjoint implementation rounds that sensor to the nearest node. Can an exact solution of the adjoint linear system repair the discrepancy?

Work through the solution

The error occurs in the observation operator itself. For a unit residual the true transpose must assign 0.65 and 0.35, whereas the rounded version assigns one and zero. Accurate solves propagate these different inputs accurately. An isolated dot-product test of the observation operator followed by a test of the full composition locates the discrepancy.

Change parameters · Explore this notebook example

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

The state is also a function of the parameters

Suppose a discretised forward model solves \(K(p)u=f(p)\). Data enter through \(Hu\), and observations have been whitened. The objective is \(J=\tfrac12\|Hu-y\|^2+R(p)\). A direct perturbation of a material parameter changes the predicted state even when that parameter never appears in the observation operator. For fixed \(H\), the state derivative contribution is \(g_u^\mathsf{T}du\), with \(g_u=H^\mathsf{T}(Hu-y)\). Differentiating the state equation gives

\[K\,du=df-(dK)u.\]

Solving this equation once per parameter would be prohibitively expensive for a fine material field.

Transpose the solve

Define an adjoint state by \(K^\mathsf{T}\lambda=g_u\). Then

\[g_u^\mathsf{T}du=\lambda^\mathsf{T}K\,du=\lambda^\mathsf{T}[df-(dK)u].\]

For each parameter component the gradient is

\[\frac{\partial J}{\partial p_j}=\frac{\partial R}{\partial p_j}+\lambda^\mathsf{T}\left(\frac{\partial f}{\partial p_j}-\frac{\partial K}{\partial p_j}u\right).\]

This uses one forward and one transposed solve for one scalar objective, independent of the number of gradient components. Forming the contractions for all components still costs work, often local to mesh elements. If sensors or boundary conditions also depend explicitly on parameters, their derivative terms must be included. A symmetric diffusion operator may reuse a factorisation; an advection operator need not equal its transpose.

Work a two-cell example

Consider \(K=\left(\begin{smallmatrix}p+1&-1\\-1&2\end{smallmatrix}\right)\), \(f=(1,0)\), and observe the second component with value \(y=0.4\). At \(p=1\), \(u=(2/3,1/3)\), so the residual is \(-1/15\). The adjoint load is \((0,-1/15)\); solving gives \(\lambda=(-1/45,-2/45)\). Only the first diagonal entry of \(K\) depends on \(p\). With no regulariser the derivative is \(-\lambda_1u_1=2/135\). Check independently: \(u_2=1/(2p+1)\), whose derivative at one is \(-2/9\). Multiplying by the residual gives the same positive gradient. Increasing \(p\) lowers an already underpredicted second reading.

Test the computed gradient in a direction

Pick a physically scaled perturbation \(v\). A correct gradient gives a linear residual \(J(p+hv)-J(p)-h\,g^\mathsf{T}v\) of order \(h^2\) for a smooth problem. Halving \(h\) should roughly quarter this remainder across a useful range. At very small \(h\), forward-solver tolerances and floating-point cancellation can dominate. Repeat with directions touching different components and with the same boundary-condition handling used in production. A close fit to the observed data is a poor gradient test when residuals nearly vanish: a wrong data gradient can then look small by accident. Evaluate at a parameter away from the best fit, solve the state again for each perturbation and compare the resulting objective values. To detect a missing transpose, include a nonsymmetric forward operator in the test. The symmetric two-cell example above can expose a sign error but cannot distinguish the forward matrix from its transpose.

Reverse a sequence of state updates

Suppose the forward solver evolves \(u_{n+1}=G_n(u_n,p)\) for a fixed number of steps, and an objective sums observation losses \(\ell_n(u_n,p)\) from time zero to the final time. The direct chain rule carries a state derivative with respect to every parameter through the entire trajectory. To reverse the calculation, start with \(\lambda_N=\partial_{u_N}\ell_N\) as a column vector. A perturbation \(du_n\) affects both the loss at time \(n\) and the following state by \(G_{n,u}du_n\). Moving the latter action across a dot product gives the recursion \(\lambda_n=\partial_{u_n}\ell_n+G_{n,u}^T\lambda_{n+1}\).

The parameter gradient is the sum of explicit derivatives of all losses, the initial term \((\partial_p u_0)^T\lambda_0\), and the contributions \(G_{n,p}^T\lambda_{n+1}\) from every step. Each reversed step needs the state information used by its forward counterpart. Storing the whole trajectory makes that information available immediately. Recomputing segments between stored checkpoints trades extra forward evaluations for memory. These formulas differentiate the actual discrete transitions, so an adaptive solver with parameter-dependent step rejection or event switches needs a careful interpretation of the differentiated computation.

Make the transpose observable in a two-step calculation

Take a two-coordinate forward transition \(G(u,p)=Mu+pe_2\), with \(M=\left(\begin{smallmatrix}1&2\\0&1\end{smallmatrix}\right)\), \(u_0=0\), and \(p=1\). Two steps give

\[u_1=(0,1)^T,\]
\[u_2=(2,2)^T.\]

Observe the first coordinate only at the end, with target value one. The quadratic loss is one half and its final state derivative is

\[\lambda_2=(1,0)^T.\]

One reverse step gives

\[\lambda_1=M^T\lambda_2=(1,2)^T.\]

The two parameter contributions are \(e_2^T\lambda_2=0\) and \(e_2^T\lambda_1=2\), so the gradient is two.

The zero contribution from the last injection has a physical meaning: the injected second coordinate can influence the first only during a subsequent transition. The first injection has time to do that through the off-diagonal element two. Using \(M\) in place of \(M^T\) in the backwards calculation would instead keep \(\lambda_1=(1,0)^T\), predicting zero total sensitivity. This example exercises a distinction that disappears when every state matrix is symmetric.

For a scalar parameter perturbation \(h\), solving both steps again gives terminal first coordinate \(2(1+h)\) and loss \(J(1+h)=(1+2h)^2/2\). The remainder after subtracting the base loss and the predicted linear term is exactly \(2h^2\). For \(h=0.1\) and 0.05 the remainders are 0.02 and 0.005. The erroneous zero gradient instead gives 0.22 and 0.105. The two sequences have very different observed convergence factors even though they use identical forward trajectories and observation data.

More generally an individual parameter may enter the map at several times with different signs. The corresponding gradient terms must be accumulated rather than overwritten during the backward pass. In this example overwriting after the earliest step happens to return the correct value because the last contribution is zero. Adding a simultaneous observation of the final second coordinate makes both contributions nonzero and provides a complementary regression case for the time-index accumulation.

For a terminal loss summing both coordinate discrepancies, the adjoint load contains both sensor contributions before the first reverse transition.

Change parameters · Adjoint gradients through a forward solver

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

Recognise an incorrect gradient by the rate of its remainder

Verify the reduced gradient for \(J(p)=(1/(p+2)-0.6)^2/2\) at \(p=1\). For each perturbation solve the scalar equilibrium again and subtract the original objective and the candidate linear term. The sign of the state sensitivity is essential.

Recognise an incorrect gradient by the rate of its remainder. Horizontal axis: Parameter perturbation h. Vertical axis: Absolute Taylor remainder. Data follow the figure.
In the range shown the Taylor remainder falls quadratically with the correct gradient and approximately linearly with the reversed one. The use of an analytic scalar model isolates this diagnostic; tolerances in a larger forward solve can mask the small-h regime.
Read values from the plot
Absolute Taylor remainder at selected values of Parameter perturbation h.
Parameter perturbation hCorrect gradientGradient with sign reversed
3e−53.3334e−121.7778e−6
0.000286633.0431e−101.6985e−5
0.00273862.7795e−80.00016226
0.0261662.5501e−60.001548
0.250.000241070.014574

Download all 101 plotted samples (CSV)

Choosing regularisation when the true answer is hidden

Derive two parameter choices from different information, then see how an excellent fit to sensor data can restore the noise in a weakly visible mode.

Each observation competes with a penalty

In orthogonal singular coordinates, let \(d_i=\sigma_i x_i+\eta_i\). For a candidate \(\lambda>0\), minimise \(\sum_i(\sigma_i x_i-d_i)^2+\lambda^2\sum_i x_i^2\). Setting each derivative to zero gives

\[\widehat x_i=\sigma_i d_i/(\sigma_i^2+\lambda^2).\]

Predicted data are \(H_i d_i\), where \(H_i=\sigma_i^2/(\sigma_i^2+\lambda^2)\). These factors range from zero to one. Their sum is the effective number of fitted data directions.

If an independently obtained bound for the whitened noise norm is \(\delta\), compare \(\sum_i[(1-H_i)d_i]^2\) with \(\delta^2\). The residual rises as \(\lambda\) increases. A discrepancy choice seeks the largest smoothing consistent with the stated noise level. If there is no crossing, either the search range, model or noise estimate needs examination.

A prediction criterion without a noise bound

For a linear smoother \(\widehat d=Hd\), deleting observation \(i\) gives the leave-one-out residual \(r_i/(1-H_{ii})\) under the usual fixed-design ridge fit. Generalised cross-validation replaces the individual leverages by their mean. This produces the computable quantity

\[\mathrm{GCV}(\lambda)=\frac{\|d-\widehat d\|^2/n}{[1-\operatorname{trace}(H)/n]^2}.\]

The denominator penalises fits that spend nearly one degree of freedom per datum. The criterion estimates predictive performance under assumptions on noise and design. A selected value need not minimise the error in the unknown parameter, and highly unequal leverages can defeat the approximation.

A sensor that barely sees a mode

Take sensitivities \(1,0.01\), true parameters \((1,1)\) and data \((1,0.02)\). Unregularised inversion returns \((1,2)\) with zero residual. A perturbation of one hundredth in the second observation doubled the second parameter. With \(\lambda=0.01\) the second gain is \(\sigma/(\sigma^2+\lambda^2)=50\), so the same datum yields 1. This exact agreement with the hidden truth is accidental.

For \(\lambda=0.1\), the second estimate drops to about 0.0198. A weak direction has been almost removed. Meanwhile the first estimate remains about 0.9901. A single residual norm does not tell you which parameter direction was suppressed.

Inspect an entire regularisation path

Three synthetic sensors have sensitivities \(1,0.2,0.02\), true parameters all equal to one, and an adjustable perturbation only in the last sensor. This deliberately uneven noise makes it possible to test when the GCV assumptions are plausible. Inspect parameter error and data residual over a logarithmic range of \(\lambda\). The result reports the best GCV value on the sampled grid and the residual at that choice.

Tutorial on choosing a criterion

If all \(H_i\) equal a common \(h<1\), can GCV distinguish different values of \(h\) for fixed data?

Worked solution

The numerator contains \((1-h)^2\|d\|^2/n\) and the denominator \((1-h)^2\). They cancel exactly. There is no identifiable minimum from this score.

If residuals remain much larger than a well-calibrated noise norm even at negligible regularisation, should increasing the penalty help?

Worked solution

Increasing the penalty shrinks the fit and usually increases residual. Check the forward model, its range and data preparation, including the uncertainty units used in whitening.

Read the university treatment

Compare the information each stopping rule needs about measurement noise with the information available in the three-sensor experiment. Per Christian Hansen · Stopping rules for noisy data

How model error masquerades as a fitted physical parameter

Project an omitted spatial effect into the fitted parameter space. Work out when residual checks reveal the omission and when they are silent.

A misspecified instrument

Suppose \(d=A x_*+b+\eta\), with zero-mean measurement noise and a deterministic but omitted contribution \(b\). Assume \(A\) has independent columns. Least squares gives

\[\widehat x=(A^TA)^{-1}A^Td.\]

Taking expectations leaves the parameter bias \(A^+b\). The fitted residual is \((I-AA^+)(b+\eta)\). Thus the same model error separates into a component that biases the parameters and an orthogonal component that remains visible to residual checks.

For a single sensitivity column \(a\), decompose \(b=b_\parallel+b_\perp\), where \(b_\parallel=a(a^Tb)/(a^Ta)\). Repeating the measurement reduces independent random error; the deterministic projection remains. Error bars computed solely from measurement variance can become more misleading as more readings are acquired.

Calibration with an omitted offset

Fit \(d_i=m t_i\) at \(t=(1,2,3)\) to observations actually generated by \(d_i=2t_i+0.3\). The unmodelled constant has nonzero projection onto \(t\). The bias is \(0.3(1+2+3)/(1+4+9)=0.12857\), giving fitted slope 2.12857. The residuals at the three points are approximately 0.17143, 0.04286 and −0.08571. Their signed trend suggests a missing intercept. At \(t=6\) the model predicts 12.7714 while the actual law gives 12.3; an apparently modest training residual has grown into a substantial extrapolation error.

Now use a discrepancy exactly proportional to time, \(b_i=0.1t_i\). The fitted slope becomes 2.1 with zero residual at every training point. Additional times under the same model cannot separate the true slope from this contribution. A separate calibration that suppresses the extra physical effect can.

Rotate the missing physics

In a two-reading instrument, the model sensitivity is the unit horizontal vector. Vary the magnitude and direction of the omitted contribution. Observe parameter bias and visible residual separately, and locate cases with the same discrepancy norm but completely different fit diagnoses.

Tutorial on experimental design

Repeat the offset example at symmetric times \((-1,0,1)\). Which part of the fitted result changes?

Worked solution

The constant is now orthogonal to \(t\), giving zero slope bias. The residual is a constant 0.3 in every reading. The experiment has made an offset visible without corrupting the slope.

Can adding an unrestricted discrepancy parameter for every datum solve the identifiability problem?

Worked solution

It permits exact fits for any physical parameter by assigning the remaining signal to the discrepancy. Constrain the discrepancy from theory, independent data or a justified prior to extract the physical parameter.

Read the university treatment

Compare errors that project into a fitted singular direction with errors seen in the orthogonal data residual. Per Christian Hansen · Discrete Inverse Problems

Capacitance matrices, floating nodes and controlled approximation bounds

A multi-electrode device generally has no single capacitance until the other terminals have been connected or isolated. An energy identity determines the matrix that relates voltages to charges, and a complementary flux identity can certify estimates even when the exact field is unknown.

Build the matrix from unit-voltage experiments

Consider \(n\) isolated conductor surfaces embedded in a connected linear dielectric, plus a grounded reference conductor or decay relative to a reference at infinity. There is no free charge in the dielectric. Define the weighting function \(w_j(\mathbf x)\) by putting conductor \(j\) at 1 V, all other conductors and the reference at zero, then dividing by 1 V. For arbitrary voltages \(V_j\), linearity and uniqueness give

\[\phi(\mathbf x)=\sum_jV_j w_j(\mathbf x).\]

The charge on conductor \(i\) is an integral of displacement leaving its metal into the dielectric. Using a normal \(\mathbf n\) pointing out of the dielectric into the metal gives

\[Q_i=\int_{S_i}\epsilon\partial_n\phi\,dA.\]

Therefore

\[Q_i=\sum_j C_{ij}V_j,\]
\[C_{ij}=\int_{S_i}\epsilon\,\partial_n w_j\,dA=\int_\Omega\nabla w_i\cdot\epsilon\nabla w_j\,dV .\]

The last equality follows by multiplying the charge-free field equation for \(w_j\) by \(w_i\) and integrating by parts. The boundary integral selects just conductor \(i\) because its weighting function is unity there and zero on every other conductor. The volume expression proves reciprocity \(C_{ij}=C_{ji}\) for a symmetric dielectric tensor. The diagonal terms are positive, since they integrate the squared fields of each independent one-volt experiment. In an ordinary connected isotropic configuration a positive voltage on \(j\) with \(i\ne j\) grounded puts negative induced charge on \(i\); the corresponding mutual coefficient \(C_{ij}\) is nonpositive.

The stored energy is

\[U=\tfrac12\sum_{ij}V_i C_{ij}V_j.\]

Positive material response makes the reduced matrix with an effective reference positive definite under usual connected boundary conditions. If all conductors including the external closing conductor are retained without fixing a reference, changing all voltages by a common constant produces no field. The full matrix then has a zero common-voltage mode and each row sums to zero. Removing the grounded reference from the matrix removes this gauge null direction; its remaining rows need not sum to zero. Treating both statements as universal would create a spurious constraint on measured terminal data.

Convert a field matrix to a circuit measurement

A two-port device might have reduced matrix in picofarads \(C=\begin{pmatrix}12&-3\\-3&8\end{pmatrix}\) relative to its grounded enclosure. With conductor 1 at 2 V and conductor 2 at 0 V, charges are \(24\) pC and \(-6\) pC. The grounded enclosure takes the compensating \(-18\) pC. Reciprocity predicts that holding conductor 1 at 0 V and conductor 2 at 2 V puts \(-6\) pC on conductor 1. The diagonal 12 pF includes both the coupling to conductor 2 and the path to the enclosure. In an equivalent lumped model the positive pair capacitance between 1 and 2 is 3 pF, while the two separate couplings to ground are 9 and 5 pF. The sign of a Maxwell matrix off-diagonal is opposite to a positive capacitor drawn between two nodes.

Now disconnect conductor 2 after neutralising it. Its total charge stays zero while its voltage becomes an unknown. The second matrix row demands \(-3V_1+8V_2=0\). Thus \(V_2=3V_1/8\), giving apparent capacitance seen at terminal 1 equal to \(12-9/8=10.875\) pF. Grounding conductor 2 would instead yield 12 pF. The change is a measurable effect of the prepared state, not a change in the dielectric constant of the material. If conductor 2 already carries charge \(Q_2^0\), its voltage acquires a constant offset \(Q_2^0/C_{22}\) in addition to the response to \(V_1\).

For several floating nodes write their block equation as \(Q_f=C_{fa}V_a+C_{ff}V_f\). If the reference fixes the potential freedom, solve \(V_f=C_{ff}^{-1}(Q_f-C_{fa}V_a)\) and substitute into the active-node block. The differential active capacitance is the Schur complement \(C_{aa}-C_{af}C_{ff}^{-1}C_{fa}\). It is symmetric and positive for a positive full reduced matrix. With fixed floating charges the constant term shifts active charges but leaves this differential matrix unchanged in a linear medium. An actual cable measurement that results from leaving a neighbouring shield unconnected should be compared to this elimination, not to the original diagonal.

Obtain an upper capacitance bound by trying a voltage

For a two-terminal charge-free dielectric at prescribed voltage difference \(V\), every admissible continuous trial potential satisfying the electrode voltages gives an energy at least as large as the exact electrostatic energy. This follows by writing the trial as exact plus a perturbation vanishing on fixed-voltage electrodes and expanding the energy. The mixed term integrates to zero because the exact displacement is divergence free. If exterior walls are insulated, the exact normal displacement vanishes there and the trial need not be assigned a fixed potential on them. Thus \(C\le 2U_{\rm trial}/V^2\). The fields must genuinely arise as a gradient of one trial voltage. Guessing unrelated components of an electric field does not provide this upper bound.

For a capacitor of plate area \(A\), separation \(d\), and scalar permittivity varying in the gap, choose a linear voltage along the plate normal. The trial energy gives

\[C/A\leq \langle\epsilon\rangle/d,\]

where the average is over the gap volume divided by \(Ad\). For dielectric columns that run parallel to the applied field with no change of material along the field direction, the linear potential can be exact. For layers stacked normal to the field it usually overestimates capacitance. The same arithmetic average thus serves as the actual result or a strict upper bound depending on geometry, even when the material fractions are identical.

A complementary trial with a divergence-free displacement

Fix total plate charges \(\pm Q\) instead, taking no volume free charge. An admissible displacement trial must have the prescribed flux into each electrode, no flux through insulating side walls, continuous normal component across free-charge-free interfaces, and zero divergence inside. It need not correspond to an exact potential-gradient electric field. Consider \(U_D[\mathbf D]=\tfrac12\int\mathbf D\cdot\epsilon^{-1}\mathbf D\,dV\). Write a trial as \(\mathbf D_*+\delta\mathbf D\). The cross term is \(\int(-\nabla \phi_*)\cdot\delta\mathbf D\,dV=0\): integration by parts gives zero bulk divergence and each conductor has constant voltage multiplying zero net flux change. Thus \(U_D\ge Q^2/(2C)\) and

\[\frac{Q^2}{2U_D^{\rm trial}}\ \le C\le\ \frac{2U_V^{\rm trial}}{V^2}.\]

Unlike two competing estimates, these inequalities identify which side contains the exact answer. For the same parallel-plate geometry choose constant displacement \(D_z=Q/A\). It yields \(C/A\geq1/[d\langle1/\epsilon\rangle]\), the harmonic-mean lower bound. For layers stacked normal to the plates that trial is exact. For columns parallel to the field the upper bound is exact. An arbitrarily shaped two-phase composite satisfies both under the stated plate and insulating-side conditions. This gives a strong physical check before solving detailed microstructure on a mesh.

Use measured numbers to rule out a material model

Take equal volume fractions of relative permittivities 2 and 8 in a cell of area \(100\) mm² and thickness 1.0 mm. The harmonic mean is 3.2, arithmetic mean 5.0. Since \(\epsilon_0A/d=0.8854\) pF, the admissible capacitance interval is 2.83–4.43 pF. A measured 3.3 pF is consistent with many internal geometries and does not determine how the two materials are arranged. A calibrated value of 5.2 pF would require examining fringing, area and thickness, parallel cable capacitance, dispersive or conducting response, and the assumed constituent data. Merely refining an interior mesh cannot produce a static value outside the proven interval if it faithfully solves the same ideal model.

For a field computation use the matrix reciprocity relation as one diagnostic and the two variational bounds as another. An electrostatic finite-element potential may produce a reliable energy estimate while numerical differentiation at a sharp electrode edge produces poor charge density. Integrating boundary fluxes gives each terminal charge, but reconstructing \(C_{ij}\) by the mixed energy integral often has a different error sensitivity. Comparing both over a grid sequence can indicate whether the error is concentrated at edges or in the field volume. Symmetrising a noisy measured matrix by averaging its transpose removes an antisymmetric discrepancy but cannot establish positivity or explain an inaccurate common scale.

Construct a complete measurable matrix without numerical differentiation

Three thin spherical conductors have radii \(a<b<c\). The outer one is tied to the reference potential. Homogeneous material of permittivity \(\epsilon_1\) fills the inner annulus \(a<r<b\) and another material \(\epsilon_2\) fills \(b<r<c\). Spherical symmetry gives each annulus its own independent radial displacement field fixed by its electrode voltage difference. Define the ordinary two-sphere gap capacitances \(K_1=4\pi\epsilon_1 ab/(b-a)\),

\[K_2=4\pi\epsilon_2 bc/(c-b).\]

The inner conductor takes \(K_1(V_1-V_2)\). The middle one has two faces, carrying the opposite inner gap charge and an outer gap charge \(K_2V_2\). Thus \(Q_1=K_1V_1-K_1V_2\) and \(Q_2=-K_1V_1+(K_1+K_2)V_2\). Every sign and every term can be read from a physical face.

In vacuum choose \(a=10\) mm, \(b=20\) mm, \(c=40\) mm. Then \(K_1=2.225\) pF and \(K_2=4.451\) pF. Driven at 3.0 V with the middle conductor grounded, the inner sphere carries \(6.68\) pC and the outer gap has zero field. With the middle conductor floating and neutral, \(V_2=K_1V_1/(K_1+K_2)=1.0\) V. The inner sphere now carries \(4.45\) pC. The inner and outer faces of the floating sphere carry exactly opposite charges, although the conductor has a nonzero voltage. Integrating a current meter attached to the conductor during charging need not tell you each face's charge separately.

Now electrically connect the inner two conductors. Their common voltage sets the inner field to zero. The combined conductor has capacitance \(K_2\) to the exterior, independent of \(a\). This third preparation is distinct from grounding or floating the middle shell. Before calculating an experimental 'device capacitance', draw the electrical connections as well as the geometric cross section. In a larger matrix a driven conductor and a driven guard at the same voltage should have their charges combined only if the experimental ammeter actually measures their total current.

One can also recover the two constituent permittivities from just two carefully selected scalar measurements. Ground the middle shell to determine \(K_1\) directly. Then float it neutral and measure \(K_{\rm ser}=K_1K_2/(K_1+K_2)\), giving \(K_2=K_{\rm ser}K_1/(K_1-K_{\rm ser})\). If \(K_2\) is very large, the floating and grounded readings nearly coincide and their difference becomes noise sensitive. An alternative is to drive inner and middle together and measure the outer-gap current directly. The algebra selects a better experimental protocol instead of hiding ill-conditioning in a formula.

Tighten a variational bound without solving the entire field

Take the stacked two-layer capacitor with no space charge, equal layer thickness and isotropic permittivities \(\epsilon_1=2\epsilon_0,\epsilon_2=8\epsilon_0\). A single linear trial produces the arithmetic-mean upper bound. Insert one interior voltage degree of freedom at a point that coincides with the material interface. The resulting piecewise-linear trial space contains the exact solution. Minimising its energy makes the normal displacements equal, reproducing the harmonic-mean capacitance exactly. A global quadratic trial with the same number of extra parameters will usually perform worse because its derivative is continuous while the exact normal field jumps.

To see this quantitatively write \(x=z/d\) on the unit interval and \(V(x)=V_0[x+\eta x(1-x)]\), with the lower half at relative permittivity 2 and upper half at 8. This trial fixes both endpoints. Its dimensionless capacitance upper estimate is

\[c(\eta)=\int_0^1\epsilon_r(x)[1+\eta(1-2x)]^2dx.\]

Integrating gives

\[c(\eta)=5-3\eta+(5/3)\eta^2.\]

The best quadratic trial has \(\eta=0.9\) and \(c=3.65\), compared with 5.00 for the straight line and 3.20 for the exact layered solution. The unrefined constant-displacement lower trial already supplies 3.20, so the two-field comparison certifies an interval before any field-map visualisation.

Why did the smooth trial still overestimate by 14%? At its endpoints it predicts slopes 1.9 and 0.1 times the mean field magnitude, whereas the exact field has slopes 1.6 and 0.4 in the two halves. Optimising a volume energy distributes a global smooth approximation across both layers. It has no mechanism to jump at the known interface, so an error persists even with its one coefficient optimised perfectly. The example explains why fitting material interfaces in a mesh, or using basis functions that admit correct normal derivative jumps, can matter more than merely increasing polynomial degree.

In an irregular two-dimensional composite an exactly divergence-free complementary trial can be constructed from a stream function \(\Psi\): take \(\mathbf D=(\partial_y\Psi,-\partial_x\Psi)\) in Cartesian coordinates. Its divergence vanishes identically. Total flux through an oriented path is a difference of \(\Psi\) at its endpoints, so carefully chosen boundary values enforce required electrode charges and zero leakage on insulating sides. Optimising \(\int\mathbf D\cdot\epsilon^{-1}\mathbf D/2\) over such trial functions tightens the lower capacitance bound. Optimising the independent voltage trial tightens the upper one. The difference between their resulting bounds quantifies what the chosen approximation spaces still fail to resolve.

What an AC bridge measures when a nominally floating terminal leaks

A real high-impedance lead is neither perfectly floating nor an ideal ground at every frequency. Add a leakage resistance \(R\) from conductor 2 of the two-port example to its grounded enclosure. Keep the reduced static capacitance matrix \(C\) fixed, linear and quasistatic at the frequencies of interest. Let terminal 1 be driven sinusoidally and terminal 2 have no other external drive. Using \(e^{i\omega t}\) here for circuit phasors, charge continuity at terminal 2 gives

\[i\omega(C_{21}V_1+C_{22}V_2)+V_2/R=0.\]

The outward conductive current plus the rate of charge stored in the electrode must vanish. Solving for the active terminal admittance gives

\[Y_{\rm in}=i\omega C_{11}+\frac{\omega^2 C_{12}C_{21}}{1/R+i\omega C_{22}} .\]

At low frequency the leakage holds terminal 2 close to ground, so the leading measured capacitance is \(C_{11}\). At high frequency the floating condition is recovered and \(Y_{\rm in}/(i\omega)\to C_{11}-C_{12}C_{21}/C_{22}\). The effective admittance also has a positive real part, since the driven voltage on terminal 2 supplies Joule heat in the leakage resistance. This term persists even if the dielectric itself is lossless. An AC capacitance meter reporting a frequency-dependent loss tangent might therefore be detecting a boundary preparation rather than intrinsic material loss.

Take \(C_{22}=8\) pF and \(R=100\) MΩ. The crossover \(1/(2\pi R C_{22})\) is 199 Hz. At this frequency the quadrature capacitance is halfway between 12.0 and 10.875 pF, namely 11.4375 pF. The corresponding loss conductance divided by \(\omega\) is 0.5625 pF. An independent verification uses the port voltage ratio at crossover,

\[|V_2/V_1|=|C_{21}|/(\sqrt2 C_{22})=0.265.\]

Compute dissipated power as \(|V_2|^2/(2R)\) for peak phasor amplitudes and compare it with \(\operatorname{Re}Y_{\rm in}|V_1|^2/2\); the two results must coincide.

The crossover shifts inversely with the leakage resistance while its two limiting capacitances stay fixed in this simple model. Measuring several shunt resistances or adding a known external one provides a direct way to test this interpretation. If a neighbouring shield is connected to a voltage follower instead, its response includes the follower's own gain and phase; static floating-node elimination is insufficient. Extending the field-derived capacitance matrix by experimentally known terminal circuits makes it possible to distinguish changes in electrostatic geometry from changes in what the surrounding measurement wiring enforces.

Close the charge balance at a floating conductor

Compare voltages obtained by fixing a conductor potential and by prescribing its net charge. Check the sign of the off-diagonal capacitance terms.

Tutorial · distinguish a floating port and an inadmissible trial

What changes after disconnecting a biased guard?

Using the 12, 8 and −3 pF coefficients, start with terminal 1 at 0 V and terminal 2 at 1 V. Disconnect terminal 2, then raise terminal 1 to 2 V. Find the new floating voltage, both charges and the change of active charge.

Work through the solution

Initially \(Q_2=8\) pC, which stays fixed. The new condition is \(8=-3(2)+8V_2\), giving \(V_2=1.75\) V. Terminal 1 initially held \(-3\) pC; finally it holds \(12(2)-3(1.75)=18.75\) pC. Its change is 21.75 pC, or \(10.875\) pF times the 2 V increment. This reproduces the neutral-floating differential result but a different absolute charge. A charge amplifier reset at the initial state observes the change, whereas a device measuring absolute node potential distinguishes the stored preparation.

Can a lower voltage-trial estimate be trusted?

A potential approximation for the two-phase cell returns 2.70 pF while a constant-displacement trial gives 2.83 pF. The implementer reports the smaller number because its potential looked smoother. Diagnose the inconsistent pair.

Work through the solution

For admissible fields on the same problem the flux trial gives a lower capacitance bound and the potential trial an upper one. The reversed interval cannot result from arbitrary coarseness alone. Check that the voltage trial satisfies the exact terminal difference and that all physical material volumes and energy factors are included. Check that the displacement trial has the correct area-normalised total charge and satisfies flux continuity. Finally examine numerical quadrature and unit conversion. Comparing the plots of the two fields does not fix an inadmissible constraint. If both are corrected, their gap gives an actual a posteriori uncertainty interval even without an analytic solution.

Further reading

Reconstructing a source from noisy voltage measurements

A forward electrostatic calculation can be unique and stable while the inverse problem constructed from it is unstable or nonunique. A scanned electrode, a finite collecting area and an explicitly chosen noise level make these statements experimentally testable.

Write down what the instrument actually measures

Pattern a long electrode at \(z=0\) with an unknown voltage \(f(x)\), periodic over length \(L\) for this model. The region above is homogeneous, charge free, and contains a sufficiently weak probe at height \(h\). For a Fourier component \(f_m e^{ik_mx}\), \(k_m=2\pi m/L\), the bounded harmonic solution at height \(h\) is \(f_m e^{-|k_m|h}e^{ik_mx}\). Treat the constant component according to the actual reference. Suppose the probe reports an average over a rectangular window of width \(w\) centred at \(x_j\), plus noise \(e_j\). For uniform probe sensitivity the forward relation is

\[y_j=\sum_m H_m f_m e^{ik_m x_j}+e_j,\]
\[H_m=e^{-|k_m|h}\operatorname{sinc}(k_m w/2),\]
\[\operatorname{sinc}t=\frac{\sin t}t .\]

The exponential is physical propagation from boundary to probe; the sinc factor is averaging by the detector. The latter has exact zeros in this idealised model. For modes at those zeros no noise-free reading at the same width and height can recover the lost amplitude. More closely spaced scan positions increase the sampling bandwidth but cannot undo either such instrumental nulls or the exponential decrease of the true high-frequency signal.

A nonuniform probe shape replaces the sinc by its Fourier transform. Unknown height adds an additional calibration problem: increasing \(h\) and increasing high-frequency boundary amplitudes can yield the same readings if the amplitudes are unrestricted. Before inferring boundary detail, calibrate the probe width and decide whether height is known, measured with uncertainty or jointly estimated using an independent constraint.

A direct inverse amplifies uncertainty in predictable bands

In an ideal complete periodic scan the discrete Fourier transform separates resolvable modes. Let \(\widehat y_m=H_m f_m+\eta_m\). Inverting one coefficient gives \(f_m^{\rm dir}=\widehat y_m/H_m\) whenever \(H_m\ne0\). A perturbation \(\delta\widehat y_m\) becomes

\[\delta f_m=\delta\widehat y_m/H_m.\]

With \(H_m=e^{-|k|h}\), the amplification grows exponentially with spatial frequency. The mode values can be uniquely determined in ideal noiseless data of infinite precision, yet the inverse is unbounded as increasingly fine modes are admitted. Finite data can additionally produce exact nonuniqueness.

For \(h=2.0\) mm and negligible aperture, boundary wavelengths 20, 10 and 4 mm have transfers \(0.533,0.285,0.0432\), respectively. With 1 mV noise in the measured amplitude of each Fourier component, inverse noise levels are \(1.87,3.51,23.1\) mV. A genuine 10 mV boundary ripple at wavelength 4 mm contributes only 0.432 mV at the probe, smaller than that noise. Plotting its raw inverted coefficient with a smooth line does not improve its information content. Reducing height to 1 mm raises that ripple's signal to 2.08 mV and changes the experiment's resolving power before any reconstruction choice is made.

Derive a regularised inverse and expose its bias

Assume coefficients are inferred separately and use a quadratic penalty. For each \(m\), minimise \(J_m=|H_m f-\widehat y_m|^2+\alpha^2 w_m^2|f|^2\) with positive weights \(w_m\) and positive regularisation parameter \(\alpha\). Splitting real and imaginary parts, or differentiating with respect to \(f^*\), gives

\[\widehat f_m=\frac{H_m^*\widehat y_m}{|H_m|^2+\alpha^2w_m^2},\]
\[W_m=\frac{|H_m|^2}{|H_m|^2+\alpha^2w_m^2},\]
\[\mathbb E[\widehat f_m]=W_m f_m\]

for zero-mean measurement noise. The reconstruction suppresses noise near a small transfer by introducing deterministic bias \( (W_m-1)f_m\). Its variance for known mode-noise variance \(s_m^2\) is \(|H_m|^2s_m^2/(|H_m|^2+\alpha^2w_m^2)^2\). Neither low variance alone nor a small data residual is evidence that a spatial ripple was recovered. Setting \(\alpha\) very large produces a smooth, nearly zero estimate regardless of the data. Setting it very small can reproduce noise almost exactly.

For \(w_m=1,\alpha=0.10\) and wavelength 4 mm in the example above, \(W_m\simeq0.157\). A true 10 mV ripple is estimated at only 1.57 mV on average. The inversion gain is about 3.64 rather than 23.1. At 20 mm, the same penalty retains 96.6% of the true amplitude. If the purpose is to quantify a short ripple, improving the experiment can be preferable to changing the penalty. A derivative penalty \(w_m\propto |k_m|\) encodes a stronger preference against fine structure; a constant mode must be handled separately if the voltage reference or the derivative penalty leaves it unconstrained.

What survives away from a uniform grid or simple geometry?

For arbitrary electrode shapes and detector positions, represent source or boundary data in a chosen basis \(f=\sum_j a_j b_j\). Solve the forward field problem for each unit coefficient and sample it exactly as the real probe would, giving matrix entries \(A_{ij}\). A noise covariance \(\Sigma\) weights the misfit through \(\|\Sigma^{-1/2}(A\mathbf a-\mathbf y)\|^2\). For an identity penalty apply the singular-value decomposition to the whitened matrix,

\[\Sigma^{-1/2}A=U S V^*.\]

Each right singular vector is a source pattern; its singular value tells how strongly it appears in the whitened measurement space. Multiplication by \(U^*\) diagonalises the data misfit and reduces the problem to the scalar filters above.

A zero singular value means the chosen sensors are insensitive to an entire source combination. No choice of numerical precision or regularisation changes that observational fact. A small nonzero value means one needs sufficiently small noise and modelling errors to identify the corresponding component. A practical resolution matrix \(R=(A^*\Sigma^{-1}A+\alpha^2I)^{-1}A^*\Sigma^{-1}A\) maps a noiseless true coefficient vector to the regularised estimate. A column of \(R\) shows which neighbouring coefficients respond when one ideal source coefficient is present. Testing such impulse responses describes the reconstruction's spatial smoothing more honestly than quoting the spacing of its output grid.

Use withheld measurements and identifiable physical quantities

Reserve some independently measured positions, heights or probe widths. Fit the rest and use the recovered candidates to predict the withheld measurements by applying the forward operator. The test is more informative when the withheld observations have different sensitivity patterns. A second distant scan can verify low modes while remaining insensitive to every high-frequency ambiguity. A second close scan or a different probe width can fill modes attenuated or nulled by the first. Correlated calibration errors, such as one common voltage offset, should be modelled as such, rather than being counted as many independent observations.

A distinct nonuniqueness occurs when trying to infer an arbitrary three-dimensional charge density solely from exterior voltages. Take any smooth compactly supported potential \(g(\mathbf x)\) inside the source region whose value and derivatives vanish outside. Add \(\delta\rho=-\epsilon_0\nabla^2g\) to a candidate charge distribution. Its induced potential is \(g\) and therefore vanishes at every external detector. Unless additional sign, support or constitutive assumptions constrain the source, infinitely many internal distributions remain consistent with exact exterior data. This is stronger than amplification of measurement noise. Total charge from a closed-surface flux or low multipole moments can still be identifiable when the internal density is not.

See an ill-conditioned inverse in a two-source instrument

Two possible source patches sit symmetrically beneath two voltage probes. A calibrated forward response, in volts of probe signal per chosen source unit, is \(A=\begin{pmatrix}1&0.98\\0.98&1\end{pmatrix}\). Each patch affects both probes almost equally. The sum pattern \((1,1)/\sqrt2\) and difference pattern \((1,-1)/\sqrt2\) are orthonormal eigenvectors as well as singular vectors, with gains 1.98 and 0.02. The condition number is 99. The instrument localises total source strength much more reliably than it locates its division between the two patches.

Suppose the actual source vector is \((1,0)\). The predictions are \((1.00,0.98)\) V. A measurement perturbation \((+0.01,-0.01)\) V, though small compared with the signal, lies in the weak difference mode. The exact inverse interprets it as source error \((+0.50,-0.50)\), giving a reconstructed distribution \((1.50,-0.50)\). A common perturbation \((+0.01,+0.01)\) instead produces almost negligible source changes \(+0.00505\) each. A single rms error statistic for the voltage readings misses how their spatial correlation changes uncertainty in the reconstruction.

Use an identity Tikhonov penalty \(\alpha=0.10\). The response factors for the two true source directions become

\[W_+=1.98^2/(1.98^2+0.10^2)=0.9975,\]
\[W_-=0.02^2/(0.02^2+0.10^2)=0.0385.\]

In the absence of noise the estimated source from \((1,0)\) is approximately \((0.518,0.480)\). Both patches light up almost equally. This is the resolution matrix in action: the model predicts the observed voltages well yet cannot confidently identify which of the two patches generated them. Under the same opposite noise perturbation the additional reconstructed difference is only \(0.0192\) on each patch in opposite directions. A visually smooth result is reproducible but biased towards nearly equal strengths.

Add a third probe designed to respond as \((0.6,-0.6)\). This linear combination may be implemented physically by a differential electrode, so negative coefficients are meaningful. The squared singular gain of the old difference direction increases from \(0.0004\) to \(0.0004+2(0.6)^2=0.7204\), while the common gain is unchanged. The new difference singular value is 0.849, reducing the ratio of the largest to smallest singular values to about 2.33 if the three channels have comparable independent noise in the specified units. Adding another copy of the first common-sensitive probe would have been much less effective. Designing measurements against the weak singular vector can improve source resolution far more than collecting many redundant readings.

Separate numerical error from height uncertainty and unknown backgrounds

Return to a sinusoidal source with negligible aperture. If its true height is \(h\) but one divides by an assumed transfer computed at \(h+\delta h\), then even exact noiseless data return \(\widehat f/f=e^{|k|\delta h}\). For a 4 mm wavelength and positive height error 0.10 mm, the fractional amplitude bias is

\[e^{0.157}-1=17.0\%.\]

Unlike random noise this bias does not shrink by averaging repeated scans at the same miscalibrated height. A 20 mm calibration pattern at that same error suffers only about 3.2% bias, so testing one long-wavelength standard need not guarantee short-wavelength accuracy.

For an unknown but stable boundary pattern recorded at two known relative probe heights, \(\widehat y_m(h_2)/\widehat y_m(h_1)=e^{-|k_m|(h_2-h_1)}\) for modes above noise when the aperture is unchanged. The source amplitude and common aperture factor cancel. This measures a relative vertical displacement but not the absolute height if the true boundary amplitudes are unknown. Add a calibration electrode of known voltage and wavelength, or an independently measured mechanical height, to determine the absolute scale. Near a sensor's aperture zero the ratio is exceptionally noise sensitive and should not be used for the height fit.

Consider also a slowly varying stray background produced by distant conductors. In a source-free layer of finite thickness a Fourier mode can contain both \(Ae^{-|k|z}\) and \(Be^{+|k|z}\). The growing term is excluded in a bounded half-space continued to infinity, but can represent a field launched from the upper boundary of a finite domain. For a single spatial mode measured at two heights one can solve a \(2\times2\) system for \(A,B\). Its determinant is \(2\sinh[|k|(h_2-h_1)]\), up to a sign fixed by the column order. As the two heights coalesce their rows become nearly dependent. A measurement showing unexpected height scaling may thus indicate the wrong outer boundary in the forward model rather than a faulty inverse algorithm.

A reproducible inverse analysis can be audited along three independent axes. First manufacture noise-free readings from a source whose exact forward voltage is known, then refine only the forward discretisation. Second add noise with a specified amplitude and covariance and repeat enough draws to estimate recovered variation in identified modes. Third perturb physical nuisance parameters such as probe width, height and background independently of the noise draws. For each stage state what quantity is being recovered: total charge, a few spatial coefficients, or a real-space image biased by a chosen penalty. These stages expose different error mechanisms even when they yield similar changes in a plotted voltage trace.

Build an exactly invisible internal charge perturbation

The general construction of a silent source can be made explicit for a spherical support of radius \(a\). Pick a smooth interior potential perturbation \(g(r)=V_g[1-(r/a)^2]^3\) for \(0\le r<a\), and set \(g=0\) outside. At \(r=a\) both the potential and its first radial derivative vanish; its second radial derivative also approaches zero, avoiding unmodelled surface sheets. It is regular at the origin. Therefore \(g\) itself is the potential relative to infinity of the compact charge distribution \(\delta\rho=-\epsilon_0r^{-2}d(r^2g')/dr\). With \(x=r/a\), expansion gives

\[\delta\rho=\frac{\epsilon_0V_g}{a^2}(18-60x^2+42x^4),\qquad 0\le x<1 .\]

The perturbation is positive near the centre and negative in an outer band if \(V_g>0\). Its enclosed charge is

\[-4\pi\epsilon_0r^2g'=24\pi\epsilon_0V_ga\, x^3(1-x^2)^2.\]

It vanishes at both ends of the radius interval and is positive at intermediate radii. Gauss's law outside then gives exactly zero electric field and the chosen reference gives zero exterior voltage. A numerical inverse recovering only zero perturbation from exterior data is observationally consistent with both the absence of charge and this particular structured distribution. Integrating the polynomial with its correct \(4\pi r^2dr\) weight confirms the exact zero total charge independently.

For \(a=20\) mm, \(V_g=0.10\) V, the internal centre voltage differs by 100 mV while every ideal exterior detector, no matter how accurately calibrated, records no difference whatsoever. At \(r=a/2\), \(g=0.0422\) V and the enclosed perturbation charge is \(9.39\times10^{-14}\) C. An internal measurement can therefore break this particular ambiguity. Moving external probes closer while keeping them outside the sphere cannot. Positivity restrictions on the total density can reduce ambiguity, but adding a sufficiently small signed perturbation to a sufficiently positive background can preserve nonnegativity of both candidate densities and still leave their exterior data identical.

This example suggests a practical way to report results when full source reconstruction is impossible. Ask whether the quantity of interest changes along a silent perturbation. Total charge and all external moments stay unchanged here, whereas the central voltage and internal charge profile change. A claim about total charge can be appropriate even when detailed shell-by-shell densities are not identifiable. Conversely a fitted compact central peak may depend on the chosen smoothness penalty or positivity constraints even when every reported exterior measurement is reproduced.

A multiscale numerical exercise can demonstrate the effect reproducibly. Discretise both \(g\) and its associated \(\delta\rho\), solve the independent forward Poisson problem, and evaluate internal and external probes. Coarse grids may show a small exterior signal if source deposition fails to preserve its neutral moments. Refine the source representation, plot the exterior residual separately from the interior voltage difference and compare with the analytic polynomial. A residual that tends to zero while the interior difference remains finite is the expected physical outcome. Using exactly the same discrete operator to manufacture data and to recover them can mask representation errors, so a second mesh, an analytic source integral or a differently implemented forward solver is especially valuable.

See which part of a specimen electrodes can resolve

Compare two contact configurations and their sensitivity to a local material change. An accurate potential at the electrodes does not necessarily resolve the interior.

Can two independent estimates agree for the wrong reason?

Separate common uncertainty from independent noise in two height scans

A probe measures a 10 mm wavelength mode at heights 1.0 and 2.0 mm with negligible aperture. The two Fourier amplitudes are 5.34 and 2.85 mV, each with independent 0.10 mV random uncertainty, but they share an unknown common voltage gain. Estimate the boundary amplitude and its random error under unit gain. Decide what the agreement can establish about calibration.

Derive and check the result

The two transfers are

\[H_1=e^{-0.2\pi}=0.5335,\]
\[H_2=e^{-0.4\pi}=0.2846.\]

Each individually predicts about 10.0 mV at the boundary. For independent equal-variance amplitude noise, minimise \(\sum(y_i-H_i f)^2\). Its solution is \(f=(H_1y_1+H_2y_2)/(H_1^2+H_2^2)\), and random standard deviation \(0.10/\sqrt{H_1^2+H_2^2}=0.165\) mV. Simply averaging the two directly inverted amplitudes gives the noisier second inversion equal weight and hence a larger variance.

The measured amplitude ratio is about 0.534, as predicted by the additional 1 mm of propagation. A common multiplicative calibration factor cancels from this ratio. If the true voltage gain were 1.10, both unit-gain inversions would agree at about 10 mV even though the physical amplitude would be 9.1 mV. Repeated scans reduce the random uncertainty but cannot remove this systematic scale. A known reference electrode or independent calibrated voltage source is needed.

If instead both probes share a small additive voltage offset in every spatial sample, a full ideal Fourier analysis would place that constant entirely in the zero mode. Incomplete sampling, finite windows or background leakage can mix the offset into the fitted sinusoid. Including a constant nuisance term in a weighted least-squares fit is one way to test that effect directly. Identifying the form of a shared error is as important as quoting its magnitude: common gain, common offset and relative height uncertainty enter the inverse problem in different directions and respond to different calibration experiments.

Tutorial · compare an experimental redesign with a stronger prior

Resolve a window null without changing sample spacing

A voltage camera averages over \(w=4\) mm. A suspected boundary pattern has wavelength 4 mm. Find its measured transfer and propose a second window width that recovers sensitivity. Include the effect of a 1 mm measurement height.

Work through the solution

At equal aperture and wavelength the sinc argument is \(\pi\), giving zero. With a 2 mm window the aperture transfer becomes

\[\sin(\pi/2)/(\pi/2)=2/\pi.\]

Height attenuation is \(e^{-2\pi(1/4)}=0.2079\), so the combined transfer is 0.132. A 20 mV boundary amplitude therefore gives 2.65 mV in the second scan and exactly zero in the first idealised scan. Collecting more centres with the original width would still give zero. Calibrating the second aperture and its orientation is part of the forward model, especially near a sinc null where small geometry errors strongly change inference.

Choose a regularisation level by its permitted bias

For a mode with transfer 0.20 and unit penalty weight, require the mean reconstructed amplitude to retain at least 80% of the true value. Find the allowed maximum \(\alpha\). For 2 mV noise in the measured coefficient, compare inverse standard deviations with and without this penalty.

Work through the solution

Set \(W=0.04/(0.04+\alpha^2)\ge0.80\). This gives \(\alpha\le0.10\). At the limiting value the noise gain is \(0.20/(0.04+0.01)=4\), so the reconstructed noise standard deviation is 8 mV. Without regularisation the inverse noise is 10 mV. This modest improvement costs a 20% amplitude bias. The calculated tradeoff may or may not be acceptable for the physical question. Stating both numbers allows a reader to decide whether this experiment can support a claimed amplitude difference.

Further reading

Which part of a sample changes a four-electrode impedance measurement?

Driving one electrode pair and measuring another yields a transfer impedance whose spatial sensitivity can be positive, negative or nearly zero. A second field solution supplies the sensitivity without perturbing every element of a numerical mesh.

Distinguish the current terminals from the voltmeter terminals

Consider a bounded two-phase electrical sample in a benign laboratory characterisation cell. Drive harmonic current \(+I\) through electrode \(a\) and collect \(-I\) through \(b\). Two independently selected electrodes \(c,d\) read the difference \(U_c-U_d\) with negligible voltmeter current. The measured transfer impedance is

\[Z_{cd,ab}=(U_c-U_d)/I.\]

A four-terminal measurement reduces some lead-voltage errors, but finite-area electrodes still alter the field and contact processes can affect it. Reversing either pair reverses the signed transfer reading. Interchanging both pairs leaves it unchanged in a reciprocal linear sample.

Adopt phasors \(e^{i\omega t}\) and a local complex admittivity \(\gamma=\sigma+i\omega\epsilon\), with real positive scalar \(\sigma,\epsilon\) for this first model. The total current density is \(\mathbf J=-\gamma\nabla u\). In the electroquasistatic regime \(\nabla\cdot(\gamma\nabla u)=0\) away from injected current at the boundary. Magnetic induction and propagation are negligible at the chosen cell dimensions and frequencies; checking electrode and cable dynamics remains necessary even when the sample itself is quasistatic. Perfectly conducting measurement electrodes are equipotentials. Inactive electrodes have zero net current, which allows charge redistribution over their finite surfaces; a strictly insulating uncovered wall instead requires zero normal current locally.

Use an outward normal \(\mathbf n\) from the sample. Define positive terminal current into the sample by \(I_i=\int_{S_i}\gamma\partial_n u\,dA\); it equals minus the outward conduction-plus-displacement flux. The pair currents sum to zero, and only voltage differences matter, so fix one reference or a mean voltage. Integrate by parts against any test voltage \(v\) constant on each ideal electrode, giving

\[\int_\Omega\gamma\,\nabla u\cdot\nabla v\,dV=\sum_i I_i\,v_i .\]

This is a complex bilinear identity for reciprocity and linear sensitivity. Real average heating is obtained separately by conjugating the physical fields when computing power. Confusing those two products can give an incorrect phase or an incorrect sign for an imaginary admittivity perturbation.

Perturb the sample while keeping injected currents fixed

Let \(\psi_{ab}\) be the potential per unit current driven from \(a\) to \(b\), and \(\psi_{cd}\) the solution when current is instead driven between the measurement electrodes. Using each as test function for the other shows directly that \(Z_{cd,ab}=Z_{ab,cd}\). Now change material admittivity by a small distribution \(\delta\gamma\) and let the drive field change by \(\delta\psi_{ab}\). Holding all currents and electrode geometry fixed, differentiate the weak equation:

\[\int_\Omega\gamma\nabla\delta\psi_{ab}\cdot\nabla v\,dV=-\int_\Omega\delta\gamma\,\nabla\psi_{ab}\cdot\nabla v\,dV .\]

Choose \(v=\psi_{cd}\) and apply the unperturbed measurement-pair equation to \(\delta\psi_{ab}\). Its left side becomes the change in voltage difference per drive current, hence

\[\delta Z_{cd,ab}=-\int_\Omega\delta\gamma(\mathbf x)\,\nabla\psi_{ab}(\mathbf x)\cdot\nabla\psi_{cd}(\mathbf x)\,dV .\]

The minus sign has an immediate check in a conducting bar: increasing conductivity lowers its resistance at fixed current. The sensitivity density is the overlap of the drive and reciprocal fields, not simply the magnitude of the drive field. If the fields are locally perpendicular a small isotropic admittivity perturbation is invisible to first order in this channel. If the fields are opposed the local real sensitivity can have the opposite sign to nearby regions. For tensor perturbations replace the product by \(-\nabla\psi_{cd}\cdot\delta\boldsymbol\gamma\nabla\psi_{ab}\). Reciprocity in the above form requires symmetric material tensors.

A one-dimensional experiment tests the sign, normalisation and scale

Take a uniform real-conductivity bar of length 20 mm, cross-section \(A=100\) mm² and conductivity \(0.20\) S/m. Assume end electrodes cover its faces and ideal voltage taps select the full length in this limiting four-wire experiment. The impedance is

\[L/(\sigma A)=1000\ \Omega.\]

The drive and reciprocal gradients per ampere have magnitude \(1/(\sigma A)\). Increase conductivity in a full cross-section segment 2.0 mm long by \(0.020\) S/m. The first-order formula predicts

\[\delta R=-\ell\delta\sigma/(\sigma^2 A)=-10.0\ \Omega.\]

Direct series integration of \(1/(\sigma A)\) gives a change from 100.0 to 90.91 Ω in the segment, or \(-9.09\ \Omega\).

The 0.91 Ω difference is consistent with truncating at first order for a 10% conductivity change. Recompute at half the material perturbation: the exact change becomes \(-4.762\ \Omega\), only 0.238 Ω away from the first-order \(-5.00\ \Omega\). The residual decreases by about four when the step halves. Repeating at several positive and negative perturbations and taking a centred difference provides a sharper test of the adjoint code. Varying only the mesh resolution with a fixed large material contrast cannot remove a genuine nonlinear remainder.

The same one-dimensional geometry also demonstrates an absolute identifiability limit. Interchanging two equal-length full-cross-section inserts with different conductivities leaves the end-to-end resistance unchanged, since the integral of reciprocal conductivity is independent of ordering. Perfect measurement precision cannot recover the order. A voltage tap between the two inserts or an alternative contact geometry is needed to break that symmetry.

Interpret real and imaginary voltage readings together

Even if each local \(\sigma,\epsilon\) is real, the fields \(\psi\) in an inhomogeneous sample usually carry spatially varying phase. A change \(\delta\sigma\) can therefore change both the real and imaginary transfer impedance, as can \(i\omega\delta\epsilon\). Treat a complex reading as two real measurements with their calibrated covariance. To first order one finite-element cell with piecewise-constant parameters contributes coefficients \(-\int_{\rm cell}\nabla\psi_{ab}\cdot\nabla\psi_{cd}\,dV\) for \(\delta\sigma\) and \(i\omega\) times that coefficient for \(\delta\epsilon\). The units of the two unknowns differ, so rescale with plausible physical parameter changes before comparing singular values.

As a simple frequency check choose a uniform engineered dielectric-conductor composite with \(\sigma=0.010\) S/m and \(\epsilon_r=1000\). At \(f=\sigma/(2\pi\epsilon)\simeq180\) kHz, \(\gamma=\sigma(1+i)\). The same bar geometry then gives \(Z=(L/A)/\gamma=10.0(1-i)\) kΩ, a phase of \(-45^\circ\). At low frequency the phase tends to zero and the real impedance to 20.0 kΩ. A constant cable delay produces phase proportional to frequency independent of the sample parameters, so record a calibrated reference at each frequency before attributing an observed phase change solely to the specimen.

Derive a spatial sensitivity that can be checked without a mesh

Consider a homogeneous, thick conducting calibration block with a flat, electrically insulating top except at four small contacts on the same line. Coordinates are \(x,y\) along the surface and \(z>0\) into the block. If a unit current enters through a point at the surface, it spreads over hemispheres of radius \(r\). Uniform normal current through a hemisphere requires

\[J_r=1/(2\pi r^2).\]

The radial field is \(J_r/\sigma\); integrating from \(r\) to infinity gives potential \(1/(2\pi\sigma r)\). The coefficient differs from a point source in the interior where an entire sphere carries the current. Subtract a corresponding solution for the terminal extracting the current to satisfy conservation.

Let the drive pair be at \(x=\mp a\) and the sense pair at \(x=\mp c\), with positive terminal at negative \(x\) in each case. At surface points separated from the point contacts the baseline transfer impedance becomes

\[Z_0=\frac1{\pi\sigma}\left(\frac1{a-c}-\frac1{a+c}\right)\qquad(0<c<a).\]

For \(a=15\) mm, \(c=5\) mm and \(\sigma=0.20\) S/m this is 79.58 Ω. A 1 mA real current gives 79.58 mV. The same number follows on interchanging the drive and measurement pairs. The large individual contact potentials of an ideal point source are singular at the driving contact itself, yet the transfer potential evaluated at a distinct contact is finite. A two-terminal impedance obtained by setting \(c=a\) is divergent in this point-contact approximation. To make such a measurement calculable one must assign physical electrode radii, contact laws and current distributions.

Place a small spherical inclusion of radius 1.0 mm at \(x=y=0\) and depth \(z\), with conductivity just 0.020 S/m above background. At the centreline the vertical field components cancel in each paired solution. Differentiating the two point-source potentials horizontally gives a gradient magnitude \(a/[\pi\sigma(a^2+z^2)^{3/2}]\) for a drive half-spacing \(a\); replace \(a\) by \(c\) for the reciprocal measurement field. The first-order change in impedance is the product of the two signed gradients times minus the conductivity perturbation and the sphere volume. The centre sample approximates the volume integral when both background gradients vary slowly over the sphere.

At \(z=8\) mm the result is \(-3.86\) mΩ, a \(-3.86\,\mu\mathrm V\) perturbation at 1 mA, about 48 parts per million of baseline. Increasing depth to 16 mm leaves only \(-0.320\) mΩ. A point midway between one source and one sensing contact can experience a very different gradient alignment from a point on the common centreline. This is why a general inclusion shift should be calculated by differentiating the vector field before taking the dot product. Replacing each gradient by its magnitude would forbid the experimentally possible positive changes. A point inclusion moved twice as deep does not, in general, change the answer by one universal inverse power. Each field samples a different combination of depth and contact separation.

Retain unknown contact impedance as a separate physical parameter

A metal current terminal is nearly equipotential internally but can have an interface voltage drop at the sample. Let \(U_i\) be its metal potential, \(u\) the potential on the adjacent sample, \(j_i=\gamma\partial_n u\) positive into the body and \(z_i\) an area-specific contact impedance in Ω m². A simple local interface law is \(U_i-u=z_i j_i\), together with \(\int j_i\,dA=I_i\). At an inactive metal terminal only this integral is zero. Current can enter on one side and return on the other if the sample potential varies appreciably across its face. A high-impedance voltmeter does not by itself make that metal patch equivalent to an absent electrode.

For sample and electrode test fields \((v,W)\), integration by parts and the contact law give

\[B((u,U),(v,W))=\int_\Omega\gamma\nabla u\cdot\nabla v\,dV+\sum_i\int_{S_i}\frac{(U_i-u)(W_i-v)}{z_i}\,dA=\sum_i I_i W_i .\]

Here the current and potential gauges are chosen consistently on both drive and reciprocity solves. The contact product is as symmetric as the bulk product, so finite reciprocal contact impedances retain equality upon drive/sense exchange. If the contact changes, differentiating \(1/z_i\) introduces a minus, and the minus from differentiating the full field equations cancels it. The additional first-order sensitivity is \(+\sum_i\int\delta z_i j_{i,d}j_{i,m}\,dA\), with both current densities normalised to unit terminal current. In a uniform two-terminal contact of area \(A\), the two normalised currents are \(1/A\) and one contact contributes \(+\delta z/A\), as an ordinary series contact should. This independent limit fixes both the positive sign and the square-metre convention.

For a controlled reconstruction, form one column per candidate sample perturbation and another per uncertain contact coefficient. Weight measured channels by their noise covariance. Two nearly proportional columns then warn that bulk variation and degrading contact cannot be separated by those channels over that bandwidth. Reciprocity catches lead swaps and some drift, but a reciprocal change in a contact can pass this check. Repeat with a different electrode pattern, or calibrate against a homogeneous reference block at the same frequency. To verify a numerical sensitivity, perturb the contact alone by equal positive and negative amounts and compare the centred impedance difference with the surface integral. Then perturb the sample alone and compare with the volume integral. A successful combined test could otherwise conceal equal and opposite implementation errors.

Move a weak inclusion beneath four surface contacts

The block is treated as a homogeneous half-space except for a 1 mm radius sphere with a positive conductivity perturbation. Each plotted point uses the two unperturbed analytical vector gradients at the sphere centre. The second curve repeats the calculation at twice the selected depth. At 8 mm and 5 mm sensing half-spacing the predicted centre perturbation is −3.86 mΩ against a baseline of 79.58 Ω. Look for lateral positions where the sign changes before interpreting increased conductivity as a uniformly smaller transfer impedance.

Widen the sensing pair and predict how both the transfer baseline and the local sensitivity will respond. A larger transfer voltage does not guarantee a proportionately larger fractional change for a chosen deep inclusion. The ideal point-contact fields vary steeply close to electrodes. When the inclusion radius approaches the distance over which the gradients change, volume quadrature supplies a better approximation than evaluating a single point. A finite laboratory specimen also needs boundaries sufficiently distant compared with the patterned contact spacing.

Tutorial · bound a perturbation and design another observation

Predict a transfer change without solving again

A field computation for unit drive and unit reciprocal current in a small inclusion gives approximately parallel real field gradients of magnitudes 1500 and 400 V/(m A). The inclusion volume is 2 mm³. Its conductivity rises by 0.010 S/m. Predict the resistance change and the observed voltage change at a 5 mA drive. What changes if only the measurement electrodes are reversed?

Work through the solution

The overlap is \(6.0\times10^5\ {\rm V^2/(m^2 A^2)}\). Multiplying by \(2\times10^{-9}\ {\rm m^3}\) and the material perturbation gives \(\delta Z=-1.2\times10^{-5}\ \Omega\), or \(-12\) μΩ. At 5 mA the transfer voltage changes by \(-60\) nV. Reversing only \(c,d\) reverses the reciprocal field and the transfer change. The result assumes nearly uniform overlap inside the inclusion and small perturbation. Subdividing the inclusion or independently perturbing the forward model tests these assumptions differently. A voltmeter's microvolt accuracy would be inadequate for the proposed single measurement.

Do more electrodes resolve two unknown defects?

Two calibrated real channels have sensitivity rows proportional to \((1,0.8)\) and \((0.8,1)\) for two dimensionless defect amplitudes. Which combination is measured poorly? Would two additional measurements that simply reverse the existing electrode signs supply a new material constraint?

Work through the solution

The common pattern has gain 1.8 and the difference pattern gain 0.2; their singular-value ratio is nine in these units. Distinguishing which defect changed is harder than detecting a common material change. Sign reversals duplicate the same rows up to a minus sign. They can cancel offsets or improve precision by averaging independent noise, but do not increase the rank of the noise-free sensitivity matrix. A drive/measurement pair with opposing sensitivities to the two spatial regions would directly strengthen the weak difference direction.

Further reading

Scattering from a central potential and what angular data can recover

A detector records angles, whereas the force law refers to separations that were never directly observed. Derive the forward map from incoming impact parameter to angle, distinguish the several trajectories a detector may count in one angular bin, and invert sufficiently complete signed deflection data under stated hypotheses.

Build the deflection integral from a radial turning point

Use relative mass \(\mu\), asymptotic relative speed \(v_\infty\), incoming energy \(E=\mu v_\infty^2/2>0\) and impact parameter \(b\ge0\). With a central interaction that tends to zero at infinity, angular momentum is \(\ell=\mu v_\infty b\). For a single repulsive encounter let \(r_0\) be the closest approach. Energy gives

\[\dot r^2=v_\infty^2[1-U(r)/E-b^2/r^2];\]

\(r_0\) is the outer turning root reached from infinity. Dividing \(\dot\varphi=\ell/(\mu r^2)\) by the radial speed and integrating over the outgoing half trajectory gives

\[\Phi(b)=\int_{r_0}^\infty \frac{b\,dr}{r^2\sqrt{1-U(r)/E-b^2/r^2}},\]
\[\chi(b)=\pi-2\Phi(b).\]

The straight, free trajectory sweeps \(\Phi=\pi/2\) between closest approach and infinity and gives zero deflection. For repulsive bend away from the centre this sign convention gives positive \(\chi\). A weak attraction can give negative signed deflection even though a detector reporting the angle between incoming and outgoing velocities may supply only its magnitude. If the path winds by more than a complete turn, angular data modulo \(2\pi\) also lose winding information. The square-root singularity in the integral for an ordinary turning point is integrable. A substitution \(r=r_0+s^2\) makes the near-endpoint quadrature regular. A double turning point requires separate analysis because it can make the angular advance diverge.

Incoming trajectories with parameters between \(b\) and \(b+db\) represent annular area \(2\pi b\,db\) for an axially symmetric beam. At a detected polar angle \(\theta\) the solid angle of a ring is \(2\pi\sin\theta\,d\theta\). Conservation of incoming counts gives

\[\frac{d\sigma}{d\Omega}=\sum_j\frac{b_j}{\sin\theta}\left|\frac{db_j}{d\theta}\right|.\]

The sum includes all incoming impact parameters reaching that angular bin. Correcting measured counts requires incident flux, target number, angular acceptance and efficiency. The formula is a density in solid angle. Its apparent divergence at an isolated angle need not imply an infinite number in a finite acceptance bin. Integrate the density against the actual bin solid angle or use the preimage areas of the bin directly.

Solve a hard sphere and an inverse-square repulsion

A hard sphere of effective exclusion radius \(a\) specularly reverses the incoming normal velocity at the impact surface. The angle between incoming and outgoing directions is \(\theta=2\arccos(b/a)\) for \(b<a\). Therefore \(b=a\cos(\theta/2)\),

\[|db/d\theta|=(a/2)\sin(\theta/2).\]

The factors cancel to give \(d\sigma/d\Omega=a^2/4\), independent of polar angle, and total cross section \(\pi a^2\). Equal polar angular bins do not give equal counts: their solid angles differ by \(\sin\theta\). This geometric distinction often accounts for a measured histogram that does not look uniform even for a constant differential cross section.

For \(U(r)=K/r\) with \(K>0\), the orbit is a repulsive hyperbola. The analytic relation is

\[\tan(\theta/2)=K/(2Eb).\]

It can be derived from the energy and the angle through the deflection integral: put \(u=b/r\) so that \(\Phi=\int_0^{u_0}du/\sqrt{1-(K/Eb)u-u^2}\). Complete the square and evaluate the arcsine at the root to get

\[\Phi=\pi/2-\arctan[K/(2Eb)].\]

Define \(d=K/(2E)\); then \(b=d\cot(\theta/2)\),

\[d\sigma/d\Omega=d^2/[4\sin^4(\theta/2)].\]

High precision near the forward direction is physically limited by finite beam size, detector acceptance and any screening of the long-range interaction.

For \(d=2.0\,{\rm mm}\) in an abstract mechanical analogue, a deflection of \(60^\circ\) corresponds to \(b=3.46\,{\rm mm}\), and the differential cross section is \(16\,{\rm mm^2/sr}\). The cross section for deflections greater than \(60^\circ\) is the area \(\pi b^2=37.7\,{\rm mm^2}\). The differential value and integrated area answer different laboratory questions. Doubling energy at fixed interaction halves \(d\), quarters the cross section into a fixed angular interval and reduces the deflection at a fixed incoming \(b\). Measuring only a total count without specifying angular threshold is inadequate for a long-range interaction.

Recover impact parameter from angular counting under monotonicity

Suppose the deflection decreases continuously from \(\pi\) at \(b=0\) to zero at large \(b\). Integrating counts for all angles at least \(\theta\) then gives precisely the incident disk \(\pi b(\theta)^2\). The recovered map satisfies

\[b(\theta)^2=2\int_\theta^\pi(d\sigma/d\Omega)(\theta')\sin\theta'\,d\theta'.\]

Applying this formula to constant hard-sphere intensity gives \(b^2=a^2(1+\cos\theta)/2\), the geometrical result. It also exposes the information needed from a detector: a finite upper cutoff can leave the reconstruction with an unknown disk-area offset.

Failing monotonicity, the same cumulative counts give the total area of all incoming regions producing deflections above threshold, which can be a collection of annuli. No unique \(b(\theta)\) follows from that one number. Near a smooth extremum \(\theta(b)=\theta_r+c(b-b_r)^2/2+\cdots\), two branches contribute inverse square-root factors proportional to \(1/\sqrt{|\theta-\theta_r|}\). A finite bin contains finite counts because integrating that singularity gives a square root. Tagging the incoming impact parameter in a controlled beam or measuring trajectory time delay can separate branches invisible in a final-angle histogram.

Invert a signed deflection function at one energy

Assume smooth \(U(r)\) with \(\rho(r)=r\sqrt{1-U(r)/E}\) strictly increasing on the radial interval sampled by the trajectories. The turning condition is

\[\rho(r_0)=b.\]

Write \(W(\rho)=\ln[r(\rho)/\rho]\) and transform the deflection integral to \(\Phi=b\int_b^\infty[d\ln r/d\rho]\,d\rho/\sqrt{\rho^2-b^2}\). The term from \(d\ln\rho/d\rho\) gives the free angle \(\pi/2\); the remainder has \(\chi=-2b\int_b^\infty W'(\rho)\,d\rho/\sqrt{\rho^2-b^2}\). This is an Abel-type map. Multiply by \(1/\sqrt{b^2-s^2}\) and integrate from \(b=s\) to infinity. Interchanging the integrals produces the inner integral

\[\int_s^\rho\frac{b\,db}{\sqrt{b^2-s^2}\sqrt{\rho^2-b^2}}=\frac{\pi}{2}.\]

Substitute \(b^2=s^2+(\rho^2-s^2)\sin^2\alpha\) to check the identity. With \(W(\infty)=0\) the inversion is \(W(s)=\pi^{-1}\int_s^\infty\chi(b)\,db/\sqrt{b^2-s^2}\). Recover \(r=s e^{W(s)}\) and finally \(U(r)=E[1-(s/r)^2]\) parametrically. This derivation explains the restrictions. A trajectory only samples radii outside its turning point, the signed angle must retain branch information, and the map to \(\rho\) must be single valued. Unknown large-\(b\) tails influence the integral even when only comparatively small radii are of interest.

Derive the weak-deflection formula from a straight incoming trajectory

When the deflection is small one can calculate the transverse impulse along the undeflected line before evaluating a nonlinear radial integral. Put the incoming velocity along \(x\) and the impact point at \(y=b>0\), so the unperturbed trajectory is \(x=v_\infty t\), \(r=\sqrt{x^2+b^2}\). The transverse force is \(-U'(r)b/r\). Dividing its time integral by the incoming momentum \(\mu v_\infty\) gives the signed leading deflection

\[\chi(b)\simeq-\frac{b}{E}\int_b^\infty\frac{U'(r)\,dr}{\sqrt{r^2-b^2}} .\]

The factor follows from replacing \(dt\) by \(dx/v_\infty\), using symmetry between positive and negative \(x\), and the identity \(dx=r\,dr/\sqrt{r^2-b^2}\). A decreasing positive potential gives a positive angle, consistent with repulsive scattering in the chapter's convention. The approximation neglects longitudinal momentum change at leading order; a finite speed change far from the interaction would also be inconsistent with elastic energy conservation. Near a turning barrier or for a large angle the original deflection integral must replace this straight path.

An analytically tractable finite-range model is \(U(r)=U_0\exp[-r^2/(2a^2)]\). Along the incoming straight line the transverse force is \((U_0 b/a^2)\exp[-(x^2+b^2)/(2a^2)]\). The Gaussian \(x\) integral gives

\[\chi(b)\simeq\sqrt{\pi/2}(U_0/E)(b/a)\exp[-b^2/(2a^2)].\]

A central hit has zero transverse force by symmetry if the particle crosses through the weak smooth potential rather than being reflected. Distant particles see little interaction, so the deflection must peak at an intermediate impact parameter. Differentiation places the maximum at \(b=a\), with height \(\sqrt{\pi/(2e)}U_0/E\).

For \(U_0/E=0.10\) the peak is about \(0.0760\,{\rm rad}=4.36^\circ\), comfortably small for this leading calculation. Two impact-parameter families can contribute to one smaller nonzero angle. For example \(b=0.50a\) gives \(0.0553\,{\rm rad}\); a trajectory with \(b\) between \(1.5a\) and \(1.7a\) produces a similar deflection on the declining branch. A detector counting more events near four degrees may be recording the merging of these branches, rather than a particularly large local force at the turning separation. Reconstructing \(b(\theta)\) from monotonically accumulated disk areas would be invalid for this smooth repulsive bump even though every encounter is elastic.

Measure the energy dependence to distinguish the weak limit. For fixed \(b/a\) the leading angle scales as \(1/E\). Doubling energy halves the predicted peak angle. A finite spread of incident energies therefore broadens the observed rainbow before detector angular resolution is considered. A position-tagged incident beam can furnish \(\chi(b)\) point by point; a detector measuring final angles alone mixes weakly and more strongly penetrating paths. Adding incoming-position information changes what inverse problem is identifiable, without improving the detector's angular precision.

Limit a scattering inference using finite range and measurement bandwidth

The Abel reconstruction requires data to arbitrarily large \(b\). A finite experiment measures up to \(b_{\max}\), and the unmeasured tail contributes an integral to \(W(s)\). For the example of a known asymptotic \(\chi=C/b\), the tail from \(b_{\max}\) to infinity evaluates to \(C\,\arcsin(s/b_{\max})/(\pi s)\) for \(s<b_{\max}\). Substitute \(b=s/\cos\alpha\) to obtain this result. For \(s\ll b_{\max}\), it approaches \(C/(\pi b_{\max})\). Setting the tail to zero therefore introduces an offset across the reconstructed log-radius even at small \(s\). Bounded angular noise and uncertainty in the tail model should be propagated separately.

As a numerical illustration take \(C=5.0\,{\rm mm}\),

\[b_{\max}=100\,{\rm mm},\]
\[s=20\,{\rm mm}.\]

The missing contribution is about \(0.0160\), corresponding to roughly a \(1.6\%\) multiplicative error in reconstructed radius if other terms were exact. At that same \(s\), the leading whole weak-tail value \(C/(2s)=0.125\) would be biased appreciably by this omission. A model with a short exponential tail would give a quite different correction. Adding a physically motivated tail with an uncertainty range is more informative than extending a noisy measured curve by an unrestricted polynomial.

The lower integration endpoint has a square-root weight. Uniform samples in \(b\) can be wasteful near a selected reconstruction radius and coarse interpolation there can dominate the result. Substitute \(b=s\cosh u\) to obtain

\[db/\sqrt{b^2-s^2}=du.\]

The Abel integral becomes a straightforward integral of \(\chi(s\cosh u)\) over \(u\), with a finite upper limit if the data stop at \(b_{\max}\). This substitution removes a numerical singularity but adds no information about missing impact parameters. Validate a reconstruction by inserting its inferred potential back into the original forward integral and predicting angular measurements withheld from the fit. Agreement with the very data used in the inversion alone can conceal an incorrect tail or a misassigned branch.

Convert centre-of-momentum angles into laboratory angles

An ordinary collision experiment often launches a particle of mass \(m_1\) into a stationary particle of mass \(m_2\). In Newtonian elastic scattering the centre-of-mass speed is \(V=m_1v_{\rm in}/(m_1+m_2)\), while the projectile's speed in that frame is \(u_1=m_2v_{\rm in}/(m_1+m_2)\). Rotate that velocity by the centre-of-mass angle \(\chi\) in the scattering plane, then add the centre velocity back. The outgoing laboratory velocity components are \(V+u_1\cos\chi\) longitudinally and \(u_1\sin\chi\) transversely. Consequently \(\theta_{\rm lab}=\operatorname{atan2}(\sin\chi,m_1/m_2+\cos\chi)\). The centre-of-mass solid-angle density derived from the impact parameter does not transfer unchanged to a lab angular histogram.

If \(m_1=m_2\), the identity \(1+\cos\chi=2\cos^2(\chi/2)\) gives \(\theta_{\rm lab}=\chi/2\) except when the projectile stops and loses a well-defined direction. A heavy projectile can be restricted to a narrow forward cone. Let \(r=m_1/m_2>1\). Differentiating the laboratory angle gives

\[d\theta_{\rm lab}/d\chi=(1+r\cos\chi)/(1+2r\cos\chi+r^2).\]

It vanishes at \(\cos\chi=-1/r\). At that angle \(\sin\theta_{\max}=1/r\); hence \(r=2\) limits the projectile to \(\theta_{\max}=30^\circ\). Two centre-of-mass angles can generate the same nonzero laboratory angle below this maximum. This laboratory-frame fold may appear even for a monotone centre-of-mass repulsive potential.

Energy helps separate the branches. The outgoing laboratory projectile energy divided by its incident energy is \([m_1^2+m_2^2+2m_1m_2\cos\chi]/(m_1+m_2)^2\). For \(m_1=2m_2\), head-on reversal in the momentum frame gives energy fraction \(1/9\), while forward scattering gives one. Both can land near the laboratory beam direction. A detector reporting angle only cannot distinguish a barely deflected fast projectile from a strongly deflected slow one emerging along almost the same line. Recording time of flight to a downstream detector or measuring the recoil supplies the missing information. Instrumental and kinematic multiplicity should therefore be addressed before attributing a two-branch angular signal to an exotic force law.

Ask what a flight-time measurement adds to angle data

At a given impact parameter choose a large comparison sphere of radius \(R\) enclosing a short-range potential. The transit time from its incoming boundary to the outgoing boundary is \(t_U(R,b)=2v_\infty^{-1}\int_{r_0}^R dr/\sqrt{1-U/E-b^2/r^2}\). The free reference at the same \(b\) is \(t_0=2\sqrt{R^2-b^2}/v_\infty\). Their difference is a classical time delay under a precisely specified pair of surfaces. It combines a different path length with the altered speed along the path. A repulsive barrier can cause either a shorter geometrical penetration or longer dwell near a turning point, so the sign cannot be inferred merely from the word repulsive.

For an impenetrable sphere of radius \(a>b\), the particle moves at free speed on each straight segment. The radial turning point is replaced by specular contact at \(a\), so \(t_{\rm hard}=2[\sqrt{R^2-b^2}-\sqrt{a^2-b^2}]/v_\infty\). The delay is \(-2\sqrt{a^2-b^2}/v_\infty\). Using \(a=3.0\,{\rm mm}\), \(b=1.8\,{\rm mm}\), and \(v_\infty=2.0\,{\rm m/s}\), one finds \(-2.4\,{\rm ms}\). The hard sphere takes less transit time between the two points where the respective trajectories cross the large sphere. Those points differ from the endpoints of the free line, so this negative delay implies no acceleration above the fixed free speed.

For a potential with a true long-range \(1/r\) tail the simple free-reference difference can acquire a logarithmic dependence on the comparison radius. A reported time delay then needs its reference geometry and tail model, just as a measured forward angle needs its angular acceptance. In the inverse problem, combining deflection and delay can help separate long dwell near a nearly unstable circular orbit from a large geometrical bend at an ordinary turning point. A large angle alone contains insufficient information to assign the time spent close to the scattering centre.

Reconstruct a finite-depth potential well from two deflections

A circularly symmetric square well provides a forward problem in which the trajectory is straight in each region and changes direction at the potential boundary. Let \(U(r)=-U_0<0\) for \(r<a\) and zero outside. A particle with \(b<a\) enters with speed \(v_\infty\) and travels inside at \(v_{\rm in}=v_\infty\sqrt{1+U_0/E}\equiv n v_\infty\). Angular momentum conservation across the radial impulse gives

\[v_\infty\sin i=v_{\rm in}\sin r_i,\]

where \(i\) and \(r_i\) are angles of the velocity to the normal outside and inside. Thus \(\sin i=b/a,\ \sin r_i=b/(na)\). At each crossing the direction bends toward the centre. The magnitude of net deflection is \(2(i-r_i)\), with negative signed deflection in the convention used for attraction here.

Take \(n=1.25,\ b=0.60a\). Then \(i=36.87^\circ\), \(r_i=28.69^\circ\), and the total deflection has magnitude \(16.35^\circ\). As \(b\) approaches \(a\) from below, the magnitude approaches \(2[\pi/2-\arcsin(1/n)]\), about \(73.7^\circ\). For \(b>a\) the trajectory does not touch the ideal sharp boundary and is undeflected. A smooth finite-width transition removes the ideal discontinuity at grazing incidence and can generate trajectories that linger near the outer part of the well. Examining a well with measured edge width is therefore different from trying to fit all grazing events with a perfectly sharp step.

If \(a\) is known, an incoming position tag and a measured deflection at one \(b\) determine \(n=\sin i/\sin(i-|\chi|/2)\), hence \(U_0/E=n^2-1\). The preceding numbers give

\[U_0/E=0.5625.\]

For an independently known \(E\) this determines the well depth. If \(a\) is unknown too, one angle supplies only one equation for two parameters. Multiple impact parameters, an independent threshold for entering the well, or a measured time of flight can supply the additional scale. Near \(b=0\) the deflection is approximately \(2(b/a)(1-1/n)\), so a series of very small impact parameters measures mainly that one combination; broad coverage is needed to resolve \(a\) and \(n\) individually.

The time inside the well is \(2a\cos r_i/(n v_\infty)\), because the interior chord has offset \(b/n\) and speed \(nv_\infty\). At the same \(b\), the time between intersections of the free path with the circle is \(2a\cos i/v_\infty\). For \(n=1.25,b=0.6a\), their ratio is \(\cos28.69^\circ/[1.25\cos36.87^\circ]\approx0.877\). The faster interior motion crosses a longer chord in less time. For grazing free paths the reference chord becomes very short and the comparison can reverse. Reporting which part of the trajectory the timing equipment resolves is therefore as important as measuring the dwell accurately.

Recover incoming annuli from scattering angles

Bin the exactly solvable hard-sphere reflection in polar angle and compare the integrated cross-section with the incoming geometric area.

Propagate uncertainties from a detector ring to an inferred force

Suppose \(N\) counts are recorded in an angular ring and the product of incident fluence, target count and calibrated efficiency is \(C\). The estimate of bin-averaged cross section is \(N/(C\Delta\Omega)\), with \(\Delta\Omega=2\pi[\cos\theta_{\rm low}-\cos\theta_{\rm high}]\) for full azimuth. Approximately independent counting events have fractional standard error \(1/\sqrt N\), but the fluence and efficiency create correlated scale errors across angular bins. When integrating bins to reconstruct \(b^2(\theta)\), a shared five-percent normalisation uncertainty does not shrink just because the number of angular bins grows. It propagates into an approximately \(2.5\%\) scale uncertainty in the recovered impact parameter.

For an ideal hard sphere, let an experiment integrate the area feeding angles greater than \(90^\circ\) and find \(14.1\pm0.7\,{\rm mm^2}\). Since this is \(\pi b(90^\circ)^2=\pi a^2/2\), the inferred radius is \(\sqrt{2(14.1)/\pi}=3.00\,{\rm mm}\) with uncertainty approximately \(0.075\,{\rm mm}\) for small errors. If the unobserved backward final ten degrees are simply omitted, an extra solid angle \(\Delta\Omega=2\pi[1-\cos10^\circ]\) is missed. Its small size for a smooth hard-sphere law can be estimated, but a general inverse analysis cannot assume that backward intensity is smooth without testing it.

Is multiplying each measured bin centre by the angular density there sufficient for a steep forward-scattering law?

Work through the solution

A finite bin measures an integral against solid angle, not the value at its centre. For a rapidly varying \(\sin^{-4}(\theta/2)\) density near zero, the lower-angle part of the bin can dominate its count. Use the exact preimage annulus \(\pi[b(\theta_{\rm low})^2-b(\theta_{\rm high})^2]\) or integrate the model numerically over the detector's angle-dependent efficiency. Repeat with narrower bins as a check. If the lower acceptance overlaps the direct beam, separate the unscattered population and account for its instrumental angular spread before assigning a cross section to small deflections.

Work directly in counts for a finite annular detector

For the repulsive inverse-square example take \(d=2.0\,{\rm mm}\) and a full-azimuth ring that accepts polar angles from \(55^\circ\) to \(65^\circ\). The expected incident area is \(\pi d^2[\cot^2(27.5^\circ)-\cot^2(32.5^\circ)]\), about \(15.4\,{\rm mm^2}\). Multiplying by an incident fluence of \(100\) particles per square millimetre and efficiency \(0.80\) predicts about \(1230\) counts. A Poisson fluctuation scale is then roughly \(35\) counts. The exact integral supplies a meaningful reference even when the plotting software reports a differential value at the centre of the bin.

Moving both angular boundaries one degree outward decreases the count because the repulsion sends fewer particles through larger angles. The change can be calculated by reevaluating the two cotangents, keeping the fluence and efficiency fixed. This sensitivity allows a calibration uncertainty in the angular zero to be propagated into a count prediction without treating it as a force uncertainty. If fluence is independently measured the dependence on \(d^2\) can then estimate the interaction scale. If fluence is itself unknown, a single count measures only their product; independent calibration or measurements across energies are needed to separate them.

Tutorial on inverse scattering

An incoming uniform beam scatters from a hard disk in three-dimensional impact geometry with effective radius \(3.0\,{\rm mm}\). What area feeds the polar bin from \(60^\circ\) to \(90^\circ\)?

Work through the solution

The accepted impact parameters run from \(a\cos45^\circ\) to \(a\cos30^\circ\). The difference of their squared radii is \(9(0.75-0.50)=2.25\,{\rm mm^2}\), giving area \(2.25\pi=7.07\,{\rm mm^2}\). Alternatively the bin has solid angle \(2\pi(\cos60^\circ-\cos90^\circ)=\pi\) steradians and differential cross section \(a^2/4=2.25\,{\rm mm^2/sr}\). The agreement checks both the Jacobian and the angular convention.

At large impact parameter a weak repulsion gives \(\chi(b)\simeq C/b\) with \(C\) a length. Use the inversion to identify the leading tail of the potential.

Work through the solution

Substitute \(b=s/\cos\alpha\) into the Abel integral. One obtains

\[W(s)\simeq C/(2s).\]

Thus \(r\simeq s+C/2\) and \(U/E=1-e^{-2W}\simeq C/s\simeq C/r\). The potential tail is \(EC/r\). For the exact repulsive Coulomb result \(C=K/E\), matching the original \(K/r\). This check uses the weak-tail expansion at large radii only; continuing it to small radii would discard higher deflection terms.

A measured angular bin near a rainbow doubles in width towards its allowed side. By what approximate factor do its counts change if background is negligible?

Work through the solution

At a simple fold the angular density grows as the inverse square root of distance from the extremal angle. For a bin of width \(\Delta\theta\) starting at the fold, the integral scales as \(\sqrt{\Delta\theta}\) provided \(\sin\theta_r\) is nonzero and other weights are locally smooth. Doubling the width gives a factor \(\sqrt2\), unlike the factor two from a smooth background. Finite angular resolution rounds off the divergence and can obscure this scaling in very narrow bins.

Compare angular bins and conserved incoming area.

Fließbach's mechanics text treats trajectories in central fields.