Study
The anharmonic oscillator treated through Lagrange and Hamilton, then solved numerically: where first-year physics stops, this begins.
- Field
- Analytical mechanics
- Object
- Anharmonic oscillator
- Approach
- Lagrangian and Hamiltonian formulations, numerical integration
The question
Every physics course starts with the harmonic oscillator, because it can be solved by hand. Nature is rarely harmonic: as soon as the amplitude grows, the spring stiffens or softens, the period starts depending on the amplitude, and the formulas you learned no longer apply. What method is left then?
The method
The Lagrangian and Hamiltonian formulations, precisely. They do not hand you the solution, but they do give the right equations without mistaking a force or a constraint, and they expose what is conserved. Numerical integration then takes over where no antiderivative exists, and the conserved quantities act as a check: a scheme that lets energy drift is a scheme that will lie later on.
What the page shows
The passage from the linear to the nonlinear regime, the dependence of the period on amplitude, and the trajectories in phase space — the representation in which a nonlinear system finally becomes readable.