1. Home
  2. Explore
  3. Physics
  4. Electricity & Vector Basics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Electricity & Vector Basics

Maxwell's Equations and Electromagnetism: A Comprehensive Study Guide

1. Vector Fundamentals

Scalars and Vectors

  • A scalar has only magnitude — a numerical value. Example: mass (e.g., 70 kg) is scalar; it has no direction.

  • A vector has both magnitude and direction. Example: weight is a vector because it depends on gravitational pull. Weightlessness occurs when gravity is absent, but mass is never zero.

  • Vectors are represented graphically as arrows (length = magnitude, orientation = direction) or in component form:

a=axi^+ayj^+azk^\mathbf{a} = a_x \hat{i} + a_y \hat{j} + a_z \hat{k}a=ax​i^+ay​j^​+az​k^

where ax,ay,aza_x, a_y, a_zax​,ay​,az​ are the components along the x, y, z axes.

2. Vector Multiplication

Two fundamental ways to multiply vectors exist, both essential to electromagnetism.

Dot Product (Scalar Product)

  • Multiplies parallel components of two vectors.

  • Formula: a⋅b=axbx+ayby+azbz=∣a∣∣b∣cos⁡θ\mathbf{a} \cdot \mathbf{b} = a_x b_x + a_y b_y + a_z b_z = |\mathbf{a}||\mathbf{b}|\cos\thetaa⋅b=ax​bx​+ay​by​+az​bz​=∣a∣∣b∣cosθ

  • Result is a scalar (no direction).

  • Physical example: Work W=F⋅dW = \mathbf{F} \cdot \mathbf{d}W=F⋅d. Force and displacement are vectors, but energy (work) is scalar.

Cross Product (Vector Product)

  • Multiplies perpendicular components; result is a vector perpendicular to both original vectors.

  • Formula (determinant form):

a×b=∣i^j^k^axayazbxbybz∣\mathbf{a} \times \mathbf{b} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ a_x & a_y & a_z \\ b_x & b_y & b_z \end{vmatrix}a×b=​i^ax​bx​​j^​ay​by​​k^az​bz​​​

which expands to:

a×b=(aybz−azby)i^+(azbx−axbz)j^+(axby−aybx)k^\mathbf{a} \times \mathbf{b} = (a_y b_z - a_z b_y)\hat{i} + (a_z b_x - a_x b_z)\hat{j} + (a_x b_y - a_y b_x)\hat{k}a×b=(ay​bz​−az​by​)i^+(az​bx​−ax​bz​)j^​+(ax​by​−ay​bx​)k^
  • Magnitude: ∣a×b∣=∣a∣∣b∣sin⁡θ|\mathbf{a} \times \mathbf{b}| = |\mathbf{a}||\mathbf{b}|\sin\theta∣a×b∣=∣a∣∣b∣sinθ

  • Physical example: Torque τ=r×F\boldsymbol{\tau} = \mathbf{r} \times \mathbf{F}τ=r×F — a twisting force with direction (clockwise or counterclockwise).

Cross Product Direction: The Triangle Mnemonic

Arrange the unit vectors x^,y^,z^\hat{x}, \hat{y}, \hat{z}x^,y^​,z^ in a clockwise triangle:

  • If the cross product goes clockwise (e.g., y^×z^\hat{y} \times \hat{z}y^​×z^), the result is positive along the third direction (+x^+\hat{x}+x^).

  • If it goes counterclockwise (e.g., z^×y^\hat{z} \times \hat{y}z^×y^​), the result is negative (−x^-\hat{x}−x^).

This trick works for all combinations and prevents sign errors when computing three-component torques or curls.


3. The Del Operator (∇\nabla∇)

James Clerk Maxwell needed to describe how electric and magnetic fields change in space. The Del operator (also called nabla) is a vector of partial derivatives:

∇=∂∂xi^+∂∂yj^+∂∂zk^\nabla = \frac{\partial}{\partial x}\hat{i} + \frac{\partial}{\partial y}\hat{j} + \frac{\partial}{\partial z}\hat{k}∇=∂x∂​i^+∂y∂​j^​+∂z∂​k^

Because Del is a vector, it can undergo dot and cross products with other vectors, producing two fundamentally different measures:

Divergence (∇⋅\nabla \cdot∇⋅)

  • Dot product of Del with a vector field F\mathbf{F}F:

