EMT Notes: Vector Analysis & Electrostatics

Nov 19, 2026·Pranesh Mahanta·21ECC205T — Electromagnetic Theory and Interference

Coordinate systems and vector calculus, then electrostatics from Coulomb's law to Gauss's law — the complete unit, with every worked question stated in full and solved step by step.

Contents
  1. Field theory — why and where
  2. Scalars and vectors — dot & cross products
  3. Coordinate systems — Cartesian & cylindrical
  4. Spherical coordinates & transformations
  5. Gradient, divergence and curl
  6. Divergence theorem & Stokes' theorem
  7. Coulomb's law and superposition
  8. Electric field intensity
  9. Field of a line charge — the finite-line derivation
  10. Ring of charge and a pair of charges
  11. Electric flux and flux density D
  12. Gauss's law and its applications
  13. Gauss's law — worked problems
  14. One-page formula sheet

1Field theory — why and where

Electromagnetic field theory studies charges and currents at a distance through the fields they set up in space. It underlies capacitors and insulators, motors and transformers, radio and television, antennas, waveguides, radar, transmission lines and power systems — anything where energy or signals travel through space rather than along wires alone.

Circuit theory vs field theory. Circuit theory is an approximation that works while the physical dimensions of a network are much smaller than the wavelength involved, so voltages and currents can be treated as lumped and connecting wires as ideal. When dimensions become comparable to the wavelength (high frequencies, long lines, antennas), the same quantities are distributed over space and must be found from Maxwell's equations — that is field theory. Every circuit-law result can be derived from the field equations; the reverse is not possible.

Static charges produce an electrostatic field (this unit); charges moving at constant velocity — a direct current — produce a magnetostatic field (the next unit); time-varying fields couple the two and give full electromagnetics.

2Scalars and vectors — dot & cross products

A scalar carries magnitude only (mass, time, potential); a vector carries magnitude and direction (force, velocity, field). A unit vector — written ax, ay, az and friends — has magnitude one and supplies direction; any vector A = A aA = |A| aA.

Vectors add tip-to-tail and obey the parallelogram law; only like components add in component form. Two products do the real work:

Dot (scalar) product: A·B = |A||B| cosθAB = AxBx + AyBy + AzBz
Commutative, distributive; A·A = |A|²; A·B = 0 for perpendicular vectors. Gives the projection of one vector along another — the tool for finding components along unit vectors.
Cross (vector) product: A×B = |A||B| sinθAB an = determinant of the unit-vector matrix with A, B on top
Anticommutative (A×B = −B×A), distributive; |A×B| is the parallelogram area; an by the right-hand rule; A×B = 0 for parallel vectors. The cyclic rule for mixed products: a·(b×c) = b·(c×a) = c·(a×b).

The scalar triple product a·(b×c) is the volume of the parallelepiped spanned by the three vectors — zero when they are coplanar.

3Coordinate systems — Cartesian & cylindrical

Cartesian

A point is the intersection of planes x = const, y = const, z = const, with −∞ < x, y, z < ∞. The unit vectors ax, ay, az are constant in direction everywhere. The differential elements:

dl = dx ax + dy ay + dz az    dS = dx dy az (top face)    dv = dx dy dz

Cylindrical

A point is the intersection of a cylinder ρ = const, a half-plane φ = const and a plane z = const, with 0 ≤ ρ < ∞, 0 ≤ φ < 2π, −∞ < z < ∞. The unit vectors aρ and aφ rotate with φ — they are constant only on a cone of fixed φ — while az stays fixed:

aρ = cosφ ax + sinφ ay     aφ = −sinφ ax + cosφ ay
aρ·aφ = 0    aρ×aφ = az (right-handed). ρ = √(x²+y²), φ = tan⁻¹(y/x) with the quadrant of (x, y).
xzyφP (ρ, φ, z)aρaφaᶻρ = √(x²+y²)unit vectors aρ and aφ rotate with φ — aᶻ is fixed
Cylindrical coordinate system: the point P sits on a cylinder of radius ρ, a half-plane at angle φ and the plane z = const.

Differential elements carry the scale factors (here hρ = 1, hφ = ρ, hz = 1):

dl = dρ aρ + ρ dφ aφ + dz az    dS = ρ dφ dz aρ (curved face)    dv = ρ dρ dφ dz

4Spherical coordinates & transformations

A point is the intersection of a sphere r = const, a cone θ = const and a half-plane φ = const, with 0 ≤ r < ∞, 0 ≤ θ ≤ π, 0 ≤ φ < 2π. Space variables: r = √(x²+y²+z²), θ = cos⁻¹(z/r), φ as before. The unit vectors ar, aθ, aφ all change with position; they stay orthonormal (ar·aθ = 0, ar×aθ = aφ).

dl = dr ar + r dθ aθ + r sinθ dφ aφ    dv = r² sinθ dr dθ dφ
scale factors hr = 1, hθ = r, hφ = r sinθ — the sinθ factor appears wherever distance is measured along a φ-circle.
Cartesian ↔ cylindrical ↔ spherical: x = ρ cosφ = r sinθ cosφ    y = ρ sinφ = r sinθ sinφ    z = r cosθ    ρ = r sinθ
Vector components transform the same way: project A onto each new unit vector with dot products, e.g. Aρ = A·aρ = Ax cosφ + Ay sinφ.
Worked problem · point & vector in three systems
A point P(−2, 6, 3) and the vector A = y ax + (x + z) ay are given. Express P and A in cylindrical and spherical coordinates, and evaluate A at P in the Cartesian, cylindrical and spherical systems.
Setup. P(−2, 6, 3) m; A = y ax + (x + z) ay, so at P the field is A = 6 ax + 1 ay. Cylindrical: ρ = √(x²+y²), φ = tan⁻¹(y/x) taken in the quadrant of (x, y). Spherical: r = √(x²+y²+z²), θ = cos⁻¹(z/r).
Step 1 — cylindrical radius and angle of P:
ρ = √(x² + y²) = √((−2)² + 6²) = √(4 + 36) = √40 = 6.32 m …(1)
φ = tan⁻¹(y/x) = tan⁻¹(6/−2) = tan⁻¹(−3) = −71.57°   x < 0, y > 0 ⇒ second quadrant ⇒ φ = 180° − 71.57° = 108.43° …(2)
P = (6.32 m, 108.43°, 3 m) in cylindrical coordinates
Step 2 — spherical radius and polar angle of P:
r = √(x² + y² + z²) = √(4 + 36 + 9) = √49 = 7 m …(3)
θ = cos⁻¹(z/r) = cos⁻¹(3/7) = cos⁻¹(0.4286) = 64.62° …(4)
P = (7 m, 64.62°, 108.43°) in spherical coordinates, with φ from (2)
Step 3 — the vector at P, in Cartesian components:
A = y ax + (x + z) ay = 6 ax + (−2 + 3) ay = 6 ax + 1 ay …(5)
|A| = √(Ax² + Ay²) = √(6² + 1²) = √37 = 6.08 …(6)
Step 4 — projection onto the cylindrical unit vectors at φ = 108.43° (cosφ = −0.3162, sinφ = 0.9487):
Aρ = A·aρ = Ax cosφ + Ay sinφ = 6(−0.3162) + 1(0.9487) = −1.897 + 0.949 = −0.95 …(7)
Aφ = A·aφ = −Ax sinφ + Ay cosφ = −6(0.9487) + 1(−0.3162) = −5.692 − 0.316 = −6.01 …(8)
Az = 0 …(9)    check: |A| = √(0.95² + 6.01²) = √(0.9025 + 36.12) = √37.02 = 6.08 ✓
Step 5 — projection onto the spherical unit vectors at θ = 64.62° (sinθ = 0.9035, cosθ = 0.4286):
Ar = Ax sinθcosφ + Ay sinθsinφ = sinθ(Axcosφ + Aysinφ) = 0.9035(−0.9487) = −0.86 …(10)
Aθ = Ax cosθcosφ + Ay cosθsinφ = cosθ(Axcosφ + Aysinφ) = 0.4286(−0.9487) = −0.41 …(11)
Aφ = −6.01 from (8) …(12)    check: |A| = √(0.86² + 0.41² + 6.01²) = √(0.74 + 0.17 + 36.12) = √37.03 = 6.08 ✓
Answer. P = (6.32, 108.43°, 3) cylindrical and P = (7, 64.62°, 108.43°) spherical; A = −0.95 aρ − 6.01 aφ and A = −0.86 ar − 0.41 aθ − 6.01 aφ, magnitude 6.08 in all three systems — one vector, three sets of components.

5Gradient, divergence and curl

The vector (del) operator ∇ packages the partial derivatives; combined with fields it produces the four quantities every later unit is built on:

Gradient (scalar → vector): ∇V = ∂V/∂x ax + ∂V/∂y ay + ∂V/∂z az
points in the direction of maximum increase of V; |∇V| = that maximum rate; dV = ∇V·dl.
Divergence (vector → scalar): ∇·A = ∂Ax/∂x + ∂Ay/∂y + ∂Az/∂z
net outflow per unit volume at a point; positive → a source, negative → a sink, zero → solenoidal (divergenceless) field.
Curl (vector → vector): ∇×A = determinant of the del matrix with the components
circulation per unit area; measures how much the field swirls about the point; zero → irrotational (conservative) field.
Laplacian (scalar → scalar): ∇²V = ∇·(∇V) = ∂²V/∂x² + ∂²V/∂y² + ∂²V/∂z²
OperationCylindricalSpherical
∇V(∂V/∂ρ)aρ + (½ρ·∂V/∂φ)aφ + (∂V/∂z)az   i.e. (1/hi)∂V/∂i(∂V/∂r)ar + (1/r·∂V/∂θ)aθ + (1/r sinθ·∂V/∂φ)aφ
∇·A(1/ρ)∂(ρAρ)/∂ρ + (1/ρ)∂Aφ/∂φ + ∂Az/∂z(1/r²)∂(r²Ar)/∂r + (1/r sinθ)∂(sinθAθ)/∂θ + (1/r sinθ)∂Aφ/∂φ
∇×Asame determinant form with rows (aρ, aφ, az), (1/ρ·∂/∂ρ, …)same determinant form with rows (ar, aθ, aφ), (r², r sinθ factors)
Worked problem · gradient
Determine the gradient of the scalar field U = ρz sinφ + z² cos²φ + ρ².
Setup. U = ρz sinφ + z² cos²φ + ρ², with scale factors hρ = 1, hφ = ρ, hz = 1.
Step 1 — gradient in cylindrical coordinates:
∇U = (∂U/∂ρ) aρ + (1/ρ)(∂U/∂φ) aφ + (∂U/∂z) az …(1)
Step 2 — radial partial derivative:
∂U/∂ρ = ∂/∂ρ(ρz sinφ) + ∂/∂ρ(z² cos²φ) + ∂/∂ρ(ρ²) = z sinφ + 0 + 2ρ = z sinφ + 2ρ …(2)
Step 3 — azimuthal partial derivative, then divide by ρ:
∂U/∂φ = ∂/∂φ(ρz sinφ) + ∂/∂φ(z² cos²φ) + ∂/∂φ(ρ²) = ρz cosφ + z²·2 cosφ(−sinφ) + 0 …(3)
(1/ρ)∂U/∂φ = (1/ρ)(ρz cosφ − 2z² sinφ cosφ) = z cosφ − 2z² sinφ cosφ/ρ …(4)
Step 4 — axial partial derivative:
∂U/∂z = ∂/∂z(ρz sinφ) + ∂/∂z(z² cos²φ) + ∂/∂z(ρ²) = ρ sinφ + 2z cos²φ + 0 = ρ sinφ + 2z cos²φ …(5)
Step 5 — substituting (2), (4) and (5) into (1):
∇U = (z sinφ + 2ρ) aρ + (z cosφ − 2z² sinφ cosφ/ρ) aφ + (ρ sinφ + 2z cos²φ) az …(6)
Answer. ∇U = (z sinφ + 2ρ) aρ + (z cosφ − 2z² sinφ cosφ/ρ) aφ + (ρ sinφ + 2z cos²φ) az.
Worked problem · divergence
Determine the divergence of the vector field V = (cos θ/r²) ar + r sinθ cos φ aθ + cos θ aφ.
Setup. V = (cosθ/r²) ar + r sinθ cosφ aθ + cosθ aφ, so Vr = cosθ/r², Vθ = r sinθ cosφ, Vφ = cosθ.
Step 1 — divergence in spherical coordinates:
∇·V = (1/r²)∂(r²Vr)/∂r + (1/r sinθ)∂(sinθVθ)/∂θ + (1/r sinθ)∂Vφ/∂φ …(1)
Step 2 — radial term:
r²Vr = r²·(cosθ/r²) = cosθ …(2)
∂(cosθ)/∂r = 0 ⇒ (1/r²)·0 = 0 …(3)
Step 3 — polar term:
sinθVθ = sinθ·r sinθ cosφ = r sin²θ cosφ …(4)
∂(r sin²θ cosφ)/∂θ = r cosφ·2 sinθ cosθ = 2r sinθ cosθ cosφ …(5)
(1/r sinθ)·2r sinθ cosθ cosφ = 2 cosθ cosφ …(6)
Step 4 — azimuthal term:
∂Vφ/∂φ = ∂(cosθ)/∂φ = 0 ⇒ (1/r sinθ)·0 = 0 …(7)
Step 5 — substituting (3), (6) and (7) into (1):
∇·V = 0 + 2 cosθ cosφ + 0 = 2 cosθ cosφ …(8)
Answer. ∇·V = 2 cosθ cosφ — positive where both cosines are positive, negative where either flips.
Worked problem · curl
Determine the curl of the vector field W = ρ sinφ aρ + ρ²z aφ + z cosφ az.
Setup. W = ρ sinφ aρ + ρ²z aφ + z cosφ az, so Wρ = ρ sinφ, Wφ = ρ²z, Wz = z cosφ.
Step 1 — ρ-component of the curl:
(∇×W)ρ = (1/ρ)[∂Wz/∂φ − ∂(ρWφ)/∂z] …(1)
∂Wz/∂φ = ∂(z cosφ)/∂φ = −z sinφ    ρWφ = ρ³z ⇒ ∂(ρ³z)/∂z = ρ³ …(2)
(∇×W)ρ = (1/ρ)(−z sinφ − ρ³) = −ρ² − z sinφ/ρ …(3)
Step 2 — φ-component of the curl:
(∇×W)φ = ∂Wρ/∂z − ∂Wz/∂ρ …(4)
∂(ρ sinφ)/∂z = 0    ∂(z cosφ)/∂ρ = 0 ⇒ (∇×W)φ = 0 − 0 = 0 …(5)
Step 3 — z-component of the curl:
(∇×W)z = (1/ρ)[∂(ρWφ)/∂ρ − ∂Wρ/∂φ] …(6)
∂(ρ³z)/∂ρ = 3ρ²z    ∂(ρ sinφ)/∂φ = ρ cosφ …(7)
(∇×W)z = (1/ρ)(3ρ²z − ρ cosφ) = 3ρz − cosφ …(8)
Step 4 — assembling (3), (5) and (8):
∇×W = −(ρ² + z sinφ/ρ) aρ + 0 aφ + (3ρz − cosφ) az …(9)
Answer. ∇×W = −(ρ² + z sinφ/ρ) aρ + (3ρz − cosφ) az.

6Divergence theorem & Stokes' theorem

The two big theorems convert between "differential at a point" and "total through a boundary" — exactly the bridge from Maxwell's point forms to their integral forms:

