Some of the paths a system could take. The derivation of Equations (??) requires knowledge of a field of mathematics known as the calculus of variations as well as a physics principle known as the stationary action principle. If you are interested in learning more, I would suggest you check out Veritasium's video on this topic (https://www.youtube.com/watch?v=Q10_srZ-pbs).
There is a quantity known as the action, which is denoted as S, that is defined as:
S=∫t0tfL(qi,q˙i,t)dt.(1)
One interesting property of the action is that nature consistently sets it to its stationary point, and this is regardless of context. Regardless of whether we are examining the motion of planets with Newton's second law, or studying the behaviour of black holes with general relativity, or checking out the behaviour of subatomic particles, there is always an action that is at its stationary point. Traditionally, this stationary point is typically thought of as a minimum (hence why this is also known as the principle of least action), but strictly speaking it is not always a minimum. When you use the calculus of variations to find the stationary point of Equation (1), Equations (??) pop out.
I will also provide you my own derivation of Equations (??) using the principle of stationary action. Of all the paths that an object could explore, the one that it actually explores is the one that sets the action to its stationary point. Figure provides some example paths that we examine when applying the principle of stationary action. In the terminology of the calculus of variations, we can express the fact the action is at its stationary point as:
δS=0.(2)
This is analogous to saying, in regular calculus, that our function's first derivative is zero.
Say we add functions δqi to qi, thereby adjusting the path our object takes. Crucially, however, the end times and end points of our path will be unchanged. The new, adjusted action we will denote by S′ and it is:
At the end times of our path, δqi should be zero, as the endpoints are fixed. Hence the term [∂q˙i∂Lδqi]t0tf should evaluate to zero. Our expression then simplifies to: