Physlib.Electromagnetism.Dynamics.Lagrangian
The Lagrangian in electromagnetism
i. Overview
In this module we define the Lagrangian density for the electromagnetic field in presence of a current density. We prove properties of this lagrangian density, and find it's variational gradient.
The lagrangian density is given by `L = -1/(4 μ₀) F_{μν} F^{μν} - A_μ J^μ`
In this implementation we set `μ₀ = 1`. It is a TODO to introduce this constant.
ii. Key results
- `freeCurrentPotential` : The potential energy from the interaction of the electromagnetic potential with a free Lorentz current density. - `gradFreeCurrentPotential` : The variational gradient of the free current potential. - `lagrangian` : The lagrangian density for the electromagnetic field in presence of a Lorentz current density. - `gradLagrangian` : The variational gradient of the lagrangian density. - `gradLagrangian_eq_electricField_magneticField` : The variational gradient of the lagrangian density expressed in Gauss's and Ampère laws.
iii. Table of contents
- A. Free current potential - A.1. Shifts in the free current potential under shifts in the potential - A.2. The free current potential has a variational gradient - A.3. The free current potential in terms of the scalar and vector potentials - A.4. The variational gradient of the free current potential - B. The Lagrangian density - B.1. Shifts in the lagrangian under shifts in the potential - B.2. Lagrangian in terms of electric and magnetic fields - C. The variational gradient of the lagrangian density - C.1. The lagrangian density has a variational gradient - C.2. The definition of, `gradLagrangian`, the variational gradient of the lagrangian density - C.3. The variational gradient in terms of the gradient of the kinetic term - C.4. The lagrangian density has the variational gradient equal to `gradLagrangian` - C.5. The variational gradient in terms of the field strength tensor - C.6. The lagrangian gradient recovering Gauss's and Ampère laws - C.7. The lagrangian gradient in tensor notation - D. The gradient of the lagrangian density for distributions - D.1. The gradient of the free current potential - D.1.1. Free current potential as a tensor - D.2. The gradient of the lagrangian density - D.2.1. The lagrangian gradient as a tensor
iv. References
- https://quantummechanics.ucsd.edu/ph130a/130_notes/node452.html
- https://ph.qmul.ac.uk/sites/default/files/EMT10new.pdf
A. Free current potential
A.1. Shifts in the free current potential under shifts in the potential
A.2. The free current potential has a variational gradient
A.3. The free current potential in terms of the scalar and vector potentials
A.4. The variational gradient of the free current potential
B. The Lagrangian density
The lagrangian density for the electromagnetic field in presence of a current density `J` is `L = -1/(4 μ₀) F_{μν} F^{μν} - A_μ J^μ`
B.1. Shifts in the lagrangian under shifts in the potential
B.2. Lagrangian in terms of electric and magnetic fields
C. The variational gradient of the lagrangian density
C.1. The lagrangian density has a variational gradient
C.2. The definition of, `gradLagrangian`, the variational gradient of the lagrangian density
C.3. The variational gradient in terms of the gradient of the kinetic term
C.4. The lagrangian density has the variational gradient equal to `gradLagrangian`
C.5. The variational gradient in terms of the field strength tensor
C.6. The lagrangian gradient recovering Gauss's and Ampère laws
C.7. The lagrangian gradient in tensor notation
D. The gradient of the lagrangian density for distributions
D.1. The gradient of the free current potential
We define this through the lemma `gradFreeCurrentPotential_eq_sum_basis`
#### D.1.1. Free current potential as a tensor
D.2. The gradient of the lagrangian density
Defined through `gradLagrangian_eq_kineticTerm_sub`.
#### D.2.1. The lagrangian gradient as a tensor
27 declarations
Free current potential
For a spatial dimension , given an electromagnetic potential field , a Lorentz current density field , and a spacetime point , the free current potential is defined as the Minkowski inner product of and at : where denote the temporal components and denote the spatial components. This quantity represents the local potential energy density resulting from the interaction between the electromagnetic potential and the free current density.
For a given spatial dimension , let be an electromagnetic potential field, be a Lorentz current density field, be a constant Lorentz vector, and be a point in spacetime. The free current potential at for the potential shifted by (defined by ) is equal to the sum of the free current potential of at and the Minkowski inner product of and : where denotes the Minkowski inner product.
The variational gradient of is
For a spatial dimension , let be an electromagnetic potential field and be a Lorentz current density field, both of which are infinitely differentiable (). The functional that maps the potential to the free current potential possesses a variational gradient at . This gradient is the vector field that maps each spacetime point to the Lorentz vector: where is the Minkowski matrix , are the components of the current density, and are the standard basis vectors of the Lorentz vector space.
For a given spatial dimension and a free space configuration with speed of light , let be an electromagnetic potential field, be a Lorentz current density field, and be a point in spacetime with time and spatial position . The free current potential at , defined by the Minkowski product , is equal to the product of the scalar potential and the charge density minus the dot product of the vector potential and the current density : where the scalar potential and charge density correspond to the temporal components, and correspond to the spatial components of the respective four-vectors.
Variational gradient of the free current potential
For a spacetime with spatial dimension , given an electromagnetic potential field and a Lorentz current density field , the variational gradient of the free current potential is the functional derivative of the integrated interaction potential with respect to . It is defined as: where is the Minkowski inner product (the free current potential) at the spacetime point . The result is a vector field that maps each spacetime point to a Lorentz vector.
The Variational Gradient of is
For a spatial dimension , let be an infinitely differentiable () electromagnetic potential field and be an infinitely differentiable Lorentz current density field. The variational gradient of the free current potential with respect to the potential is the vector field defined by: where denotes the Minkowski inner product, is the Minkowski matrix, are the components of the current density field, and are the standard basis vectors of the Lorentz vector space.
The variational gradient of the free current potential equals
Let be the number of spatial dimensions and be the physical parameters of free space, including the speed of light . Let be an infinitely differentiable () electromagnetic potential field and be an infinitely differentiable Lorentz current density field. At any spacetime point , the variational gradient of the free current potential with respect to (the functional derivative of the integrated interaction potential) is given by: where is the charge density at , are the components of the 3-current density at , is the temporal basis vector, and are the spatial basis vectors of the Lorentz vector space.
The -th component of equals
For a spatial dimension , let be an infinitely differentiable electromagnetic potential field and be an infinitely differentiable Lorentz current density field. For any point in spacetime and any index , the -th component of the variational gradient of the free current potential with respect to is given by: where is the Minkowski inner product and is the Minkowski matrix. In this identity, the -th component of the current density is evaluated by converting the vector to its equivalent tensor representation.
Lagrangian density
For a spatial dimension , let denote the physical parameters of free space. Given an electromagnetic 4-potential field , a Lorentz 4-current density field , and a point in spacetime , the electromagnetic Lagrangian density is defined as the difference between the kinetic term of the field and the interaction potential with the current: where is the kinetic energy density of the electromagnetic field (typically ) and is the free current potential (the Minkowski inner product ).
For a spatial dimension and free space parameters , let be an electromagnetic potential field, be a Lorentz current density field, be a constant Lorentz vector, and be a point in spacetime. The electromagnetic Lagrangian density evaluated at for the potential shifted by (defined by the field ) is equal to the Lagrangian density for at minus the Minkowski inner product of and : where denotes the Minkowski inner product.
For a spatial dimension , let denote the physical parameters of free space, including the vacuum permittivity and the vacuum permeability . Given a twice-differentiable electromagnetic 4-potential field , a Lorentz 4-current density field , and a point in spacetime with time and spatial position , the electromagnetic Lagrangian density at is expressed as: where: - is the electric field vector. - are the components of the magnetic field matrix. - is the scalar potential and is the charge density. - are the components of the vector potential and are the components of the current density.
The Variational Gradient of the Lagrangian is
For a spatial dimension , let denote the physical parameters of free space. Let be an infinitely differentiable () electromagnetic potential field and be an infinitely differentiable Lorentz current density field. The functional that maps the potential to the electromagnetic Lagrangian density possesses a variational gradient at . This gradient is equal to the difference between the variational gradient of the kinetic term and the variational gradient of the free current potential: where is the kinetic energy density of the field and is the interaction potential with the current density.
Variational gradient of the electromagnetic Lagrangian
Given a spatial dimension , physical parameters of free space , an electromagnetic 4-potential field , and a Lorentz 4-current density field , this definition represents the variational gradient (functional derivative) of the action functional with respect to the potential . The resulting function maps each point in spacetime to a Lorentz vector, corresponding to the Euler–Lagrange expression for the electromagnetic field.
equals
For a spacetime with spatial dimension , let be the physical parameters of free space. Let be an infinitely differentiable () electromagnetic potential field and be an infinitely differentiable Lorentz current density field. Then the variational gradient of the electromagnetic Lagrangian with respect to the potential is equal to the difference between the variational gradient of the kinetic term and the variational gradient of the free current potential: where is the kinetic energy density of the electromagnetic field and is the Minkowski interaction term.
The Variational Gradient of the Lagrangian is
Let be the spatial dimension and denote the physical parameters of free space. Let be an infinitely differentiable () electromagnetic potential field and be an infinitely differentiable Lorentz current density field. The functional that maps the potential to the electromagnetic Lagrangian density possesses a variational gradient at . This variational gradient is given by the function , which maps each point in spacetime to a Lorentz vector representing the Euler–Lagrange expression for the electromagnetic field.
Let be the spatial dimension and be the parameters of free space with magnetic permeability . For an infinitely differentiable () electromagnetic potential field and an infinitely differentiable Lorentz current density field , the variational gradient of the Lagrangian density with respect to at a spacetime point is given by: where are the components of the electromagnetic field strength matrix (Faraday tensor), is the Minkowski metric, is the -th component of the current density, and are the standard basis vectors for the Lorentz vector space.
Variational gradient of the Lagrangian in terms of , , , and
Let be the number of spatial dimensions and be the physical parameters of free space, including the speed of light , the vacuum permittivity , and the vacuum permeability . Let be an infinitely differentiable () electromagnetic potential field and be an infinitely differentiable Lorentz current density field. At any spacetime point with time coordinate and spatial coordinates , the variational gradient of the electromagnetic Lagrangian with respect to (the Euler–Lagrange expression) is given by: where is the electric field, is the magnetic field matrix (related to the components of ), is the charge density, are the components of the current density , is the temporal basis vector, and are the spatial basis vectors. In the case where and , this recovers the expressions for Gauss's Law and Ampère's Law.
The -th component of equals
For a spatial dimension , let be the physical parameters of free space with permeability . Let be an infinitely differentiable electromagnetic potential field and be an infinitely differentiable Lorentz current density field. For any point in spacetime and any index , the -th component of the variational gradient of the electromagnetic Lagrangian with respect to is given by: where is the Minkowski matrix and is the electromagnetic field strength tensor. In this identity, the term is evaluated by mapping the resulting tensor expression back to its Lorentz vector representation.
Variational gradient of the free current potential
For a given spatial dimension , this linear map represents the variational gradient of the free current potential with respect to the electromagnetic potential. It maps a distributional Lorentz current density to a vector-valued distribution. For a test function in the Schwartz space , the resulting Lorentz vector is given by where are the diagonal entries of the Minkowski metric , is the -th component of the distributional current density, and is the standard basis for Lorentz vectors.
Variational gradient of the free current potential as a sum over basis vectors
For a distributional Lorentz current density and a test function , the variational gradient of the free current potential evaluated at is given by the weighted sum: where are the diagonal entries of the Minkowski metric , denotes the -th component of the distribution acting on the test function , and is the -th standard basis vector for Lorentz vectors.
The temporal component of the variational gradient of the free current potential is
For a given spatial dimension , let be the speed of light in a free space environment. For any distributional Lorentz current density and any test function in the Schwartz space , the temporal component (the component at index ) of the variational gradient of the free current potential, when evaluated at , is equal to the speed of light multiplied by the value of the distributional charge density applied to : where the index refers to the temporal component in the Lorentz vector basis.
The spatial components of the variational gradient of the free current potential equal
For a given spatial dimension and a free space environment , let be a distributional Lorentz current density and be a test function in the Schwartz space. The -th spatial component (indexed by ) of the variational gradient of the free current potential with respect to the electromagnetic potential, when applied to , is equal to the negative of the -th component of the spatial current density distribution evaluated at . Mathematically, this is expressed as: where denotes the spatial indices in the dimensional space-time, and represents the spatial part of the Lorentz current density .
The components of the gradient of the free current potential equal
For any spatial dimension , let be a distributional Lorentz current density and be a test function in the Schwartz space. For a spacetime index , the -th component of the variational gradient of the free current potential evaluated at is equal to the product of the -th diagonal element of the Minkowski metric and the -th component of the distribution acting on : where . The right-hand side is expressed using the tensor representation of the Lorentz vector components.
Variational gradient of the electromagnetic Lagrangian density
Given a spatial dimension , a free space environment (providing physical constants such as and ), a distributional electromagnetic potential , and a distributional Lorentz current density , the variational gradient of the Lagrangian density with respect to is a Lorentz vector-valued distribution. It is defined as the difference between the variational gradient of the kinetic term (associated with the field strength tensor ) and the variational gradient of the free current potential (associated with the interaction ): The resulting distribution maps test functions on space-time to Lorentz vectors.
The temporal component of is
For any spatial dimension , let be a free space environment with magnetic permeability and speed of light . Let be a distributional electromagnetic potential and be a distributional Lorentz current density. For any test function in the Schwartz space , the temporal component (index ) of the variational gradient of the Lagrangian density evaluated at is given by: where is the distributional electric field associated with , is the distributional charge density associated with , and denotes the application of the distribution to the test function.
The spatial components of the variational gradient of the electromagnetic Lagrangian recover Ampère's Law
Given a spatial dimension and a free space environment (with permeability and speed of light ), let be a distributional electromagnetic potential and be a distributional Lorentz current density. For any test function in the Schwartz space and any spatial index , the -th spatial component of the variational gradient of the Lagrangian density with respect to , evaluated at , is given by: where is the -th component of the distributional electric field, is the -th component of the magnetic field matrix (representing the spatial components of the field strength tensor ), and is the -th component of the spatial current density distribution.
The -th component of equals
For any spatial dimension , let be a free space environment with magnetic permeability . Given a distributional electromagnetic potential , a distributional Lorentz current density , and a test function in the Schwartz space , the -th component of the variational gradient of the Lagrangian density evaluated at is given by: where is the Minkowski metric, is the electromagnetic field strength tensor, is the -th component of the current density distribution, and denotes the distributional derivative with respect to the -th coordinate (with implicit summation over ).