Divergence theorem: ∮S A·dS = ∫v (∇·A) dv
total outward flux through a closed surface = volume integral of the divergence.
Stokes' theorem: ∮C A·dl = ∫S (∇×A)·dS
circulation around a closed loop = flux of the curl through any surface spanning the loop.
Proof · identity 1
For any vector field A, show explicitly that ∇·(∇×A) = 0.
Setup. A = Ax ax + Ay ay + Az az, twice continuously differentiable, in Cartesian coordinates.
Step 1 — curl of A, component by component:
(∇×A)x = ∂Az/∂y − ∂Ay/∂z …(1)
(∇×A)y = ∂Ax/∂z − ∂Az/∂x …(2)
(∇×A)z = ∂Ay/∂x − ∂Ax/∂y …(3)
Step 2 — divergence of that vector field:
∇·(∇×A) = ∂/∂x(∇×A)x + ∂/∂y(∇×A)y + ∂/∂z(∇×A)z …(4)
= ∂/∂x(∂Az/∂y − ∂Ay/∂z) + ∂/∂y(∂Ax/∂z − ∂Az/∂x) + ∂/∂z(∂Ay/∂x − ∂Ax/∂y) …(5)
Step 3 — carry out the derivatives:
= ∂²Az/∂x∂y − ∂²Ay/∂x∂z + ∂²Ax/∂y∂z − ∂²Az/∂y∂x + ∂²Ay/∂z∂x − ∂²Ax/∂z∂y …(6)
Step 4 — collect each component's mixed partials:
= (∂²Az/∂x∂y − ∂²Az/∂y∂x) + (∂²Ay/∂z∂x − ∂²Ay/∂x∂z) + (∂²Ax/∂y∂z − ∂²Ax/∂z∂y) …(7)
Step 5 — each bracket vanishes, because mixed partials commute:
∂²Az/∂x∂y = ∂²Az/∂y∂x,   ∂²Ay/∂z∂x = ∂²Ay/∂x∂z,   ∂²Ax/∂y∂z = ∂²Ax/∂z∂y …(8)
⇒ ∇·(∇×A) = 0 − 0 + 0 = 0 …(9)
Answer. ∇·(∇×A) = 0 identically — a solenoidal field can always be written as the curl of something.
Proof · identity 2
For any scalar field V, show that ∇×(∇V) = 0 — the curl of the gradient of any scalar field vanishes.
Setup. V(x, y, z) a scalar field with continuous second derivatives; ∇V = (∂V/∂x) ax + (∂V/∂y) ay + (∂V/∂z) az.
Step 1 — x-component of the curl of the gradient:
(∇×∇V)x = ∂/∂y(∇V)z − ∂/∂z(∇V)y = ∂/∂y(∂V/∂z) − ∂/∂z(∂V/∂y) …(1)
= ∂²V/∂y∂z − ∂²V/∂z∂y = 0 …(2)
Step 2 — y-component, same argument:
(∇×∇V)y = ∂/∂z(∂V/∂x) − ∂/∂x(∂V/∂z) = ∂²V/∂z∂x − ∂²V/∂x∂z = 0 …(3)
Step 3 — z-component, same argument:
(∇×∇V)z = ∂/∂x(∂V/∂y) − ∂/∂y(∂V/∂x) = ∂²V/∂x∂y − ∂²V/∂y∂x = 0 …(4)
Step 4 — assembling (2), (3) and (4):
∇×(∇V) = 0 ax + 0 ay + 0 az = 0 …(5)
Answer. ∇×(∇V) = 0: a curl-free field can always be written as the gradient of a scalar potential — the fact that makes the electrostatic potential possible (section 12).
Worked problem · divergence theorem, box
Evaluate both sides of the divergence theorem for the field D = 2xy ax + x² ay C/m² over the volume formed by the planes x = 0 and x = 2, y = 0 and y = 1, z = 0 and z = 2.
Setup. D = 2xy ax + x² ay C/m²; volume 0 ≤ x ≤ 2, 0 ≤ y ≤ 1, 0 ≤ z ≤ 2, so dv = dx dy dz.
Step 1 — divergence of D:
∇·D = ∂Dx/∂x + ∂Dy/∂y + ∂Dz/∂z = ∂(2xy)/∂x + ∂(x²)/∂y + ∂(0)/∂z …(1)
= 2y + 0 + 0 = 2y …(2)
Step 2 — volume integral of (2):
∫v(∇·D) dv = ∫02∫01∫022y dx dy dz = 2·[x]02·[y²/2]01·[z]02 …(3)
= 2·2·0.5·2 = 4 C …(4)
Step 3 — which faces carry flux:
Dz = 0 ⇒ z = 0 and z = 2 faces contribute 0 …(5)
Dy = x² is the same on y = 1 and y = 0, and ay flips sign ⇒ the two y-faces cancel …(6)
Step 4 — x = 2 face (outward normal +ax):
D·ax = 2(2)y = 4y ⇒ ∫02∫014y dy dz = 4·[y²/2]01·[z]02 = 4·0.5·2 = 4 C …(7)
Step 5 — x = 0 face (outward normal −ax):
D·(−ax) = −2(0)y = 0 ⇒ flux = 0 …(8)
Step 6 — total outward flux, from (5)–(8):
∮SD·dS = 4 + 0 + 0 = 4 C …(9)
Answer. Both sides give 4 C — (4) equals (9), so the theorem holds.
Worked problem · divergence theorem, spheres
Given D = (5r²/4) ar C/m² in spherical coordinates, evaluate both sides of the divergence theorem for the volume enclosed by r = 1 and r = 2.
Setup. D = (5r²/4) ar C/m² (spherical), shell 1 ≤ r ≤ 2, dv = r² sinθ dr dθ dφ.
Step 1 — divergence of D:
∇·D = (1/r²)∂(r²Dr)/∂r = (1/r²)∂(r²·5r²/4)/∂r …(1)
r²·5r²/4 = 5r⁴/4 ⇒ ∂(5r⁴/4)/∂r = 5r³ …(2)
∇·D = (1/r²)·5r³ = 5r …(3)
Step 2 — volume integral of (3):
∫v5r dv = ∫125r·r² dr · ∫0πsinθ dθ · ∫02πdφ …(4)
∫125r³ dr = 5[r⁴/4]12 = 5(16 − 1)/4 = 75/4 …(5)
∫0πsinθ dθ = [−cosθ]0π = 1 + 1 = 2    ∫02πdφ = 2π …(6)
∫v(∇·D) dv = (75/4)·2·2π = 75π C ≈ 235.6 C …(7)
Step 3 — outer surface r = 2:
Dr(2) = 5(4)/4 = 5 C/m²    S = 4πr² = 4π(4) = 16π m² …(8)
ψ2 = 5·16π = 80π C (outward) …(9)
Step 4 — inner surface r = 1 (normal points inward):
Dr(1) = 5(1)/4 = 1.25 C/m²    S = 4π(1) = 4π m² …(10)
ψ1 = −1.25·4π = −5π C …(11)
Step 5 — net outward flux, from (9) and (11):
∮SD·dS = 80π − 5π = 75π C …(12)
Answer. (7) and (12) agree: 75π C ≈ 235.6 C — and the surface side is far less work when D is radial.

7Coulomb's law and superposition

Coulomb's law. The force between two point charges is proportional to the product of the charges, inversely proportional to the square of the distance between them, and directed along the line joining them — repulsive for like charges, attractive for unlike ones:

F = k q1q2/r²     k = 1/(4πε) = 1/(4πε0εr)     ε0 = 8.854×10⁻¹² F/m
Vector form for the force on q1 due to q2: F1 = k q1q2(R12/|R12|³), where R12 points from q2 to q1. In free space 1/(4πε0) ≈ 9×10⁹ N·m²/C².

Superposition. With many charges present each pair interacts independently, so the total force on a charge is the vector sum of the pairwise forces (and every field result below adds the same way).

