Consider the second order nonlinear ODE describing the motion of a
pendulum:
Here the variable
corresponds to the angle that the pendulum makes
with the vertical, measured in radians.
(There is no simple analytic solution to the nonlinear pendulum equation in
terms of elementary functions.)
To completely specify the problem we need two initial conditions:
, say, and
.
If the pendulum motions are of small amplitude, then
, the angle that
the pendulum makes with the vertical is small, so that
. Then the linearized form of eqn. (2) is:
By contrast with the small amplitude pendulum equation (3)
there is no elementary analytical solution to eqn. (2). Therefore
we have to solve the full nonlinear equation numerically. However,
in order to demonstrate how things
work and to test that we are doing everything correctly we will first solve
the linearized eqn. (3) numerically.
In order to do this we have to
re-write the second-order ODE as two first-order ODEs involving
and
.
The first equation follows from these definitions, i.e.
Determine the two first-order equations corresponding
to the full nonlinear pendulum equation (2).