∇⋅F=∂Fx∂x+∂Fy∂y+∂Fz∂z\nabla \cdot \mathbf{F} = \frac{\partial F_x}{\partial x} + \frac{\partial F_y}{\partial y} + \frac{\partial F_z}{\partial z}∇⋅F=∂x∂Fx​​+∂y∂Fy​​+∂z∂Fz​​
  • Measures how much the field spreads out (diverges) from a point.

  • Positive divergence = net outflow (source); negative = net inflow (sink); zero = field lines are continuous.

Curl (∇×\nabla \times∇×)

  • Cross product of Del with a vector field:

∇×F=(∂Fz∂y−∂Fy∂z)i^+(∂Fx∂z−∂Fz∂x)j^+(∂Fy∂x−∂Fx∂y)k^\nabla \times \mathbf{F} = \left( \frac{\partial F_z}{\partial y} - \frac{\partial F_y}{\partial z} \right)\hat{i} + \left( \frac{\partial F_x}{\partial z} - \frac{\partial F_z}{\partial x} \right)\hat{j} + \left( \frac{\partial F_y}{\partial x} - \frac{\partial F_x}{\partial y} \right)\hat{k}∇×F=(∂y∂Fz​​−∂z∂Fy​​)i^+(∂z∂Fx​​−∂x∂Fz​​)j^​+(∂x∂Fy​​−∂y∂Fx​​)k^
  • Measures how much the field curls around a point (circulation density).

  • Analogous to torque: three component equations result from the cross product structure.


4. Historical Context: The Scientists Behind the Equations

Coulomb (1785)

  • Used a torsion balance to show that electric force ∝q1q2/r2\propto q_1 q_2 / r^2∝q1​q2​/r2 (inverse square law).

  • Also proved that charges reside only on the outer surface of a conductor.

Faraday (1837–1845)

  • Built a giant conductive cage (Faraday cage) and found no excess charge on the inner surface — the cage shields interior from external electric fields.

  • Proposed that charged objects emit lines of electric force and magnets emit lines of magnetic force.

Orsted (1820)

  • Discovered that an electric current in a wire deflects a magnetic compass needle — first experimental link between electricity and magnetism.

Ampere (1820–1826)

  • Hypothesized that all magnetism comes from electricity.

  • Wound wire into a solenoid (helix) and found it acts exactly like a bar magnet.

  • Derived Ampere's force law: force per unit length between two parallel current-carrying wires:

FL=μ0I1I22πr\frac{F}{L} = \frac{\mu_0 I_1 I_2}{2\pi r}LF​=2πrμ0​I1​I2​​

where μ0\mu_0μ0​ is the permeability of free space.

Faraday (1831)

  • Discovered electromagnetic induction: a changing magnetic field induces current in a nearby coil.

  • Realized that cutting or breaking magnetic lines of force induces current.

Maxwell (1855–1864)

  • Mathematically modeled Faraday's lines of force using an analogy to fluid flow (tubes of incompressible fluid).

  • Used Gauss's theorem (surface integrals to volume integrals) to relate charge enclosed to flux.

  • Added the displacement current term, completing the set of four equations.

  • Predicted that light is an electromagnetic wave traveling at speed c=1/μ0ε0c = 1/\sqrt{\mu_0 \varepsilon_0}c=1/μ0​ε0​​.


5. Maxwell's Equations — Differential Form

5.1 Gauss's Law for Electricity

∇⋅E=ρε0\nabla \cdot \mathbf{E} = \frac{\rho}{\varepsilon_0}∇⋅E=ε0​ρ​
  • Electric flux through a closed surface equals the enclosed charge divided by ε0\varepsilon_0ε0​.

  • Positive divergence (∇⋅E>0\nabla \cdot \mathbf{E} > 0∇⋅E>0) means more positive charge inside, so field lines emerge from the surface.

  • Negative divergence (∇⋅E<0\nabla \cdot \mathbf{E} < 0∇⋅E<0) means more negative charge, field lines enter the surface.

  • Zero divergence means equal positive and negative charge; field lines that enter also exit.

  • Origin: Coulomb's inverse-square law, combined with Gauss's mathematical theorem relating surface integrals to volume integrals of divergence.

  • In media: Maxwell originally used the displacement field D\mathbf{D}D (which accounts for polarization of matter), where ∇⋅D=ρ\nabla \cdot \mathbf{D} = \rho∇⋅D=ρ and D=εE\mathbf{D} = \varepsilon \mathbf{E}D=εE. The constant ε\varepsilonε (permittivity) depends on the medium. In vacuum, ε=ε0\varepsilon = \varepsilon_0ε=ε0​, called the permittivity of free space.

Key takeaway: Excess electric charge produces a diverging electric field.