Worked problem · statement & N charges
State Coulomb's law and write the expressions for the force and the electric field strength due to N point charges.
Setup. Two point charges q1, q2 separated by a distance r; k = 1/(4πε0) = 9×10⁹ N·m²/C², ε0 = 8.854×10⁻¹² F/m.
Step 1 — scalar form of the law:
F = k |q1q2|/r² = |q1q2|/(4πε0r²) …(1)
repulsive for like charges, attractive for unlike charges, along the joining line
Step 2 — vector form, force on q1 due to q2:
F1 = k q1q2 R12/|R12|³ = q1q2R12/(4πε0|R12|³) …(2)
with R12 drawn from q2 to q1; the unit vector is R12/|R12| and the extra 1/|R12| supplies the 1/r²
Step 3 — superposition for N charges:
F1 = (q1/4πε0) Σk=2..N qk(R1k/|R1k|³) …(3)
each pair interacts independently, so the total is the vector sum of the pairwise forces
Step 4 — electric field strength as force per unit charge:
E = limq→0 F/q …(4)
units N/C = V/m; the test charge is taken vanishingly small so it does not disturb the sources
Step 5 — field of N point charges, from (3) and (4):
E = (1/4πε0) Σk qk(Rk/|Rk|³) …(5)
each Rk measured from qk to the field point
Answer. Force law (1)/(2), N-charge force (3), field definition (4) and N-charge field (5) — all four are the same inverse-square statement, once per charge and summed.
Worked problem · two source charges
Point charges 5 nC and −2 nC are located at (2, 0, 4) and (−3, 0, 5) respectively. Determine the force on a 1 nC point charge located at (1, −3, 7), and find the electric field E at the same point.
Setup. q1 = 5 nC at (2, 0, 4) m; q2 = −2 nC at (−3, 0, 5) m; field point P(1, −3, 7) m; test charge q = 1 nC; 1/(4πε0) = 9×10⁹.
Step 1 — vector from q1 to P and its length:
R1 = (1, −3, 7) − (2, 0, 4) = (−1, −3, 3) m …(1)
|R1| = √((−1)² + (−3)² + 3²) = √(1 + 9 + 9) = √19 = 4.36 m …(2)
|R1|³ = 191.5 = 82.82 m³ …(3)
Step 2 — field of q1:
E1 = q1R1/(4πε0|R1|³) …(4)
= 9×10⁹·5×10⁻⁹·(−1, −3, 3)/82.82 = 45·(−1, −3, 3)/82.82 …(5)
= (45(−1)/82.82, 45(−3)/82.82, 45(3)/82.82) = (−0.543, −1.630, 1.630) N/C …(6)
Step 3 — vector from q2 to P and its length:
R2 = (1, −3, 7) − (−3, 0, 5) = (4, −3, 2) m …(7)
|R2| = √(16 + 9 + 4) = √29 = 5.385 m …(8)
|R2|³ = 291.5 = 156.2 m³ …(9)
Step 4 — field of q2:
E2 = q2R2/(4πε0|R2|³) …(10)
= 9×10⁹·(−2×10⁻⁹)·(4, −3, 2)/156.2 = −18·(4, −3, 2)/156.2 …(11)
= (−72/156.2, 54/156.2, −36/156.2) = (−0.461, 0.346, −0.231) N/C …(12)
Step 5 — superposition, (6) + (12):
E = E1 + E2 = (−0.543 − 0.461, −1.630 + 0.346, 1.630 − 0.231) …(13)
= (−1.004, −1.284, 1.400) N/C …(14)
|E| = √(1.004² + 1.284² + 1.400²) = √(1.008 + 1.649 + 1.960) = √4.617 = 2.15 N/C …(15)
Step 6 — force on the 1 nC test charge, from (14):
F = qE = 1×10⁻⁹·(−1.004, −1.284, 1.400) …(16)
= (−1.00, −1.28, 1.40)×10⁻⁹ N,   |F| = 1×10⁻⁹·2.15 = 2.15 nN …(17)
Answer. E = (−1.00, −1.28, 1.40) N/C, |E| = 2.15 N/C and F = (−1.00, −1.28, 1.40)×10⁻⁹ N, |F| = 2.15 nN — the field points from the 1 nC location toward (2, 0, 4), dominated by the 5 nC pull; the force is the same numbers times the test charge.
Worked problem · E field of two charges
Point charges −4 µC and 5 µC are located at (2, −1, 3) and (0, 4, −2) respectively. Calculate the electric field intensity at (1, 0, 1).
Setup. q1 = −4 µC at (2, −1, 3) m; q2 = 5 µC at (0, 4, −2) m; field point P(1, 0, 1) m; 1/(4πε0) = 9×10⁹.
Step 1 — vector from q1 to P and its length:
R1 = (1, 0, 1) − (2, −1, 3) = (−1, 1, −2) m …(1)
|R1| = √(1 + 1 + 4) = √6 = 2.449 m …(2)
|R1|³ = 61.5 = 14.70 m³ …(3)
Step 2 — field of the −4 µC charge:
E1 = q1R1/(4πε0|R1|³) …(4)
= 9×10⁹·(−4×10⁻⁶)·(−1, 1, −2)/14.70 = −36000·(−1, 1, −2)/14.70 …(5)
= (36000/14.70, −36000/14.70, 72000/14.70) = (2449, −2449, 4899) V/m = (2.45, −2.45, 4.90) kV/m …(6)
the field points toward the negative charge, as the sign of (5) shows
Step 3 — vector from q2 to P and its length:
R2 = (1, 0, 1) − (0, 4, −2) = (1, −4, 3) m …(7)
|R2| = √(1 + 16 + 9) = √26 = 5.099 m …(8)
|R2|³ = 261.5 = 132.6 m³ …(9)
Step 4 — field of the 5 µC charge:
E2 = q2R2/(4πε0|R2|³) …(10)
= 9×10⁹·5×10⁻⁶·(1, −4, 3)/132.6 = 45000·(1, −4, 3)/132.6 …(11)
= (339, −1357, 1018) V/m = (0.34, −1.36, 1.02) kV/m …(12)
Step 5 — superposition, (6) + (12):
E = (2.449 + 0.339, −2.449 − 1.357, 4.899 + 1.018) = (2.789, −3.807, 5.917) kV/m …(13)
|E| = √(2.789² + 3.807² + 5.917²) = √(7.78 + 14.49 + 35.01) = √57.28 = 7.569 kV/m …(14)
Answer. E = (2.79, −3.81, 5.92) kV/m, |E| = 7.57 kV/m.
the chain above uses k = 9×10⁹; with the more precise 1/(4πε0) = 8.988×10⁹ the sum is (2.785, −3.802, 5.909) kV/m and |E| = 7.56 kV/m — quote either, state your k.

8Electric field intensity

The electric field intensity E is the force per unit positive test charge placed at the point — a vector field that exists whether or not the test charge is there. For a point charge Q, E = Q/(4πε0r²) ar: radially outward from positive charge, inward for negative.

