The Classical Harmonic Oscillator #
Description #
The classical harmonic oscillator is a classical mechanics system.
It physically corresponds to a particle of mass m
attached to a spring providing a force of
- k x
.
Current status #
Basic
The main components of the basic module (this module) are:
- The structure
HarmonicOscillator
containing the physical parameters of the system. - The definition of the lagrangian
lagrangian
of the system.
Solution
The main components of the Solution
module are:
- The structure
InitialConditions
containing the initial conditions of the system. - The definition
sol
which given a set of initial conditions is the solution to the Harmonic Oscillator. - The energy
sol_energy
of each solution. - The action
sol_action
of each solution.
TODOs #
There are a number of TODOs related to the classical harmonic oscillator. These include:
- 6VZGU: Deriving the force from the lagrangian.
- 6VZG4: Deriving the Euler-Lagrange equations.
- 6YATB: Show that the solutions satisfy the equations of motion (the Euler-Lagrange equations).
- 6VZHC: Include damping into the harmonic oscillator.
Note the item TODO 6YATB. In particular it is yet to be shown that the solutions satisfy the equation of motion.
The angular frequence of the classical harmonic osscilator is positive.
The square of the angular frequence of the classical harmonic osscilator is equal to k/m
.
The angular frequence of the classical harmonic osscilator is not equal to zero.
The inverse of the square of the angular frequence of the classical harmonic osscilator
is m/k
.
The kinetic energy of the harmonic oscillator is 1/2 m (dx/dt) ^ 2
.
Instances For
The potential energy of the harmonic oscillator is 1/2 k x ^ 2
Instances For
The energy of the harmonic oscillator is the kinetic energy plus the potential energy.
Equations
- S.energy x t = S.kineticEnergy x t + S.potentialEnergy x t
Instances For
The lagrangian of the harmonic oscillator is the kinetic energy minus the potential energy.
Equations
- S.lagrangian x t = S.kineticEnergy x t - S.potentialEnergy x t
Instances For
The lagrangian of the classical harmonic oscillator obeys the condition
lagrangian S (- x) = lagrangian S x
.