Maupertuis loosely introduced the Principle of Least Action in 1741. A few years later in 1744 in Methodus inveniendi Euler associated Action with an integral that was a minimum for the path a mass actually followed, he wrote ∫ds√v = min with √v corresponding to the speed of the mass. He wrote,
I tried to check if the integral was actually a minimum for the mass moving in a uniform gravitational field as in fig 26 (see translation of Methodus inveniendi in Wikisource),
but the minimum didn't correspond to the motion of the particle even when the integral was replaced by δ∫v·dr.
The numerical integration was fairly straightforward. We start by defining some constants.
The variation of δy, was assumed to be a simple some function with k cycles on the interval of x equal to (0,b) with b=200.
p=dy/dx was determined by fitting the values of x, x2, and y, which enabled the components of the velocity to be calculated.
We were then able to calculate δv•dr for each point of the trajectory of the mass. To numerically integrate this over each Δx a three point fit of δv•dr was evaluated and used.
An exaggerated variation of δy is shown in the following figure.
When the δ∫v·dr is computed for small values of the amplitude of the variation the minimum is slightly offset from the zero.