Line charge ρL (C/m): E = ∫ ρL dl aR/(4πε0R²)    Surface ρS (C/m²): ∫ ρS dS aR/(4πε0R²)    Volume ρv (C/m³): ∫ ρv dv aR/(4πε0R²)
each element of charge contributes dE = dq aR/(4πε0R²) with aR pointing from the element to the field point; integrate over the geometry.
Worked problem · definition
Define electric field intensity and write the expression for the electric field intensity due to a point charge, a line charge distribution, a surface charge distribution and a volume charge distribution.
Setup. A test charge q placed at a point experiences a force F; the source distribution is fixed and is not disturbed by q.
Step 1 — definition as force per unit positive test charge:
E = limq→0 F/q …(1)
units N/C = V/m; the limit q → 0 keeps the test charge from redistributing the sources
Step 2 — point charge Q at the origin:
E = Q ar/(4πε0r²) …(2)
radially outward for Q > 0, inward for Q < 0
Step 3 — line charge ρL (C/m), dq = ρL dl:
E = ∫ ρL dl aR/(4πε0R²) …(3)
Step 4 — surface charge ρS (C/m²), dq = ρS dS:
E = ∫ ρS dS aR/(4πε0R²) …(4)
Step 5 — volume charge ρv (C/m³), dq = ρv dv:
E = ∫ ρv dv aR/(4πε0R²) …(5)
Answer. E = limq→0 F/q with the point form (2) and the three integral forms (3)–(5) — one idea, dq written three ways.
Worked problem · point charge + infinite line
Find E at the point P(1, 5, 2) m in free space if a point charge of 6 µC is at (0, 0, 1) and a uniform line charge density ρL = 180 nC/m lies along the x-axis.
Setup. Point charge 6 µC at (0, 0, 1) m; uniform line charge ρL = 180 nC/m along the x-axis; field point P(1, 5, 2) m; 1/(4πε0) = 9×10⁹.
Step 1 — vector from the point charge to P and its length:
R = (1, 5, 2) − (0, 0, 1) = (1, 5, 1) m …(1)
|R|² = 1 + 25 + 1 = 27 m² ⇒ |R| = √27 = 5.196 m …(2)
|R|³ = 271.5 = 140.3 m³ …(3)
Step 2 — field of the point charge:
Ep = QR/(4πε0|R|³) …(4)
= 9×10⁹·6×10⁻⁶·(1, 5, 1)/140.3 = 54000·(1, 5, 1)/140.3 …(5)
= (384.9, 1924.5, 384.9) V/m …(6)
Step 3 — perpendicular distance from the x-axis to P:
ρ = √(y² + z²) = √(5² + 2²) = √29 = 5.385 m …(7)
aρ = (0, 5, 2)/√29 = (0, 0.9285, 0.3714) …(8)
Step 4 — field of the infinite line, E = ρL/(2πε0ρ):
El = ρL/(2πε0ρ) aρ = (2·9×10⁹·180×10⁻⁹/29)·(0, 5, 2) …(9)
= (3240/29)·(0, 5, 2) = 111.7·(0, 5, 2) = (0, 558.6, 223.4) V/m …(10)
Step 5 — superposition, (6) + (10):
E = (384.9 + 0, 1924.5 + 558.6, 384.9 + 223.4) = (384.9, 2483.1, 608.3) V/m …(11)
|E| = √(384.9² + 2483.1² + 608.3²) = √(148148 + 6165794 + 370029) = √6683971 = 2585 V/m …(12)
Answer. E = (384, 2480, 608) V/m, |E| ≈ 2.58 kV/m.

9Field of a line charge — the finite-line derivation

The derivation that all later "wire" results grow from: a line charge of length L carries uniform density ρL; find E at a point P a perpendicular distance h from its midpoint. Take the line along x with the foot of the perpendicular at the origin, element dl = dx ax at distance x, R = √(x²+h²).

ABP (h from midpoint)θ₁θ₂element dq = ρL dx at xLmidpoint (foot of perpendicular)
Geometry for the field of a finite line charge: every element ρL dx contributes dE = ρLdx aR/(4πε0R²).

Split each dE into components along the line (x) and perpendicular to it. With the angles θ1, θ2 measured at P from the perpendicular to each end (x = ρ tanθ, R = ρ secθ, dx = ρ sec²θ dθ with ρ = h):

Perpendicular component — the substitution chain.
dE = ρL dx aR/(4πε0R²), with R = √(x²+h²) and aR = (−x a∥ + h a⊥)/R …(1)
E⊥ = ∫ ρL h dx/(4πε0(x²+h²)3/2) …(2)
substitute x = h tanθ ⇒ dx = h sec²θ dθ …(3)
x² + h² = h²tan²θ + h² = h²sec²θ ⇒ (x²+h²)3/2 = h³sec³θ …(4)
integrand = ρL h·h sec²θ dθ/(4πε0h³sec³θ) = ρL cosθ dθ/(4πε0h) …(5)
∫cosθ dθ = sinθ, so E⊥ = ρL/(4πε0h) [sinθ]θ1θ2 = ρL/(4πε0h) (sinθ2 − sinθ1) a⊥ …(6)
Parallel component, same substitution: E∥ = ∫ −ρL x dx/(4πε0(x²+h²)3/2) = −ρL/(4πε0h)∫sinθ dθ = ρL/(4πε0h) (cosθ2 − cosθ1) a∥ …(7)
θ1, θ2 are measured at P from the perpendicular to each end; (6) and (7) are the two results used in the derivation below.
Derivation · finite line, bisector, infinite line
Derive an expression for the electric field due to a line charge distribution at a perpendicular distance r from the line. What is the form of the expression when the line joining the point of interest to the line charge exactly bisects the distribution, and what does it reduce to when the line charge is infinitely long?
Setup. Line charge ρL (C/m) of length L along the x-axis, centred on the origin; field point P at perpendicular distance h (= r) from the midpoint; element dq = ρL dx at coordinate x; R = √(x²+h²); θ1, θ2 measured at P from the perpendicular to the two ends.
Step 1 — resolve each element about the foot of the perpendicular:
dE = ρL dx aR/(4πε0R²),   aR = (−x a∥ + h a⊥)/R …(8)
dE∥ = −ρL x dx/(4πε0(x²+h²)3/2)    dE⊥ = ρL h dx/(4πε0(x²+h²)3/2) …(9)
Step 2 — integrate the perpendicular component with x = h tanθ:
E⊥ = ρL/(4πε0h) (sinθ2 − sinθ1) a⊥ …(10)
from (2)–(6) of the derivation above: dx = h sec²θ dθ, (x²+h²)3/2 = h³sec³θ, ∫cosθ dθ = sinθ
Step 3 — integrate the parallel component with the same substitution:
E∥ = ρL/(4πε0h) (cosθ2 − cosθ1) a∥ …(11)
from (7): ∫sinθ dθ = −cosθ, and the two minus signs cancel
Step 4 — bisector case θ1 = −θ, θ2 = θ:
sinθ2 − sinθ1 = sinθ − sin(−θ) = 2 sinθ …(12)
cosθ2 − cosθ1 = cosθ − cos(−θ) = cosθ − cosθ = 0 ⇒ E∥ = 0 …(13)
Step 5 — substituting (12) and (13) into (10) and (11):
E⊥ = ρL/(4πε0h)·2 sinθ = ρL sinθ/(2πε0h) …(14)
sinθ = (L/2)/√(h² + L²/4) …(15)
E = ρL/(2πε0r) sinθ a⊥ with r = h — purely perpendicular, as symmetry demands
Step 6 — infinite line, L → ∞ in (15):
L²/4 ≫ h² ⇒ sinθ = (L/2)/√(L²/4) → 1,   θ1, θ2 → ±90° …(16)
E = ρL/(2πε0h)·1 = ρL/(2πε0r) a⊥ …(17)
Answer. E = ρL/(2πε0r) sinθ a⊥ on the bisector, reducing to E = ρL/(2πε0r) a⊥ for an infinite line — independent of length, falling off as 1/r, the result Gauss's law reproduces in one line (section 12).
Worked problem · above one end of a segment
Find the electric field a distance z above one end of a straight line segment of length L carrying a uniform line charge λ, and discuss the special case z » L.
Setup. Segment of length L on the x-axis from x = 0 to x = L, uniform λ (C/m); field point P(0, 0, z) directly above the end x = 0; element dq = λ dx at x, R = √(x²+z²).
Step 1 — field of one element, components written out:
dE = λ dx aR/(4πε0R²),   aR = (−x ax + z az)/R …(1)
dE = λ dx (−x ax + z az)/(4πε0(x²+z²)3/2) …(2)
Step 2 — axial integral:
Ez = (λz/4πε0)∫0Ldx/(x²+z²)3/2 …(3)
∫dx/(x²+z²)3/2 = x/(z²√(x²+z²)) ⇒ [x/(z²√(x²+z²))]0L = L/(z²√(L²+z²)) − 0 …(4)
Step 3 — substituting (4) into (3):
Ez = (λz/4πε0)·L/(z²√(L²+z²)) = λL/(4πε0z√(z²+L²)) az …(5)
Step 4 — radial integral:
Ex = −(λ/4πε0)∫0Lx dx/(x²+z²)3/2 …(6)
∫x dx/(x²+z²)3/2 = −1/√(x²+z²) ⇒ [−1/√(x²+z²)]0L = 1/z − 1/√(z²+L²) …(7)
Step 5 — substituting (7) into (6):
Ex = −(λ/4πε0)(1/z − 1/√(z²+L²)) = λ/(4πε0) (1/√(z²+L²) − 1/z) ax …(8)
negative for all z > 0, i.e. pointing away from the line
Step 6 — far field z ≫ L:
√(z²+L²) = z√(1 + L²/z²) ≈ z(1 + L²/2z²) …(9)
Ez ≈ λL/(4πε0z·z) = λL/(4πε0z²) = Q/(4πε0z²), Q = λL …(10)
Ex ≈ (λ/4πε0)(1/z − L²/2z³ − 1/z) = −λL²/(8πε0z³) → 0 …(11)
Answer. Ez = λL/(4πε0z√(z²+L²)) and Ex = λ/(4πε0)(1/√(z²+L²) − 1/z); for z ≫ L the pair collapses to Q/(4πε0z²) — from far away the segment looks like a point charge at its near end, as it must.

