Divergence and Curl
For a field of arrows, such as a flow or a force, divergence measures spreading out from a point and curl measures swirling.
Needs a step first: 11
A vector field attaches an arrow to every point, like wind speeds on a weather map. Its divergence is the net outflow per unit volume, positive at a source. Its curl is a vector giving the axis and strength of local rotation. A field with zero curl (on a simply connected region) is the gradient of a potential, and these two operations are the language of Maxwell's equations and of the theorems of Gauss and Stokes.
Where it shows up: Maxwell's equations are four statements about the divergence and curl of the electric and magnetic fields, and in fluids zero divergence means the flow cannot be compressed.
How to hold it: In your head
Picture a field of arrows and see divergence as outflow from a point and curl as local swirl, so you can tell from a sketch which one a field has.
What knowing it looks like
- Compute the divergence and curl of a given field, using the determinant layout for the curl.
- Sketch and and say which has divergence and which has curl, and why.
- Show that for any smooth , and use it to decide whether a field can be a gradient.
Test yourself
For , find and . Is the gradient of some function?
Show the worked answer
Needs a step first: 11
Learn it with an AI
Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.
Be my maths tutor. I'm learning "Divergence and Curl" (Undergraduate II tier): For a field of arrows, such as a flow or a force, divergence measures spreading out from a point and curl measures swirling.
I already know: Partial Derivatives and the Gradient, Dot and Cross Products.
Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away.
Finish by testing me with this: For $\mathbf{F} = (x^2 y,\ yz,\ xz)$, find $\nabla \cdot \mathbf{F}$ and $\nabla \times \mathbf{F}$. Is $\mathbf{F}$ the gradient of some function?
Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.Needs first
- Partial Derivatives and the GradientDerivatives of a function of several variables, taken one variable at a time, and the gradient vector that collects them.Undergraduate I · Multivariable & Vector Calculus
- Dot and Cross ProductsTwo ways to multiply vectors: the dot product gives a number that measures alignment; the cross product gives a vector perpendicular to both.Core · Multivariable & Vector Calculus
Leads to
On the way to
Recommended
- OpenStax CalculusOpenStax, Rice University · BookA free, peer-reviewed calculus textbook in three volumes, from limits through series to vectors and multiple integrals, with worked examples and answers.
- Khan Academy: Multivariable CalculusKhan Academy · CourseFree, ad-free videos and exercises on partial derivatives, gradients, multiple integrals, divergence, curl and Stokes' theorem, taught largely by Grant Sanderson of 3Blue1Brown.
- Mathematics for Machine LearningDeisenroth, Faisal and Ong (Cambridge University Press) · BookA free book that gathers exactly the linear algebra, vector calculus, probability and optimisation machine learning uses, then applies them to regression, PCA and classification.
- 宋浩老师官方宋浩(山东财经大学) · Videos · 中文Full university courses in calculus, linear algebra and probability by a Shandong University of Finance and Economics lecturer, clear and good-humoured; a new calculus series came out in October 2026.