1. Introduction
The background space and time of non-relativistic classical mechanics (CM) is described by the Galilean metrics
and
, where
t is time and
x,
y, and
z are Cartesian coordinates that are associated with an inertial frame of reference [
1]. The metrics are invariant with respect to rotations, translations and boots, which form the Galilean transformations. In Newtonian dynamics, the Galilean transformations induce a gauge transformation [
2], which is called the Galilean gauge [
3]. The presence of this gauge guarantees that the Newton’s law of inertia is invariant with respect to the Galilean transformations, but it also shows that its Lagrangian is not [
2,
3].
A method to remove this gauge was recently proposed [
4], and the process involves the so-called gauge functions, whose nature and origin are different than the Galilean gauge; in other words, the Galilean gauge and gauge functions are different phenomena in CM. One physical property of these functions is that they can be used to remove the unwanted Galilean gauge and make the Lagrangian Galilean invariant [
4]. The main objective of this paper is to demonstrate that these gauge functions can also be used to introduce forces into otherwise undriven dynamical systems.
Different gauge transformations are known in CM and they lead to infinite gauge potentials, which in the zero-order become the electromagnetic potentials, and in the first-order are identified as the electromagnetic and gravitational potentials [
5,
6]. Gauge transformations in the Lagrangian and Hamiltonian formalism of CM, and the resulting diffeomorphism-induced gauge symmetries in CM, were also investigated [
7], with applications to General Relativity. However, these gauge transformations and their studies are not relevant to the gauge functions that are described in this paper.
In this paper, we generalize the gauge functions derived in [
4], and use them to account for external forces acting on a dynamical system. We present a general method to find these gauge functions and apply them to simple (linear, undamped, undriven, and one-dimensional) oscillators, with the purpose to demonstrate how such undriven oscillators can be converted into driven ones. It is suggested that the presented method can be applied to other dynamical systems and these gauge function-introduced forces may give more physical insight into the connection between forces in CM and gauge-introduced interactions in quantum field theory (QFT) [
8].
For the simple oscillators, the independent variable
t is time and the dependent variable
is a displacement. Let
be an linear differential operator, with
c being a constant whose value may change from one dynamical system to another, and let
be a set of all ordinary differential equations (ODEs) of the form
; depending on the physical meaning of
and
c, the ODEs of
may describe different oscillators, including pendulums. General solutions of these ODEs are well-known and they can be written as
, where
and
are integration constants, and
and
are the solutions given in terms of the elementary functions [
9,
10].
The Lagrangian formalism is established for the ODEs of
. The formalism has always played an important role in obtaining equations of motion of dynamical systems [
10]. For the conservative dynamical systems, the existence of Lagrangians is guaranteed by the Helmholtz conditions [
11], which can also be used to derive the Lagrangians. The procedure of finding the Lagrangians is called the inverse (or Helmholtz) problem of calculus of variations and there are different methods to solve this problem [
12,
13]. We solve the Helmholtz problem and find two families of Lagrangians that are classified as primary and general. Within each family, two separate classes of Lagrangians are considered, namely, standard and null Lagrangians.
For standard Lagrangians (SLs), the kinetic and potential energy, like terms and the term with the square of dependent variable, are easily identified [
10,
12,
13], and these Lagrangians have been known since the original work of Lagrange in the 18th century. On the other hand, null (or trivial) Lagrangians (NLs) contain neither the kinetic nor potential energy like terms, and they make the Euler–Lagrange (E–L) equation to vanish identically. Moreover, NLs can also be expressed as the total derivative of a scalar function [
14,
15], which is called a gauge function [
3]. Our main objective is to obtain the gauge functions for the constructed NLs for the ODEs of
.
The fact that the NLs and their gauge functions can be omitted when the original equations are derived is obvious (e.g., [
2,
3]); however, it is also commonly recognized that the NLs are important in studies of symmetries of Carathéodory’s theory of fields of extremals and in integral invariants [
15,
16]. There is a large body of literature on the NLs and on their mathematical applications (e.g., [
17,
18,
19,
20,
21]). Moreover, the NLs play an important role in studies of elasticity, where they physically represent the energy density function of materials [
22,
23], and making Lagrangians invariant in the Galilean invariant theories [
4].
The main goals of this paper are: (i) construction of the SLs and NLs and the gauge functions corresponding to the NLs; (ii) using these gauge functions to determine the energy function and define forces; (iii) deriving new SLs that give the equation of motion with the forces; (iv) identifying the gauge functions that can be used to define forces in CM; and, (v) using the gauge functions to convert an undriven oscillator into a driven one. The presented approach is self-consistent and it shows that introducing the gauge functions into CM is the equivalent of defining the time-dependent driving forces.
The outline of the paper is as follows: in
Section 2, the Principle of Least Action and Lagrangians are described;
Section 3 deals with the Lagrangian formalism for the considered ODEs and the gauge functions are also derived; in
Section 4, the energy function for the gauge functions, new definition of forces, and the resulting inhomogeneous equations of motion for oscillators with different forces are presented and discussed; finally,
Section 5 provides our conclusions.
2. Principle of Least Action and Lagrangians
The Lagrange formalism deals with a functional
, where
is the action and
is an ordinary and smooth function to be determined. Typically,
is given by an integral over a smooth function
, which is called a Lagrangian and
is a derivative of
x with respect of
t. The integral defined in this way is mathematical representation of the Principle of Least Action or Hamilton’s Principle [
24], which requires that
, where
is the variation known also as the functional (Fréchet) derivative of
with respect to
. Using
, the E–L equation is obtained, and this equation is a necessary condition for the action to be stationary (to have either a minimum or maximum or saddle point).
We solve the inverse problem of the calculus of variations for the ODEs of
and find their SLs and NLs; the validity of the Helmholtz conditions [
6] for these Lagrangians is also discussed. Different methods were previously developed to determine the SLs for different ODEs [
25,
26,
27,
28,
29,
30,
31,
32,
33,
34] and some of these methods [
25,
26] will be used in the next section. Based on the original work of Lagrange in the 18th century, the SLs contain the difference between the kinetic and potential energy like terms, which, here, will be represented by the difference between the square of the first order derivative of the dependent variable and the term with the square of dependent variable [
10,
12,
13].
On the other hand, the NLs contain neither kinetic nor potential energy like terms but instead they depend on terms with a mixed dependent variable and its derivative [
14,
20],
and terms with the mixed dependent variable (or its derivative) with the independent variable, and also terms that only depend on the dependent variable. The derived NLs are new and they are restricted to the lowest order in the dependent variable. For any NL, the E–L equation identically vanishes, and any NL can be expressed as the total derivative of their gauge functions. Our main results are novel gauge functions obtained for the NLs and their role in converting undriven dynamical systems into driven ones.
4. Application: From Undriven to Driven Oscillators
4.1. Primary Gauge and Energy Functions
Let us consider a harmonic oscillator and identify
with its displacement variable. The equation of motion of the oscillator is
with
, where
k is a spring constant and
m is mass. The characteristic frequency of the oscillator is then
, and the equation of motion can be written as
It must be noted that Equation (
21) also describes a linear and undamped pendulum if
is replaced by
, where
is an angle of the pendulum, and
is replaced by the pendulum characteristic frequency
, where
g is gravitational acceleration and
L is length of the pendulum. With these replacements, the results presented below for the oscillator are also valid for the pendulum.
According to Equation (
7), the primary Lagrangian
for these harmonic oscillators can be written as
where the primary standard Lagrangian is given by
and the primary gauge function
is
and the partial primary gauge functions are:
and
Note that the total derivative of each one of these partial gauge functions gives no contribution to the resulting equation of motion. However, these gauge functions may be used to impose Galilean invariance of SLs [
4].
Because the gauge functions
and
explicitly depend on time
t, the resulting primary null Lagrangian is also a function of time. This requires that the primary energy function,
, is calculated [
36,
37] using
which gives
with the first two terms on the RHS representing the energy function
for the primary standard Lagrangian and the other two terms corresponding to the primary energy function
for the primary gauge function, so that
.
In general,
, with
, where
is the total energy of system and
is its Hamiltonian, corresponding to the primary standard Lagrangian, and given by
or
Using the Hamilton equations, the equation of motion for the harmonic oscillator given by Equation (
21) is obtained. A similar result is derived when the total derivative of
is equal to the negative partial time derivative of
, which can be written [
36] as
which again gives Equation (
21). It must be noted that
is a conserved quantity and that
. This shows that the equation of motion of the harmonic oscillator is also obtained when the energy function is used instead of the primary Lagrangian
or the Hamiltonian
.
The above results show that among the four primary gauge functions, , , , and , the first and third do not contribute to the primary energy function, but the second and fourth do contribute although each one differently. The partial gauge function breaks into two parts and only the part that depends on contributes to the energy function. However, the partial gauge function fully contributes to the energy function. Let us call the primary F-gauge function, and the primary E-gauge function.
The reasons for these names follows. First, the term represents energy if, and only if, the coefficient is a constant acceleration, or a constant force per mass, so that is work done by this force on the system. This clearly shows that the primary partial gauge function can be used to introduce forces that cause the constant acceleration. Second, the primary partial gauge function introduces a constant energy shift in the system.
Let us define
, where
represents a constant acceleration or constant force per mass. Similarly,
is a constant energy shift that could be caused by the force. Subsequently, the primary energy function can be written as
This demonstrates that some gauge functions can be used to introduce external forces that drive the system but other gauge functions may either generate a shift of the total energy of the system, or simply have no effect on the system. In other words, only gauge functions that depend explicitly on time may be used to introduce forces in CM. These are new phenomena caused exclusively by including the gauge functions into CM.
4.2. General Gauge and Energy Functions
The above results can be now extended to the general standard and null Lagrangians and their gauge functions with application to a harmonic oscillator and pendulum. According to Equations (
10) through (
12), the general Lagrangian for the oscillator can be written as
where the general standard and null Lagrangians are
and
with the partial gauge functions
being given by Equations (
13) through (
16).
The general energy function,
, can be calculated by substituting
into Equation (
29), which gives
where the general energy function for the general standard Lagrangian is
and the general energy function for the general gauge function can be written as
Because
, then
and, as expected, when
is substituted into the Hamilton equations, the equation of motion for the harmonic oscillator (see Equation (
21)) is obtained. The same equation of motion is derived when the total derivative of
is equal to the negative partial time derivative of
(see Equation (
32)).
The obtained results show that the general gauge functions, and also contribute to the general energy function, in addition, to the and contributions. We generalize the previous definitions and now call the general F-gauge function, and the general E-gauge function. However, no special names are given to the gauge functions and , and only their contributions to forces is shown below.
We may define the following functions:
and
and see that all gauge functions contribute to them. Using these definitions, we write
which shows that the gauge functions allow us to introduce two functions, one that depends linearly on displacement, but is arbitrary in time, and the other that is an arbitrary function of time only. This general formula for the energy function may be further simplified by taking
= const, which means that the shift of the potential energy is not time-dependent and remains constant all the time. Subsequently, the general energy function becomes
and the function
reduces to the primary energy function if
, and the function
becomes
(see Equation (
33)).
4.3. Time-Dependent Forces
Having obtained the general energy function
, for the equations of motion of undriven oscillators, we now demonstrate that these systems can be converted into driven ones. This can be done by adding the extra terms
and
to the general standard Lagrangian. Let us separate the dependent and independent variables in
and write
. The result is
where
and
are given by Equations (
23) and (
35), respectively. Substituting
into the E–L equation, we obtain
This equation describes a driven oscillator with
being a time-dependent force. The equation also represents a linear undamped pendulum if
is replaced by
and
is replaced by
. In a special case of the primary null Lagrangian with constant coefficients (see Equation (
7)), the force
is the constant force
.
Let us point out that the resulting inhomogeneous equation of motion is also obtained from the Hamilton equations when the energy function is used instead of the Hamiltonians and . This is expected as the Hamiltonians represent the total energy of the system, which is not conserved, but the energy function is a constant of motion for the considered driven harmonic oscillator. This shows that our approach is self-consistent and based on the principles of CM. However, by accounting for the gauge functions and by showing their relationships to forces, this paper describes a new phenomenon in CM, which formally allows converting undriven dynamical systems into driven ones. The converting process can be used for any linear dynamical system for whose equation of motion is known.