10Ring of charge and a pair of charges

P (0, 0, z)az-axisαring of charge ρL, radius a, in the z = 0 plane — axial point P at height zring elements pair off: radial parts cancel, axial parts add
Charged ring: by symmetry only the axial component of E survives at a point on the axis.

On the axis of a uniformly charged ring every element dq = ρLa dφ is at the same distance R = √(a²+z²) from P, and the transverse components cancel in pairs, leaving

dE = dq aR/(4πε0R²),   dq = ρL a dφ,   R = √(a²+z²) for every element …(1)
axial fraction: cosα = z/R = z/√(a²+z²) …(2)
dEz = dE cosα = ρL a dφ·z/(4πε0(a²+z²)3/2) …(3)
transverse parts cancel in pairs by symmetry ⇒ Eρ = 0 …(4)
Ez = ∫02πdEz = ρL a z/(4πε0(a²+z²)3/2)·2π …(5)
Q = 2πa ρL ⇒ E = Q z/(4πε0(a²+z²)3/2) az …(6)
(6) is the ring result used in the two ring problems below; at z = 0 it vanishes, and for z ≫ a it reduces to Q/(4πε0z²).
Worked problem · pair of equal charges
Find the electric field a distance z above the midpoint between two equal charges q separated by a distance d.
Setup. Two equal charges q at (±d/2, 0, 0); field point P(0, 0, z) on the perpendicular bisector; each charge is at distance R = √(z² + d²/4) from P.
Step 1 — field of one charge, magnitude and direction:
|dE| = q/(4πε0R²),   R = √(z² + d²/4) …(1)
direction from (±d/2, 0, 0) to (0, 0, z): (−(d/2), 0, z) and (+(d/2), 0, z) …(2)
Step 2 — axial fraction of each field:
cosα = z/R = z/√(z² + d²/4) …(3)
dEz = |dE| cosα = q z/(4πε0R³) …(4)
Step 3 — the horizontal parts cancel:
Ex = q/(4πε0R²)·(−d/2)/R + q/(4πε0R²)·(+d/2)/R = 0 …(5)
Ey = 0 by the same mirror symmetry …(6)
Step 4 — adding the two axial parts, (4):
Ez = 2·q z/(4πε0R³) = q z/(2πε0R³) …(7)
R³ = (z² + d²/4)3/2 ⇒ E = q z/(2πε0(z²+d²/4)3/2) az …(8)
Step 5 — limits of (8):
z = 0 ⇒ E = 0 (the two pulls are opposite and equal) …(9)
z ≫ d ⇒ (z²+d²/4)3/2 ≈ z³ ⇒ E ≈ q z/(2πε0z³) = 2q/(4πε0z²) …(10)
Answer. E = q z/(2πε0(z²+d²/4)3/2) az — zero at z = 0, peaking near z = d/2, and for z ≫ d the field of a point charge 2q, as (10) shows.
Worked problem · equivalent point charge of a ring
A circular ring of charge of radius 5 m lies in the z = 0 plane centred at the origin, with ρL = 10 nC/m. Find the point charge Q placed at the origin that produces the same E at the point (0, 0, 5) m.
Setup. Ring radius a = 5 m in the z = 0 plane, ρL = 10 nC/m, field point P(0, 0, 5) m; 1/(4πε0) = 9×10⁹.
Step 1 — total charge of the ring:
Qring = 2πa ρL = 2π(5)(10×10⁻⁹) = 100π×10⁻⁹ = 314.2 nC …(1)
Step 2 — geometry of the axial point:
a² + z² = 25 + 25 = 50 m² …(2)
(a² + z²)3/2 = 501.5 = 50√50 = 50(7.071) = 353.6 m³ …(3)
Step 3 — ring field at P, from (6) of the ring derivation:
E = Qring z/(4πε0(a²+z²)3/2) …(4)
= 9×10⁹·314.2×10⁻⁹·5/353.6 = 14139/353.6 = 39.99 V/m az …(5)
Step 4 — point charge at the origin giving the same field at z = 5:
Ept = Q/(4πε0z²) = 9×10⁹Q/25 …(6)
set (6) equal to (5): 9×10⁹Q/25 = 39.99 ⇒ Q = 39.99·25/(9×10⁹) = 999.8/(9×10⁹) …(7)
Q = 1.111×10⁻⁷ C = 111.1 nC …(8)
Step 5 — check with the ring formula directly:
Qeq = Qring z³/(a²+z²)3/2 = 314.2·125/353.6 = 39275/353.6 = 111.1 nC ✓ …(9)
Answer. Q = 111.1 nC at the origin reproduces E = 39.99 V/m az at (0, 0, 5) m. It is well under Qring = 314.2 nC: at P only the axial fraction cosα = z/√(a²+z²) = 5/7.071 = 0.707 of the ring's field survives, and it falls off faster than a point charge's.

11Electric flux and flux density D

Electric flux ψ is the count of field lines through a surface — the charge that creates them: ψ = Q coulombs. Flux lines leave positive charge and enter negative charge, never cross, and are perpendicular to conductor surfaces.

Electric flux density D (displacement density, C/m²) is flux per unit area: D = ε0E in free space, D = εE in a dielectric, and it is defined so that its total through a closed surface counts the enclosed charge — whatever the medium:

