/-
Copyright (c) 2026 Nathaneal Sajan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaneal Sajan
-/modulepublicimportPhyslib.ClassicalMechanics.HarmonicOscillator.Geometric.BasicpublicimportPhyslib.SpaceAndTime.Time.DerivativespublicimportMathlib.Geometry.Manifold.ContMDiff.NormedSpacepublicimportMathlib.Geometry.Manifold.MFDeriv.Basic
Geometric trajectories of the harmonic oscillator
i. Overview
A trajectory of the harmonic oscillator is a time-parametrized curve in the configuration
manifold Q. Since this model of Q has a single global coordinate valued in
EuclideanSpace ℝ (Fin 1), every geometric trajectory has an associated coordinate curve.
The coordinate diffeomorphism from Q to its model space lets smoothness of a geometric
trajectory be tested as ordinary smoothness of its coordinate curve.
ii. Key results
Trajectory : a curve from Time into the configuration manifold.
Trajectory.coord : the global Euclidean coordinate curve of a trajectory.
Trajectory.toSpace : the physical-space position along a trajectory.
Trajectory.contMDiff_iff_contDiff_coord : geometric smoothness of a trajectory is
equivalent to ordinary smoothness of its coordinate curve.
Trajectory.velocity : the geometric velocity of a trajectory as a tangent vector.
Trajectory.velocity_eq_deriv_coord : in the global coordinate, geometric velocity is
represented by the time derivative of the coordinate curve.
iii. Table of contents
A. The trajectory type and coordinate projection
B. Smoothness of trajectories
C. Velocity in the tangent bundle
iv. References
Ivo Terek, Introductory Variational Calculus on Manifolds, pages 1-2 (Section 1, Basic
definitions and examples).
@[expose]publicsection
A. The trajectory type and coordinate projection
A trajectory is a curve in the configuration manifold Q, parametrized by Time. The
coordinate projection reads the same curve in the chosen global coordinate, while toSpace
forgets the manifold structure and returns the corresponding physical-space position.
A trajectory of the oscillator: a curve in the configuration manifold Q.
Because the global coordinate is a diffeomorphism, composing a trajectory with it preserves
and reflects manifold smoothness. Since both Time and the coordinate model are normed
spaces, this manifold-smoothness statement then becomes ordinary ContDiff smoothness.
A trajectory is smooth as a curve in Q iff its coordinate curve is ordinarily smooth.
The velocity of a trajectory at time t is the tangent vector obtained by differentiating
the curve in the direction of the unit time vector. In this one-chart model, the tangent
space at each configuration is represented by the same Euclidean model space, so the
geometric velocity can be compared with the derivative of the coordinate curve.
A trajectory is MDifferentiableAt a time iff its coordinate curve is ordinarily
differentiable there, since the two differ by the coordinate diffeomorphism.
A trajectory and its coordinate curve have the same manifold derivative, since they
differ only by the coordinate diffeomorphism. This is the one lemma that unfolds the chart;
every later result uses only the stable mfderiv/fderiv API.