Skip to main content
Sandbox Physics

M081 · Action / boundary value

Principle of Stationary Action

Drag a candidate path while fixing its endpoints. Compare action, first variation and equation residual in free motion, uniform gravity and harmonic motion; move from a minimum to a saddle and test compatible or impossible conjugate-time boundaries.

Interactive modelPrinciple of Stationary Action
Reviewed timePending\text{Pending}
Elapsed intervalPending\text{Pending}
Candidate positionPending\text{Pending}
Candidate velocityPending\text{Pending}
Candidate actionPending\text{Pending}
Base actionPending\text{Pending}
Action change from basePending\text{Pending}
Selected-mode slopePending\text{Pending}
Selected-mode curvaturePending\text{Pending}
Six-mode gradient normPending\text{Pending}
Newton residual RMSPending\text{Pending}
Quadrature discrepancyPending\text{Pending}
Negative-curvature directionsPending\text{Pending}
Reference classificationPending\text{Pending}
Endpoint compatibilityPending\text{Pending}
Projected stationarityPending\text{Pending}

Physics tutorial

First variation and curvature answer different questions

BackgroundA candidate history connects prescribed endpoints; a physical history satisfies the equations of motion.

Why it mattersThe stationary-action principle and its second variation explain why a physical path can be a saddle.

Start with the essentials

Focus question
Must the physical path have the smallest action?
One-sentence intuition
Zero first variation identifies motion; the second variation distinguishes minimum, flat direction and saddle.

Core mathematical model

One endpoint-fixed functional

S[q]=∫0T(mq˙22−V(q))dt,q(0)=q0, q(T)=qTS[q]=\int_0^T\left(\frac{m\dot q^2}{2}-V(q)\right)dt,\qquad q(0)=q_0,\ q(T)=q_T

Action integrates the Lagrangian, not total energy. Endpoints stay fixed when the interior path changes.

Stationarity recovers Newton motion

δS=−∫0T(mq¨+V′(q))η(t)dt,η(0)=η(T)=0\delta S=-\int_0^T\left(m\ddot q+V^{\prime}(q)\right)\eta(t)dt,\qquad\eta(0)=\eta(T)=0

The force residual vanishes for a true path. The six-mode gradient tests only the editable subspace, while the plotted residual tests the continuous equation.

Editable paths preserve the endpoints

q(t)=qb(t)+∑n=16ansin⁡nπtTq(t)=q_b(t)+\sum_{n=1}^{6}a_n\sin\frac{n\pi t}{T}

The base is the analytic true path when compatible. At an impossible harmonic boundary it is a straight interpolation, explicitly labeled as having no physical solution.

Curvature decides minimum or saddle

ΔS=m4∑n=16an2(n2π2T−ω2T)\Delta S=\frac m4\sum_{n=1}^{6}a_n^2\left(\frac{n^2\pi^2}{T}-\omega^2T\right)

For a compatible harmonic reference the first variation is zero. A mode whose half-wavelength is too long lowers action; higher modes still raise it. Free motion and uniform gravity replace the frequency term by zero.

Conjugate times need compatible endpoints

ωT=kπ⟹qT=(−1)kq0\omega T=k\pi\quad\Longrightarrow\quad q_T=(-1)^kq_0

At this exact condition an endpoint pair may have infinitely many physical paths or none. A flat mode is not a uniquely selected path. The interval control uses the harmonic half-period as its base scale.

Audit numerical quadrature independently

ϵQ=∣SSimpson−Sclosed∣\epsilon_Q=\left|S_{\rm Simpson}-S_{\rm closed}\right|

Closed-form quadratic action is the displayed value. Composite Simpson integration with 512 intervals audits the path integral; this discrepancy is not a complete error bound.

Common difficulties

Stationary is not always minimum

Typical misconceptionThe true path must beat every nearby path.

Better mental modelBeyond a harmonic half-period there are negative-curvature directions and a stationary saddle.

Flat is not unique

Typical misconceptionA zero slope and zero curvature pick one motion.

Better mental modelA compatible conjugate boundary has a family of true paths along a flat direction.

Impossible endpoints stay impossible

Typical misconceptionAny two endpoint positions admit a harmonic path.

Better mental modelAt a conjugate time incompatible endpoint values have no solution; a straight base is only an editable candidate.

Projection has a scope

Typical misconceptionSix small derivatives prove stationarity in every possible direction.

Better mental modelThe finite basis tests six directions. Inspect the continuous equation residual and the analytic reference separately.

Run the experiment

  1. 01

    Restore a minimum

    Choose the short interval and restore the reference.

    What to observe: Slope and force residual approach zero; a first-mode perturbation increases action.
  2. 02

    Find a saddle

    Choose the stationary saddle, then compare modes one and three.

    What to observe: One lowers action and the other raises it around the same stationary path.
  3. 03

    Test a conjugate boundary

    Compare the family and impossible-endpoint presets.

    What to observe: A flat physical family differs from an endpoint pair with no classical solution.
  4. 04

    Edit and audit

    Drag the orange handle and compare gradient, residual and quadrature discrepancy.

    What to observe: The endpoints stay fixed; the exact action and independent quadrature remain consistent.