A simple pendulum with a massless bar of length \(L\) connected to point mass \(m\) under the influence of gravity is shown on the figure.
To derive the equations of motion we use the principle of the conservation of energy: Total energy = Potential energy + Kinetic energy = Constant
$$ E = mgh + \frac{1}{2} m v^2 $$
where \(h = L(1-\cos{θ})\) is the vertical distance from the lowest point.
$$ E = mgL(1-\cos{θ}) + \frac{1}{2} m v^2$$
Take the derivative of both sides with respect to time
$$ \frac{dE}{dt} = mgL\sin{θ} \frac{dθ}{dt} + m v \frac{dv}{dt} = 0 $$
We have the kinematic relation
$$ v = L\frac{dθ}{dt} \to mg L \sin{θ} \frac{dθ}{dt} + m L \frac{dθ}{dt} L \frac{d^2 θ}{dt^2} = 0 $$
After simplification
$$ \frac{d^2 θ}{dt^2} + \frac{g}{L} \sin{θ} = 0 $$
This is a nonlinear equation which is not solvable in terms of elementary functions.
To simplify the problem, we assume small angle: \( \sin{θ} \approx θ\), which gives us the second order linear homogeneous equation
$$ \frac{d^2 θ}{dt^2} + \frac{g}{L} θ = 0 $$
which has a solution in terms of trigonometric functions.
The nonlinear equation can be solved by using
Numerical Methods .