1. Introduction
This entry aims to present some formulations of the principles of stationarity of action by William Rowan Hamilton (1805–1865). They are derived from two basic concepts, namely the purely mathematical concept of stationarity and the physical concept of action. Historically, the mathematical concept comes first and is generally presented as a minimum principle. Several examples, such as the isoperimetric problem and the law of reflection, date back to antiquity [
1]. A problem of finding minima in physics, without the need to introduce the concept of action, is the minimum time problem formulated in 1657 by Pierre de Fermat (1601–1665) for the law of refraction [
2].
Almost a century later, Pierre-Louis Moreau de Maupertuis (1698–1759) formulated the problem of finding minima in mechanics, introducing the concept of
action; the field of application of this early work was still optics, which was treated as corpuscular theory. In the paper
Accord de différents loix de la nature qui avoient jusqu’ici paru incompatibles of 1744 [
3], which was devoted to the refraction of light rays seen as straight segments, Maupertuis formulated his principle of minimum by introducing the word
action, which, by Maupertuis’ own admission, goes back to an analogous definition proposed by Gottfried Wilhelm Leibniz (1646–1716) and is based on the metaphysical principle according to which “nature for the production of its effects always operates with the simplest means” ([
4], p. 297). This presupposes the validity of final causes in physics.
Before applying the principle of minimum to the refraction of light, Maupertuis referred to Fermat, praising him for his brilliant idea but criticising him for using a wrong principle. Fermat assumed that a ray of light passing from a point (
A) of a given medium, where light travels at speed
a, to a point (
B) of another medium, where light travels at speed
b, with the two media separated by a plane, travels the path requiring the minimum time. If the first medium is more rarefied than the second, then
, and the angle of refraction is less than the angle of incidence, as experience shows [
2,
5]. According to Maupertuis, although the result is correct, the approach is wrong because he believed that the speed of light grows with the density of the medium. This position, which we know to be incorrect, was, however, assumed by both René Descartes (1596–1650) and Isaac Newton (1643–1727), and it was natural for Maupertuis to inherit it. Thus, Maupertuis proposed that the searched minimum is not time but the effort that nature makes, i.e., the
action, which depends, according to Maupertuis, “on the velocity of the body and the space it passes through, but it is neither velocity nor space taken separately. It is rather proportional to the sum of the spaces multiplied by the speeds with which they are passed” ([
3], p. 423).
This definition of the physical quantity called action is, in no way, justified; thus, a skilful reader may suspect that Maupertuis chose an ad hoc expression on the basis of the result to be obtained, which was known in advance. If the speed of light is
V in the less dense medium and
W in the denser medium and the positions of points
A and
B are given, the action is defined by
, with
R representing the point of incidence and refraction of the light ray. This action should be minimised by varying the position of the point of incidence and refraction (
R); the obtained result is the correct one according to our standards. Maupertuis concluded his article by recalling the hostility of most mathematicians to the idea of resorting to final causes in physics, claiming that he, himself, partially agreed with this criticism, even considering the errors into which one can fall by using it, as Fermat and Leibniz did. But for him, “it is not the principle in itself that led them to error, but rather the hurry [with which they applied it]” ([
3], p. 423).
In the paper
Les loix du mouvement et du repos, déduites d’un principe de métaphysique of 1746, Maupertuis extended his principle to mechanics, i.e., statics and dynamics ([
6], p. 425), defining action for a body as the product of its mass, its velocity and the length of the path it runs. However vague (the time lapse is unspecified, just to limit to one remark), this definition provided the right result for the test problem of the collision of two bodies, regardless of their rigidity [
7,
8]. An important part of the paper is the perspective with which the principle of least action is presented. Instead of simply referring to nature, which operates with the minimum effort, Maupertuis brought into play God himself and presented the principle of least action as a proof of the existence of God, to the extent that the original title of the paper was
The laws of motion and rest derived from the attributes of God ([
9], p. 270). In fact, God had a dual role according to Maupertuis—on the one hand, the existence of God, which is certain, with the attribute of infinite wisdom making the principle of least action reliable and; on the other hand, the truthfulness of the principle of least action, deduced by experimental and theoretical results, is the proof of the existence of God.
The introduction of the principle of least action into mechanics is, however, much more complex than its application to refraction. Maupertuis was fully aware of this; thus, he came to consult Leonhard Euler (1707–1783), whose greater skill in mathematics he acknowledged and with whom he exchanged some letters on the matter [
7,
8]. Euler appreciated Maupertuis’ work, which provided him with some suggestions for applications to mechanics and to the development of the calculus of variations. The latter, which had found its very origin in the well-known problem of the
brachistochrone posed by Johann Bernoulli (1667–1748) in 1696 [
10], was becoming a trendy and challenging task for both pure and applied mathematicians.
Indeed, a powerful step towards the development of analytical mechanics and, thus, Hamilton’s principles is due to Euler’s masterpiece,
Methodus inveniendi… of 1744 [
11], where the solution of not only mathematical but also classical mechanical problems was reduced to the search of maxima and minima (
maximi minimive) of certain definite integrals that could be the length of a curve or the surface of an area in geometry or the action in mechanics. As far as mechanics is concerned, Euler did not undertake the task of integrating Newton’s differential equations of motion directly, but he searched the ‘actual’ trajectory of the body as the one that makes action a minimum among the possible actions between fixed initial and final points. This poses the basis for variational calculus as an extension of differential calculus for functions of several variables [
10]. The integral providing the action was made to depend on the values of the unknown minimising function in a finite number of sampling points between the initial and the final points so that the search of a stationary point was reduced to the ordinary vanishing of the action with respect to these unknown values. This let Euler find the trajectory of the body or the buckled shape of a compressed column (the Appendix
Additamentum primum: de curvis elasticis of [
11] is also quoted as the milestone for the mathematical theories on the bifurcation of static solutions).
Euler’s work [
11] inspired Joseph-Louis Lagrange (1736–1813), who exchanged correspondence with Euler on resolution techniques for finding extremaof the definite integrals that we now call functionals. Thus, he contributed to the establishment of the basis of variational calculus and proposed an original technique still considered basic today, with small adjustments [
10], i.e., that one should not consider the several possible values of the searched minimising (or maximising) function at sample points but at
all points by introducing what we now call
variations of the actual solution between fixed initial and final values. The variations are regular enough functions that have the same values at the initial and final points of the domain of integration for the functional; roughly speaking, one shall then evaluate the difference between the values attained by the action at any two ‘near’ variations and take the limit as a small variation, thus finding the so-called
Euler-Lagrange equations for the stationarity of the functional.
Lagrange’s innovative application of such a mathematical approach to mechanics was presented in his masterpiece,
Mécanique analytique (1st edition, 1788 [
12]; 2nd edition, 1811 [
13]). For what we now call conservative fields of forces, action is the accumulation, between the initial and final points of the trajectory, of a function (now dubbed ‘Lagrangian’) that expresses the excess of kinetic energy with respect to the potential energy. Then, Euler’s application of Maupertuis’ principle to the mathematical problems of the search of maxima and minima demands that this integral be stationary, so Lagrange could obtain what we call Euler–Lagrange equations of motion, which are still studied in every class of rational mechanics. Lagrange was well aware of this novelty, and in the preface of [
12], he wrote,
I decided to reduce the theory of this Science [Mechanics] and the techniques to solve the relevant problems to general formulas, the simple development of which provides all the equations that are necessary to solve any problem. […] On the other hand, this work will have another usefulness: it will unite and present from the same viewpoint the different principles found until now to ease the resolution of problems in mechanics, and will let us be able to judge about their exactness and range of validity.
(Je me suis proposé de réduire la théorie de cette Science, & l’art de résoudre les problèmes qui s’y rapportent, à des formules générales, dont le simple développement donne toutes les équations nécessaires pour la solution de chaque problème. […] Cet Ouvrage aura d’ailleurs une autre utilité; il réunira & présentera sous un même point de vue, les differens Principes trouvés jusqu’ici pour faciliter la solution des questions de Mechanique, en montrera la liaison & la dépendance mutuelle, & mettra à portée de juger de leur justesse & de leur étendue.)
Therefore, it is undoubtable that, apart from his own admissions, Hamilton’s grounds are deeply rooted in these works and are indebted to these epistemological views, yet they were developed in a very personal way. Thus, in the following, we present Hamilton’s approach to the problem of the least action, where the action gradually leaves any physical meaning to become a function whose stationarity expresses the law of mechanics.
2. First Works on Optics
According to Hamilton, there are two methods in science, namely the inductive (or analytical) method and the deductive (or synthetic) method. Although (geometrical) optics was developed by means of an important mathematical apparatus, it remained essentially an inductive science, since “[…] it has benefited so little in proportion to the power of modern algebra” ([
14], p. 5). Despite mentioning the original dates of publication of Hamilton’s works, we refer to their transcription and re-editing by David R. Wilkins, carried out around the 2000s and freely available at
https://www.maths.tcd.ie/pub/HistMath/People/Hamilton/Papers.html (accessed on 24 July 2024). In Wilkins’ edition, pages are numbered starting from 1 for every paper. Therefore, to be a complete science, optics must develop its deductive side, and for such a deductive side to be satisfactory, it would be appropriate for it to be based on a single principle ([
14], p. 5).
Hamilton presented his theory of optics in a lengthy paper with supplements called
The theory of the system of rays. The main article was published in the
Transactions of the Royal Irish Academy in 1828 [
15]; three supplements appeared in the same
Transactions in 1830, 1831 and 1837 [
16,
17,
18]. In this paper, Hamilton derived what he called the principle of least action, in connection with the earlier use of this term, for the reflection and refraction of light, starting from the known principle of geometrical optics.
In [
15], Hamilton showed how to pass from the inductive to the deductive phase, staring from the experimental law/principle of reflection of light on a uniform medium. He assumed the principle of equality of the angles of incidence and reflection, turning it into a vector version as follows:
When a ray of light is reflected on a mirror, we know from experience that the normal to the mirror at the point of incidence bisects the angle between the incident and reflected rays. If, therefore, two forces, each equal to unity, were to act at the point of incidence, in the directions of the two rays, their resultant would act in the direction of the normal, and would be equal to twice the cosine of the angle of incidence.
The reference to force for rays of light is not uncommon (see, for, example Johann Bernoulli’s work [
19], pp. 369–376.), but in this case, this apparently physical interpretation has only the function of introducing vector quantities into the analysis, which, for Hamilton, is fundamental to pursue an abstract and new procedure.
By indicating with
,
and
the angles that the incident ray (
) and the reflected ray (
) make with a generic line (
l) and that line
l makes with the normal (
n) to reflecting surface at point
O of incidence, the following relation holds:
where
I is the angle of incidence. Equation (
1) is derived by assuming the rays to be vectors (indeed, the component of two unitary vectors forming an angle (
) is exactly
). When
l coincides with the coordinate axes in succession, the following relations are obtained:
Hamilton imagined a variation (
) of the position of the point of incidence (
), assuming that the incidence ray originates from a point (
) and that the reflected ray converges on
. As the variation of
O is infinitesimal,
is on the tangent plane of the surface in
O and orthogonal to its normal (
n); thus, one can write the following:
where
are the components of
and
are the director cosines of
n. By replacing the expressions of the director cosines from Equation (
2) in Equation (
3), one obtains the following:
According to ordinary geometry, the following relations can be derived:
where
and
indicate the length of the incident and reflexed rays, respectively, as measured from points
O,
P and
Q. It is not difficult to prove that the cosines of the directions of the ray are the partial derivatives of
and
with respect to the Cartesian coordinates; thus, Equation (
4) can be rewritten as follows:
that is:
In the third supplement to
The theory of the system of rays ([
16], p. 89), Hamilton treated refraction with a similar approach, coming to the following relation:
where the symbols have the same meanings as above and
m is the index of refraction. The relation can be further generalized to light passing through media with a varying index of refraction ([
16], p. 104). The index of refraction (
v) is proportional to the inverse of the speed of light in the medium.
where
is the elementary path and Hamilton dubs
V a characteristic function ([
16], p. 108).
Hamilton called his relations the
principle of the least action, with reference to Pierre-Simon Laplace (1749–1827), who obtained Equations (
7) and (
8) with a mechanical approach, assuming that light consists of particles of matter moving with certain velocities that are subjected to forces that are insensible at a sensible distance,
The principle of least action then reduces to this: light arrives from a point outside to a point inside the crystal in such a way that if one adds the product of the straight [path] described outside by its original speed to the product of the straight [path] described inside by the relevant velocity, the sum is a minimum.
(Le principe de la moindre action se réduit donc alors à ce que la lumiere parvient d’un point pris au-dehors, à un point pris dans l’intérieur du cristal; de manière que si l’on ajoute le produit de la droite qu’elle décrit au-dehors, par sa vitesse primitive, au produit de la droite qu’elle décrit au-dedans, par la vitesse correspondante, la somme soit un minimum.)
3. Later Works on Optics
We believe that a clear mark of Hamilton’s view if mechanics is evident in his work, “On a general Method of expressing the Paths of Lights, and of the Planets, by the Coefficients of a Characteristic Function” of 1833 [
14]. Although less mentioned than the two papers that Hamilton dedicated to dynamics in the following two years [
21,
22], this work represents a crucial step in the evolutions of his ideas. Indeed, in the first place, it makes clear that the
characteristic function that Hamilton introduces is derived from his studies in optics; in the second place, it shows that many of the most interesting applications of such functions are in dynamics, so that optics and dynamics can be expressed by means of a similar approach.
The foundational character of “On a general Method…” [
14] is conspicuous from the beginning because Hamilton premises a brief historical introduction, where he synthetically expounds the evolution of optics and the novelty of his approach. Thus, he asserts that, from antiquity, one knows that light spreads in straight lines (the light rays of geometrical optics) if no obstacle is interposed between the source of light and one’s eye; however, if a mirror, a lens, or any reflecting or refracting medium is interposed between the source and our eye, then the path of light is not uniformly straight but broken into segments. Hamilton recalls that, while the reflection law was known from the Hellenistic period, the law of refraction is credited to Willebrord Snell (1580–1626). This version is not historically complete, since a refraction law was known to Arabic scholars, re-discovered in Western countries before Snell and popularized by Descartes. In the 17th century, three fundamental events happened in the investigation of light. Ole Rømer (1644–1710) proved that its speed is finite [
23]; Newton proposed his corpuscular theory in papers beginning in 1675, then collected in his
Opticks of 1704; and Christian Huygens (1629–1695) proposed his undulatory theory in the book,
Traité de la lumière of 1690, which Hamilton described with the following poetic words:
So that great ocean of ether which bathes the furthest stars, is even newly stirred, by waves that spread and grow, from every source of light, till they move and agitate the whole with their mutual vibrations.
According to Hamilton, Lagrange had the enormous merit to have established the whole of mechanics based on the principles of virtual velocity and those of of Jean-Baptiste Le Rond d’Alembert (1717–1783), who reduced dynamics to statics by introducing suitable inertia forces in his Traité de dynamique of 1743, which was published by David in Paris. Therefore, he naturally raised the question as to whether something similar and suitable for optics exists. Hamilton’s answer was positive—a principle according to which ‘analytical’ optics exists and corresponds to the law of least action or, more precisely, the law of stationary action. However, an even more general principle exists—that of varying action—for the discovery of which Hamilton claims the merit. What he wrote is a true research program, describing the law of stationary action as,
“[…] the last step in the ascending scale of induction, respecting linear paths of light, while the other law [of varying action] may be usefully made the first in the descending and deductive way”.
This means that until Hamilton’s discovery of the law of varying action, deductive optics had not been founded.
Hamilton recalled that the merit of having introduced what we now would call a variational principle for a difficult optical problem must be attributed to Fermat, who assumed the principle of least time in refraction. This foresees that light travels quicker in a less dense medium that in a denser one, in contrast with Descartes’ ideas and, above all, Newton’s theory of light. Paradoxically, the variational principle that was generally accepted at that time derived from mechanics, at the beginning, was formulated in an imprecise manner, in contrast to Fermat’s perfect formulation. It was the famous Maupertuis principle of least action. Maupertuis thought that light respected his principle rather than Fermat’s (as, in fact, it does). Euler had the merit to clarify the concept of action and to show that the quantity is minimised in the actual motion of a material point of mass (
m), urged by a central force and moving with velocity a of
v along a curve with an arc length of
, i.e.,
. Lagrange extended this principle to systems of points and Laplace to refraction. Since, in fact, natural phenomena do not always correspond either to minimal or to maximal values of the action but always to a stationary value of this magnitude, it is appropriate to speak of the principle of stationary action rather than of least action. Hamilton aimed to show that a more general principle exists, namely that of varying action ([
14], pp. 6–8).
The principle of stationary action is based on the idea of considering all possible trajectories between two fixed points and showing that, under appropriate conditions, the actual trajectory renders action stationary; on the other hand, the principle of varying action is based on the idea of considering the initial and final points of the searched trajectory as variable so that the first principle can be considered a particular case of the latter when no variation of the end points of the searched trajectory exists.
3.1. Principle of Stationary Action
First, Hamilton presented the easiest example to understand a stationary principle. Suppose that we have to find the shortest distance between two points in Euclidean ambient space, and let
V be the length of a line expressed in Cartesian coordinates, i.e.,
An increment is assigned to each coordinate by setting
, where
is an arbitrary constant that is understood to be small and
,
and
are arbitrary functions of
x,
y and
z, respectively, that vanish at the extremes of integration. By substituting these into (
10) one obtains the following:
To find the stationary value of the functional in (
10), we have to consider
a variable parameter to calculate the following:
The identity between the two integrals in (
12) is obtained through integration by parts and considering that
,
and
vanish at the extremes of integration. The last integral in (
12) vanishes only if
; hence, the searched curve is the segment of a straight line included between the two extremes ([
14], pp. 8–9).
Let us now focus on the other principle, i.e., that of
varying action, which is a distinctive feature of Hamilton’s approach, and come back to the example of the curve length. Suppose that two extremes (
A and
B) are not fixed but vary. In what follows, a prime denotes initial quantities so that
indicates an infinitesimal variation of the initial value of the quantity it refers to. Therefore, in the integration by parts performed in (
12), the following additional term is considered:
where
is the initial element of length with a negative sign. Therefore, the law of varying action is expressed as follows:
Introducing the symbol of variation (
), the last expression in (
14) can be written as follows:
Hamilton wrote the following:
[…] the length of any other line which differs infinitely little from the straight ray in shape and in position, may be considered as equal to its own projection of the ray.
After some mathematics, the following constraints on the characteristic functions are found, which are useful to its determination:
When one has a more complex function in the place of the length (
V), such as action, the mathematical procedure is the same; obviously, there will be difficulties connected to the solution of integrals and differential equations. As an application, Hamilton compared the length of a chord with the length of a circular and elliptic arch ([
14], pp. 9–11).
Hamilton then operated a series of passages of no particular difficulty, proving that the following identities hold:
Let us summarize how Hamilton applied the
law of stationary action in optics. Consider a luminous path with
points of sudden change of direction of luminous rays, e.g., in reflection or refraction. Then, action is expressed as
, where
takes the following form:
and the coefficients (
) depend on the optical properties of the medium and on the geometrical and optical properties of the ray (position, orientation and colour) ([
14], p. 15). If we set
the homogeneity of
makes it is easy to prove that
Following the principle of stationary action, Hamilton incremented the variables as follows:
Exactly as in the case of the shortest line between two points, it is necessary to calculate
Taking into account (
21), it is possible to prove that
so that the last term of (
22), in view of (
23), can be integrated by parts ([
14], p. 16). Furthermore, the following conditions hold:
where symbols with primes denote values at the initial point of the interval (like above, where the initial point is
) and those without superscripts denote values at the end point. After some passages of no particular difficulty, Hamilton expressed the law of stationary action for optics through the following two groups of equations ([
14], p. 17):
In (
25) and (
26),
indicates the semi-normal to the
r-th reflecting or refracting surface at the
r-th point of incidence, with
,
and
representing its director cosines with to the positive semi-axes
x,
y and
z, respectively.
To provide an interpretation of Hamilton’s technique while considering refraction, we recall that the quantity of
in the integral (
18) is a function of the Cartesian coordinates and of the director cosines because the optical properties of the medium and the colour of light depend on them. If the
r-th medium is isotropic,
is its uniform refraction index and
is the speed of the luminous ray in the medium if oriented along the director cosine. For an explanation of Hamilton’s optics, three old but good and clear papers are [
24,
25,
26] (see also [
27], pp. 59–87, 127–171). Therefore, in this case, the characteristic function (or action) is time, and Hamilton’s principle includes Fermat’s principleso that Snell’s law is directly deducible from his principle, expressed in its general form as Equations (
25) and (
26), which also lead to the properties of rectilinear propagation of light in a uniform medium and to the law of reflection.
3.2. Principle of Varying Action
Regarding the
law of varying action applied to optics, the end points of a luminous path must be considered variable so that the initial values in (
24) are nonzero ([
14], p. 19). Using the usual notation of primes to denote the values at the starting point, with no superscripts to denote the final point, the principle of varying action is, thus, stated by the following equations:
Then, the variation of action is
and the expressions for
and
are analogous, changing
x with
y and
z, respectively; on the other hand,
and analogous expressions hold for
and
, changing
with
and with
, respectively. Hamilton clearly explained the meaning of the variation of the initial point as follows:
[…] being, according to the same analogy of notation, the infinitesimal change of the whole integral V, arising from the infinitesimal changes of the initial coordinates, that is, from motion of the initial point along the initial element of the luminous path, so that is the initial element of the integral taken negatively
Hamilton proposes the following interesting explanation: since the action (
V) is a function of the six coordinates of the initial and final points, (
17) also holds with reference to the rectilinear propagation of a ray. If we know the initial coordinates of the ray, as well as its direction and colour, along with the initial properties of the first medium, we can restrict the initial quantities (
), namely the right-hand side of (
17)-2 to a finite variety. Thus, we can determine its left-hand side as well, namely components
,
and
of the gradient of the characteristic function (
V) with respect to the initial coordinates. Therefore, if the form of
V is known and the final coordinates (
) are considered variables, one finds that
,
and
are constant. Analogously, if
V is considered given with respect to the final coordinates and the initial coordinates (
) are the variables, then the values of
,
and
are constant. Therefore, through his technique of varying action, Hamilton achieved the same result as that obtained by applying the principle of stationary action.
It is worth remarking that although the principle of stationary action can be seen as a limit case of that of variable action, as a matter of fact, from a conceptual standpoint, they are two different methods because in the principle of stationary action, one deals with a functional that varies between two extremes and to which the principles of the calculus of variations are applied. On the other hand, varying action is actually treated as a function—not as a functional—the initial and final values of which vary. One deduces, so to speak, what happens between these two values only when analysing their variation. The law of varying action is discussed, e.g., in [
28,
29,
30,
31,
32] (see also [
27], pp. 185–189). The paper we examined represents, in Hamilton’s view, the passage from optics to dynamics insofar as the principle of varying action is applicable to dynamics, as a hint with respect to the planetary theory at the end of this work shows. However, the application to dynamics is clearly explained in [
21,
22], allowing us to analyse these two long papers.
4. The Development of Hamilton’s Thought in Dynamics
Hamilton’s papers of 1834 and 1835 [
21,
22] are his most important contributions to dynamics, the former of which is foundational. He analysed all properties of the characteristic function, worked with Lagrangian coordinates in the configuration space, provided the theoretical bases of his method and offered two significant examples to which his procedure was applied. At the end of the contribution, he introduced his principal function, the features of which were better analysed in [
22] in the context of what he called a perturbation theory, where the phase space was introduced, as well as the equations that we now dub Hamilton–Jacobi equations. On these two papers, there is a certain amount of good literature (see, e.g., [
33] or [
34], pp. 390–401, [
1,
27,
35,
36]). Therefore, we do not analyse their whole contents but restrict ourselves to stressing the aspects connected to the principle of varying action, which Hamilton considered one of his main discoveries, although he is more well-known for the principle of stationary action.
First, he considered what we call a weak formulation of the equations of motion for a system of
n material points not subjected to external forces.
where
represents the infinitesimal variation of a force function that can be written as
, with
being a function of the distance (
r) between any two points with a mass of
. Kinetic energy is classically written as
, and because of the law of living force or, equivalently, the conservation of mechanical energy, it is
,
H representing a special case of that function that was later named a Hamiltonian. This case is special, since here, energy—and not generalised energy—is considered.
In the case of infinitesimal variations, the equation of living force provides
; if we multiply this by an infinitesimal time interval (
) and integrate it, we obtain
Then, Hamilton, after having introduced
H, introduced another function that he named the
characteristic function, which, today, is called “abbreviated action” and defined as follows:
Hamilton spoke of “accumulated living force” ([
21], p. 5), which provides an idea of how he saw the action as the sum (integral) of the kinetic energy of the system at every instant from the beginning to the end of its motion in the considered time interval. Hamilton calculated the variation of
V, and according to calculus of variations and taking into account (
31), he reached obtained following result. Hamilton was not detailed in describing all the mathematical passages, but they are well explained in [
27] (pp. 184–186) as follows:
which is his
law of varying action, where
x,
y and
z denote the final values and
a,
b and
c are the initial values. Hamilton explicitly claimed that the action (
V) can be considered a function of the initial and final values and of function
H so that the three following groups of equations are obtained when the index (
i) assumes all values to lie between 1 and
n:
Hamilton claimed that through his technique, the general problem of dynamics is reduced to the differentiation of the characteristic function (
V) ([
21], p. 5) so that, from his perspective, the main issue becomes the determination of
V. According to Hamilton, the fundamental equation is (
33), which expresses the law of varying action. It is appropriate to recall that such an action varies because the initial and final points are allowed to vary infinitesimally so that the values of
,
,
,
,
and
are nonzero. Therefore, it is clear that
V is a function of the initial and final points, as well as of
H. From a physical point of view, the remarkable property of the law of varying action is that momentum and time can be obtained simply by differentiating
V.
The following comments of Hamilton are of extreme interest. He remarked that Lagrange imagined two fixed configurations for a system of bodies, distinguishing between geometrically possible movements and the real movement, fulfilling all the dynamical conditions. Hamilton continued by observing that Lagrange considered all geometrically possible but dynamically impossible motions, which differ infinitesimally minimally from the actual action; thus, for these geometrically possible motions, the action differs by an infinitely small quantity from its actual value, which justifies the law of least—or, more precisely, stationary—action. However, such a procedure is useful in determining the second-order equations of motion, not in solving them, whereas the law of varying action allows not only for the expression of the equations of motion but also for the determination of their integrals. Therefore, Hamilton considered his principle superior to that of Lagrange. He was very clear.
A different estimate, perhaps, will be formed of that other principle which has been introduced in the present paper under the name of the law of varying action, in which we pass from an actual motion to another motion dynamically possible, by varying the extreme positions of the system, and. (in general) the quantity H, and which serves to express, by means of a single function, not the mere differential equations of motion, but their intermediate and final integrals.
([
21], p. 6. Italics in the text)
The following consideration seems paramount to us: the variation of the initial and final points (Jacobi showed that it is enough to consider the variation of only one of the two) (see [
36], pp. 201–212). On the one hand, Jacobi fully recognised Hamilton’s merits but critically presented Hamilton’s theory. A fundamental text on the variational principles in dynamics is [
10], where, regarding Hamilton’s ideas and Jacobi’s improvements, one can check Chapter V, “The Lagrangian equations of motion”; Chapter VII, “Canonical transformations”; and Chapter VIII, “The partial differential equation of Hamilton-Jacobi”. Among the numerous texts dealing with Lagrange’s and Hamilton’s approaches to dynamics, at least two classical works should be mentioned, namely that of Landau and Lifshitz [
37] (first English edition, 1960; original Russian edition, 1957), where the authors introduced the principle of least action from the beginning of the text, and that of Arnold [
38] (first English edition, 1978; original Russian edition, 1974), where Hamiltonian mechanics was introduced in the context of symplectic geometry. We also recall the papers by Capecchi and Drago [
39], Capobianco et al. [
40], Tomalin [
41] and Van Weerden [
42], allowed Hamiltonians to switch among dynamically possible motions, whereas, if the extremes are fixed, they can only pass from the true motion to other motions that are geometrically but not dynamically possible. This is a confirmation that the principle of stationary action and that of varying action rely upon different conceptual bases. The observation by Yourgrau and Mandelstam that the principle of stationary action “[…] suffers from the limitation that it applies only to virtual paths having the same energy as the real path” ([
35], p. 46) is consistent with our remark on the more general view offered by the principle of varying action, where, in general,
. Obviously, if in (
33), one sets all the variations to be equal to 0, one obtains the law of stationary action.
Hamilton showed that if
is the opposite of the initial potential energy, the following equations are deductible from his principle:
From (
35), the laws of living forces, the motion of the centre of gravity and of the description of areas can be inferred ([
21], pp. 6–10); therefore, the principle of varying action represents a crucial step in the foundation of dynamics. The next step consists of passing to Lagrangian coordinates and to the configuration space, with Hamilton showing that his principle is expressible in a form analogous to that where Cartesian coordinates are used ([
21] p. 12), namely, for a system of
n points.
where
and
represent the final and initial coordinates, respectively. In what followed, Hamilton offered further mathematical and dynamical justifications of his principle, showing how to separate the relative motion of a system from the motion of its gravity centre through the characteristic function and the principle of varying action ([
21], pp. 19–22). Then, he applied his concepts to a system of two bodies ([
21], pp. 26–34), described the motion of a planet or a comet around the Sun ([
21], pp. 35–40) and analysed particular cases of the three-body problem ([
21], pp. 40–48). A section concerning the way to find an approximate value to determine the characteristic function follows, where the explained technique should be applied when an exact value is impossible or very mathematically difficult to obtain. An application of this method to a multiple system is shown in [
21] (pp. 48–56). The theory of approximation was further developed in the penultimate section of [
21] (pp. 56–62). Finally, the
principal function was introduced in [
21] (pp. 62–63); however, since Hamilton’s following paper [
22] dealt with the principal function, we analyse it later.
To see how Hamilton applied the law of varying action to solve a problem, we sketch his example about the system of two bodies. We do not expound upon the complete resolution, instead only focusing on the initial steps necessary for the reader to understand how varying action was introduced and used ([
21], pp. 26–28). Hamilton considered a system of two mass points (
) subjected only to their mutual attraction or repulsion. If their distance is indicated by
r, the force function (
U), as Hamilton said ([
21], p. 26), namely the opposite of the potential energy of the system, takes the form of
, with
being a function of distance such that its gradient expresses the force law. Hence, Newton’s equation can be written as
Therefore, the following system of equations must hold:
Hamilton pointed out that if the initial positions of the two mass points are
and
, to integrate the previous system, it is necessary to assign six relations between the time (
t), the masses (
), the variable coordinates (
), the initial coordinates and their velocities (
) (he used the expression “rates of increase” to indicate velocities [
21] (p. 27)). These six relations are assumed to be known and, combined with the law of living force ([
21], p. 27) in the initial positions of the two points, are expressed as
where
and
H is the total energy, which Hamilton saw as a constant of integration. According to the seven relations supplied by the solutions of system (
38) and Equation (
39), it is possible to determine the time and the initial velocities (
) as functions of the coordinates (
) and of
H.
Furthermore, it is possible to calculate the (reduced) action or accumulated living force of the system as follows:
as a function of the thirteen quantities (
). It is, thus, possible to calculate the variation of
V according to the traditional method.
In contrast to this, Hamilton wrote, “[…] the essence of our method is
forming previously the expression of this variation by our law of varying action” ([
21], p. 28; italics in the original). For the problem of two bodies, the variation of action is
The function of
V is considered a characteristic function of motion from which all the values of the final and initial momenta (Hamilton spoke of “all the intermediate and all the final integrals of all the known differential equations”, [
21], p. 28) can be calculated by its simple derivation. Specifically, for the final values,
while for the initial values,
and for time,
Hamilton also claimed the following:
By this new method, the difficulty of integrating the six known equations of motion of the second order [here (
38)] is reduced to the search and differentiation of a single function
V.
Although the determination of
V can be a complicated mathematical task (and, in most cases, it is), for the determination of
V in the problem of two bodies, see [
21] (pp. 28–34). For an explanation of Hamilton’s mathematical procedures, see [
36] (pp. 170–177). From a physical point of view, the principle of varying action allows for a very easy and clear method.
Further considerations of the principal function are as previously stated in [
22]. Hamilton’s reasoning was developed as follows: given the configuration space and Lagrangian coordinates (
), Lagrange’s equation can be written as follows: since
U is the opposite of potential energy, if one sets
, (
45) obviously coincides with the more common form of Lagrange’s equation, namely
(see, e.g., [
27], pp. 189–190).
Since the kinetic energy (
T) is homogeneous an of the second degree in the generalised velocities, Euler’s theorem on homogeneous functions can be applied so that
and, since
T depends on Lagrangian coordinates as well, it is
so that one eventually obtains ([
22], p. 4)
At this point, Hamilton introduced the quantity (
), which is now called the
momentum conjugate to the Lagrangian velocity (); this implies that, as a subtlety, the kinetic energy (
T) can be considered not only a function of the Lagrangian coordinates and velocities (
) but also a function of the Lagrangian coordinates and conjugate momenta (
).
According to (
48),
and (
49) yields
Thus, comparing the expressions of (
50) and (
51) for the same quantity yields
Since
, it is easy to derive Hamilton’s equations ([
22], pp. 4–5). For an explanation of the passages leading to (
53) with more details than those provided by Hamilton, see [
27] (pp. 191–192).
Next, Hamilton introduced his
principal function (
S), which is called Hamiltonian action today.
If
t and
do not vary,
, and
Taking into account (
53), one immediately obtains
Therefore, Hamilton concluded ([
22], p. 6) that
where
p and
e are the initial values of
and
, respectively, so that
and
. Hamilton concluded this section of his work by claiming the following:
The difficulty of mathematical dynamics is therefore reduced to the search and the study of this one function S, which may for that reason be called Principal function of motion of a system,
which is further evidence of the foundational character of his work.
One can remark that, while in [
21], he had indicated the principal function is
, it is easy to prove that this expression is equivalent to (
54). Obviously, such a statement is what, today, we call Hamilton’s principle, namely that in order to find the true motion of a system, we must find its principal function (or Hamiltonian action;
S) and impose
. Hamilton added a fundamental remark, namely that, given the latter considerations, i.e., the extremes of integration are fixed, the application of the principle of stationary action allows us to obtain Lagrange’s equation of motion. On the other hand, if the extremes are regarded as variable, it is possible to obtain the integrals of such equations. Hamilton wrote the following:
The variation of this definite integral S has therefore the double property, of giving the differential equations of motion for any transformed coordinates when the extreme positions are regarded as fixed, and of giving the integrals of those differential equations when the extreme positions are treated as varying.
Hamilton was, hence, coherent in his thought in all the papers we have analysed. The principles of stationary action and of varying action have two different roles within physics. It is manifest that he found the latter to be more general and important and considered it his own invention and his most remarkable contribution to mathematical physics, although, today, the former is better known and more widely used.