To apply Equations (??), we will treat it as a simple pendulum with no friction, a massless rod and no air resistance. The pendulum will consist of a rod with a bob at one end and freely rotating around a central point. We will define this central point as being the origin in Cartesian coordinates. Say the rod is of fixed length l metres. The pendulum bob will be of mass m kilograms. As you can see in Figure , we have defined θ as the angle between the rod and the positive x-axis going counter-clockwise. Hence the x and y coordinates of the pendulum bobs are:
xy=lcosθ=lsinθ. Hence:
x˙y˙=−lθ˙sinθ=lθ˙cosθ. As for velocity squared, it is defined as:
v2=x˙2+y˙2=l2θ˙2sin2θ+l2θ˙2cos2θ=l2θ˙2. Hence v=lθ˙. The kinetic energy is:
T=2mv2=2ml2θ˙2. As for potential energy, given this bob is moving solely under the force of gravity:
V=mgy=mglsinθ. Hence:
L=T−V=2ml2θ˙2−mglsinθ. ∂θ˙∂L is hence:
∂θ˙∂L=ml2θ˙. And its time derivative is:
dtd∂θ˙∂L=ml2θ¨. As for the ∂θ∂L term it is:
∂θ∂L=−mglcosθ. So Equations (??) becomes:
ml2θ¨+mglcosθ=0. Dividing by ml2 and taking the second term to the right-hand side yields:
θ¨=−lgcosθ.(1) Equation (1) has, as its highest order derivative, a second-order derivative. It also only involves ordinary derivatives (not partial derivatives). Hence it is a second-order ordinary differential equation (ODE). Second-order ODEs are typically obtained in both Newtonian and Lagrangian mechanics. The number of second-order ODEs obtained for a given system depends on the number of degrees of freedom of the system.
Technically speaking it is possible to analytically solve Equation (1), but it requires the use of non-standard functions called elliptic integrals. If you would like to check out numerical solutions to this equation, see this page.