5.2 Gauss's Law for Magnetism

∇⋅B=0\nabla \cdot \mathbf{B} = 0∇⋅B=0
  • No magnetic monopoles exist. Magnetic field lines form closed loops; they never begin or end.

  • Even at the north pole of a bar magnet, where field lines appear to emerge, they actually loop back inside the magnet, making the total divergence zero.

  • This equation means magnetic field lines cannot converge or diverge from any point — they can only curl.

Key takeaway: Magnetic fields are always sourceless; there are no isolated north or south poles.

5.3 Faraday's Law of Induction

∇×E=−∂B∂t\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}∇×E=−∂t∂B​
  • A changing magnetic field (∂B/∂t\partial \mathbf{B}/\partial t∂B/∂t) induces a curling electric field (∇×E\nabla \times \mathbf{E}∇×E).

  • The negative sign is Lenz's law: the induced electric field creates a current whose own magnetic field opposes the change, ensuring conservation of energy.

  • If the negative sign were missing, one could build a perpetually accelerating perpetual motion machine — a violation of thermodynamics.

Key takeaway: Time-varying magnetic fields produce electric fields that curl around them, exactly as Faraday observed experimentally.

5.4 Ampere's Law with Maxwell's Addition

∇×B=μ0J+μ0ε0∂E∂t\nabla \times \mathbf{B} = \mu_0 \mathbf{J} + \mu_0 \varepsilon_0 \frac{\partial \mathbf{E}}{\partial t}∇×B=μ0​J+μ0​ε0​∂t∂E​
  • First term: Electric current J\mathbf{J}J produces a curling magnetic field (original Ampere's law).

  • Second term: A changing electric field (∂E/∂t\partial \mathbf{E}/\partial t∂E/∂t) also produces a curling magnetic field — this is the displacement current Maxwell added in 1862.

  • Maxwell reasoned that a changing displacement field D\mathbf{D}D polarizes molecules and acts like a current, even in a vacuum.

  • In media: ∇×H=J+∂D/∂t\nabla \times \mathbf{H} = \mathbf{J} + \partial \mathbf{D}/\partial t∇×H=J+∂D/∂t, where B=μH\mathbf{B} = \mu \mathbf{H}B=μH and μ\muμ is the permeability.

Key takeaway: Both moving charges and changing electric fields generate curling magnetic fields.


6. Physical Interpretation: Magnets Are Electric in Origin

Comparing the four equations:

  • ∇⋅E=ρ/ε0\nabla \cdot \mathbf{E} = \rho/\varepsilon_0∇⋅E=ρ/ε0​ has a source term (ρ\rhoρ), but ∇⋅B=0\nabla \cdot \mathbf{B} = 0∇⋅B=0 has none — no magnetic charges exist.

  • ∇×E=−∂B/∂t\nabla \times \mathbf{E} = -\partial \mathbf{B}/\partial t∇×E=−∂B/∂t shows that electric fields curl in response to changing B\mathbf{B}B, but there is no term for magnetic current because magnetic charges do not exist.

  • ∇×B=μ0J+μ0ε0∂E/∂t\nabla \times \mathbf{B} = \mu_0 \mathbf{J} + \mu_0 \varepsilon_0 \partial \mathbf{E}/\partial t∇×B=μ0​J+μ0​ε0​∂E/∂t has only electric current J\mathbf{J}J.

Therefore, all magnetic fields arise from moving electric charges (currents and changing electric fields). This supports Ampere's hypothesis that bar magnets are fundamentally composed of tiny electric current loops (atomic-level solenoids). Maxwell's equations imply that electromagnetism is a unified force — magnetism is not an independent phenomenon.


7. Light as an Electromagnetic Wave

The Connection

In 1857, Weber and Kohlrausch measured the ratio of the electric constant (related to ε0\varepsilon_0ε0​) to the magnetic constant μ0\mu_0μ0​ and found:

1μ0ε0≈3.1×108 m/s\frac{1}{\sqrt{\mu_0 \varepsilon_0}} \approx 3.1 \times 10^8 \ \text{m/s}μ0​ε0​​1​≈3.1×108 m/s

This matched the known speed of light. Maxwell realized this was no coincidence.

Derivation of the Wave Equation

In free space (no charges: ρ=0\rho = 0ρ=0, J=0\mathbf{J} = 0J=0), Maxwell's curl equations become:

∇×E=−∂B∂t\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}∇×E=−∂t∂B​
∇×B=μ0ε0∂E∂t\nabla \times \mathbf{B} = \mu_0 \varepsilon_0 \frac{\partial \mathbf{E}}{\partial t}∇×B=μ0​ε0​∂t∂E​