Point charge: D = Q/(4πr²) ar    Line: D = ρL/(2πρ) aρ    Sheet ρS: D = ρS/2  an (each side)    general: D = εE
E vs D. Alike: both are inverse-square fields of point sources, both point radially from a point charge, both add by superposition. Different: E (V/m) is force per unit charge — it depends on the medium through ε and exerts forces on charges; D (C/m²) is flux density — it is medium-independent in the "counts charge" sense (D = ε0E + P), its lines begin and end on free charge, and it has no force meaning.
Worked problem · definition
Give a brief discussion of electric flux and electric flux density, the relation between electric flux density and electric field intensity, and the similarities and differences between E and D. Write the expressions for the electric flux density due to point, line, surface and volume charge distributions.
Setup. A charge Q (C) and a surface of area S through which its flux passes; ε = ε0εr, ε0 = 8.854×10⁻¹² F/m.
Step 1 — electric flux:
ψ = ∮SD·dS = Qenc (coulombs) …(1)
the count of field lines leaving a charge; lines leave +Q, enter −Q, never cross, and meet a conductor perpendicularly
Step 2 — flux density as flux per unit area:
D = ψ/S = Q/(4πr²) for a sphere of radius r about Q …(2)
units C/m² — the displacement density
Step 3 — relation to the field intensity:
D = ε0E (free space),   D = εE = ε0εrE (dielectric) …(3)
Step 4 — the four distributions:
point: D = Q ar/(4πr²) …(4)
line: D = ρL aρ/(2πρ) …(5)
sheet: D = ρS/2 an on each side …(6)
volume: D = ∫ρv dv aR/(4πR²), and in general D = εE …(7)
Answer. ψ = Q, D = εE, with (4)–(7) for the four distributions. Similar: both radial from a point source, both inverse-square, both superpose. Dissimilar: E is force per unit charge (V/m) and is medium-dependent; D is flux per area (C/m²), tied to enclosed free charge, and is what Gauss's law counts.
Worked problem · point + line combined
Determine the electric flux density D at (4, 0, 3) if there is a point charge −5π mC at (4, 0, 0) and a line charge of 3π mC/m along the y-axis.
Setup. Point charge Qp = −5π mC at (4, 0, 0) m; line charge ρL = 3π mC/m along the y-axis; field point P(4, 0, 3) m.
Step 1 — vector from the point charge to P:
R = (4, 0, 3) − (4, 0, 0) = (0, 0, 3) m …(1)
|R| = 3 m,   |R|³ = 27 m³ …(2)
Step 2 — flux density of the point charge, D = QR/(4π|R|³):
Dp = (−5π×10⁻³)(0, 0, 3)/(4π·27) …(3)
= (−15π×10⁻³)/(108π) az = −1.389×10⁻⁴ az C/m² …(4)
= −0.139 az mC/m² …(5)
Step 3 — perpendicular distance from the y-axis and its direction:
ρ = √(x² + z²) = √(4² + 3²) = √25 = 5 m …(6)
aρ = (4, 0, 3)/5 = (0.8, 0, 0.6) …(7)
Step 4 — flux density of the line, D = ρLaρ/(2πρ):
Dl = 3π×10⁻³/(2π·5) (0.8, 0, 0.6) = 3×10⁻⁴(0.8, 0, 0.6) …(8)
= (0.24, 0, 0.18) mC/m² …(9)
Step 5 — superposition, (5) + (9):
D = (0.24 + 0, 0 + 0, 0.18 − 0.139) = (0.24, 0, 0.041) mC/m² …(10)
|D| = √(0.24² + 0.041²) = √(0.0576 + 0.00168) = √0.05928 = 0.244 mC/m² …(11)
Answer. D = 0.24 ax + 0.041 az mC/m², |D| = 0.244 mC/m².
Worked problem · point + line, two points
A point charge of 6 µC is located at the origin and a uniform line charge density of 180 nC/m lies along the x-axis. Find D at the point A(0, 0, 4) and at the point B(1, 2, 4).
Setup. Point charge 6 µC at the origin; line charge ρL = 180 nC/m along the x-axis; field points A(0, 0, 4) m and B(1, 2, 4) m.
Step 1 — point-charge flux density at A (r = 4 along az):
Dp = Q/(4πr²) az = 6×10⁻⁶/(4π·16) = 6×10⁻⁶/201.1 …(1)
= 2.984×10⁻⁸ az C/m² = 29.84 az nC/m² …(2)
Step 2 — line-charge flux density at A (ρ = 4, direction az):
Dl = ρL/(2πρ) az = 180×10⁻⁹/(2π·4) = 180×10⁻⁹/25.13 …(3)
= 7.162×10⁻⁹ az C/m² = 7.16 az nC/m² …(4)
Step 3 — superposition at A, (2) + (4):
DA = 29.84 + 7.16 = 37 az nC/m² …(5)
Step 4 — point-charge flux density at B:
R = (1, 2, 4) − (0, 0, 0) = (1, 2, 4) m …(6)
|R| = √(1 + 4 + 16) = √21 = 4.583 m ⇒ |R|³ = 211.5 = 96.23 m³ …(7)
Dp = 6×10⁻⁶(1, 2, 4)/(4π·96.23) = 6×10⁻⁶(1, 2, 4)/1209 …(8)
= (4.96, 9.92, 19.85)×10⁻⁹ C/m² = (4.96, 9.92, 19.85) nC/m² …(9)
Step 5 — line-charge flux density at B:
ρ = √(y² + z²) = √(4 + 16) = √20 = 4.472 m …(10)
aρ = (0, 2, 4)/√20 = (0, 0.4472, 0.8944) …(11)
Dl = 180×10⁻⁹/(2π·4.472) (0, 0.4472, 0.8944) = 6.406×10⁻⁹(0, 0.4472, 0.8944) …(12)
= (0, 2.86, 5.73) nC/m² …(13)
Step 6 — superposition at B, (9) + (13):
DB = (4.96 + 0, 9.92 + 2.86, 19.85 + 5.73) = (4.96, 12.79, 25.58) nC/m² …(14)
|DB| = √(4.96² + 12.79² + 25.58²) = √(24.60 + 163.58 + 654.34) = √842.5 = 29.0 nC/m² …(15)
Answer. DA = 37 az nC/m² and DB = (4.96, 12.79, 25.58) nC/m², |DB| ≈ 29.0 nC/m².

12Gauss's law and its applications

Gauss's law. The total electric flux through any closed surface equals the charge enclosed:

∮S D·dS = Qenc      ∮S E·dS = Qenc/ε0      (free space)
the surface may be any shape — pick the one on which D is constant and normal (a Gaussian surface mirroring the symmetry of the charge).
Derivation · differential form
State Gauss's law of electrostatics and express it mathematically in terms of both the electric field intensity and the electric flux density. From the integral form, derive the differential form of Gauss's law.
Setup. A closed surface S bounding a volume v, with D the flux density and ρv the volume charge density inside.
Step 1 — integral form of Gauss's law:
∮SD·dS = Qenc     ∮SE·dS = Qenc/ε0 …(1)
Step 2 — divergence theorem applied to the left side of (1):
∮SD·dS = ∫v(∇·D) dv …(2)
Step 3 — enclosed charge written as a volume integral:
Qenc = ∫vρv dv …(3)
Step 4 — substituting (2) and (3) into (1):
∫v(∇·D) dv = ∫vρv dv …(4)
true for any volume, so the integrands must be equal at every point
Step 5 — differential form, and the free-space version:
∇·D = ρv …(5)
D = ε0E ⇒ ε0∇·E = ρv ⇒ ∇·E = ρv/ε0 …(6)
Answer. ∇·D = ρv and ∇·E = ρv/ε0 — Maxwell's first equation in electrostatics.
Derivation · point charge
Using Gauss's law, find the electric flux density due to a point charge at a distance r, and the electric field intensity due to the point charge in free space using both Gauss's law and Coulomb's law.
Setup. Point charge Q at the origin; Gaussian sphere of radius r centred on it; dS = r² sinθ dθ dφ ar.
Step 1 — symmetry argument:
D = Dr(r) ar (radial, and the same magnitude at every point of the sphere) …(1)
D·dS = Dr ar·ar dS = Dr dS …(2)
Step 2 — Gauss's law on the sphere:
∮SD·dS = Dr∮SdS = Dr·4πr² = Q …(3)
Dr = Q/(4πr²) ⇒ D = Q ar/(4πr²) …(4)
Step 3 — field intensity from D = ε0E:
E = D/ε0 = Q ar/(4πε0r²) …(5)
Step 4 — the Coulomb route to the same result:
F = qQ/(4πε0r²) …(6)
E = F/q = [qQ/(4πε0r²)]/q = Q/(4πε0r²) ⇒ Q ar/(4πε0r²) …(7)
Answer. D = Q/(4πr²) ar and E = Q ar/(4πε0r²); (5) and (7) are identical — Gauss's law is Coulomb's law plus symmetry.
Derivation · infinite line
Using Gauss's law, find the electric flux density and the electric field intensity due to an infinitely long straight wire in free space with line charge density ρL, and compare with the field of a finite line charge in the limit of infinite length.
Setup. Infinitely long straight wire along z with uniform ρL (C/m); coaxial Gaussian cylinder of radius ρ and length L; curved area 2πρL, two end caps of area πρ².
Step 1 — symmetry argument:
D = Dρ(ρ) aρ: radial, constant on the curved surface …(1)
on the end caps D·dS = Dρ aρ·(±az) dS = 0 ⇒ caps carry no flux …(2)
Step 2 — Gauss's law on the cylinder:
∮SD·dS = Dρ(2πρL) + 0 + 0 = Qenc …(3)
Qenc = ρLL (only the enclosed length of wire) …(4)
Step 3 — substituting (4) into (3):
Dρ·2πρL = ρLL ⇒ Dρ = ρL/(2πρ) ⇒ D = ρL aρ/(2πρ) …(5)
Step 4 — field intensity from D = ε0E:
E = D/ε0 = ρL/(2πε0ρ) aρ …(6)
Step 5 — comparison with the finite line of section 9, equation (10):
E⊥ = ρL/(4πε0h) (sinθ2 − sinθ1) …(7)
L → ∞ ⇒ θ2 → +90°, θ1 → −90° ⇒ sinθ2 − sinθ1 → 1 − (−1) = 2 …(8)
E⊥ → ρL·2/(4πε0h) = ρL/(2πε0h) …(9)
Answer. D = ρL/(2πρ) aρ and E = ρL/(2πε0ρ) aρ; (9) is exactly (6) with h = ρ — the two routes agree.
+QDsphere: D·4πr² = QρL wire (behind)Dcoaxial cylinder: D·2πρL = ρL·Lpick the Gaussian surface that mirrors the symmetry — D then walks out of the integral
Gaussian surfaces for a point charge (sphere) and an infinite line (coaxial cylinder).

