The action is purely a mathematical instrument. In the image below the curves represent the case of an object being thrown upwards against a potential that gives a 2 $m/s^2$ acceleration: it rises and descends again. With 2 $m/s^2$ acceleration and duration of 2 seconds the true trajectory reaches a height of 1 meter. Black curve: trajectory of the object red curve: kinetic energy green curve: minus potential energy [![enter image description here][2]][2] When you sweep out a range of trial trajectories the curves of the energies change accordingly. The image displays the point in variation space where the trial trajectory hits the true trajectory: then the red curve (kinetic energy) and the green curve (*minus* potential energy) are parallel to each other. (They're parallel of course since the rate at which the kinetic energy is changing must *match* the rate at which the potential energy is changing.) So: what you need is a method to know where the slopes of the red/green curves are not equal, and where they are. To that end we use the following property of the value of an integral: when start point and end point of a curve are fixed then when the *slope* of that curve changes the value of that curve's integral changes in proportion. In the image below the curves on the left are the same as the curves of the first image. The curves on the right are the corresponding functionals. [![enter image description here][3]][3] In the example presented here (2 $m/s^2$ acceleration) the potential increases linear with height. The green line on the right shows how the integral of the minus potential energy responds to variation of the trial trajectory. Here the green functional is a straight line because here the potential energy increases *linear* with height. The red functional represents how the integral of the kinetic energy responds to variation of the trial trajectory. Since the kinetic energy is a quadratic function of the velocity the red functional is a *quadratic function* of the variational parameter. There is only one point where the respective values of the two integrals change *at the same rate* (changing in opposite direction). That point is the point where the trial trajectory hits the true trajectory. About generality: The way the integral of the potential energy responds to variation of the trajectory will in general be different from the way the integral of the kinetic energy responds to variation. This is independent of the way the variation is implemented. Emphasizing a key point: The purpose of the integration is to obtain information about the *slope* of the potential/kinetic energy curve of the trial trajectory. Slope information is usually obtained with differentation, but in this case with integration. <br> This particular example is the simplest case: a potential that increases linear with height. The reasoning generalizes to all cases. <br> General discussion: The concept of Hamilton's stationary action has both physics content and mathematical content. The physics content consists of the Work-Energy theorem. The rest is mathematical instrument. (The images illustrating this answer are my own work, they're screenshots of diagrams from my own website. The diagrams have a slider, to explore variation.) [1]: https://physics.stackexchange.com/a/525265/17198 [2]: https://i.sstatic.net/7vlNO.png [3]: https://i.sstatic.net/NRUSL.png