Electromagnetism — Maxwell's Equations Explained
Master Maxwell's equations with clear explanations, KaTeX notation, and Mermaid diagrams. Learn Gauss's law, Faraday's law, and electromagnetic wave theory.
Introduction
Maxwell's equations are the foundation of classical electromagnetism, describing how electric and magnetic fields are generated and interact. These four elegant equations unify electricity, magnetism, and optics into a single theoretical framework.
This guide covers Maxwell's equations in both integral and differential forms, explains their physical meaning, and shows how to document electromagnetic concepts effectively using KaTeX and Mermaid diagrams.
Maxwell's Equations Overview
Maxwell's equations consist of four fundamental laws that describe all classical electromagnetic phenomena. Here they are in their most common differential form:
Maxwell's Equations (Differential Form)
The four fundamental equations of electromagnetism
Maxwell's Equations in Differential Form
1. Gauss's Law for Electricity
∇⋅E=ε0ρ2. Gauss's Law for Magnetism
∇⋅B=03. Faraday's Law of Induction
∇×E=−∂t∂B4. Ampère-Maxwell Law
∇×B=μ0J+μ0ε0∂t∂EKey Symbols
Electromagnetic Notation
Standard symbols used in electromagnetism
| Symbol | Meaning | SI Unit |
|---|---|---|
| E | Electric field | V/m |
| B | Magnetic field | T (Tesla) |
| ρ | Charge density | C/m³ |
| J | Current density | A/m² |
| ε0 | Permittivity of free space | F/m |
| μ0 | Permeability of free space | H/m |
| c | Speed of light | m/s |
Fundamental constants:
ε0≈8.854×10−12 F/m μ0=4π×10−7 H/m c=μ0ε01≈3×108 m/sGauss's Law for Electricity
Gauss's law relates the electric field to the charge distribution that creates it. It states that the electric flux through any closed surface is proportional to the enclosed charge.
Gauss's Law
Electric field and charge relationship
Differential Form:
∇⋅E=ε0ρIntegral Form:
∮SE⋅dA=ε0QencPhysical Meaning: Electric field lines originate from positive charges and terminate on negative charges. The divergence of E is non-zero only where charges exist.
Example - Point Charge:
For a point charge q at the origin:
E=4πε0r2qr^Using a spherical Gaussian surface of radius r:
∮SE⋅dA=E⋅4πr2=ε0qElectric Field Diagram
Visualizing electric field lines from a point charge
Rendering diagram...
Gauss's Law for Magnetism
Gauss's law for magnetism states that there are no magnetic monopoles—magnetic field lines always form closed loops. The net magnetic flux through any closed surface is zero.
Gauss's Law for Magnetism
No magnetic monopoles
Differential Form:
∇⋅B=0Integral Form:
∮SB⋅dA=0Physical Meaning: Unlike electric field lines, magnetic field lines have no beginning or end. They always form closed loops. There are no isolated magnetic "charges" (monopoles).
Consequence: If you cut a bar magnet in half, you get two smaller magnets, each with both a north and south pole—never an isolated pole.
Mathematical Implication:
B=∇×Awhere A is the magnetic vector potential. Since the divergence of a curl is always zero:
∇⋅(∇×A)=0Faraday's Law of Induction
Faraday's law describes how a changing magnetic field creates an electric field. This is the principle behind electric generators, transformers, and inductors.
Faraday's Law
Electromagnetic induction
Differential Form:
∇×E=−∂t∂BIntegral Form:
∮CE⋅dl=−dtdΦBwhere the magnetic flux is:
ΦB=∫SB⋅dAPhysical Meaning: A time-varying magnetic field induces a circulating electric field. The negative sign (Lenz's law) indicates the induced field opposes the change in flux.
EMF in a Loop:
E=−dtdΦB=−dtd∫SB⋅dAExample - Rotating Loop:
For a loop of area A rotating with angular velocity ω in a uniform field B:
ΦB=BAcos(ωt) E=BAωsin(ωt)Electromagnetic Induction Diagram
Faraday's law in action
Rendering diagram...
Ampère-Maxwell Law
The Ampère-Maxwell law describes how magnetic fields are generated by electric currents and changing electric fields. Maxwell's crucial addition of the displacement current term completed the equations and predicted electromagnetic waves.
Ampère-Maxwell Law
Magnetic field sources
Differential Form:
∇×B=μ0J+μ0ε0∂t∂EIntegral Form:
∮CB⋅dl=μ0Ienc+μ0ε0dtdΦETwo Source Terms:
-
Conduction current: μ0J — moving charges create magnetic fields
-
Displacement current: μ0ε0∂t∂E — changing electric fields create magnetic fields
Physical Meaning: Magnetic field lines circulate around both electric currents and regions where the electric field is changing.
Example - Long Straight Wire:
For current I in a long wire:
∮CB⋅dl=B⋅2πr=μ0I B=2πrμ0IElectromagnetic Waves
Maxwell's equations predict the existence of electromagnetic waves—self-propagating oscillations of electric and magnetic fields. This was one of the greatest theoretical predictions in physics.
Wave Equation Derivation
Deriving the electromagnetic wave equation
In Free Space (no charges or currents):
∇⋅E=0,∇⋅B=0 ∇×E=−∂t∂B,∇×B=μ0ε0∂t∂EDerivation:
Take the curl of Faraday's law:
∇×(∇×E)=−∂t∂(∇×B)Using the vector identity ∇×(∇×E)=∇(∇⋅E)−∇2E:
−∇2E=−μ0ε0∂t2∂2EWave Equation:
∇2E=μ0ε0∂t2∂2EWave Speed:
c=μ0ε01=299,792,458 m/sPlane Wave Solution
Electromagnetic plane wave propagating in the z-direction
Plane Wave Solution:
For a wave propagating in the z-direction:
E=E0cos(kz−ωt)x^ B=B0cos(kz−ωt)y^Wave Parameters:
- Wave number: k=λ2π
- Angular frequency: ω=2πf
- Phase velocity: c=kω=fλ
Field Relationship:
B0E0=cEnergy Density:
u=21ε0E2+2μ01B2=ε0E2Poynting Vector (energy flux):
S=μ01E×BIntensity:
I=⟨S⟩=21cε0E02Electromagnetic Wave Diagram
Structure of an electromagnetic wave
Rendering diagram...
Integral vs Differential Forms
Maxwell's equations can be written in either integral or differential form. Each has its advantages depending on the problem at hand.
Both Forms Compared
Integral and differential forms side by side
Gauss's Law (Electricity):
| Integral | Differential |
|---|---|
| ∮SE⋅dA=ε0Qenc | ∇⋅E=ε0ρ |
Gauss's Law (Magnetism):
| Integral | Differential |
|---|---|
| ∮SB⋅dA=0 | ∇⋅B=0 |
Faraday's Law:
| Integral | Differential |
|---|---|
| ∮CE⋅dl=−dtdΦB | ∇×E=−∂t∂B |
Ampère-Maxwell Law:
| Integral | Differential |
|---|---|
| ∮CB⋅dl=μ0I+μ0ε0dtdΦE | ∇×B=μ0J+μ0ε0∂t∂E |
Differential form: Best for deriving wave equations, understanding local field behavior, and computational electromagnetics.
Maxwell's Equations in Matter
In materials, we introduce auxiliary fields to account for the response of matter to electromagnetic fields.
Macroscopic Maxwell's Equations
Maxwell's equations in linear, isotropic media
Auxiliary Fields:
Electric displacement: D=ε0E+P=εE
Magnetic field intensity: H=μ0B−M=μB
Maxwell's Equations in Matter:
∇⋅D=ρf ∇⋅B=0 ∇×E=−∂t∂B ∇×H=Jf+∂t∂DConstitutive Relations (linear media):
D=εE,B=μHwhere ε=ε0εr and μ=μ0μr
Applications
Maxwell's equations have countless applications in technology and science. Here are some key examples with their governing equations.
Electromagnetic Applications
Real-world applications of Maxwell's equations
Capacitor:
Electric field between parallel plates:
E=ε0σ=dVCapacitance:
C=dε0AInductor:
Magnetic field in a solenoid:
B=μ0nIInductance:
L=μ0n2VTransformer:
Voltage ratio:
VpVs=NpNsAntenna Radiation:
Radiated power:
P=12πμ0c(cI0ℓω)2Waveguide:
Cutoff frequency:
fc=2acElectromagnetic Spectrum
Applications across the EM spectrum
Rendering diagram...
Best Practices
$E = 100 \text{ V/m}$Common Mistakes
Quick Reference
| Law | Differential Form | Physical Meaning |
|---|---|---|
| Gauss (E) | $\nabla \cdot \vec{E} = \rho/\varepsilon_0$ | Charges create E fields |
| Gauss (B) | $\nabla \cdot \vec{B} = 0$ | No magnetic monopoles |
| Faraday | $\nabla \times \vec{E} = -\partial\vec{B}/\partial t$ | Changing B creates E |
| Ampère-Maxwell | $\nabla \times \vec{B} = \mu_0\vec{J} + \mu_0\varepsilon_0\partial\vec{E}/\partial t$ | Currents and changing E create B |
Key Formulas
| Quantity | Formula |
|---|---|
| Speed of light | $c = 1/\sqrt{\mu_0\varepsilon_0}$ |
| Wave equation | $\nabla^2\vec{E} = \mu_0\varepsilon_0 \partial^2\vec{E}/\partial t^2$ |
| Poynting vector | $\vec{S} = \vec{E} \times \vec{B}/\mu_0$ |
| Energy density | $u = \varepsilon_0 E^2/2 + B^2/(2\mu_0)$ |
Related Content
Physics Equations and Diagrams — Documenting Scientific Concepts
Complete guide to documenting physics concepts with KaTeX equations, Mermaid diagrams, and scientific notation
KaTeX Syntax Quick Reference — Math Equations in Markdown
Complete reference for KaTeX mathematical notation including common formulas, symbols, and usage patterns for technical documentation.
Calculus in Technical Documentation — Derivatives and Integrals
Master calculus notation in technical docs with KaTeX. Learn derivatives, integrals, limits, and differential equations for software, physics, and engineering documentation.
Ready to Start?
Start creating beautiful technical documentation with AutEng.
Get Started with AutEng