Maxwell’s Equations Solutions
Verifying Maxwell’s Equations, Boundary Conditions, and Uniqueness
This lesson develops three connected ideas:
- How to test whether proposed electric and magnetic fields actually satisfy Maxwell’s equations.
- How Maxwell’s equations lead to electromagnetic boundary conditions.
- Why the fields obtained from a valid solution are unique, and how the Maxwell equations relate mathematically and physically.
The central habit is important: a proposed pair of fields is not automatically a solution merely because it looks physically reasonable. Every relevant Maxwell equation must be checked.
1. Time-Harmonic Maxwell Equations
When electromagnetic fields vary sinusoidally with time, it is convenient to represent them using phasors. In this representation, the time dependence is temporarily suppressed.
For a time-harmonic field, the time derivative is replaced by multiplication by jω:
∂t∂⟶jωThus, in a source-free, homogeneous medium, Maxwell’s equations become
∇×E=−jωB ∇×H=jωD ∇⋅B=0 ∇⋅D=0The last equation assumes that the region contains no volume charge. In a general material, the constitutive relations are
D=ϵEand
B=μHFor free space,
ϵ=ϵ0,μ=μ0Recovering the physical time-dependent field
Although time does not appear explicitly in a phasor expression, it has not disappeared physically. Suppose the phasor electric field is E(r). The corresponding physical field is obtained by multiplying by ejωt and taking the real part:
E(r,t)=Re{E(r)ejωt}For example, if the phasor has only a y component,
E(r)=Ey(x)y^then the physical field is
E(x,t)=Re{Ey(x)ejωt}y^The phasor method is therefore a compact way to perform calculations involving sinusoidal time variation.
A time-harmonic expression contains time dependence implicitly; the factor ejωt is restored when the actual field as a function of time is needed.
2. Testing a Proposed Field Solution
Consider the following proposed fields in free space:
E=μ0ϵ0D0cos(ωμ0ϵ0x)y^and
B=−jD0sin(ωμ0ϵ0x)z^The electric field has only a y component, and the magnetic flux density has only a z component. Neither field depends on y or z; both vary only with x.
The proposed solution is valid only if it satisfies all four Maxwell equations.
3. Checking Faraday’s Law
In phasor form, Faraday’s law is
∇×E=−jωBBecause B has only a z component, the right-hand side has only a z component. Therefore, the relevant component of the curl is
(∇×E)z=∂x∂Ey−∂y∂ExSince Ex=0, this reduces to
(∇×E)z=∂x∂EyLeft-hand side
Let
k=ωμ0ϵ0Then
Ey=μ0ϵ0D0cos(kx)Differentiating with respect to x gives
∂x∂Ey=−μ0ϵ0D0ksin(kx)Substituting k,
∂x∂Ey=−μ0ϵ0D0ωμ0ϵ0sin(kx)The square-root factors cancel:
∂x∂Ey=−ωD0sin(kx)Right-hand side
The proposed magnetic flux density is
Bz=−jD0sin(kx)Therefore,
−jωBz=−jω[−jD0sin(kx)]Since (−j)(−j)=−1,
−jωBz=−ωD0sin(kx)The two sides are equal:
∂x∂Ey=−jωBzTherefore, Faraday’s law is satisfied.
This confirms only one of the four equations. The remaining equations must still be checked.
Think About It
Why is it not sufficient to verify only Faraday’s law? A pair of fields may satisfy one relationship between electric and magnetic fields while violating a divergence equation or the other curl equation.
4. Checking Gauss’s Law for the Electric Field
Gauss’s law for the electric field is
∇⋅D=ρvIn the charge-free region under consideration,
ρv=0Since D=ϵ0E and ϵ0 is constant,
∇⋅D=ϵ0∇⋅EThus, it is enough to evaluate ∇⋅E.
The divergence is
∇⋅E=∂x∂Ex+∂y∂Ey+∂z∂EzFor the proposed field:
- Ex=0,
- Ez=0,
- Ey depends on x, not on y.
Therefore,
∂x∂Ex=0,∂y∂Ey=0,∂z∂Ez=0and hence
∇⋅E=0Consequently,
∇⋅D=0Gauss’s law for the electric field is satisfied.
The reason is not merely that the field has one component. The essential point is that the nonzero component, Ey, does not vary in the direction associated with that component, namely y.
5. Checking Gauss’s Law for the Magnetic Field
Gauss’s law for magnetism is
∇⋅B=0The magnetic field has only a z component, so
∇⋅B=∂x∂Bx+∂y∂By+∂z∂BzHere, Bx=By=0, and Bz depends on x, not on z. Therefore,
∂z∂Bz=0and
∇⋅B=0Thus, Gauss’s law for magnetism is also satisfied.
Physically, ∇⋅B=0 expresses the fact that magnetic field lines do not begin or end at isolated magnetic charges. Instead, magnetic field lines form continuous loops or extend in a way that maintains zero net magnetic flux through a closed surface.
6. Checking the Ampère–Maxwell Law
In a source-free dielectric, there is no conduction current, so the Ampère–Maxwell law becomes
∇×H=jωϵ0EBecause E has only a y component, only the y component of the curl needs to be checked:
(∇×H)y=∂z∂Hx−∂x∂HzSince Hx=0,
(∇×H)y=−∂x∂HzUsing B=μ0H,
Hz=μ0BzTherefore,
(∇×H)y=−μ01∂x∂BzThe proposed Bz is
Bz=−jD0sin(kx)Differentiating,
∂x∂Bz=−jD0kcos(kx)Thus,
(∇×H)y=−μ01[−jD0kcos(kx)]Substituting k=ωμ0ϵ0,
(∇×H)y=jωD0μ0ϵ0cos(kx)Now evaluate the right-hand side:
jωϵ0Ey=jωϵ0μ0ϵ0D0cos(kx)Since
μ0ϵ0ϵ0=μ0ϵ0the right-hand side becomes
jωD0μ0ϵ0cos(kx)This matches the left-hand side. Therefore, the Ampère–Maxwell law is satisfied.
Because all four Maxwell equations are satisfied, the proposed fields form a valid time-harmonic solution.
7. Interpretation as Standing Waves
The fields vary with position through cos(kx) and sin(kx):
Ey∝cos(kx) Bz∝sin(kx)This type of spatial dependence is characteristic of a standing wave. Standing waves commonly occur when electromagnetic fields are confined between conducting boundaries. Reflections from the conductors combine with the original fields, producing fixed spatial patterns rather than a pattern that simply travels in one direction.
The electric and magnetic fields are shifted relative to each other in space: where the cosine electric field reaches an extreme, the sine magnetic field may be zero, and vice versa. Such spatial relationships are a defining feature of the standing-wave structure.
8. Electromagnetic Boundary Conditions
Maxwell’s equations also determine how fields behave at the interface between two materials.
Two important interfaces are:
- a dielectric–dielectric boundary,
- a dielectric–conductor boundary.
The boundary conditions are obtained by applying the integral forms of Maxwell’s equations to very small surfaces or loops that straddle the interface.
Let region 1 and region 2 meet at a boundary. The subscripts 1 and 2 identify the field values immediately on either side.
9. Normal Component of Magnetic Flux Density
The integral form of Gauss’s law for magnetism is
∮SB⋅dS=0A very small pillbox crossing the boundary has contributions from its two flat faces. As the pillbox height approaches zero, the side contribution vanishes, leaving
Bn1=Bn2Therefore, the normal component of B is always continuous:
Bn1=Bn2This condition applies at both dielectric–dielectric and dielectric–conductor interfaces.
The physical reason is that magnetic flux cannot terminate at a magnetic charge. If the normal magnetic flux density were discontinuous, the boundary would behave like a source or sink of magnetic flux.
10. Normal Component of Electric Flux Density
Gauss’s law for the electric field is
∮SD⋅dS=QenclosedFor a small pillbox around the interface, any charge concentrated on the surface contributes a surface charge density ρs. The resulting boundary condition is
Dn1−Dn2=ρsThus,
Dn1−Dn2=ρsDielectric–dielectric boundary
At an interface between two dielectrics, the idealized surface charge density is zero:
ρs=0Therefore,
Dn1=Dn2The normal component of D is continuous.
Dielectric–conductor boundary
A conductor can support charge concentrated in a very thin layer near its surface. Therefore, ρs may be nonzero, and the normal component of D can be discontinuous:
Dn1−Dn2=ρsThe discontinuity is exactly accounted for by the surface charge.
Think About It
What would a jump in the normal component of D indicate? It would indicate that electric charge is concentrated on the interface, because the difference in flux entering and leaving a tiny pillbox must be supplied by enclosed surface charge.
11. Tangential Component of the Electric Field
Faraday’s law in integral form is
∮CE⋅dl=−∫S∂t∂B⋅dSConsider a very small rectangular loop that crosses the boundary. Let the length of the loop along the interface be Δl, and let its height across the boundary be Δw.
The line integral gives approximately
Et1Δl−Et2ΔlThe surface on the right-hand side has area approximately
ΔlΔwTherefore, the magnetic-flux term is proportional to
∂t∂BΔlΔwAs the loop height approaches zero,
Δw→0If the time derivative of the magnetic field remains finite, the right-hand side approaches zero. After canceling Δl,
Et1=Et2Thus, the tangential electric field is continuous:
Et1=Et2This condition applies at both dielectric–dielectric and dielectric–conductor boundaries, provided the fields remain finite and do not become singular.
12. Tangential Component of the Magnetic Field
The Ampère–Maxwell law in integral form is
∮CH⋅dl=Iconduction+∫S∂t∂D⋅dSFor the small rectangular loop, the left-hand side becomes
Ht1Δl−Ht2ΔlThe displacement-current contribution is proportional to
∂t∂DΔlΔwAs Δw→0, this term vanishes if the field remains finite.
Dielectric–dielectric interface
There is no conduction current in an ideal dielectric. Therefore, both the conduction-current term and the shrinking displacement-current term vanish, giving
Ht1=Ht2Thus, the tangential magnetic field is continuous across a dielectric–dielectric boundary:
Ht1=Ht2Ideal conductor–dielectric interface
A conductor can carry current concentrated in a very thin region near its surface. In an ideal conductor, the conductivity is treated as becoming extremely large:
σ→∞At the same time, the electric field inside the ideal conductor becomes very small. The product of a very large conductivity and a very small electric field can remain finite:
J=σEThis finite limiting current is called a surface current density or current sheet. It is concentrated in a thin layer inside the conductor, associated physically with the skin depth.
Consequently, the tangential magnetic field need not be continuous at a conductor–dielectric interface. Its discontinuity is supported by the surface current on the conductor wall.
13. Summary of Boundary Conditions
The principal boundary conditions are:
| Field component | Dielectric–dielectric boundary | Boundary with a conductor |
|---|---|---|
| Normal B | Continuous | Continuous |
| Normal D | Continuous if ρs=0 | May jump by ρs |
| Tangential E | Continuous | Continuous under finite-field assumptions |
| Tangential H | Continuous if no surface current | May jump because of surface current |
In compact form:
Bn1=Bn2 Dn1−Dn2=ρs Et1=Et2For the magnetic field, a surface current produces a jump in the tangential component. Without surface current, the tangential components are continuous.
14. Uniqueness of Electromagnetic Solutions
A uniqueness theorem states that once the appropriate sources and boundary conditions have been specified, the electric and magnetic fields satisfying Maxwell’s equations are uniquely determined, apart from irrelevant constants in certain formulations.
Earlier, uniqueness may be discussed in terms of electromagnetic potentials. The same general idea applies directly to the fields:
If electric and magnetic fields satisfy Maxwell’s equations, the specified source conditions, and the required boundary conditions, then the resulting electromagnetic solution is unique.
This matters because it means that finding one valid solution is enough. There cannot be a second physically different field configuration satisfying exactly the same complete set of requirements.
Radiation conditions
For an open region extending to infinity, the boundary does not physically form a closed finite surface. A condition at infinity is then needed. The fields must decay sufficiently rapidly as the distance r becomes large.
The radiation conditions can be expressed as
rE→0and
rB→0as r→∞.
These conditions ensure that the fields decay faster than, or sufficiently relative to, a 1/r behavior so that unwanted solutions at infinity are excluded.
Think About It
Why is a condition at infinity necessary for an open electromagnetic problem? Without it, additional mathematical field patterns could remain possible far from the sources, preventing the boundary-value problem from selecting one unique solution.
15. Are All Four Maxwell Equations Independent?
A subtle question is whether every Maxwell equation must be included independently, or whether some can be derived from the others.
The relevant vector-calculus identity is
∇⋅(∇×A)=0for any sufficiently smooth vector field A.
Applying the identity to Faraday’s law
Start with
∇×E=−∂t∂BTake the divergence of both sides:
∇⋅(∇×E)=−∂t∂(∇⋅B)The left-hand side is zero, so
0=−∂t∂(∇⋅B)Therefore,
∂t∂(∇⋅B)=0This shows that ∇⋅B must be constant in time:
∇⋅B=Kwhere K is a time-independent constant.
Mathematics alone does not force K to equal zero. The conclusion K=0 depends on the physical observation that magnetic charges have not been detected. If isolated magnetic charges existed, they would act as sources or sinks of magnetic flux.
Thus, the statement
∇⋅B=0has both:
- a mathematical connection to Faraday’s law,
- an experimental foundation based on the observed absence of magnetic charge.
The zero value represents the physical content that magnetic field lines do not originate or terminate on magnetic monopoles.
16. The Ampère–Maxwell Law and Charge Continuity
Now consider the Ampère–Maxwell equation:
∇×H=J+∂t∂DTaking the divergence of both sides gives
∇⋅(∇×H)=∇⋅J+∂t∂(∇⋅D)Using the curl-divergence identity,
0=∇⋅J+∂t∂(∇⋅D)If Gauss’s law is used,
∇⋅D=ρvthen
∇⋅J+∂t∂ρv=0This is the continuity equation:
∇⋅J+∂t∂ρv=0The continuity equation expresses conservation of electric charge. If current flows out of a region, the charge stored in that region must decrease. Charge cannot simply appear or disappear.
Which equation is fundamental?
There is an important logical distinction.
One may begin with the Ampère–Maxwell law and Gauss’s law, then derive the continuity equation. Alternatively, one might try to treat the continuity equation as a source condition and use it to motivate Gauss’s law.
The standard convention is to treat
∇⋅D=ρvas one of Maxwell’s equations because it directly relates the electric field to the charge distribution. The continuity equation is then added as a conservation law governing the sources.
The fields and sources play different roles:
- Charge and current distributions act as sources.
- Electric and magnetic fields are generated by those sources.
- The fields then exert forces on charges and currents.
The four Maxwell equations describe the field relationships, while the continuity equation ensures that the source distributions obey charge conservation.
17. Why Charge Conservation Matters
If charge conservation were ignored, a theory could permit charge to be created without an associated physical process. Such unrestricted creation of charge would conflict with the conservation principles of physics and could imply unphysical production of energy.
The continuity equation prevents this by enforcing a local balance:
- charge leaving a volume reduces the charge stored there,
- charge entering a volume increases the stored charge,
- changes in charge density must be associated with current flow.
This is why Maxwell’s equations must be interpreted together with physical conservation laws and experimental facts. Mathematical manipulation can reveal relationships among equations, but the physical meaning of those equations comes from how fields and sources behave in nature.
Comprehensive Review
A proposed electromagnetic field is a valid Maxwell solution only after all relevant equations have been checked. For the fields
E=μ0ϵ0D0cos(ωμ0ϵ0x)y^and
B=−jD0sin(ωμ0ϵ0x)z^the following facts establish validity:
- Faraday’s law is satisfied because ∂Ey/∂x equals −jωBz.
- Gauss’s law for the electric field is satisfied because ∇⋅E=0.
- Gauss’s law for magnetism is satisfied because ∇⋅B=0.
- The Ampère–Maxwell law is satisfied because ∇×H=jωϵ0E.
The spatial sine and cosine dependence is characteristic of standing waves, which can occur in regions bounded by conductors.
At material boundaries:
- The normal component of B is continuous.
- The normal component of D changes by the surface charge density.
- The tangential component of E is continuous when fields remain finite.
- The tangential component of H is continuous across a dielectric–dielectric interface but can be discontinuous at a conductor because of surface current density.
Finally, valid solutions are unique when Maxwell’s equations, sources, boundary conditions, and—where necessary—radiation conditions are specified. Taking the divergence of a curl equation reveals relationships such as ∂(∇⋅B)/∂t=0 and the charge-continuity equation, but mathematical relationships do not replace the physical and experimental principles that complete Maxwell’s theory.

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