Electromagnetism
Electromagnetism: Fields, Maxwell’s Equations, and Light
What electromagnetism describes
Electromagnetism is the branch of physics concerned with electric and magnetic fields, electric charges and currents, and the ways these interact. It is one of the fundamental interactions in nature and underlies many everyday technologies, including electric motors, generators, and devices that use light to transmit information.
These notes focus on classical electromagnetism, which describes phenomena at scales much larger than individual fundamental particles. At very small scales, electromagnetic interactions are described by quantum electrodynamics (QED), a quantum theory that is beyond the classical account.
The central organizing framework of classical electromagnetism is Maxwell’s equations. They bring together several laws developed through experiments and theory. Maxwell’s major contribution was to synthesize these laws into a unified framework and add a term that completed the relationship between changing electric and magnetic fields.
Fields and the meaning of electric and magnetic fields
A field assigns a physical quantity to each point in space and time. A weather map provides a familiar analogy: at each location, it can assign a temperature or pressure. Because temperature and pressure are single numbers, they are examples of scalar fields.
A field can instead assign a vector to each point. A vector field has both a magnitude and a direction, and can be pictured as an arrow at every location. Wind velocity is one example. The electric and magnetic fields are also vector fields:
The electric field, E, describes electric influence at each point in space.
The magnetic field, B, describes magnetic influence at each point in space.
Both fields can vary over time as well as from place to place. Their arrows indicate the direction of the field, and their lengths represent its magnitude.
Electric fields and Coulomb’s law
Coulomb’s law describes the electrostatic force between two point charges. If charges q1 and q2 are separated by distance r, the magnitude of the force is
where ε0 is the vacuum permittivity, a physical constant.
The force grows with the magnitudes of the charges and decreases with the square of their separation. Like charges repel, while opposite charges attract.
The electric field at a location can be defined as the force that would act on a small positive test charge, divided by the magnitude of that test charge:
The test charge is imagined to be small enough that it does not significantly alter the field being measured. Electric fields provide a way to describe the influence of charges throughout space, rather than describing only the force between a particular pair of charges.
Magnetic fields and currents
Electric current is the movement of electric charge. Experiments on current-carrying wires showed that currents exert magnetic forces on one another. For example, two long, parallel wires carrying currents I1 and I2, separated by distance r, exert a force on each other. In the idealized case of long straight wires, the force per unit length is
where μ0 is the vacuum permeability.
A current in a long straight wire produces a magnetic field whose magnitude at distance r is
Magnetic fields also describe the magnetic influence that acts on moving charges and current-carrying conductors. The force on a particle of charge q moving with velocity v in electric and magnetic fields is given by the Lorentz force law:
The electric field can act on a charge whether it is moving or stationary; the magnetic contribution depends on the charge’s motion.
Divergence and curl
Maxwell’s equations use the nabla operator, written ∇, to describe how vector fields vary in space. It is a differential operator, not an ordinary vector. Two important operations built from it are divergence and curl.
Divergence: sources and sinks
The divergence of a vector field, written ∇⋅F, measures the field’s net outward flow near a point.
A fluid-flow picture helps build intuition:
If more fluid flows outward from a small region than flows inward, that region behaves like a source, and the divergence is positive.
If more fluid flows inward than outward, the region behaves like a sink, and the divergence is negative.
If the inflow and outflow balance, the divergence is zero.
Divergence is a local quantity: it describes the behavior of the field in the neighborhood of a point.
Curl: local rotation
The curl of a vector field, written ∇×F, describes the field’s local tendency to circulate or rotate. It is itself a vector:
Its direction indicates the axis of rotation.
Its magnitude indicates the strength of the local circulation.
The direction follows the right-hand rule: curl the fingers of the right hand in the direction of circulation, and the thumb points along the curl vector.
Divergence and curl are related but distinct. A field can have zero divergence and still have nonzero curl, or vice versa. A fluid analogy can help visualize them, but electric and magnetic fields are not literally fluids.
Maxwell’s equations in differential form
The differential forms of Maxwell’s equations describe electric and magnetic fields locally—point by point. In SI units, the four equations are:
1. Gauss’s law for electricity
Here, ρ is the local electric charge density, or charge per unit volume. This equation says that electric charge density determines the divergence of the electric field.
Positive charge acts as a source of electric-field flux, while negative charge acts as a sink. The equation does not mean that every location where an electric field exists must contain charge. For example, a region can have a nonzero electric field but zero local charge density. The law relates the local divergence of the field to the local charge density.
For a point charge q, the field radiates outward if q is positive and inward if q is negative.
2. Gauss’s law for magnetism
This equation states that the magnetic field has no known point-like sources or sinks. In contrast with electric charges, isolated magnetic north or south poles—magnetic monopoles—have not been observed experimentally.
The zero divergence means that the net magnetic flux through any closed surface is zero. Magnetic field lines do not begin or end at ordinary points in space; in common magnet arrangements, they form continuous loops. A zero divergence does not imply that the field has zero curl or that it must be rotating everywhere.
If magnetic monopoles were discovered, Gauss’s law for magnetism would need to be modified to include magnetic charge density.
3. Faraday’s law of induction
The equation says that a magnetic field changing over time produces a circulating electric field. The negative sign expresses Lenz’s law: the induced effect is oriented so that it opposes the change that produces it.
A changing magnetic field is not the only way to have an electric field, but it is a way to produce a circulating electric field even in the absence of stationary electric charges.
4. Ampère–Maxwell law
Here, J is the current density, the amount and direction of electric current passing through a unit area. The equation states that magnetic-field circulation is associated with two contributions:
Conduction current, represented by J, such as charge moving through a wire.
Changing electric fields, represented by ∂t∂E.
The second contribution is called the displacement-current term. It is needed even in regions with no conducting material, such as a vacuum. Maxwell’s addition makes the law consistent with changing electric fields and enables the theory to describe electromagnetic waves.
How changing fields connect electricity and magnetism
Faraday’s law and the Ampère–Maxwell law show that electric and magnetic fields are interrelated.
Changing magnetic fields produce electric fields
Faraday demonstrated electromagnetic induction using a conducting loop and a magnet. When the magnet moved relative to the loop, the magnetic field through the loop changed, and a current was observed. Simply placing the magnet near the loop without moving it did not produce the same sustained induction in this demonstration.
In field terms, a changing magnetic field produces a circulating electric field. If a conductor lies along that circulation, the electric field can push charges through it, producing current.
The induced voltage around a closed path is called electromotive force, or emf. Despite its name, emf is not a mechanical force; it is energy supplied per unit charge around a circuit. Generators use this principle: rotating magnets or coils change the magnetic flux through circuits and induce an emf.
Currents and changing electric fields produce magnetic fields
Currents produce magnetic fields, as described by the current term in the Ampère–Maxwell law. Since current consists of moving electric charges, and electric charges are associated with electric fields, the movement of charges is associated with changing electric fields.
Maxwell’s displacement-current term extends the relationship beyond conducting wires: a changing electric field can produce magnetic-field circulation even in a vacuum. Together, Faraday’s law and the Ampère–Maxwell law establish that changing electric and magnetic fields can generate one another.
Integral forms: fields over regions and paths
The differential forms describe behavior at individual points. The integral forms instead describe field behavior over complete surfaces and paths. They are often useful when studying a whole region or when symmetry makes the total flux or circulation easier to calculate.
In these equations, a closed surface is denoted by S, and a closed path around its boundary is denoted by C. The symbol dA represents a small oriented area element, while dl represents a small segment along a path.
Gauss’s law for electricity
The total electric flux through a closed surface equals the enclosed charge divided by ε0. Charges outside the surface can affect the field at points on it, but they do not change the net flux determined by the enclosed charge.
Gauss’s law for magnetism
The net magnetic flux through every closed surface is zero. Any magnetic-field flux entering a closed surface is balanced by flux leaving it.
Faraday’s law
The circulation of the electric field around a closed path equals the negative rate of change of magnetic flux through the surface bounded by that path. This is the integral form of electromagnetic induction.
Ampère–Maxwell law
The circulation of the magnetic field around a closed path is determined by the current passing through the surface and by the rate of change of electric flux through that surface.
The differential and integral forms express the same physical laws. The divergence theorem relates the total flux through a closed surface to the divergence within the enclosed volume. Stokes’ theorem relates circulation around a closed path to curl across the surface bounded by that path. These theorems allow the local and global descriptions to be converted into one another.
Potentials and compact formulations
Electric and magnetic fields can also be described using potentials, mathematical quantities from which the fields can be constructed. In a common formulation,
and
where A is the vector potential and ϕ is the electric scalar potential.
This formulation is useful because it builds in Maxwell’s no-magnetic-monopole law and Faraday’s law automatically. The remaining equations determine how the potentials relate to charges and currents, subject to a choice of mathematical convention called a gauge. Potentials are not merely calculation shortcuts; they are also important in advanced classical, relativistic, and quantum treatments.
In relativity, space and time are treated as parts of a single four-dimensional spacetime. The scalar and vector potentials can be combined into a four-potential, while charge density and current density can be combined into a four-current. Tensor notation then expresses Maxwell’s laws compactly and makes the relationship between electricity and magnetism under changes of reference frame clearer. This compact notation packages the equations; it does not remove the underlying physical content.
Electromagnetic waves and the speed of light
A major consequence of Maxwell’s equations is that electric and magnetic fields can propagate as waves. In a vacuum, the fields satisfy wave equations of the form
and
These equations describe disturbances that travel through space. Their propagation speed in a vacuum is
Using the vacuum constants gives
the speed of light in a vacuum.
This result connected the study of electromagnetism with the study of light: light is an electromagnetic wave, consisting of changing electric and magnetic fields. In a vacuum, its speed is fixed by the electromagnetic constants μ0 and ε0. In materials, the propagation speed depends on the properties of the medium.
Key ideas to retain
Electric and magnetic fields describe physical influence throughout space and time, not just forces between particular objects.
Divergence measures local net outward flow; curl measures local circulation.
Electric charge density is related to electric-field divergence, while no magnetic monopoles have been observed.
A changing magnetic field produces a circulating electric field; current and changing electric fields produce magnetic-field circulation.
Maxwell’s equations can be written in local differential form or global integral form.
The equations predict electromagnetic waves whose vacuum speed is the speed of light.
The mathematical symbols in Maxwell’s equations encode relationships between measurable physical quantities: they describe what produces fields, how fields change, and how those changes propagate through space.

Ask anything
We've read this whole study set, so questions about it get the best answers.