Taking the curl of the first and substituting the second yields:

∇×(∇×E)=−μ0ε0∂2E∂t2\nabla \times (\nabla \times \mathbf{E}) = -\mu_0 \varepsilon_0 \frac{\partial^2 \mathbf{E}}{\partial t^2}∇×(∇×E)=−μ0​ε0​∂t2∂2E​

Using the vector identity ∇×(∇×E)=∇(∇⋅E)−∇2E\nabla \times (\nabla \times \mathbf{E}) = \nabla(\nabla \cdot \mathbf{E}) - \nabla^2 \mathbf{E}∇×(∇×E)=∇(∇⋅E)−∇2E and noting ∇⋅E=0\nabla \cdot \mathbf{E} = 0∇⋅E=0, we get the wave equation:

∇2E=μ0ε0∂2E∂t2\nabla^2 \mathbf{E} = \mu_0 \varepsilon_0 \frac{\partial^2 \mathbf{E}}{\partial t^2}∇2E=μ0​ε0​∂t2∂2E​

The same equation holds for B\mathbf{B}B. The wave speed is:

c=1μ0ε0c = \frac{1}{\sqrt{\mu_0 \varepsilon_0}}c=μ0​ε0​​1​

Properties of Electromagnetic Waves

  • Transverse: The electric field E\mathbf{E}E and magnetic field B\mathbf{B}B are perpendicular to each other and to the direction of propagation.

  • Maxwell proved that Faraday's idea of longitudinal waves (like sound) was incorrect; EM waves are transverse.

  • The ratio ∣E∣/∣B∣=c|\mathbf{E}|/|\mathbf{B}| = c∣E∣/∣B∣=c in vacuum.

Maxwell's conclusion (1862): "Light consists of these transverse undulations of the same medium which is the cause of electric and magnetic phenomena."

Experimental Validation — Heinrich Hertz (1887)

  • Built a spark gap generator that produced rapidly oscillating electric currents — far slower than visible light.

  • Used an antenna and a receiving spark gap to detect the waves at a distance.

  • Confirmed that these radio waves traveled at exactly the speed of light.

  • This validated Maxwell's theory and launched the wireless revolution.

  • Hertz, however, saw no practical application; he wrote that the experiments merely confirmed the Faraday-Maxwell theory.


8. A Deeper Implication: E=mc2E = mc^2E=mc2

Albert Einstein wrote to a friend that the relativity principle, combined with Maxwell's equations, implied that mass and energy are equivalent. Maxwell's equations were essential to Einstein's derivation of:

E=mc2E = mc^2E=mc2

The speed of light ccc appears naturally in both contexts, highlighting the profound unity Maxwell's work uncovered.


9. Summary of Key Constants

Constant

Symbol

Value

Role

Permittivity of free space

ε0\varepsilon_0ε0​

8.854×10−12 F/m8.854 \times 10^{-12} \ \text{F/m}8.854×10−12 F/m

Relates electric field to charge density

Permeability of free space

μ0\mu_0μ0​

4π×10−7 T⋅m/A4\pi \times 10^{-7} \ \text{T·m/A}4π×10−7 T⋅m/A

Relates magnetic field to current

Speed of light in vacuum

ccc

2.998×108 m/s2.998 \times 10^8 \ \text{m/s}2.998×108 m/s

Appears in wave equation and Ampere-Maxwell law


10. Quick Reference: The Four Equations in Differential Form

  1. Gauss for electricity: ∇⋅E=ρε0\displaystyle \nabla \cdot \mathbf{E} = \frac{\rho}{\varepsilon_0}∇⋅E=ε0​ρ​

  2. Gauss for magnetism: ∇⋅B=0\displaystyle \nabla \cdot \mathbf{B} = 0∇⋅B=0

  3. Faraday's law: ∇×E=−∂B∂t\displaystyle \nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}∇×E=−∂t∂B​

  4. Ampere-Maxwell law: ∇×B=μ0J+μ0ε0∂E∂t\displaystyle \nabla \times \mathbf{B} = \mu_0 \mathbf{J} + \mu_0 \varepsilon_0 \frac{\partial \mathbf{E}}{\partial t}∇×B=μ0​J+μ0​ε0​∂t∂E​

Together, they describe all classical electromagnetic phenomena — from static charges to light waves, from electric circuits to radio transmission. They also laid the foundation for relativity and modern physics.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent