The Euler-Lagrange equation with dissipative forces in the s coordinate is:
dtd∂s˙∂L−∂s∂L=Qs. The left-hand side of Equation (1) can also be denoted as δsδS, the functional derivative of S with respect to s. S is the action and is defined by:
S=∫t0tfL(s,s˙,t)dt where t0 is the starting time and tf is the finishing time. First, we shall calculate ∂s˙∂L, the canonical momentum:
∂s˙∂L=ms˙. Hence:
dtd∂s˙∂L=ms¨. As for the second term in Equation (1), it is:
∂s∂L=mgsinθ(s). So the functional derivative is therefore:
δsδS=ms¨−mgsinθ(s). Hence Equation (1) becomes:
ms¨−mgsinθ(s)=−mgCrrcosθ(s)−2ρCDAs˙2. Rearranging and factorizing yields:
ms¨=mg(sinθ(s)+Crrcosθ(s))−2ρCDAs˙2. Dividing both sides by m yields:
s¨=g(sinθ(s)+Crrcosθ(s))−2mρCDAs˙2 assuming constant gravitational acceleration.