Vector Calculus for EM
Electromagnetism is written in the language of vector calculus. Gauss's theorem relates the flux of a vector field through a closed surface to its divergence inside; Stokes's theorem relates the circulation around a closed loop to the curl inside. Mastering these theorems makes Maxwell's equations transparent.
Key Concepts
Key Equations
Applying the Divergence Theorem
For the vector field in spherical coordinates (so ), verify the divergence theorem over a sphere of radius .
Divergence: . Volume integral: .
Surface integral: on sphere , ... , area element : . ✓
Exercises
7 problemsExplore the gradient field of $f = x^2+y^2+z^2$. Arrows show how $\nabla f$ points uphill — radially outward, growing with $r$. Find |∇f| at the point (1, 2, 2).
The gradient always points uphill — radially outward for f=r². Arrows get longer farther from origin since |∇f| = 2r.
Formula: |∇f| = 2√(x²+y²+z²) = 2r
Watch the pulsing Gaussian box: more field exits each face than enters (field grows with position). Find ∇·A for $\vec A = (x, y, z)$.
Every grid point is a source — arrows get longer away from origin (A grows). The net outward flux per unit volume = divergence.
Formula: ∇·A = ∂Ax/∂x + ∂Ay/∂y + ∂Az/∂z
For , find .
Unlock Exercise 3
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro →The divergence theorem: for , . For a sphere of radius m, find (in m³).
Unlock Exercise 4
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro →The Laplacian of : .
Unlock Exercise 5
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro →For with (V in volts, x in m), find (in V/m) at any .
Unlock Exercise 6
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro →Stokes's theorem: . Integrate over a unit square in the -plane. along the boundary = ?
Unlock Exercise 7
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro →Key Takeaways
- Gradient points up the slope; divergence measures sources; curl measures rotation.
- Gauss's theorem converts surface flux to volume integral of divergence.
- Stokes's theorem converts loop circulation to surface integral of curl.
- The Laplacian appears in Poisson's equation .