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.
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.ω ≠ 0Step 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.
3 direct connections
- Related resultHarmonic Oscillator Energy Conservationis related toThe Explicit Harmonic-Oscillator Trajectory
- Related resultThe Explicit Harmonic-Oscillator Trajectoryis related toPeriodicity of the Classical Harmonic Oscillator
- Related resultThe Explicit Harmonic-Oscillator Trajectoryis related toUniqueness of Harmonic-Oscillator Motion
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 connectionsProvenance and verification
Sources and technical checks
Show declaration provenance and Lean checks
ClassicalMechanics.HarmonicOscillator.InitialConditions.trajectory_equationOfMotionPhyslib.ClassicalMechanics.HarmonicOscillator.Solution6bd0b4b99d3dsorryAx reportedThe 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.



