Electromagnetic field

It is the fundamental notion for Optics.

Classically

Electric and magnetic fields are connected by Maxwell's equations. They are a summary of a lot of relations worked out during the 19th century to explain how the electric and magnetic fields evolve with time, one influenced by the other. This set of equations was a big achievement for science.

E=ρε0(Gauss’s Law)B=0(Gauss’s Law for Magnetism)×E=Bt(Faraday’s Law)×B=μ0j+μ0ε0Et(Ampère’s Law with Maxwell’s correction)

Here, ρ and j are data about the distribution and movement of the charges affecting the fields. See four-current.

On the other hand, it was discovered by Lorentz that a particle with electric charge q subjected to an electric field E and a magnetic field B experiences a force (Lorentz force law):

F=q[E+v×B]

where v is the speed of the particle.
Observe that to determine the electric field E at a point x and at an instant t, we measure the force on a stationary unit charge placed at x. Once E is determined, we can measure the magnetic field B by observing the forces on unit charges at x moving with velocity vectors i^, j^, and k^. These measurements help fully determine B since E has already been obtained. Thus the Lorentz force law serves to define E and B! See @frankel2011geometry page 119.

Differential forms approach

Indeed, since forces are 1-forms (see axiomatic Newtonian mechanics), ant taking into account Lorentz force law above, we should consider that the electric field is indeed a 1-form, and the magnetic field is a 2-form, so that v×B is, instead, the interior product

v×B=vB.

From this point of view, and assuming the existence of the standard metric g in 3D space, Maxwell's equations can be rewritten as

dsE=ρε0volg(Gauss’s Law)dsB=0(Gauss’s Law for Magnetism)dsE=Bt(Faraday’s Law)dsB=μ0j+μ0ε0Et(Ampère’s Law with Maxwell’s correction)

where is the Hodge star operator for this metric. Here, the symbol ds stands for the exterior derivative in R3, with the subindex s to distinguish from the exterior derivative in 4D below.
In this guise, Maxwell's equations are invariant through any transformation affecting only spatial coordinates. But, what about time? We should be able to transform not only through space but also through the time coordinates (for example when an observer is moving with respect to the other). That is, we can consider that E,B are defined on a 4D space (t,x,y,z), and we have transformations involving these four variables. With this approach, Lorentz force ca be written as

F=quF,

where u is the four-velocity for a suitable 4D metric related to the provided 3D metric g, and with

F:=Edt+B.

Or, in components

Fμν=(0ExEyEz+Ex0+BzBy+EyBz0+Bx+Ez+ByBx0)

Observe that this is a spacetime version of the previous Lorentz's force F=q[EvB], so it has one more component.

Now, observe that Gauss's law for magnetism and Faraday's law can be simply written as

dF=0,

since

dF=dB+dEdt=dsB+dttB+(dsE+dttE)dt=dsB+(tB+dsE)dt.

The other pair of equations arises from considering the four-vector J=(ρ,j1,j2,j3) and use the 4D metric to obtain the 1-form J (see musical isomorphism), and the Hodge dual of F, F. Those equations can be summarized as

dF=J.

Gauss's law and Ampere's law can be recovered from this expression, if we assume that the 4D metric is the Minkowski metric.

In conclusion, given a Lorentzian manifold representing spacetime, an electromagnetic field is, therefore, a 2-form F satisfying Maxwell equations

dF=0,dF=J,

where J is a vector field called current density, which represents the source of the field. Observe that the continuity equation dJ=0 is automatically satisfied. See also evolution of current density and EM field.

Maxwell equations are equivalently given in index notation as

μFνσ+νFσμ+σFμν=0,νFμν=Jμ,

or in Penrose abstract index notation as

[aFbc]=0,aFab=4πJb.

The vector potential

The first Maxwell equation dF=0 implies that, by Poincare lemma, there exists a 1-form A such that F=dA. Indeed, there is no only such an A, but infinite: given A with dA=F, any A=A+dϕ is admissible, where ϕ is any smooth function. When we take a particular ϕ is is said that we are choosing a gauge. It turns out that this has to do with connections in gauge theory, but I don understand yet.

The Lagrangian

We can think that Maxwell's equations are the analogous of the equation of motion of a particle but for the electromagnetic field. So it would be great if they, instead of being obtained empirically (we postulate their existence from the experiments), they were derived from a Lagrangian (also postulated, of course) with the action principle (Euler-Lagrange). That would confer a more compact approach to electromagnetism, giving the same treatment to particles and fields.

The first half of Maxwell's equations are deduced only from math. Susskind (@susskind2017special) calls it the Bianchi identity (page 300).

For the second half, the Lagrangian turns out to be

L=14FμνFμν

when we are in the vacuum. Euler-Lagrange equations from here lead to

νFμν=0

It can be guessed that, if we have the moving charges in the ambient, the Lagrangian would be the same but with the additional term

Jμ(x)Aμ(x)

This modified Lagrangian leads to an action (which is gauge invariant) that yields the equation

νFμν=Jμ

In summary, the action given by:

S=d4xg(14FμνFμν+JμAμ)

leads to Maxwell's equations:

μFνμ=Jν,[μFνκ]=0