Classical mechanics · PhysLib theorem

The Explicit Harmonic-Oscillator Trajectory

PhysLib's sine-and-cosine trajectory determined by initial position and velocity satisfies the one-dimensional harmonic oscillator equation of motion.

Provided by PhysLibLean checkedMeaning reviewed

What it says

What the theorem says

The proof differentiates the initial-data trajectory twice, converts the variational equation to Newton form, and uses ω²=k/m to match acceleration with the linear restoring force.

Context

Why it matters

The explicit oscillator solution is universally recognizable and adds a trajectory-level theorem distinct from the existing conservation-law landmark.

Inside the proof

Proof architecture

The retained theorem checks the familiar explicit motion against the already formalized oscillator dynamics rather than merely presenting the formula.

Step 1

Encode the initial data

The trajectory combines a cosine branch carrying the initial position with a sine-over-frequency branch carrying the initial velocity.

x(t)=cos(ωt)x₀ + sin(ωt)v₀/ω

Show the Lean ingredients
trajectory_eqIC.x₀IC.v₀

Step 2

Differentiate to acceleration

The proof substitutes the source's exact acceleration formula for the explicit trajectory and keeps all frequency factors visible.

x″(t) = −ω²x(t)

Show the Lean ingredients
trajectory_accelerationhave hω : S.ω ≠ 0

Step 3

Match the restoring force

Using the linear force law and ω²m=k, the acceleration expression becomes exactly the Newton-form equation of motion.

m x″ = −kx

Show the Lean ingredients
gradLagrangian_eq_forceforce_eq_linearrw [ω_sq]

Authoritative formal type

Exact PhysLib statement

ClassicalMechanics.HarmonicOscillator.InitialConditions.trajectory_equationOfMotion (S : ClassicalMechanics.HarmonicOscillator) (IC : ClassicalMechanics.HarmonicOscillator.InitialConditions) : S.EquationOfMotion (ClassicalMechanics.HarmonicOscillator.InitialConditions.trajectory S IC)

This is the theorem's exact Lean type. The diagrams and commentary are explanatory; the pinned statement and source are authoritative.

Recorded connections

How this result fits

A one-step view of the published results directly connected to this page.

Current resultThe Explicit Harmonic-Oscillator Trajectory
3 direct connections

Only recorded public relationships are shown. A shared topic does not imply a dependency, and this is not a complete Lean proof-term dependency graph.

Open this result in the full theorem map3 direct connections

Provenance and verification

Sources and technical checks

Show declaration provenance and Lean checks
PhysLib declarationClassicalMechanics.HarmonicOscillator.InitialConditions.trajectory_equationOfMotion
Source modulePhyslib.ClassicalMechanics.HarmonicOscillator.Solution
Source footprint16 nonempty lines in this declaration · 703 nonempty lines in its module
Checked commit6bd0b4b99d3d
Reported Lean axiomsClassical.choice, Quot.sound, propext
Unresolved placeholdersNo sorryAx reported

View theorem in PhysLib ↗

The declaration footprint describes source layout, not proof difficulty or the size of its dependencies. The pinned checks verify the cited Lean theorem; semantic review remains a separate PhysAtlas judgment.

Expanded visual

Explanatory image · not evidence.

Open original in a new tab