13Gauss's law — worked problems

Worked problem · field from E
The electric field in some region is found to be E = k r³ ar in spherical coordinates (k a constant). Find (a) the charge density ρv, and (b) the total charge contained in a sphere of radius R centred at the origin.
Setup. E = k r³ ar (spherical, k a constant), so Er = k r³, Eθ = Eφ = 0; sphere of radius R about the origin.
Step 1 — (a) divergence of E in spherical coordinates:
∇·E = (1/r²)∂(r²Er)/∂r + (1/r sinθ)∂(sinθEθ)/∂θ + (1/r sinθ)∂Eφ/∂φ …(1)
= (1/r²)∂(r²·k r³)/∂r + 0 + 0 …(2)
Step 2 — carry out the radial derivative:
r²·k r³ = k r⁵ ⇒ ∂(k r⁵)/∂r = 5k r⁴ …(3)
∇·E = (1/r²)·5k r⁴ = 5k r² …(4)
Step 3 — charge density from ∇·E = ρv/ε0:
ρv = ε0∇·E = 5k ε0 r² C/m³ …(5)
Step 4 — (b) total charge by volume integration of (5):
Q = ∫vρv dv = ∫0R5kε0r²·4πr² dr = 20πkε0∫0Rr⁴ dr …(6)
∫0Rr⁴ dr = R⁵/5 ⇒ Q = 20πkε0·R⁵/5 = 4πk ε0 R⁵ …(7)
Step 5 — cross-check through the surface integral:
∮SE·dS = Er(R)·4πR² = kR³·4πR² = 4πkR⁵ …(8)
Q = ε0∮SE·dS = 4πk ε0 R⁵ …(9)
Answer. ρv = 5kε0r² and Q = 4πkε0R⁵; (7) and (9) agree — consistent.
Worked problem · flux through a cube
Given D = (2x² + z) ax + 4xy ay + x az C/m², find (a) the volume charge density at (−1, 0, 3), (b) the flux through the cube 0 ≤ x, y, z ≤ 1, and (c) the total charge enclosed by the cube.
Setup. D = (2x² + z) ax + 4xy ay + x az C/m²; cube 0 ≤ x, y, z ≤ 1, so dv = dx dy dz and every face has unit area.
Step 1 — (a) divergence of D:
∇·D = ∂(2x²+z)/∂x + ∂(4xy)/∂y + ∂(x)/∂z …(1)
= 4x + 4x + 0 = 8x …(2)
Step 2 — charge density at (−1, 0, 3):
ρv = 8x = 8(−1) = −8 C/m³ …(3)
Step 3 — (b) flux as the volume integral of (2):
ψ = ∫v8x dv = 8∫01x dx·∫01dy·∫01dz = 8·[x²/2]01·1·1 …(4)
= 8·0.5 = 4 C …(5)
Step 4 — (c) face x = 1, normal +ax, Dx = 2 + z:
∫01∫01(2 + z) dy dz = 2 + [z²/2]01 = 2 + 0.5 = 2.5 C …(6)
Step 5 — face x = 0, normal −ax, Dx = z:
−∫01∫01z dy dz = −[z²/2]01 = −0.5 C …(7)
Step 6 — the two y-faces, Dy = 4x:
y = 1: ∫01∫014x dx dz = 4·0.5·1 = 2 C …(8)
y = 0: Dy = 4x but the normal is −ay, and the same integral is subtracted ⇒ 0 net for the pair …(9)
Step 7 — the two z-faces, Dz = x:
z = 1: ∫01∫01x dx dy = 0.5·1 = 0.5 C …(10)
z = 0: Dz = x there too, normal −az ⇒ −0.5 C, not zero …(11)
Step 8 — net outward flux, (6)–(11):
∮SD·dS = 2.5 − 0.5 + 2 + 0 + 0.5 − 0.5 = 4 C …(12)
Answer. ρv(−1, 0, 3) = −8 C/m³, flux ψ = 4 C, enclosed charge 4 C — (5) and (12) agree.
Worked problem · divergence theorem, cone
Given D = (5r²/4) ar C/m², evaluate both sides of the divergence theorem for the volume enclosed by r = 4 m and θ = π/4.
Setup. D = (5r²/4) ar C/m²; volume bounded by r = 4 and the cone θ = π/4 (an ice-cream cone); dv = r² sinθ dr dθ dφ.
Step 1 — divergence of D (as in section 6):
∇·D = (1/r²)∂(r²·5r²/4)/∂r = (1/r²)(5r³) = 5r …(1)
Step 2 — volume integral of (1):
∫v5r dv = ∫045r·r² dr · ∫0π/4sinθ dθ · ∫02πdφ …(2)
∫045r³ dr = 5[r⁴/4]04 = 5(256/4) = 320 …(3)
∫0π/4sinθ dθ = [−cosθ]0π/4 = 1 − cos45° = 1 − 0.7071 = 0.2929 …(4)
∫02πdφ = 2π = 6.2832 …(5)
Step 3 — substituting (3), (4) and (5) into (2):
∫v(∇·D) dv = 320·0.2929·6.2832 = 588.9 C (187.45π) …(6)
Step 4 — cone face θ = π/4:
D = Dr ar, dS = dS aθ ⇒ D·dS = Dr ar·aθ dS = 0 ⇒ flux = 0 …(7)
Step 5 — spherical cap r = 4:
Dr(4) = 5(16)/4 = 20 C/m² …(8)
Scap = 2πr²(1 − cosθ) = 2π(16)(0.2929) = 29.44 m² …(9)
ψ = 20·29.44 = 588.9 C …(10)
Answer. (6) and (10) agree: 588.9 C = 187.45π C — and the cone face contributing nothing is the whole trick.

14One-page formula sheet

QuantityFormulaNotes
Dot / cross productA·B = |A||B|cosθ    |A×B| = |A||B|sinθprojection / parallelogram area
Transformationsρ = √(x²+y²), φ = tan⁻¹(y/x), r = √(x²+y²+z²), θ = cos⁻¹(z/r)mind the quadrant of φ
Differential elementsdv = dx dy dz = ρ dρ dφ dz = r²sinθ dr dθ dφscale factors hρ, hφ, hθ
Gradient∇V = (∂V/∂l) unit vectors, component (1/hi)∂V/∂imax increase direction
Divergence∇·D = ρv   (1/r²)∂(r²Dr)/∂r in sphericalGauss law, point form
Curl∇×A determinant form; ∇·(∇×A) = 0, ∇×(∇V) = 0Stokes: ∮A·dl = ∫(∇×A)·dS
Coulomb forceF = q1q2/(4πε0r²) = 9×10⁹q1q2/r²along the joining line
E of point chargeE = Q ar/(4πε0r²)D = Q ar/(4πr²)
E of infinite lineE = ρL/(2πε0ρ) aρD = ρL/(2πρ) aρ
Finite line (bisector)E = ρL(sinθ2 − sinθ1)/(4πε0h) a⊥→ ρL/(2πε0h) as L → ∞
Ring on axisE = Q z/(4πε0(a²+z²)3/2) azQ = 2πaρL
Gauss law∮D·dS = Qenc    ∇·D = ρvpicks symmetric D in one step
Divergence theorem∮D·dS = ∫(∇·D) dvcloses surface ↔ point
Constantsε0 = 8.854×10⁻¹² F/m, 1/(4πε0) = 9×10⁹ε = ε0εr