Griffiths Chapter 1 built for Chapters 2-4: the separation vector, gradient, divergence and curl, the three integral theorems, spherical and cylindrical coordinates, and the delta function.
Subject: Electrodynamics (Griffiths) · 64 slides · diagram-first lesson
Open the interactive version of this deck · Homework for this lesson
Title
Griffiths, Chapter 1
Gradient, divergence, curl, the three big theorems — everything Chapters 2-4 will lean on
Objectives
Chapter 1 is not really a chapter about maths. It is Griffiths handing you the five tools he is about to use on every page of electrostatics.
Everything here comes back in Chapter 2 wearing a physics costume: divergence becomes Gauss's law, curl becomes the electric field is conservative, gradient becomes E is minus the slope of V.
You almost certainly opened this book for electricity and magnetism, and the first fifty pages are gradients, surface integrals, and theorems with people's names attached. It is a fair moment to wonder whether this part really counts.
It does, and here is why. Griffiths is not teaching vector calculus for its own sake — he is handing you the five instruments he is about to use on every page of electrostatics, and he would rather do it now than stop halfway through a derivation to explain what a curl is.
So here is the ending, in advance. Divergence is about to become Gauss's law. Curl becomes the reason a potential exists at all. Gradient is how you get the field back out of that potential. The three big theorems let you switch between the local and the global version of every law. And the delta function is what lets a point charge sit inside an integral without breaking it.
If you are impatient to reach the physics, hold on to this: every tool in this deck reappears within about two weeks, and the one you skip is the one that will stop you.
Section
Section 1
Concept
Figure (svg): Two identical arrows drawn at different places on the page, both pointing up and to the right, marked as the same vector A.
A vector has a magnitude (how long) and a direction (which way). Where you draw it on the page is not part of it.
A scalar — temperature, charge, mass — has only a magnitude. Getting this distinction wrong is the single most common source of sign errors in Chapter 2.
The definition is the easy half. What deserves your attention is what it leaves out — a vector is a length and a direction, and nothing else at all. In particular it carries no position. The two arrows above are drawn in different places on the page, and they are the same vector.
That sounds like pedantry right up until the separation vector turns up a few slides from now, which is exactly where position starts getting smuggled back in without anyone noticing.
Now set it against a scalar — temperature, charge, mass, energy — which has a size and nothing more. The distinction feels too obvious to be worth dwelling on, and it is behind most of the sign errors in Chapter 2: a direction gets attached to something that has not got one, or dropped from something that has.
Quick test of whether it has landed. Does it mean anything to say the temperature in this room points north? If that sounds absurd to you, you have the distinction.
Intuition
At every point in space around a charge, something is pushing — and the push has a direction that changes from point to point.
Figure (svg): A positive charge at the centre with twelve arrows pointing radially outward, longer near the charge and shorter far away.
That object — a vector attached to every point of space — is a vector field. Chapters 2 through 4 are the study of two of them.
This is the reason all the apparatus that follows exists, so it is worth a moment.
Around a charge, something is pushing at every point in space — and the push has both a strength and a direction, and both change from point to point. A single number at each point could record the strength, but it could never say which way.
That object — a whole vector attached to every point of space — is a vector field, and it is the central character of the next three chapters. Both the electric and the magnetic field are of this kind.
In the animation, the arrows are longer near the charge and shorter far away, which carries the strength, and they point radially outward, which carries the direction. Two pieces of information at every one of infinitely many points.
Notation
This one symbol appears in nearly every formula in Chapters 2-4. If you never decode it, none of them make sense.
Figure (svg): Origin at bottom left, a source point marked r-prime, a field point marked r, and a third arrow from source to field point labelled as the separation vector.
Annotate
On: \( \boldsymbol{\mathfrak{r}} = \mathbf{r} - \mathbf{r}' \)
\[ \mathfrak{r} = |\mathbf{r} - \mathbf{r}'|, \qquad \hat{\boldsymbol{\mathfrak{r}}} = \frac{\boldsymbol{\mathfrak{r}}}{\mathfrak{r}} \]
Read it out loud every time: from the charge, to the point I care about. The direction of that arrow is the direction a positive test charge would be pushed.
This is the most important slide in the deck for surviving Chapter 2, so it is worth more time than its size suggests.
Here is the problem it solves. In any field calculation there are two different positions in play: where the charge is, and where you are asking about the field. Confusing the two is the single most common setup error in the whole course, and this notation exists to keep them apart.
Griffiths' convention is that primed coordinates are source points — where the charge sits — and unprimed ones are field points, where you want the answer. The separation vector is the difference between them, and it points from the source to the field point.
Say the direction out loud every time you write it: from the charge, to the place I care about. That is the direction a positive test charge would be pushed, which is why this unit vector sits on the end of every field formula in the book.
One presentational note. Griffiths draws this as a script r; these slides render it as a bold fraktur letter, because that is what the typesetting supports. Same object. Worth knowing now, so it does not throw you when you open the book.
Concept
Figure (svg): Vector A drawn, then vector B starting where A ends, and a third arrow from the start of A to the tip of B labelled A plus B.
Multiplying by a scalar stretches the arrow (a positive) or flips and stretches it (a negative). This is all of vector algebra you need for Chapter 2 superposition.
\[ a(\mathbf{A} + \mathbf{B}) = a\mathbf{A} + a\mathbf{B} \]
A quick slide, with two things worth saying.
Head-to-tail addition is the geometric statement and adding components is the algebraic one. They are the same operation, and it pays to be fluent in both directions: the picture tells you whether an answer is plausible, and the algebra is what actually gets it.
Scalar multiplication stretches a vector, and multiplying by a negative number flips it as well as stretching it. That is the entire vector algebra that superposition needs in Chapter 2 — which is worth saying, because the machinery really is that small.
Concept
Figure (svg): Two vectors from a common origin with angle theta between them, and a dashed line dropping A onto B showing the projection.
\[ \mathbf{A} \cdot \mathbf{B} = AB\cos\theta \]
It returns a scalar — a plain number, no direction. Two consequences you will use constantly:
\[ \mathbf{A} \cdot \mathbf{B} = A_xB_x + A_yB_y + A_zB_z \]
Start with the geometry rather than the formula. The formula is easy to remember and not much use without the picture.
The dot product answers one question: how much of this vector lies along that one? The dashed line drops A onto B, and the length of that shadow, times the length of B, is the dot product.
Two consequences worth drawing out. Perpendicular vectors have zero dot product, because the shadow has no length — that is what makes flux calculations collapse whenever the field skims along a surface. And the dot product of a vector with itself is its length squared, which is how you get magnitudes out of components.
The result is a scalar. No direction at all. If you ever catch yourself asking which way a dot product points, that is the signal something has slipped.
Worked example
Griffiths' Example 1.2. Watch how a geometry question becomes arithmetic the moment you write coordinates.
Figure (svg): A cube drawn in perspective with two face diagonals highlighted, meeting at a corner.
Place the cube with one corner at the origin and sides of length 1
Why: Any answer about angles cannot depend on the size or position of the cube, so choose the values that make the arithmetic trivial.
\[ \mathbf{A} = 1\,\hat{\mathbf{x}} + 0\,\hat{\mathbf{y}} + 1\,\hat{\mathbf{z}}, \qquad \mathbf{B} = 0\,\hat{\mathbf{x}} + 1\,\hat{\mathbf{y}} + 1\,\hat{\mathbf{z}} \]
Take the dot product two ways: by components, and by the cosine formula
Why: Components give a number; the cosine formula contains the unknown angle. Setting them equal solves for the angle.
\[ \mathbf{A}\cdot\mathbf{B} = (1)(0) + (0)(1) + (1)(1) = 1 \]
\[ A = B = \sqrt{1^2 + 1^2} = \sqrt{2} \quad \Rightarrow \quad \mathbf{A}\cdot\mathbf{B} = 2\cos\theta \]
Solve for the angle
Why: One equation, one unknown — the geometry has been fully replaced by arithmetic.
\[ \cos\theta = \tfrac{1}{2} \quad \Rightarrow \quad \theta = 60^\circ \]
Verify: 60 degrees is believable
Why: The two diagonals plus the cube edge joining their far ends form a triangle whose three sides all have length root 2 — an equilateral triangle, whose angles are 60 degrees. The answer checks out geometrically.
The value of this example is the strategy, not the answer.
The key move happens at the very start: put the cube somewhere convenient and give it side one. The angle between two diagonals cannot depend on where the cube sits or how big it is, so you are free to pick whatever makes the arithmetic trivial. Carrying an unknown side length through the entire calculation and watching it cancel at the end is wasted effort.
After that, the geometry has been converted into arithmetic. Write both vectors in components, compute the dot product two ways — once by components, once by the cosine formula — and set the two equal.
The verification is worth doing because it is completely independent of the algebra. The two diagonals, plus the cube edge joining their far ends, form a triangle whose three sides all have length root two. An equilateral triangle has sixty-degree angles, which confirms the answer geometrically.
Concept
Figure (svg): Two vectors in a horizontal plane with a third vector pointing straight up out of the plane, and a hand-rule reminder.
\[ \mathbf{A} \times \mathbf{B} = AB\sin\theta\, \hat{\mathbf{n}} \]
n-hat is the unit vector perpendicular to the plane of A and B, in the direction your right thumb points when your fingers sweep from A to B.
\[ \mathbf{A} \times \mathbf{B} = \begin{vmatrix} \hat{\mathbf{x}} & \hat{\mathbf{y}} & \hat{\mathbf{z}} \\ A_x & A_y & A_z \\ B_x & B_y & B_z \end{vmatrix} \]
Its magnitude is the area of the parallelogram A and B span. Parallel vectors span no area, so their cross product is zero.
The cross product is the one that feels genuinely alien at first, so anchor it in the picture before the formula.
It produces a vector perpendicular to both inputs — out of the plane they span. That is a strong statement: whatever the answer is, it cannot lie in the plane of the two vectors you started with, which on its own rules out most wrong answers.
Its magnitude is the area of the parallelogram the two vectors span, which explains why parallel vectors give zero: they span no area at all.
The direction comes from the right-hand rule, and it has to be the right hand every time. Do it physically — fingers along A, curl them toward B, thumb gives the answer — rather than trying to picture it in your head. The determinant is the computational route once the geometry is clear.
Prediction
Figure (svg): Vector A pointing east and vector B pointing north, drawn in the plane of the page.
Predict first
A points right along the page and B points up the page. Which way does A × B point?
Correct: Out of the page, toward you
Why: Point the fingers of your RIGHT hand along A (to the right), then curl them toward B (up the page). Your thumb points out of the page. Note that B × A would point into the page — the cross product is anti-commutative, and that minus sign is a real physical difference, not bookkeeping.
Any answer that lies in the page had to be wrong: the cross product is always perpendicular to both inputs, and both inputs live in the page.
Commit before revealing, because the elimination reasoning is worth more here than the answer.
Both input vectors lie in the plane of the page, and the cross product is perpendicular to both. So the answer cannot lie in the page at all, which eliminates two of the four options before you do any thinking about handedness.
Then the right-hand rule settles the rest: fingers along A pointing right, curling up toward B, and your thumb comes out of the page.
Worth noting the reverse case in the same breath. B cross A points into the page — same magnitude, opposite direction — and in Chapter 5 that sign is the difference between two current-carrying wires attracting and repelling.
Trap
Asked to simplify B × A given that A × B points out of the page:
Write B × A = A × B, since multiplication is commutative
Why: Every product you have met since primary school commutes, so the hand reaches for it automatically.
\[ \mathbf{B} \times \mathbf{A} \overset{?}{=} \mathbf{A} \times \mathbf{B} \]
This says the field of a current loop points the same way whichever way the current runs. Physically absurd.
The cross product is anti-commutative — swapping the inputs flips the result:
Write B × A = -(A × B)
Why: Sweeping your right hand from B to A instead of A to B turns your thumb through 180 degrees; the magnitude AB sin θ is unchanged, the direction reverses.
\[ \mathbf{B} \times \mathbf{A} = -(\mathbf{A} \times \mathbf{B}) \]
So B × A points into the page. Same size, opposite direction — and in Chapter 5 that sign is the difference between attraction and repulsion.
The mistake here is a deeply trained reflex rather than carelessness. Every product you have met since primary school commutes, so the hand writes it automatically.
The refutation is easier to feel physically than algebraically. If the cross product commuted, the magnetic field of a current loop would point the same way regardless of which direction the current flowed around it, which is plainly absurd.
The correct statement is anti-commutativity: swapping the inputs flips the sign. Geometrically, sweeping your right hand from B to A instead of A to B turns your thumb through a hundred and eighty degrees. The magnitude is untouched, because it depends on the sine of the angle between them, which does not care about the order.
Comparison
Nearly every 'I do not know how to start' moment in this course is really 'I do not know which product this is'.
Comparison matrix
| dot product | cross product | |
|---|---|---|
| result is a | scalar | vector |
| maximum when | parallel | perpendicular |
| zero when | perpendicular | parallel |
| swap the inputs | no change | sign flips |
| geometric meaning | projection / shadow | area of the parallelogram |
In Chapter 2 you will use the dot product for flux (how much field crosses a surface) and, in Chapter 5, the cross product for magnetic force.
Use this grid as a diagnostic. Nearly every 'I do not know how to start' moment in this course is really 'I do not know which product this is'.
The two rows worth making automatic are the first and the third. The dot product returns a scalar and the cross returns a vector. And the dot is largest when the vectors are parallel, while the cross is largest when they are perpendicular — which is exactly backwards from what most people assume at first.
Look ahead to where each one gets used. Dot products turn up in flux, work and potential differences, all of which are numbers. Cross products turn up in torque, magnetic force and area vectors, all of which have directions.
Pattern
Read the physical question, not the symbols.
Then check the trivial cases before you trust the algebra: parallel inputs kill a cross product, perpendicular inputs kill a dot product.
This is the decision procedure, and it works by reading the physical question rather than the symbols.
If the question is 'how much of one thing lies along another' — work, flux, a projection — it is a dot product. If it is 'what is perpendicular to both of these' — torque, magnetic force, an area vector — it is a cross product.
The type check is the fastest filter and worth drilling until it is automatic. Does the answer need a direction? Then it cannot be a dot product. Is the answer a single number? Then it cannot be a cross product.
Then check the trivial cases before trusting the algebra. Parallel inputs kill a cross product; perpendicular inputs kill a dot product. Testing a setup against those two catches a surprising share of errors.
Check
Try it on paper before you click.
Check your understanding
A force of 5 N acts on an object that moves 3 m, with a 60 degree angle between the force and the displacement. How much work is done?
Answer: A
Why: Work is a dot product: W = F d cos θ = (5 N)(3 m)cos 60° = (15)(0.5) = 7.5 J. It is a scalar — energy has no direction.
Work is the standard first application of the dot product, and this question is really testing whether the type check has landed.
The arithmetic is straightforward. The reasoning worth reinforcing is that work is a scalar — energy has no direction — which eliminates option D immediately, whatever number comes in front of it.
Option C swaps sine for cosine, which is the cross-product factor. Force times distance times sine is a torque rather than work, and naming that is what stops the two formulas blurring together.
Section
Section 2
Intuition
Ordinary calculus has one derivative. Vector calculus has three — but they are all the same operator applied differently.
\[ \nabla = \hat{\mathbf{x}}\frac{\partial}{\partial x} + \hat{\mathbf{y}}\frac{\partial}{\partial y} + \hat{\mathbf{z}}\frac{\partial}{\partial z} \]
Figure (svg): Three branches from a single del symbol: del applied to a scalar gives gradient, del dotted with a vector gives divergence, del crossed with a vector gives curl.
Del is not a vector — it is an instruction waiting for something to act on. But it obeys enough vector rules that treating it like one, carefully, works.
This is what stops the three derivatives feeling like three unrelated things to memorise.
Del is a single object, and it is not really a vector — it is an instruction waiting for something to act on. But it obeys enough of the algebra of vectors that treating it carefully as one works out.
The three branches are just the three things you can do with a vector-like object. Apply it to a scalar and you get a vector: the gradient. Dot it into a vector and you get a scalar: the divergence. Cross it into a vector and you get a vector: the curl.
The type table at the bottom is worth memorising on its own, because it catches errors instantly. Producing a scalar from a curl, or taking the gradient of a vector, gets flagged by the type check before any physics is involved.
Concept
Figure (svg): A contour map of a hill with closed loops, and arrows perpendicular to the contours pointing toward the summit, longer where contours bunch together.
\[ \nabla T = \frac{\partial T}{\partial x}\hat{\mathbf{x}} + \frac{\partial T}{\partial y}\hat{\mathbf{y}} + \frac{\partial T}{\partial z}\hat{\mathbf{z}} \]
The gradient of a scalar function is a vector: it points in the direction of steepest increase, and its length is the rate of increase in that direction.
\[ dT = \nabla T \cdot d\mathbf{l} \]
That one line is the whole meaning: the change you experience depends on the direction you step. Step along a contour and the dot product vanishes — no change.
The contour-map picture is the one to make permanent, because you almost certainly have the intuition already from hiking maps and it just needs connecting.
The gradient of a scalar function is a vector. It points in the direction of steepest increase, and its length is the rate of increase in that direction. On the map, the arrows point toward the summit and are longest where the contours bunch up.
The most useful line here is the one relating the change in T to a dot product with your step. In words: how much the function changes depends on which direction you step. Step along a contour, perpendicular to the gradient, and the dot product vanishes — no change at all.
That geometric fact, that a gradient is perpendicular to the level surfaces of its function, is what will make electric field lines perpendicular to equipotentials in two decks' time.
Intuition
On a hill, the ground is level at a summit, at the bottom of a bowl, and at a saddle. In all three, every direction you step is flat to first order.
Figure (svg): Three small landscapes side by side: a peak, a bowl, and a saddle, each with a flat point marked.
This matters in Chapter 3: Laplace's equation forbids maxima and minima inside a charge-free region, so every flat point of the potential there is a saddle.
Three different shapes give a vanishing gradient, and telling them apart matters later.
At a maximum, a minimum, or a saddle, every direction you can step is flat to first order. The gradient tells you nothing about which of the three you are standing on — that takes second derivatives.
The reason it comes up now is Chapter 3. Laplace's equation forbids maxima and minima of the potential inside a charge-free region, which means every flat point of V there has to be a saddle. That has the striking consequence that a charge cannot be trapped in a stable electrostatic equilibrium.
It is a memorable result, and knowing it is coming gives this discussion a purpose beyond the definition.
Worked example
Griffiths' Example 1.3 — and the single most reused gradient in the whole book.
\[ r = \sqrt{x^2 + y^2 + z^2} \]
Differentiate with respect to x, treating y and z as constants
Why: The chain rule on the square root: the derivative of the inside is 2x, halved by the square root's one-half power.
\[ \frac{\partial r}{\partial x} = \frac{1}{2}\frac{2x}{\sqrt{x^2+y^2+z^2}} = \frac{x}{r} \]
Do the same for y and z and assemble the vector
Why: The three partial derivatives are the three components of the gradient — no new work, just symmetry.
\[ \nabla r = \frac{x\hat{\mathbf{x}} + y\hat{\mathbf{y}} + z\hat{\mathbf{z}}}{r} = \frac{\mathbf{r}}{r} = \hat{\mathbf{r}} \]
Verify the answer against the picture
Why: The distance from the origin increases fastest if you walk directly away from the origin — direction r-hat — and it increases one metre per metre walked, so the magnitude must be exactly 1. Both features match.
Keep this result. In Chapter 2, the gradient of one over the separation distance is what turns the potential back into the field.
This is the most reused gradient in the whole book, so it is worth deriving rather than quoting.
The calculation is a chain rule on a square root, done once and then repeated by symmetry for the other two components. The result assembles into the position vector divided by its own length, which is the radial unit vector.
The verification against the picture is where the understanding lives. If you walk one metre directly away from the origin, how much does your distance from the origin increase? By one metre. So the magnitude of this gradient has to be exactly one — and it is, since the answer is a unit vector. And the direction of fastest increase is obviously straight away from the origin.
Keep this result. In Chapter 2, taking the gradient of one over the separation distance is the step that turns a potential back into a field.
Concept
Figure (svg): Three animated vector fields side by side: one streaming outward from a point, one flowing steadily to the right, one circulating around a centre.
\[ \nabla \cdot \mathbf{v} = \frac{\partial v_x}{\partial x} + \frac{\partial v_y}{\partial y} + \frac{\partial v_z}{\partial z} \]
divergence — The outflow per unit volume from an infinitesimal box around a point. Positive means the point is a source; negative means it is a sink; zero means whatever flows in flows straight back out.
Vector in, scalar out. Divergence is a number at each point, not a direction.
The animation is doing the teaching here, because the three cases side by side pre-empt the standard misconception.
Divergence measures spreading, not motion. The first panel spreads and has positive divergence. The second is a steady flow and the third is a rotation — both are obviously moving, and both have zero divergence.
It is very easy to equate 'divergence' with 'the field is doing something'. Those two counterexamples are the cure: two of the three panels are visibly in motion, and both have divergence zero.
The formula is the local version — differentiate each component along its own axis and add. Note the type: vector in, scalar out. Divergence is a number at each point, and asking which way it points is a category error.
Intuition
Shrink a box around a point. Count what leaves through the six faces, subtract what enters, and divide by the volume. That limit is the divergence.
Figure (svg): A small cube with arrows entering the left face and larger arrows leaving the right face, showing a net outflow.
Hold that image. In Chapter 2 the field is E, the box is a Gaussian surface, and the source inside is electric charge. Gauss's law is this picture with units attached.
This is the definition worth actually carrying, because it is the one that makes Gauss's law obvious later.
Shrink a box around a point. Count what flows out through the six faces, subtract what flows in, divide by the volume. That limit is the divergence.
Positive divergence means more leaves than enters, so something inside is creating the stuff — a source. Negative means a sink. Zero means whatever goes in comes back out.
Hold on to this image, because in two decks' time the field is E, the box is a Gaussian surface, and the source inside is electric charge. Gauss's law is this picture with units attached, and having the image already in place is what makes that law obvious rather than mysterious.
Worked example
Griffiths' Example 1.4. Three fields chosen so that the answers land on the three cases you must be able to tell apart.
Figure (svg): Left: arrows radiating outward from the origin. Middle: uniform upward arrows. Right: upward arrows growing longer with height.
Field a: write the components and differentiate each along its own axis
Why: The radial field has components x, y, z, so each partial derivative is 1.
\[ \mathbf{v}_a = x\hat{\mathbf{x}} + y\hat{\mathbf{y}} + z\hat{\mathbf{z}} \quad\Rightarrow\quad \nabla\cdot\mathbf{v}_a = 1+1+1 = 3 \]
Field b: a constant field has zero derivative everywhere
Why: Nothing changes from point to point, so no box anywhere gains or loses anything.
\[ \mathbf{v}_b = \hat{\mathbf{z}} \quad\Rightarrow\quad \nabla\cdot\mathbf{v}_b = 0 \]
Field c: only the z-component varies, and it varies with z
Why: This is the case students misread. The arrows all point the same way, but they get longer — so more leaves the top of a box than enters the bottom.
\[ \mathbf{v}_c = z\hat{\mathbf{z}} \quad\Rightarrow\quad \nabla\cdot\mathbf{v}_c = \frac{\partial z}{\partial z} = 1 \]
Verify against the pictures
Why: Field a visibly spreads (divergence 3, positive). Field b is a rigid uniform flow (divergence 0). Field c is stretching even though it never turns, so its divergence is positive — exactly what the algebra returned.
Three fields, chosen so the answers land on the three cases that have to be told apart.
The radial field spreads visibly and gives three. The constant field gives zero, because nothing changes from point to point and no box anywhere gains or loses anything.
The third is the one worth slowing down for. Every arrow points the same direction, so it looks like the uniform case — but the arrows get longer as you move along that direction. More leaves the top of a box than enters the bottom, so the divergence is positive even though the field never turns.
That case is the standard exam trap: a field can have divergence without visibly fanning out. What matters is whether each component changes along its own axis.
Concept
Figure (svg): An animated circulating field with a paddle wheel at its centre that visibly turns as the flow goes round.
\[ \nabla \times \mathbf{v} = \begin{vmatrix} \hat{\mathbf{x}} & \hat{\mathbf{y}} & \hat{\mathbf{z}} \\ \frac{\partial}{\partial x} & \frac{\partial}{\partial y} & \frac{\partial}{\partial z} \\ v_x & v_y & v_z \end{vmatrix} \]
Vector in, vector out. The curl points along the axis the paddle wheel spins about, by the right-hand rule, and its length is how fast.
The headline of Chapter 2: the electrostatic field has zero curl everywhere. No paddle wheel anywhere in electrostatics ever turns.
The paddle-wheel test is the definition to carry, and the animation makes it literal — the wheel actually turns.
Drop an imaginary paddle wheel into the field at a point. If it spins, the curl is non-zero there. The curl vector points along the axis it spins about, by the right-hand rule, and its magnitude says how fast.
Type check: vector in, vector out. The determinant is the computational device; the paddle wheel is the meaning.
And here is the headline that makes this whole section matter. The electrostatic field has zero curl everywhere. No paddle wheel anywhere in electrostatics ever turns, and that single fact is what makes the potential exist.
Worked example
Griffiths' Example 1.5, with the determinant written out once so you can see where each term comes from.
Field a: the shear field with components -y and x
Why: Its arrows circle the origin counter-clockwise, so the paddle wheel should spin about the z axis.
\[ \mathbf{v}_a = -y\,\hat{\mathbf{x}} + x\,\hat{\mathbf{y}} \]
\[ \nabla\times\mathbf{v}_a = \left(\frac{\partial v_y}{\partial x} - \frac{\partial v_x}{\partial y}\right)\hat{\mathbf{z}} = (1 - (-1))\hat{\mathbf{z}} = 2\hat{\mathbf{z}} \]
Field b: the field with a single component x pointing along y
Why: This one looks like it just gets stronger to the right — but a paddle wheel still spins, because one side of it sits in faster flow than the other.
\[ \mathbf{v}_b = x\,\hat{\mathbf{y}} \quad\Rightarrow\quad \nabla\times\mathbf{v}_b = \frac{\partial x}{\partial x}\hat{\mathbf{z}} = \hat{\mathbf{z}} \]
Figure (svg): Left: arrows circulating around the origin. Right: upward arrows that grow longer toward the right, with a paddle wheel tilting.
Verify with the paddle-wheel test
Why: In field a the wheel is carried around the origin and spins counter-clockwise: positive z curl, as computed. In field b the right-hand paddle sits in stronger upward flow than the left-hand one, so the wheel turns counter-clockwise there too — again positive z curl.
Two fields, and the second is the important one.
The first circulates around the origin, so the paddle wheel is obviously turned and the algebra simply confirms the picture.
The second does not circulate at all. Every arrow points the same way and they just get longer as you move to the right. Yet the curl is non-zero, because a wheel placed there has faster flow on one side than the other and gets turned.
So shear produces curl just as surely as rotation does. Looking only for visible swirling will miss half the cases, which is why the verification step walks both pictures explicitly.
Sorting
Before the algebra, decide from the picture. Divergence asks does it spread?; curl asks does it swirl or shear?
Sort into buckets
Item 4 is the one that catches people. The arrows never turn — but the field still has curl, because it shears.
Judge from the picture before computing anything — that is the skill that transfers.
The two questions are simple and independent. Does it spread? That is divergence. Would a paddle wheel turn? That is curl.
Item four is the one that catches people, and it is the shear case from the previous slide. The arrows never change direction, so it feels curl-free, but one side of the wheel sits in faster flow than the other.
If one of these comes out wrong, do not just take the correction. Put an imaginary wheel on it and describe what each paddle feels — the reasoning is what generalises.
Trap
A student computes a potential, takes its gradient, and then hunts for the curl of the result:
Compute the curl of the gradient term by term and hope for a simplification
Why: Three determinant rows, six partial derivatives, and about ten minutes of algebra.
\[ \nabla \times (\nabla V) = \;? \]
Ten minutes later the answer is zero — as it was always going to be, for any V whatsoever.
Two identities kill this work before it starts. Both hold for every well-behaved function:
\[ \nabla \times (\nabla V) = 0 \qquad \text{for any scalar } V \]
\[ \nabla \cdot (\nabla \times \mathbf{v}) = 0 \qquad \text{for any vector } \mathbf{v} \]
Recognise the shape and write zero
Why: They are the vector-calculus echo of A · (A × B) = 0 and A × A = 0: a curl is perpendicular to everything it was built from, and a gradient has no circulation to find.
These are not curiosities. The first is exactly why an electrostatic field with zero curl can always be written as the gradient of a potential — the whole of Chapter 3 rests on it.
The point of this one is to save ten minutes of pointless algebra, which is a benefit you feel immediately.
The curl of any gradient is zero, and the divergence of any curl is zero. Both hold for every well-behaved function, so recognising the shape means writing zero and moving on.
The reason is worth having, because it makes them memorable rather than arbitrary. They are the vector-calculus echo of two facts about ordinary vectors: A cross A is zero, and A dotted into A cross B is zero. A curl is perpendicular to everything it was built from, and a gradient has no circulation to find.
And the payoff is large. The first identity is exactly why a field with zero curl can be written as the gradient of a potential — which is the licence the whole of Chapter 3 depends on.
Concept
Of the five possible second derivatives, two are identically zero and one is the one you will actually use.
\[ \nabla^2 T = \nabla \cdot (\nabla T) = \frac{\partial^2 T}{\partial x^2} + \frac{\partial^2 T}{\partial y^2} + \frac{\partial^2 T}{\partial z^2} \]
Laplacian — The divergence of the gradient. It compares the value of a function at a point with its average on a tiny sphere around that point: negative where the point is a local peak, positive where it sits in a dip, zero when it exactly equals the surrounding average.
Figure (svg): A curve with a bump: at the peak the curvature is negative, in the valley positive, and on a straight stretch zero.
Chapter 2 ends with Poisson's equation, which is nothing but the Laplacian of the potential set equal to minus the charge density over epsilon-zero.
Of the possible second derivatives, two are identically zero and this is the one that does real work.
Definition first: the divergence of the gradient. But the meaning is what matters, and it is a comparison. The Laplacian at a point compares the value there with the average over a tiny sphere around it.
Negative where the point is a local peak, positive where it sits in a dip, zero when it matches the surrounding average exactly. The curve on the slide shows all three at once.
Where this is going: Chapter 2 ends with Poisson's equation, which is the Laplacian of the potential set equal to minus the charge density over epsilon-zero. And where there is no charge it becomes Laplace's equation, which is the single most important equation in the book.
Pattern
| operator | input | output | physical question |
|---|---|---|---|
| gradient | scalar | vector | which way is uphill, how steep? |
| divergence | vector | scalar | is this point a source or a sink? |
| curl | vector | vector | would a paddle wheel spin here? |
| Laplacian | scalar | scalar | is this point above or below its neighbours' average? |
This is the procedural checklist, and the type checks in it are what catch errors fastest.
Identify what you have been handed. A scalar can only take a gradient. A vector can take a divergence or a curl, but never a gradient.
Then check the type of your answer against the table. Wrong type means wrong operator, and that gets caught in seconds rather than after a page of algebra.
Finally, sanity-check against the picture: does the field spread, would a paddle wheel turn? The algebra and the picture have to agree, and when they do not, it is almost always the algebra that is wrong.
Check
Work it out before clicking.
Check your understanding
A vector field points everywhere in the plus-x direction, and its strength grows as you move in the plus-y direction. What is true of this field?
Answer: A
Why: The field is v = f(y) x-hat. Divergence needs the x-derivative of the x-component, but the x-component depends only on y, so the divergence is zero. The curl picks up minus the y-derivative of the x-component, which is not zero — a paddle wheel here has faster flow on its upper side than its lower side, so it spins.
This is the shear case again, now without a picture to lean on.
The field points along x and varies along y. Divergence differentiates each component along its own axis, and the x-component does not depend on x — so the divergence is zero.
The curl picks up the y-derivative of the x-component, which is not zero. Physically, a paddle wheel here has faster flow on its upper side than its lower one, so it turns.
Option B is the interesting wrong answer, because it reverses exactly the thing this deck has been drilling. Worth a look even if you did not pick it.
Section
Section 3
Concept
Figure (svg): A curved path from point a to point b through a vector field, with the path chopped into short segments and a field arrow at each.
\[ \int_a^b \mathbf{v} \cdot d\mathbf{l} \]
At each step, the dot product keeps only the component of the field along the path. Field perpendicular to your step contributes nothing.
If the path closes on itself, the integral gets a circle on it and a name: circulation.
\[ \oint \mathbf{v} \cdot d\mathbf{l} \]
The picture carries the idea: chop the path into short steps, and at each step keep only the part of the field that lies along your step.
The dot product is what performs that 'keep only the part along' operation. Field perpendicular to your step contributes nothing at all.
The physical anchor is work, which you already know: force dotted into displacement, summed along a path. Every line integral in this course has the same structure.
When the path closes on itself the integral gets a circle on it and a name — circulation — and the whole zero-curl story in Chapter 2 is stated in those terms.
Worked example
Griffiths' Example 1.6. Same start, same end, two paths — and the point is what happens when you compare them.
\[ \mathbf{v} = y^2\,\hat{\mathbf{x}} + 2x(y+1)\,\hat{\mathbf{y}}, \qquad a = (1,1,0) \;\to\; b = (2,2,0) \]
Figure (svg): Two routes from the point (1,1) to the point (2,2): route one goes right then up, route two goes up then right.
Path 1, first leg: move along x at fixed y = 1, so dl = dx x-hat and only the x-component survives
Why: Holding one variable fixed collapses the vector integral into an ordinary single-variable integral.
\[ \int_1^2 y^2\,dx \Big|_{y=1} = \int_1^2 1\,dx = 1 \]
Path 1, second leg: move along y at fixed x = 2, so dl = dy y-hat
Why: Now only the y-component contributes, with x frozen at 2.
\[ \int_1^2 2x(y+1)\,dy\Big|_{x=2} = 4\int_1^2 (y+1)\,dy = 4\left[\tfrac{y^2}{2}+y\right]_1^2 = 10 \]
\[ \int_{\text{path 1}} \mathbf{v}\cdot d\mathbf{l} = 1 + 10 = 11 \]
Path 2: the straight diagonal, where y = x all the way
Why: On the diagonal the two variables are locked together, so substituting y = x and dy = dx reduces the whole thing to one integral in x.
\[ \mathbf{v}\cdot d\mathbf{l} = y^2\,dx + 2x(y+1)\,dy = \big(x^2 + 2x(x+1)\big)dx = (3x^2 + 2x)\,dx \]
\[ \int_{\text{path 2}} \mathbf{v}\cdot d\mathbf{l} = \int_1^2 (3x^2+2x)\,dx = \big[x^3 + x^2\big]_1^2 = 10 \]
Verify by closing the loop — out along path 1, back along path 2
Why: 11 is not 10, so this field's line integral genuinely depends on the route. Going out along path 1 and back along path 2 gives 11 minus 10 = 1, a non-zero circulation. A field like this cannot be written as the gradient of anything — and the whole of Chapter 2 turns on the electrostatic field NOT behaving this way.
\[ \oint \mathbf{v}\cdot d\mathbf{l} = 11 - 10 = 1 \neq 0 \]
The point of this example is the comparison at the end rather than the arithmetic, so it is worth knowing that in advance.
Both routes start and end at the same two points. The corner route splits into two legs, each with one variable frozen, which collapses the vector integral into two ordinary ones. The diagonal route locks the variables together with y equal to x, reducing everything to a single integral in x.
The results differ: eleven and ten. So for this field, the line integral depends on the route you take. Equivalently, going out one way and back the other gives a non-zero circulation.
Which has a consequence worth stating plainly: a field like this cannot be written as the gradient of anything, so it has no potential. The whole of Chapter 2 turns on the electrostatic field not behaving this way, which is exactly why this example is here.
Concept
Figure (svg): A surface tilted in a field of parallel arrows, with the area vector drawn perpendicular to the surface and the angle between them marked.
\[ \Phi = \int_S \mathbf{v} \cdot d\mathbf{a} \]
da is a vector: its magnitude is the patch's area and its direction is perpendicular to the patch. Field that skims along the surface crosses nothing and contributes nothing.
For a closed surface the convention is fixed for you: da points outward. That convention is what makes Gauss's law come out with a plus sign.
Flux is what the divergence theorem and Gauss's law are both built on, so the geometry needs to be solid.
The area element is a vector: its magnitude is the patch's area and its direction is perpendicular to the patch. Dotting the field into it keeps only the component actually crossing the surface.
The tilted-surface picture is worth looking at directly. Field skimming along a surface crosses nothing and contributes nothing, which is precisely what the dot product gives you.
For closed surfaces there is a convention: the area vector points outward. That is not arbitrary bookkeeping — it is what makes Gauss's law come out with a plus sign rather than a minus.
Worked example
Griffiths' Example 1.7 — the exercise that teaches you to handle a surface integral one face at a time.
\[ \mathbf{v} = 2xz\,\hat{\mathbf{x}} + (x+2)\,\hat{\mathbf{y}} + y(z^2-3)\,\hat{\mathbf{z}} \]
Figure (svg): A unit cube with its bottom face open, the five remaining faces numbered, and the outward normal drawn on two of them.
Split the closed-surface integral into five flat pieces
Why: On each flat face one coordinate is constant and da points along one axis, so only one component of v survives per face — five easy integrals instead of one impossible one.
| face | da | surviving component | integral |
|---|---|---|---|
| x = 2 | dy dz x-hat | 2xz = 4z | 16 |
| x = 0 | -dy dz x-hat | 2xz = 0 | 0 |
| y = 2 | dx dz y-hat | x + 2 | 12 |
| y = 0 | -dx dz y-hat | -(x + 2) | -12 |
| z = 2 | dx dy z-hat | y(z² - 3) = y | 4 |
Add the five contributions
Why: Sixteen plus zero plus twelve minus twelve plus four. Faces two and four cancel exactly because the field's y-component does not depend on y.
\[ \int \mathbf{v}\cdot d\mathbf{a} = 16 + 0 + 12 - 12 + 4 = 20 \]
Verify the sign convention face by face
Why: On the x = 0 face the outward normal points in the MINUS x direction, and on the y = 0 face in the minus y direction — which is exactly why that face contributed -12 and not +12. Getting one of those signs wrong is the classic way this example goes wrong.
This teaches a method rather than a result: break a complicated surface integral into flat pieces.
On each flat face one coordinate is constant and the area vector points along a single axis, so only one component of the field survives. Five easy integrals instead of one impossible one.
The table is the working, and the column to watch is the area vector. On the x equals zero face the outward normal points along minus x, and on the y equals zero face along minus y. Those minus signs are why two of the contributions come out negative.
Getting one of those signs wrong is the classic way this problem fails, so write the outward normal explicitly on every face rather than assuming it.
Concept
\[ \int_V T\, d\tau, \qquad d\tau = dx\,dy\,dz \]
The least glamorous of the three, and the one you will use most: total charge is the charge density integrated over a volume.
\[ Q = \int_V \rho\, d\tau \]
Figure (svg): A blob-shaped region chopped into small cubes, with one cube highlighted and labelled d-tau.
The least glamorous of the three, and the one you will use most often.
The formula that matters is the second one: total charge is the charge density integrated over a volume. That single relationship turns up in nearly every Gauss's law problem in Chapter 2.
The picture — a blob chopped into small boxes with one highlighted — is the mental model. Sum the quantity over every infinitesimal box in the region.
One detail worth noting: when the integrand is a vector, the Cartesian unit vectors are constants and can come outside the integral. The next section's trap depends on exactly that fact.
Intuition
You already know the pattern from first-year calculus:
\[ \int_a^b \frac{df}{dx}\,dx = f(b) - f(a) \]
Read that in words: the integral of a derivative over a region equals the function evaluated on the boundary of that region. The boundary of the interval from a to b is its two endpoints.
Figure (svg): Three panels: an interval with two endpoints, a surface with a boundary curve, and a volume with a boundary surface.
The three vector theorems are that sentence, once for each kind of derivative.
This is the organising insight of the section, and it is worth more time than its length suggests.
Start from something already familiar: the fundamental theorem of calculus. Read it in words rather than symbols — the integral of a derivative over a region equals the function evaluated on the boundary of that region. For an interval, the boundary is its two endpoints.
The three panels show that pattern repeating in higher dimensions. The boundary of a line is two points. The boundary of a surface is a loop. The boundary of a volume is a closed surface. In every case the theorem trades an integral over a region for one over its boundary.
Once the three theorems are one sentence applied to three kinds of derivative, they stop being three separate things to memorise.
Concept
\[ \int_a^b (\nabla T) \cdot d\mathbf{l} = T(b) - T(a) \]
The integral of a gradient along a path depends only on the endpoints. Every route from a to b gives the same answer.
Figure (svg): Three wildly different paths from point a to point b over a contour map, all marked as giving the same total climb.
Two corollaries, both used constantly in Chapter 2:
The statement is that the integral of a gradient along a path depends only on the endpoints. Every route from a to b gives the same answer.
The picture of three wildly different routes up the same hill, all with identical net elevation gain, is the intuition. Nobody is surprised that different paths to the summit gain the same height.
Two corollaries get used constantly in Chapter 2. The integral of a gradient around a closed loop is zero, because you end where you started and the height change is zero. And a field that is a gradient is called conservative.
One vocabulary warning: 'conservative', 'path-independent', 'zero circulation' and 'zero curl' all turn out to be the same statement, and expect to see all four used interchangeably.
Worked example
Griffiths' Example 1.9. Take a function, take its gradient, and confirm that the path integral really does forget the path.
\[ T = xy^2, \qquad a = (0,0,0) \;\to\; b = (2,1,0) \]
Compute the gradient
Why: Two partial derivatives; the z-component is zero because T does not contain z.
\[ \nabla T = y^2\,\hat{\mathbf{x}} + 2xy\,\hat{\mathbf{y}} \]
Route 1: along the x axis to (2,0), then straight up to (2,1)
Why: On the first leg y is zero, so the whole integrand vanishes — the field has nothing to push along.
\[ \underbrace{\int_0^2 y^2\,dx\Big|_{y=0}}_{0} + \underbrace{\int_0^1 2(2)y\,dy}_{2} = 2 \]
Route 2: up first to (0,1), then across to (2,1)
Why: Now the first leg vanishes instead, because on the y axis x is zero.
\[ \underbrace{\int_0^1 2(0)y\,dy}_{0} + \underbrace{\int_0^2 (1)^2\,dx}_{2} = 2 \]
Verify against the theorem's right-hand side
Why: The theorem predicts T(b) - T(a) = (2)(1)² - 0 = 2. Both routes gave 2, and the endpoint formula gives 2 — three independent computations agreeing. Compare this with Example 1.6, where the two routes gave 11 and 9: that field was not a gradient.
This is the counterpart to the two-route example earlier, and running them side by side is what makes the point.
Here the field is a gradient by construction, and both routes give two. The theorem's endpoint formula also gives two. Three independent computations agreeing.
Contrast that with the earlier example, where two routes gave eleven and ten. That field was not a gradient; this one is. The difference is exactly whether the curl vanishes.
Notice the labour-saving structure in each route: on each leg one variable is frozen, which makes one of the two integrals vanish outright. Choosing routes along the axes is a deliberate tactic rather than luck.
Concept
\[ \int_V (\nabla \cdot \mathbf{v})\, d\tau = \oint_S \mathbf{v} \cdot d\mathbf{a} \]
Figure (svg): A closed blob with small outward arrows all over its surface, and inside it a grid of tiny boxes whose internal faces cancel.
Sum the outflow of every tiny box inside the region. Each internal face is shared by two boxes, exits one and enters the other, and cancels. What is left is the flux through the outer skin.
Griffiths calls it Gauss's theorem, and in Chapter 2 it is what turns Gauss's law from a statement about surfaces into a statement about points.
The statement converts a volume integral of the divergence into a flux through the enclosing surface, and the proof idea is visible in the picture.
Chop the region into tiny boxes and sum the outflow of each. Every internal face is shared by two neighbouring boxes: what leaves one enters the other, so the pair cancels. Only the faces on the outer skin have no partner, and those are exactly the enclosing surface.
That cancellation argument is the whole proof in cartoon form, and it makes the theorem feel inevitable rather than magical.
Griffiths calls it Gauss's theorem, and in Chapter 2 it is the tool that converts Gauss's law from a statement about surfaces into a statement about points.
Worked example
Griffiths' Example 1.10, on the unit cube. Both sides computed independently; they must agree.
\[ \mathbf{v} = y^2\,\hat{\mathbf{x}} + (2xy + z^2)\,\hat{\mathbf{y}} + 2yz\,\hat{\mathbf{z}} \]
Left side: take the divergence and integrate over the cube
Why: Differentiate each component along its own axis, then integrate the result over the unit cube.
\[ \nabla\cdot\mathbf{v} = 0 + 2x + 2y = 2(x+y) \]
\[ \int_0^1\!\!\int_0^1\!\!\int_0^1 2(x+y)\,dx\,dy\,dz = 2\left(\tfrac{1}{2} + \tfrac{1}{2}\right) = 2 \]
Right side: add up the flux through all six faces
Why: The same face-by-face method as Example 1.7 — one coordinate frozen per face, one surviving component per face.
| face | contribution |
|---|---|
| x = 1 | 1/3 |
| x = 0 | -1/3 |
| y = 1 | 4/3 |
| y = 0 | -1/3 |
| z = 1 | 1 |
| z = 0 | 0 |
Verify: the six faces must total the volume integral
Why: One third minus one third plus four thirds minus one third plus one plus zero = 2, matching the volume integral exactly. Two completely different calculations landing on 2 is the theorem doing its job.
The value here is that both sides get computed completely independently and have to agree.
The left side is quick: take the divergence, integrate over the unit cube. The right side is six face integrals, using the same method as the earlier flux example.
Watch the signs on the faces at zero, which contribute negatively because their outward normals point along the negative axes. Two of the six contributions are negative for exactly that reason.
Both sides give two. A volume integral of a derivative and a sum of six surface integrals, landing on the same number — that is the theorem doing its job, and it is worth a pause rather than rushing on.
Concept
\[ \int_S (\nabla \times \mathbf{v}) \cdot d\mathbf{a} = \oint_P \mathbf{v} \cdot d\mathbf{l} \]
Figure (svg): A curved surface like a soap film with a wire loop boundary, small circulation arrows tiled over the surface, and a large arrow running around the rim.
Same cancellation trick, one dimension down: tile the surface with tiny loops and every internal edge is traversed twice, in opposite directions.
Two consequences worth memorising:
Same cancellation trick as the divergence theorem, one dimension down.
Tile the surface with tiny loops. Every internal edge gets traversed twice, in opposite directions, and cancels. Only the outer rim survives, and that is the boundary curve.
Two consequences worth memorising. The answer depends only on the boundary, so any surface sharing that rim gives the same result — a flat disc and a balloon stretched on the same wire agree exactly. And a closed surface, having no boundary at all, gives zero.
That second one is why the flux of any curl through a closed surface vanishes, a fact that turns up repeatedly in Chapters 5 and 7.
Worked example
Griffiths' Example 1.11, on the unit square in the yz plane with corners at the origin, (0,1,0), (0,1,1) and (0,0,1).
\[ \mathbf{v} = (2xz + 3y^2)\,\hat{\mathbf{y}} + 4yz^2\,\hat{\mathbf{z}} \]
Take the curl and keep the component along the surface normal
Why: The square lies in the yz plane, so da points along x-hat and only the x-component of the curl matters.
\[ (\nabla\times\mathbf{v})_x = \frac{\partial}{\partial y}(4yz^2) - \frac{\partial}{\partial z}(2xz+3y^2) = 4z^2 - 2x \]
Set x = 0 on the surface and integrate over the square
Why: The surface sits at x = 0, which kills the second term before any integration is needed.
\[ \int_0^1\!\!\int_0^1 4z^2\,dy\,dz = 4\left[\tfrac{z^3}{3}\right]_0^1 = \frac{4}{3} \]
Now walk the boundary counter-clockwise and add the four legs
Why: The right-hand rule fixes the direction: curl your fingers along the loop and your thumb must point along da, that is along plus x. Keep dl = dx x-hat + dy y-hat + dz z-hat always, with no minus signs, and let the LIMITS carry the direction — that is Griffiths' own advice at the end of this example.
| leg | held fixed | integrand | value |
|---|---|---|---|
| (i) | x = 0, z = 0 | 3y² dy, y: 0 → 1 | 1 |
| (ii) | x = 0, y = 1 | 4z² dz, z: 0 → 1 | 4/3 |
| (iii) | x = 0, z = 1 | 3y² dy, y: 1 → 0 | -1 |
| (iv) | x = 0, y = 0 | 0 dz, z: 1 → 0 | 0 |
Verify: the four legs must total the surface integral
Why: 1 + 4/3 - 1 + 0 = 4/3, exactly the surface integral. Notice leg (iii) came out negative purely because its limits ran from 1 down to 0 — no minus sign was ever inserted by hand, which is what keeps orientation errors out of this calculation.
\[ \oint \mathbf{v}\cdot d\mathbf{l} = 1 + \tfrac{4}{3} - 1 + 0 = \tfrac{4}{3} = \int_S (\nabla\times\mathbf{v})\cdot d\mathbf{a} \]
Both sides again, and this example carries a specific procedural lesson.
Take the curl, keep only the component along the surface normal, and integrate over the unit square. Then walk the boundary counter-clockwise and add the four legs.
The lesson is Griffiths' own advice at the end of this example. Always write the line element with plus signs and let the limits carry the direction. Leg three comes out negative purely because its limits run from one down to zero, not because anyone inserted a minus sign by hand.
That discipline removes almost all orientation errors from line integrals, and adopting it is the difference between losing marks to sign conventions and not.
Matching
Match the pairs
Why: Each theorem drops the dimension by one: gradient goes from a line to two points, divergence from a volume to a surface, Stokes from a surface to a loop. Read the derivative in the integrand and the theorem picks itself — a gradient means theorem one, a divergence means theorem two, a curl means theorem three.
This is the whole decision procedure. Look at what kind of derivative is sitting inside the integral, and the theorem is chosen for you.
This is the decision procedure, and it is simpler than it looks.
Look at what kind of derivative sits inside the integral. A gradient means theorem one. A divergence means theorem two. A curl means theorem three. The theorem picks itself.
Each one drops the dimension by one: a line becomes two points, a volume becomes a surface, a surface becomes a loop.
If you are ever unsure which theorem to use, the answer is almost never to think harder about the geometry — it is to look at the integrand.
Trap
A student, having just seen the gradient theorem, evaluates a line integral by plugging in endpoints:
Write the integral of v · dl as some function evaluated at b minus the same function at a
Why: It worked on the previous problem, and the shortcut saves the whole computation.
\[ \int_a^b \mathbf{v}\cdot d\mathbf{l} \overset{?}{=} f(b) - f(a) \quad \text{for any } \mathbf{v} \]
Example 1.6 already disproved this: the same endpoints gave 11 along one route and 9 along another.
The shortcut is licensed only when the field is a gradient — equivalently, when its curl vanishes:
First test the curl. If it is zero, the field has a potential and endpoints are enough
Why: Zero curl means every closed loop integral vanishes, so two routes to the same endpoint must agree.
\[ \nabla\times\mathbf{v} = 0 \;\Longleftrightarrow\; \mathbf{v} = \nabla f \;\Longleftrightarrow\; \oint \mathbf{v}\cdot d\mathbf{l} = 0 \]
If the curl is not zero, do the integral along the actual path
Why: There is no potential to shortcut through, and the answer genuinely depends on the route.
This is precisely why Chapter 2 makes such a fuss about proving that the curl of E is zero: it is the licence to define a potential at all.
This one tends to strike immediately after the gradient theorem, because the shortcut is so attractive.
Evaluating a function at the endpoints and subtracting is licensed only when the field is a gradient. Applied to a general field it is simply wrong, and the two-route example earlier in this deck is the standing counterexample.
The test to apply first is the curl. If it vanishes, the field has a potential, endpoints are enough, and every route agrees. If not, there is no potential to shortcut through and the integral has to be done along the actual path.
This is exactly why Chapter 2 makes such a fuss about proving the curl of E is zero. That proof is the licence to define a potential at all, and without it none of Chapter 3 would exist.
Pattern
In Chapter 2 you will use the divergence theorem to derive Gauss's law in differential form, and Stokes' theorem to prove that the electrostatic potential is well defined. Both are one-line applications of this table.
Four steps, and the second is the one that saves time in practice.
The integrand picks the theorem. Then ask which side is easier — the entire purpose of a theorem here is to escape a hard integral, so if the volume integral is unpleasant, do the surface one instead, and the other way round.
Check the geometry actually matches. The divergence theorem needs a closed surface; Stokes needs a surface with a rim. Applying one to the wrong kind of region is a common error.
And fix the orientation before integrating rather than afterwards: outward normals for closed surfaces, right-hand rule linking loop direction to the area vector for Stokes.
Check
Decide before you click.
Check your understanding
You must compute the flux of a field out of a closed spherical surface. The field is messy on the sphere but its divergence is the constant 6 everywhere inside. What is the fastest correct route?
Answer: A
Why: The divergence theorem converts the flux through a closed surface into the volume integral of the divergence. With the divergence constant at 6, the volume integral is just 6 times the enclosed volume — no surface work at all.
The reasoning is to notice which derivative you have been handed and let that pick the theorem.
The divergence is known and constant, and the surface is closed — that is the divergence theorem exactly. The flux becomes the constant times the enclosed volume, with no surface work at all.
Option B mixes up the theorems: Stokes relates a surface integral of a curl to a loop, and a closed sphere has no boundary loop to relate to.
Option C reflects a common belief that these theorems only work on simple shapes. The divergence theorem applies to any closed surface whatsoever.
Section
Section 4
Concept
Figure (svg): A point in space with its distance from the origin, its polar angle from the z axis, and its azimuthal angle in the xy plane all marked.
| symbol | name | range | held fixed gives |
|---|---|---|---|
| r | radius | 0 to infinity | a sphere |
| θ | polar angle | 0 to π | a cone |
| φ | azimuthal angle | 0 to 2π | a half-plane |
Use these whenever the physics only cares about distance from a point — which, given that Coulomb's law is a one-over-distance-squared rule, is most of Chapter 2.
These get used more than any other system in this book, because Coulomb's law depends on distance from a point.
Three coordinates, read against the picture. r is the distance from the origin. Theta is the angle down from the z axis, running from zero to pi. Phi is the angle around from the x axis, running from zero to two pi.
The last column of the table is the useful one: holding each coordinate fixed generates a surface. Constant r is a sphere, constant theta is a cone, constant phi is a half-plane. Recognising which of those matches a problem's symmetry is how you choose coordinates.
One warning. Physicists and mathematicians swap theta and phi. Griffiths uses the physics convention, and mixing sources is a reliable route to confusion.
Notation
This is the single most-consulted equation set in the book. Every term is an arc length, and each one earns its factors geometrically.
\[ d\mathbf{l} = dr\,\hat{\mathbf{r}} + r\,d\theta\,\hat{\boldsymbol{\theta}} + r\sin\theta\,d\phi\,\hat{\boldsymbol{\phi}} \]
Annotate
On: \( d\tau = r^2 \sin\theta \, dr \, d\theta \, d\phi \)
\[ d\mathbf{a} = r^2\sin\theta\,d\theta\,d\phi\;\hat{\mathbf{r}} \quad \text{(on a sphere of radius } r\text{)} \]
Learn to reconstruct these from the picture rather than memorising them: an angle is never a length until you multiply it by the radius it turns about.
This is the most consulted equation set in the book, and memorising it without understanding it is exactly how it goes wrong under pressure.
The principle underneath is simple: an angle is never a length until you multiply it by the radius it turns about. Every factor in these formulas is an application of that.
Take the volume element apart. The r-squared is there because a shell at radius r has area growing as r squared. The sine of theta is there because circles of constant latitude shrink toward the poles — at the equator sine is one, at the poles it is zero and the circle has collapsed to a point.
Reconstruct rather than recall. Try deriving the area element on a sphere straight from the picture, and check you can say why there is no dr in it.
Worked example
Griffiths' Example 1.13. A result you already know, used to prove the volume element is right.
Set up the triple integral with the spherical volume element
Why: The limits are the full ranges: r from 0 to R, theta from 0 to pi, phi from 0 to 2 pi.
\[ V = \int_0^{2\pi}\!\!\int_0^{\pi}\!\!\int_0^{R} r^2\sin\theta\,dr\,d\theta\,d\phi \]
Separate the integral into three independent factors
Why: The integrand is a product of a function of r, a function of theta, and nothing at all in phi, so the triple integral factorises.
\[ V = \left(\int_0^R r^2\,dr\right)\left(\int_0^{\pi}\sin\theta\,d\theta\right)\left(\int_0^{2\pi} d\phi\right) \]
Evaluate each factor
Why: The middle integral is the one worth watching: the integral of sine over zero to pi is 2, not zero.
\[ V = \left(\frac{R^3}{3}\right)(2)(2\pi) = \frac{4}{3}\pi R^3 \]
Verify against the formula you already trust
Why: Four thirds pi R cubed is the volume of a sphere, so the r-squared sine-theta volume element is correct. If you had forgotten the sine, you would have got 2 pi R cubed over 3 — a sphere half its true size.
This computes something you already know, which is exactly the point: it validates the volume element rather than the answer.
The integral factorises because the integrand is a product of a function of r, a function of theta, and nothing in phi. Three independent one-dimensional integrals.
The middle factor is the one to watch. The integral of sine from zero to pi is two, not zero — being used to sine integrating to zero over a full period is exactly how this one goes wrong.
And the verification is the whole purpose: the answer is four-thirds pi R cubed, which is the sphere volume everybody knows. Had the sine been forgotten, the result would have been a sphere half its true size, which is the kind of error this check exists to catch.
Trap
Integrating a vector field over a sphere, a student pulls the unit vector out of the integral:
Factor r-hat out of the integral because it is a unit vector
Why: In Cartesian coordinates x-hat really is the same arrow everywhere, so the habit is well trained.
\[ \oint \hat{\mathbf{r}}\,da \overset{?}{=} \hat{\mathbf{r}}\oint da = 4\pi R^2 \hat{\mathbf{r}} \]
This says a sphere's outward normals add up to a non-zero vector — but they point in every direction equally and must cancel.
In curvilinear coordinates the unit vectors rotate from point to point. They cannot leave an integral.
Figure (svg): A circle with outward radial unit vectors drawn at eight points, each pointing a different direction.
Resolve the curvilinear unit vectors into Cartesian ones first, then integrate
Why: Cartesian unit vectors genuinely are constant, so once the integrand is written in x-hat, y-hat and z-hat the components can be integrated one at a time.
\[ \oint \hat{\mathbf{r}}\,da = 0 \]
Griffiths flags this as the most common error in the whole chapter — and it reappears in Chapter 2 every time someone integrates a field over a symmetric surface.
Griffiths flags this as the most common error in the whole chapter, so it earns the emphasis.
The habit comes from Cartesian coordinates, where x-hat genuinely is the same arrow everywhere and can be pulled out of any integral. Curvilinear unit vectors are not like that — they rotate from point to point.
The picture is the refutation. The radial unit vectors on a sphere point in every direction equally, so their integral over the sphere is zero, while pulling r-hat out of the integral would predict something large.
The fix is a rule: resolve into Cartesian components first, integrate each component separately, and reassemble at the end. This exact trap reappears in Chapter 2 every time a field gets integrated over a symmetric surface.
Concept
Figure (svg): A vertical axis with a point located by its distance from the axis, its angle around the axis, and its height.
\[ d\tau = s\,ds\,d\phi\,dz \]
Use these when the physics cares about distance from a line: a charged wire, a long cylinder, a solenoid. Chapter 2's Example 2.3 is exactly this case.
Note the single factor of s, not s squared. A circle of radius s has circumference proportional to s — one factor, not two.
The second most-used system, and the one that fits wires, cables and solenoids.
The critical detail is in the picture: s is the distance from the axis, not from the origin. It gets conflated with the spherical r constantly, and every step after that goes wrong.
The volume element carries a single factor of s, not s squared, and the reason is geometric: a circle of radius s has circumference proportional to s — one factor, not two. Holding this against the spherical case is a good way to make both stick.
Reach for these whenever the physics depends on distance from a line and is unchanged along it. Chapter 2's charged-cylinder example is exactly that case.
Discrimination
Choosing coordinates badly turns a two-line problem into a two-page one. Match the coordinates to the symmetry, never to habit.
Sort into buckets
This is the same judgement Gauss's law will demand in Chapter 2, where the choice of Gaussian surface is exactly this choice of symmetry.
A judgement drill, and the judgement matters more than the answers.
Match the coordinates to the symmetry of the source, never to habit. If the physics depends only on distance from a point, use spherical. Distance from a line, cylindrical. Distance from a plane, Cartesian.
Choosing badly does not make a problem impossible, but it can turn a two-line calculation into two pages of unnecessary algebra.
This is the same judgement Gauss's law will demand in the next deck, where picking a Gaussian surface is precisely this choice of symmetry. Getting it right here pays off immediately.
Section
Section 5
Concept
Figure (svg): An animated sequence of bumps that grow taller and narrower in turn, each with the same area, ending in a single sharp spike.
\[ \delta(x) = \begin{cases} 0, & x \neq 0 \\ \infty, & x = 0 \end{cases} \qquad \int_{-\infty}^{\infty}\delta(x)\,dx = 1 \]
It is not a function in the ordinary sense — it is infinitely tall and infinitely thin. It is legitimate only inside an integral, and that is the only place you will ever use it.
This is not a function in the ordinary sense, and its strangeness is the point rather than a problem to be smoothed over.
It is zero everywhere except at a single point, infinite there, and yet has total area one. No ordinary function does that — and the animation shows why it is nonetheless well defined: it is the limit of a family of perfectly ordinary bumps, each with area one, getting taller and narrower.
The crucial usage rule is that it is only legitimate inside an integral. Asking for its value at a point is meaningless; asking what it does to an integral is the only well-posed question.
If that feels unsatisfying, the instinct is right — making it rigorous takes distribution theory — but the operational rules are simple and reliable.
Intuition
Stop thinking of it as a spike and start thinking of it as an instruction: evaluate the other factor at this point.
\[ \int_{-\infty}^{\infty} f(x)\,\delta(x-a)\,dx = f(a) \]
Figure (svg): A smooth curve with a spike positioned under one point of it, and an arrow indicating that only that one value survives.
Everywhere except the spike, the delta is zero and kills the integrand. At the spike, the other factor is effectively constant and comes out of the integral, which then contributes its unit area.
That is why a point charge can be written as a charge density: a delta function of the right strength.
\[ \rho(\mathbf{r}) = q\,\delta^3(\mathbf{r} - \mathbf{r}') \]
This reframing is what makes the delta function usable, so it is worth taking seriously.
Stop thinking of it as a spike and start thinking of it as an instruction: evaluate the other factor at this point. That is all it ever does.
The mechanism is visible in the picture. Everywhere except the spike, the delta is zero and kills the integrand. At the spike, the other factor is effectively constant over an infinitesimal width and comes out of the integral, leaving the delta's unit area behind.
And here is the payoff for Chapter 2: a point charge can be written as a charge density. That single move lets discrete and continuous distributions be handled by the same equations, which is why the general formulas in Chapter 2 never need a separate case for point charges.
Worked example
Griffiths' Examples 1.15 and 1.16 in miniature. The whole method is: locate the spike, evaluate everything else there.
Evaluate the integral of x cubed times a delta centred at 2, over a range that contains 2
Why: The spike sits at x = 2, which is inside the range, so the answer is the other factor evaluated at 2.
\[ \int_0^5 x^3\,\delta(x-2)\,dx = 2^3 = 8 \]
Now do the same integral over a range that does NOT contain the spike
Why: Outside the spike the delta is identically zero, so the whole integrand is zero.
\[ \int_3^5 x^3\,\delta(x-2)\,dx = 0 \]
Handle a delta whose argument is scaled
Why: A delta of kx is narrower by a factor k, so its area is smaller by the same factor. The absolute value is essential — a negative k does not give a negative area.
\[ \delta(kx) = \frac{1}{|k|}\delta(x) \]
Verify by checking the total area in each case
Why: In case one the spike is inside the range and the area is 1, so the result is f(2) = 8. In case two the spike is outside and no area is captured, so the result is 0. In case three, substituting u = kx changes dx into du over k and reproduces the one-over-k factor exactly.
Three short cases, each drilling one rule.
First, the spike is inside the range: the answer is the other factor evaluated at the spike. Second, the spike is outside the range: the answer is zero, because the delta vanishes everywhere in the region being integrated over.
Third, a scaled argument. A delta of kx is narrower by a factor of k, so its area shrinks by the same factor and a compensating one over k appears. The absolute value is essential — a negative k does not produce a negative area.
The verification frames all three in terms of area captured, which is the unifying idea and much easier to reconstruct under exam conditions than three separately memorised rules.
Concept
Here is a genuine paradox, and its resolution is the reason the delta function is in this chapter at all.
\[ \mathbf{v} = \frac{1}{r^2}\hat{\mathbf{r}} \]
Compute its divergence with the spherical formula and you get zero everywhere. But the flux of this field out of any sphere centred on the origin is 4-pi, no matter how small the sphere.
Figure (svg): A tiny sphere at the origin with radial arrows leaving it, and a much larger sphere with weaker but more numerous arrows, both marked with the same total flux.
A divergence of zero everywhere would force zero flux. The escape: the divergence is not zero at the origin, where the formula breaks down. All of the source is packed into that single point.
\[ \nabla \cdot \left(\frac{\hat{\mathbf{r}}}{r^2}\right) = 4\pi\,\delta^3(\mathbf{r}) \]
Chapter 2 uses this in one line to get from Coulomb's law to Gauss's law in differential form. Without it, the derivation has a hole at the location of every charge.
There is a genuine paradox here, and it is worth sitting with it before the resolution.
Compute the divergence of the inverse-square radial field using the spherical formula and you get zero everywhere. But the flux of that field out of any sphere centred on the origin is four-pi, no matter how small you make the sphere.
Those two statements are incompatible, because the divergence theorem says the flux equals the volume integral of the divergence — and a divergence of zero everywhere would force zero flux.
The resolution is that the divergence is not zero at the origin. The spherical formula breaks down there because the field is singular, and all of the source is packed into that single point — which is exactly what a delta function describes.
And the payoff: Chapter 2 uses this identity in one line to get from Coulomb's law to the differential form of Gauss's law. Without it, that derivation has a hole at the location of every charge.
Concept
Helmholtz's theorem says a vector field is completely determined by its divergence and its curl (given sensible behaviour at infinity). That is why Maxwell's equations come in exactly four parts: a divergence and a curl for each field.
| if the field has... | then it can be written as... | and it is called |
|---|---|---|
| zero curl everywhere | the gradient of a scalar potential | conservative |
| zero divergence everywhere | the curl of a vector potential | solenoidal |
\[ \nabla\times\mathbf{F} = 0 \;\Rightarrow\; \mathbf{F} = -\nabla V \qquad \nabla\cdot\mathbf{F} = 0 \;\Rightarrow\; \mathbf{F} = \nabla\times\mathbf{A} \]
The minus sign in the first is pure convention, chosen so that positive charges roll downhill in potential. Chapter 2 defines exactly this V for the electric field; Chapter 5 defines exactly that A for the magnetic field.
This is the structural result that explains why Maxwell's equations look the way they do.
Helmholtz's theorem says a vector field is completely determined by its divergence and its curl, given sensible behaviour at infinity. That is why the equations come in exactly four parts: a divergence and a curl for each field. Nothing more is needed, and nothing less would do.
The table gives the two consequences that matter. A field with zero curl everywhere can be written as the gradient of a scalar potential. A field with zero divergence everywhere can be written as the curl of a vector potential.
The minus sign in the first is pure convention, chosen so that positive charges roll downhill in potential. Chapter 2 defines exactly this V for the electric field, and Chapter 5 defines exactly that A for the magnetic field — worth naming both now so the parallel is visible when it arrives.
Real world
Discussion prompt
Pick the tool you feel least sure about, and write one sentence saying what it measures — no formulas allowed.
These four cards close the loop on the promise at the start of the deck.
Divergence becomes Gauss's law: charge is where the field diverges. Curl becomes the guarantee that a potential exists. Gradient is the rule that recovers the field from that potential. And the delta function makes point charges legal inside integrals.
The written prompt is worth actually doing rather than skipping. If you cannot say in plain words what an operator measures, the formula will not rescue you in Chapter 2 — a formula is only useful once you know which question it answers.
Pick the one you feel least sure about and say it out loud. That is usually the one that will block you a week from now.
Pattern
| tool | what it measures | Chapter 2-4 role |
|---|---|---|
| dot product | how much of one vector lies along another | flux, work, potential differences |
| cross product | the perpendicular direction, and the area spanned | torque on a dipole (Ch. 4) |
| gradient | steepest increase of a scalar | E is minus the gradient of V |
| divergence | outflow per unit volume | Gauss's law in differential form |
| curl | circulation per unit area | E has none — potentials exist |
| divergence theorem | volume to surface | integral form of Gauss's law |
| Stokes' theorem | surface to boundary loop | proof that E is conservative |
| delta function | a point source as a density | point charges inside integrals |
If a Chapter 2 derivation ever looks like magic, it is almost always one row of this table applied without comment.
This table is the reference to come back to whenever a Chapter 2 derivation looks like magic, because it almost always is one of these rows applied without comment.
Read down the middle column, which is the meaning rather than the formula. Those phrases are the ones worth being able to produce from memory.
The right-hand column is the promise being kept: every tool has a named destination in the physics. Nothing here was included for completeness.
This is the single most useful page to have alongside the next three decks, so it is worth a photograph.
Check
Last one — take your time.
Check your understanding
The electrostatic field turns out to satisfy curl E = 0 everywhere. What does that alone let you conclude?
Answer: A
Why: Zero curl is exactly the condition for a field to be conservative: every closed loop integral vanishes, line integrals depend only on endpoints, and the field can be written as the gradient of a scalar. That scalar, with a conventional minus sign, is the electric potential V.
This tests whether the divergence-versus-curl distinction is secure, which is the thing most likely to cause trouble later.
Zero curl is exactly the condition for a field to be conservative, so it licenses the potential. That is the whole answer.
Option B is the one worth thinking about, because it confuses the two operators. Charge is controlled by the divergence of E, not its curl — and a point charge has a field with zero curl everywhere and plenty of charge.
Option C is worth a sentence too: a field can have no circulation at all and still be very strong. The radial field of a point charge is the standard example.
Recap
| the tool | the one-line version |
|---|---|
| ∇T | points uphill, length = steepness |
| ∇ · v | outflow per unit volume — sources |
| ∇ × v | circulation per unit area — swirl and shear |
| divergence theorem | what is inside equals what leaks out |
| Stokes' theorem | what is on the surface equals what circles the rim |
Next deck: all of this becomes physics. Coulomb's law, the electric field, and Gauss's law.
Worth reframing the deck now that it is done. It looked like mathematics; it was actually a list of physical questions with notation attached.
Go down the one-line summaries and check each is attached to a picture — the gradient to the contour map, the divergence to the tiny box, the curl to the paddle wheel, the theorems to the region-and-boundary idea.
Then look ahead. All of this becomes physics in the next deck. The tiny box becomes a Gaussian surface, the paddle wheel becomes the statement that no electrostatic field circulates, and the delta function becomes the reason a point charge can appear in an integral at all.
Want this taught 1-on-1? Alexander tutors Electrodynamics (Griffiths) — $55/session, free consultation.