Although, unlike non-relativistic mechanics, the relativistic Lagrangian is not expressed as difference of kinetic energy with potential energy, the relativistic Hamiltonian corresponds to total energy in a similar manner but without including rest energy. The form of the Lagrangian also makes the relativistic action functional proportional to the proper time of the path in spacetime.
In covariant form, the Lagrangian is taken to be:[1][2]
retain their form in special relativity, provided the Lagrangian generates equations of motion consistent with special relativity. Here r = (x, y, z) is the position vector of the particle as measured in some lab frame where Cartesian coordinates are used for simplicity, and
is the coordinate velocity, the derivative of position r with respect to coordinate timet. (Throughout this article, overdots are with respect to coordinate time, not proper time). It is possible to transform the position coordinates to generalized coordinates exactly as in non-relativistic mechanics, r = r(q, t). Taking the total differential of r obtains the transformation of velocity v to the generalized coordinates, generalized velocities, and coordinate time
remains the same. However, the energy of a moving particle is different from non-relativistic mechanics. It is instructive to look at the total relativistic energy of a free test particle. An observer in the lab frame defines events by coordinates r and coordinate timet, and measures the particle to have coordinate velocity v = dr/dt. By contrast, an observer moving with the particle will record a different time, this is the proper time, τ. Expanding in a power series, the first term is the particle's rest energy, plus its non-relativistic kinetic energy, followed by higher order relativistic corrections;
where · is the dot product. The relativistic kinetic energy for an uncharged particle of rest massm0 is
[math]\displaystyle{ T = (\gamma(\dot{\mathbf{r}}) - 1)m_0c^2 }[/math]
and we may naïvely guess the relativistic Lagrangian for a particle to be this relativistic kinetic energy minus the potential energy. However, even for a free particle for which V = 0, this is wrong. Following the non-relativistic approach, we expect the derivative of this seemingly correct Lagrangian with respect to the velocity to be the relativistic momentum, which it is not.
The definition of a generalized momentum can be retained, and the advantageous connection between cyclic coordinates and conserved quantities will continue to apply. The momenta can be used to "reverse-engineer" the Lagrangian. For the case of the free massive particle, in Cartesian coordinates, the x component of relativistic momentum is
and similarly for the y and z components. Integrating this equation with respect to dx/dt gives
[math]\displaystyle{ L = -\frac{m_0c^2}{\gamma(\dot{\mathbf{r}})} + X(\dot{y},\dot{z}) \,, }[/math]
where X is an arbitrary function of dy/dt and dz/dt from the integration. Integrating py and pz obtains similarly
[math]\displaystyle{ L = -\frac{m_0c^2}{\gamma(\dot{\mathbf{r}})} + Y(\dot{x},\dot{z}) \,,\quad L = -\frac{m_0c^2}{\gamma(\dot{\mathbf{r}})} + Z(\dot{x},\dot{y}) \,, }[/math]
where Y and Z are arbitrary functions of their indicated variables. Since the functions X, Y, Z are arbitrary, without loss of generality we can conclude the common solution to these integrals, a possible Lagrangian that will correctly generate all the components of relativistic momentum, is
[math]\displaystyle{ L = -\frac{m_0c^2}{\gamma(\dot{\mathbf{r}})}\,, }[/math]
where X = Y = Z = 0.
Alternatively, since we wish to build a Lagrangian out of relativistically invariant quantities, take the action as proportional to the integral of the Lorentz invariant line element in spacetime, the length of the particle's world line between proper times τ1 and τ2,[nb 1]
[math]\displaystyle{ S = \varepsilon \int_{\tau_1}^{\tau_2} d\tau = \varepsilon \int_{t_1}^{t_2} \frac{dt}{\gamma(\dot{\mathbf{r}})} \,,\quad L = \frac{\varepsilon}{\gamma(\dot{\mathbf{r}})} = \varepsilon\sqrt{1-\frac{\dot{\mathbf{r}}^2}{c^2}}\,, }[/math]
where ε is a constant to be found, and after converting the proper time of the particle to the coordinate time as measured in the lab frame, the integrand is the Lagrangian by definition. The momentum must be the relativistic momentum,
which requires ε = −m0c2, in agreement with the previously obtained Lagrangian.
Either way, the position vector r is absent from the Lagrangian and therefore cyclic, so the Euler–Lagrange equations are consistent with the constancy of relativistic momentum,
in the non-relativistic limit when v is small, the higher order terms not shown are negligible, and the Lagrangian is the non-relativistic kinetic energy as it should be. The remaining term is the negative of the particle's rest energy, a constant term which can be ignored in the Lagrangian.
For the case of an interacting particle subject to a potential V, which may be non-conservative, it is possible for a number of interesting cases to simply subtract this potential from the free particle Lagrangian,
and the Euler–Lagrange equations lead to the relativistic version of Newton's second law. The derivative of relativistic momentum with respect to the time coordinate is equal to the force acting on the particle:
assuming the potential V can generate the corresponding force F in this way. If the potential cannot obtain the force as shown, then the Lagrangian would need modification to obtain the correct equations of motion.
It is also true that if the Lagrangian is explicitly independent of time and the potential V(r) independent of velocities, then the total relativistic energy
[math]\displaystyle{ E = \frac{\partial L}{\partial \dot{\mathbf{r}}}\cdot\dot{\mathbf{r}} - L = \gamma(\dot{\mathbf{r}})m_0c^2 + V(\mathbf{r}) }[/math]
is conserved, although the identification is less obvious since the first term is the relativistic energy of the particle which includes the rest mass of the particle, not merely the relativistic kinetic energy. Also, the argument for homogenous functions does not apply to relativistic Lagrangians.
The extension to N particles is straightforward, the relativistic Lagrangian is just a sum of the "free particle" terms, minus the potential energy of their interaction;
where all the positions and velocities are measured in the same lab frame, including the time.
The advantage of this coordinate formulation is that it can be applied to a variety of systems, including multiparticle systems. The disadvantage is that some lab frame has been singled out as a preferred frame, and none of the equations are manifestly covariant (in other words, they do not take the same form in all frames of reference). For an observer moving relative to the lab frame, everything must be recalculated; the position r, the momentum p, total energy E, potential energy, etc. In particular, if this other observer moves with constant relative velocity then Lorentz transformations must be used. However, the action will remain the same since it is Lorentz invariant by construction.
A seemingly different but completely equivalent form of the Lagrangian for a free massive particle, which will readily extend to general relativity as shown below, can be obtained by inserting[nb 1]
[math]\displaystyle{ S = \varepsilon \int_{t_1}^{t_2} \frac{1}{c}\sqrt{\eta_{\alpha\beta}\frac{dx^\alpha}{dt}\frac{dx^\beta}{dt}} dt \quad\Rightarrow\quad L = \frac{\varepsilon}{c}\sqrt{\eta_{\alpha\beta}\frac{dx^\alpha}{dt}\frac{dx^\beta}{dt}} }[/math]
where ε = −m0c2 is retained for simplicity. Although the line element and action are Lorentz invariant, the Lagrangian is not, because it has explicit dependence on the lab coordinate time. Still, the equations of motion follow from Hamilton's principle
[math]\displaystyle{ \delta S = 0\,. }[/math]
Since the action is proportional to the length of the particle's worldline (in other words its trajectory in spacetime), this route illustrates that finding the stationary action is akin to finding the trajectory of shortest or largest length in spacetime. Correspondingly, the equations of motion of the particle are akin to the equations describing the trajectories of shortest or largest length in spacetime, geodesics.
For the case of an interacting particle in a potential V, the Lagrangian is still
[math]\displaystyle{ L = \frac{\varepsilon}{c}\sqrt{\eta_{\alpha\beta}\frac{dx^\alpha}{dt}\frac{dx^\beta}{dt}} - V }[/math]
which can also extend to many particles as shown above, each particle has its own set of position coordinates to define its position.
Covariant formulation
In the covariant formulation, time is placed on equal footing with space, so the coordinate time as measured in some frame is part of the configuration space alongside the spatial coordinates (and other generalized coordinates).[3] For a particle, either massless or massive, the Lorentz invariant action is (abusing notation)[4]
[math]\displaystyle{ S = \int_{\sigma_1}^{\sigma_2} \Lambda(x^\nu(\sigma),u^\nu(\sigma),\sigma) d\sigma }[/math]
where the irrelevant factor of 1/2 is allowed to be scaled away by the scaling property of Lagrangians. No inclusion of mass is necessary since this also applies to massless particles. The Euler–Lagrange equations in the spacetime coordinates are
which is the geodesic equation for affinely parameterized geodesics in spacetime. In other words, the free particle follows geodesics. Geodesics for massless particles are called "null geodesics", since they lie in a "light cone" or "null cone" of spacetime (the null comes about because their inner product via the metric is equal to 0), massive particles follow "timelike geodesics", and hypothetical particles that travel faster than light known as Tachyons follow "spacelike geodesics".
This manifestly covariant formulation does not extend to an N particle system, since then the affine parameter of any one particle cannot be defined as a common parameter for all the other particles.
Note that for a large value of [math]\displaystyle{ gt }[/math], we have [math]\displaystyle{ 1 \lt \lt (\gamma_0 v_0 - gt)^2 \Rightarrow \sqrt{1+\frac{(\gamma_0 v_0-gt)^2}{c^2}} \approx \frac{\gamma_0 v_0 - gt}{c} }[/math] and see that [math]\displaystyle{ \dot{x}(t\rightarrow \infty) = c }[/math].
Picking [math]\displaystyle{ u\equiv 1 + \frac{(\gamma_0 v_0 - gt)^2}{c^2} \Rightarrow du = -\frac{2g}{c^2}(\gamma_0 v_0 - gt)dt }[/math], we have
[math]\displaystyle{
x(u) = -\frac{c^2}{2g}\int \frac{1}{\sqrt{u}} du
}[/math]
Then note that [math]\displaystyle{ \int u^{-\frac{1}{2}}du = 2u^{\frac{1}{2}} + C }[/math] for some undetermined constant [math]\displaystyle{ C }[/math] so that
[math]\displaystyle{
x(u) = -\frac{c^2}{g} \sqrt{u} + B
}[/math]
Using [math]\displaystyle{ u = 1 + \frac{(\gamma_0 v_0 - gt)^2}{c^2} }[/math]:
Recalling that [math]\displaystyle{ x(t=0) = x_0 }[/math]:
[math]\displaystyle{
B -\frac{c^2}{g} \sqrt{1 + \frac{(\gamma_0 v_0)^2}{c^2}} = x_0
}[/math]
Since [math]\displaystyle{ \gamma_0 = \frac{1}{\sqrt{1-\frac{v_0^2}{c^2}}} }[/math], we have [math]\displaystyle{ 1 + \frac{(\gamma_0 v_0)^2}{c^2} = \gamma_0^2 }[/math] and come to
[math]\displaystyle{
B = x_0 + \frac{c^2}{g}\gamma_0
}[/math]
Plugging in the definition of [math]\displaystyle{ \gamma_0 = \frac{1}{\sqrt{1-\frac{v_0^2}{c^2}}} }[/math] and using [math]\displaystyle{ \gamma_0^2 = 1 + \frac{(\gamma_0 v_0)^2}{c^2} }[/math] brings the solution to
The Newtonian limit of this solution can be obtained by making the following approximations, which are equivalent to stating that [math]\displaystyle{ \dot{x}(t) \lt \lt c }[/math]:
then rearranging, and using the definition of the antisymmetric electromagnetic tensor, gives the covariant form of the Lorentz force law in the more familiar form,
is the non-gravitational force on the particle. (For m to be independent of time, we must have [math]\displaystyle{ f_{\alpha} \tfrac{d x^{\alpha}}{d t} = 0 }[/math].)
General relativistic test particle in an electromagnetic field
In general relativity, the first term generalizes (includes) both the classical kinetic energy and the interaction with the gravitational field. For a charged particle in an electromagnetic field, the Lagrangian is given by
If the four spacetime coordinates xµ are given in arbitrary units (i.e. unitless), then gµν in m2 is the rank 2 symmetric metric tensor which is also the gravitational potential. Also, Aµ in V·s is the electromagnetic 4-vector potential.
There exists an equivalent formulation of the relativistic Lagrangian, which has two advantages:
it allows for a generalization to massless particles and tachyons;
it is based on an energy functional instead of a length functional, such that it does not contain a square root.
In this alternative formulation, the Lagrangian is given by
where [math]\displaystyle{ \lambda }[/math] is an arbitrary affine parameter and [math]\displaystyle{ e }[/math] is an auxiliary parameter that can be viewed as an einbein field along the worldline. In the original Lagrangian with the square root the energy-momentum relation appears as a primary constraint that is also a first class constraint. In this reformulation this is no longer the case. Instead, the energy-momentum relation appears as the equation of motion for the auxiliary field [math]\displaystyle{ e }[/math]. Therefore, the constraint is now a secondary constraint that is still a first class constraint, reflecting the invariance of the action under reparameterization of the affine parameter [math]\displaystyle{ \lambda }[/math]. After the equation of motion has been derived, one must gauge fix the auxiliary field [math]\displaystyle{ e }[/math]. The standard gauge choice is as follows:
If [math]\displaystyle{ m^2 \gt 0 }[/math], one fixes [math]\displaystyle{ e = |m|^{-1} }[/math]. This choice automatically fixes [math]\displaystyle{ \lambda=\tau }[/math], i.e. the affine parameter is fixed to be the proper time.
If [math]\displaystyle{ m^2 \lt 0 }[/math], one fixes [math]\displaystyle{ e = |m \, c|^{-1} }[/math]. This choice automatically fixes [math]\displaystyle{ \lambda=s }[/math], i.e. the affine parameter is fixed to be the proper length.
If [math]\displaystyle{ m=0 }[/math], there is no choice that fixes the affine parameter [math]\displaystyle{ \lambda }[/math] to a physical parameter. Consequently, there is some freedom in fixing the auxiliary field. The two common choices are:
Fix [math]\displaystyle{ e = 1 }[/math]. In this case, [math]\displaystyle{ e }[/math] does not carry a dependence on the affine parameter [math]\displaystyle{ \lambda }[/math], but the affine parameter is measured in units of time per unit of mass, i.e. [math]\displaystyle{ [\lambda]= T/M }[/math].
Fix [math]\displaystyle{ e = c^2 E(\lambda) }[/math], where [math]\displaystyle{ E }[/math] is the energy of the particle. In this case, the affine parameter is measured in units of time, i.e. [math]\displaystyle{ [\lambda]= T }[/math], but [math]\displaystyle{ e }[/math] retains a dependence on the affine parameter [math]\displaystyle{ \lambda }[/math].
which takes the same values in all inertial frames of reference. Here ηαβ are the components of the Minkowski metric tensor, dxα = (cdt, dr) = (cdt, dx, dy, dz) are the components of the differential position four-vector, the summation convention over the covariant and contravariant spacetime indices α and β is used, each index takes the value 0 for timelike components, and 1, 2, 3 for spacelike components, and
is a shorthand for the square differential of the particle's position coordinates. Dividing by c2dt2 allows the conversion to the lab coordinate time as follows,