UNIHIVE

Study Hub UNIPORT PHY 313

PHY 313 · Electricity and Magnetism I

Vector calculus for electromagnetism

Gradient, divergence, curl, the Laplacian and the divergence and Stokes theorems.

Our notes

2 min read

The del operator

∇ = x̂ ∂/∂x + ŷ ∂/∂y + ẑ ∂/∂z (Cartesian). It acts in three ways:

Gradient (on a scalar)

∇V points in the direction of fastest increase of V; its size is the rate of increase. In electrostatics E = −∇V.
Example: V = 3x²y. ∇V = (6xy, 3x², 0). At (1, 2, 0): ∇V = (12, 3, 0).

Divergence (on a vector)

∇·A = ∂Aₓ/∂x + ∂Aᵧ/∂y + ∂A_z/∂z. Measures how much a field spreads out from a point (a source).
Example: A = (x², yz, z): ∇·A = 2x + z + 1.

Curl (on a vector)

∇×A measures circulation (swirl) about a point. In components:
(∂A_z/∂y − ∂Aᵧ/∂z, ∂Aₓ/∂z − ∂A_z/∂x, ∂Aᵧ/∂x − ∂Aₓ/∂y).
Example: A = (−y, x, 0): ∇×A = (0, 0, 1 − (−1)) = (0, 0, 2): a uniform swirl.

The Laplacian

∇²V = ∇·∇V = ∂²V/∂x² + ∂²V/∂y² + ∂²V/∂z².

Two identities used all the time

  • ∇×(∇V) = 0: the curl of a gradient is zero. So a field with zero curl can be written as a gradient (electrostatics).
  • ∇·(∇×A) = 0: the divergence of a curl is zero. So a field with zero divergence can be written as a curl (magnetism: B = ∇×A).

The fundamental theorems

  • Gradient theorem: ∫ₐᵇ ∇V·dl = V(b) − V(a).
  • Divergence (Gauss) theorem: ∮ A·da over a closed surface = ∫ (∇·A) dτ over the volume inside. "Flux out = total source inside."
  • Stokes' theorem: ∮ A·dl round a loop = ∫ (∇×A)·da over a surface bounded by the loop.

Check of the divergence theorem: A = (x, y, z) over a cube 0 ≤ x, y, z ≤ 1. ∇·A = 3, so the volume integral = 3 × 1 = 3. Flux: only the three faces at x = 1, y = 1, z = 1 contribute (A·n = 1 on each, area 1), total = 3. ✓

Other coordinates

In spherical coordinates (r, θ, φ), for a field depending only on r: ∇·A = (1/r²) d(r²A_r)/dr and ∇²V = (1/r²) d/dr(r² dV/dr). In cylindrical (s, φ, z): ∇·A = (1/s) d(sA_s)/ds for radial fields. Keep a formula sheet: exams usually give the full forms.

Exams usually ask

  • Compute grad, div and curl of given fields.
  • Verify the divergence or Stokes theorem for a simple field and region.
  • Prove ∇×∇V = 0.

Common mistake

Using Cartesian formulas in spherical coordinates. ∇·(r̂/r²) is zero everywhere except at the origin; the Cartesian-looking calculation in the wrong coordinates gives nonsense.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All PHY 313 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.