Each class is a short animated explainer with narration and illustrations, plus quick checks and a mastery quiz. Your progress saves automatically as you complete classes.
▶ Watch class 1 free — no sign-upEvery class is 13 cards · narrated film + illustration · 3 quick checks · an interactive · a 5-question mastery quiz. Nothing hidden — this is the complete text of What is the Language of Fields?.
Every phenomenon of light, radio, electricity, and magnetism—from your phone's screen to the Earth's magnetic shield—can be described by just four equations. These are Maxwell's Equations. They are compact, elegant, and profoundly powerful. But if you look at them without the right preparation, they are completely opaque. They are written in a language that is likely foreign to you, the language of fields. Our goal in this course is to understand those equations, and through them, the universe they describe. But to do that, we can't start with physics. We must start with the language itself. This language is vector calculus. Today, we build our toolkit. We will define and explore the key concepts—gradient, divergence, and curl—that allow us to describe how a quantity, like an electric field, changes not just with time, but from point to point in space. This is the grammar of electromagnetism.
A single number can't capture how a field changes at a point.
In single-variable calculus, describing change is straightforward. You have a function, f of x, and its derivative, df/dx, tells you its slope at any point. But the universe isn't a one-dimensional line. We are concerned with fields: quantities that have a value at every point in three-dimensional space. Consider the temperature in this room. It's a scalar field; at each coordinate (x, y, z), there is a single number, the temperature T. If you are standing at a point, what is the 'slope' of the temperature? The question is ill-posed. The rate of change depends entirely on the direction you choose to move. It might get warmer if you move forward, but colder if you move up. We need a way to capture this directional dependence. Now consider the wind velocity in this room. This is a vector field. At every point, there is a vector—a magnitude and a direction—describing the air's movement. How does this field change? It's even more complex. The air might be spreading out from a vent, a concept we'll call 'divergence'. Or it might be swirling in a small vortex, a concept we'll call 'curl'. A simple derivative is completely inadequate to capture these rich, geometric behaviors. The problem is to invent a new kind of derivative that can describe these different modes of spatial change.
Gradient, divergence, and curl are the three essential ways a field can vary.
To solve this, we define three fundamental differential operators. Each describes a distinct type of spatial variation. First, the **Gradient**, symbolized as grad(f) or ∇f. It operates on a scalar field, like temperature, and produces a vector field. At any point, the gradient vector points in the direction of the steepest possible increase of the scalar field. Its magnitude is the rate of that increase. If you are on a hillside, the gradient of the altitude function points straight uphill. Second, the **Divergence**, symbolized as div(F) or ∇⋅F. It operates on a vector field, F, and produces a scalar field. The divergence measures the extent to which the vector field 'flows' out from a point. Imagine a tap in a sink. The water velocity field has a positive divergence at the tap (a source) and a negative divergence at the drain (a sink). If the divergence is zero, the field is 'incompressible'. Third, the **Curl**, symbolized as curl(F) or ∇×F. It operates on a vector field and produces another vector field. The curl measures the circulation or rotation of the field at a point. If you were to place a tiny paddlewheel in a flowing river, the curl vector would describe its axis of rotation and its angular velocity. A field with zero curl is called 'irrotational'.
The math we use was forged in a 19th-century battle over the best way to describe 3D space.
The language we use today was not inevitable. It emerged from a heated debate in the late 19th century. In the 1840s, the Irish mathematician William Rowan Hamilton had a breakthrough, inventing quaternions. These are a four-dimensional extension of complex numbers, which he hoped would do for 3D geometry what complex numbers did for 2D. Quaternions contained a scalar part and a three-component 'vector' part. His influential supporter, Peter Guthrie Tait, argued fiercely that quaternions were the only natural language for physics. However, physicists found them cumbersome. The full quaternion product was non-commutative and mixed scalar and vector parts in ways that felt unnatural for physical laws. In the 1880s, two figures independently developed the alternative we now use. In America, the physicist Josiah Willard Gibbs at Yale, and in England, the self-taught engineer Oliver Heaviside, both stripped Hamilton's quaternions down to their essentials. They kept the separate 'dot' and 'cross' products, which had been buried inside the quaternion system, and championed the 'del' operator. They created a more direct, intuitive, and practical system. Tait was furious, calling it a 'hermaphrodite monster'. But utility won out. When Heaviside rewrote Maxwell's original, complicated equations into the elegant vector form we know today, the debate was effectively over.
A single symbolic operator, ∇, unifies all three concepts.
The elegance of modern vector calculus comes from unifying all three operators through a single entity: the vector differential operator, called 'del' or 'nabla', symbolized by an inverted Greek delta. In Cartesian coordinates, del is defined as a vector of partial derivative operators: del equals i-hat partial-by-partial-x, plus j-hat partial-by-partial-y, plus k-hat partial-by-partial-z. Think of this not as a true vector, but as a symbolic instruction. How we 'multiply' it with a field determines the outcome. To find the gradient of a scalar field f, we 'multiply' the del operator by f. The operators distribute, acting on f, yielding a vector: i-hat partial-f-by-partial-x, and so on. This converts a scalar field into a vector field. To find the divergence of a vector field F, we take the dot product of del with F. This is a formal dot product: the x-component of del operates on the x-component of F, the y on the y, and the z on the z. We then sum the results: partial F-x by partial x, plus partial F-y by partial y, plus partial F-z by partial z. The result is a scalar, as expected from a dot product. This converts a vector field to a scalar field. To find the curl, we take the cross product of del with F. This is calculated using the familiar determinant recipe for a cross product. The top row is i-hat, j-hat, k-hat; the second row is the components of del; the third row is the components of F. Working out this determinant yields a new vector field, representing the circulation.
Let's decode the symbols that pack so much physical meaning.
Let's look at the formal definitions in Cartesian coordinates. First, the gradient of a scalar function f. We write it as del f. This is the vector whose components are the partial derivatives of f with respect to x, y, and z. Notice the input is a scalar, f, and the output is a vector. Next, the divergence of a vector field F. We write this as del dot F. This is the scalar quantity you get by taking the partial derivative of the x-component of F with respect to x, adding it to the partial derivative of the y-component with respect to y, and the z-component with respect to z. Input: vector. Output: scalar. Finally, the curl, written del cross F. This is a vector, and its components are found by computing this three-by-three determinant. The top row contains the unit vectors i-hat, j-hat, and k-hat. The second row contains the partial derivative operators that make up del. The third row contains the components of our vector field, F sub x, F sub y, and F sub z. When you compute this determinant, for example the i-hat component is partial F-z by partial y minus partial F-y by partial z. This operation takes a vector field as input and produces another vector field as output.
These operators have deep, built-in relationships that constrain the physics of fields.
These operators are not independent; they possess crucial interrelationships. The first is that the curl of a gradient is always zero. Del cross del f is identically zero, for any well-behaved scalar function f. This makes sense intuitively: a gradient field points 'straight uphill'. It has no circulation or rotation, so its curl must be zero. Fields that can be written as a gradient are called 'irrotational' or 'conservative', and this property is the foundation of electrostatics. Second, the divergence of a curl is always zero. Del dot del cross F is identically zero. This is less intuitive, but it means that a field derived from a curl can have no sources or sinks. It must be composed of closed loops. This identity is the mathematical reason why there are no magnetic monopoles in classical electromagnetism. The magnetic field B can be written as the curl of a vector potential A, so its divergence must be zero. These two facts lead to the Helmholtz Decomposition theorem, a cornerstone of field theory. It states that any reasonably well-behaved vector field can be uniquely decomposed into the sum of an irrotational part (a gradient) and a solenoidal, or divergence-free, part (a curl). This is profound. It tells us that to completely specify a vector field, all we need to know are its sources (its divergence) and its circulations (its curl).
Let's apply these operators to a field representing simple rotation.
Let's make this concrete with an example. Consider the vector field given by F equals negative y i-hat plus x j-hat. If you were to plot this field, you would see vectors that trace out circles around the origin, moving in a counter-clockwise direction. It represents a simple vortex or rotation. First, let's compute its divergence, del dot F. We take the partial derivative of the x-component, which is negative y, with respect to x. That's zero. Then we take the partial derivative of the y-component, x, with respect to y. That's also zero. The z-component is zero, so its derivative is zero. The sum is zero. This field is divergence-free, or solenoidal. It has no sources or sinks, which makes sense for a pure rotation. Now, let's compute its curl, del cross F. We set up our determinant. The i-hat component involves only derivatives of the y and z components with respect to y and z, which are all zero. Same for the j-hat component. The only non-zero contribution comes from the k-hat component. This component is the partial of F-sub-x with respect to x, which is one, minus the partial of F-sub-y with respect to y... wait, let me re-state that... the k-hat component is partial F-y by partial x, which is one, minus partial F-x by partial y, which is negative one. So we get one minus negative one, which is two. The curl is two k-hat. This is a constant vector pointing in the positive z-direction, confirming that our field represents a pure rotation about the z-axis, and the 'strength' of that rotation is the same everywhere.
This powerful toolkit has its boundaries; it's crucial to know where they are.
This framework is powerful, but it is not universal. It has important limitations. First, the simple formulas we've written are specific to Cartesian coordinates. If you're working with a problem that has spherical or cylindrical symmetry, using these formulas is a mistake. You must use the corresponding, more complex expressions for the gradient, divergence, and curl in those coordinate systems. The underlying geometric meaning is the same, but the symbolic representation changes. Second, these are differential operators. They fundamentally rely on the fields being 'smooth' and differentiable. What happens at a sharp boundary, like the surface of a charged conductor where the electric field can be discontinuous? At that exact point, the derivative is not defined. To handle such cases, we must resort to the integral forms of the theorems, like Gauss's Law, which can accommodate discontinuities. Finally, this entire structure is built on the foundation of a flat, three-dimensional Euclidean space. For most of engineering and physics, this is an excellent approximation. But in the realm of general relativity, where gravity is described as the curvature of spacetime, this framework is insufficient. The very notion of a partial derivative becomes more complex, requiring the machinery of tensor calculus and covariant derivatives to properly describe how fields change in a curved manifold. Vector calculus is a special, flat-space case of that more general language.
The familiar Fundamental Theorem of Calculus has powerful analogues in higher dimensions.
The operators we've defined are deeply connected to integration through a set of results collectively known as the fundamental theorems of vector calculus. These are higher-dimensional generalizations of the Fundamental Theorem of Calculus you already know, which states that the integral of a derivative, df/dx, over an interval is equal to the value of the function f at the boundaries of that interval. Each of our operators has a corresponding theorem. The Gradient Theorem states that the line integral of a gradient, which is a kind of derivative, along a path depends only on the value of the original scalar function at the path's endpoints, which are its boundary. The Divergence Theorem, also known as Gauss's Theorem, is more profound. It states that the integral of the divergence of a field over an entire volume is equal to the total flux of that field through the closed surface that forms the boundary of that volume. It connects the 'sources' inside to the 'flow' outside. Stokes's Theorem is similar. It states that the integral of the curl of a field over an open surface is equal to the line integral of that field along the closed curve that forms the boundary of that surface. It connects the 'circulation' on the surface to the 'flow' around its edge. These theorems are the workhorses of electromagnetism. They allow us to move between the differential form of Maxwell's equations, which describe what's happening at a point, and the integral form, which describes macroscopic behavior.
These are the four most common traps in applying vector calculus.
As you begin to work with these tools, there are several common mistakes to be aware of. The most fundamental is a type mismatch. You must be vigilant about what kind of object each operator takes as input and produces as output. The gradient acts on a scalar and produces a vector. Divergence acts on a vector, produces a scalar. Curl acts on a vector, produces a vector. Attempting to take the divergence of a scalar field is a meaningless operation. Second, when you encounter derivatives of products of fields, be careful. The simple product rule from single-variable calculus does not apply directly. There are specific vector calculus product rules for quantities like the gradient of a product of two scalars, or the divergence of a scalar times a vector field. You will need to look these up and apply them correctly. Third, when using the integral theorems, be precise about the boundary. Gauss's theorem relates a volume integral to an integral over the closed surface that bounds it. Stokes's theorem relates a surface integral to an integral over the closed loop that bounds it. Confusing these two geometries is a frequent source of error. Finally, I'll repeat this because it's so important: do not use the Cartesian formulas for the operators if your problem is set in a different coordinate system. You must use the correct forms for cylindrical or spherical coordinates, which include extra factors related to the geometry of the system.
Beyond the lecture, these are the resources to build mastery.
To truly learn this material, you must solve problems. The primary text for this course is Griffiths' 'Introduction to Electrodynamics'. The first chapter is a masterclass in vector calculus presented from a physicist's point of view. Read it, and do the problems. For a supplementary text that focuses purely on the mathematical intuition, I highly recommend 'Div, Grad, Curl, and All That' by H. M. Schey. It’s a slim, very readable book that builds fantastic geometric intuition. Beyond books, you should use computational tools to visualize what you're calculating. Don't just compute the curl of a field; plot the field and see the rotation. Software like Mathematica or MATLAB are industry standards for this. Alternatively, the open-source Python ecosystem, with libraries like NumPy for calculation and Matplotlib for plotting, is extremely powerful and freely available. Using these tools to plot vector fields will connect the abstract symbols to the geometric reality they represent, which is an invaluable step toward mastery.
This week, you will derive the electric field of a dipole from its potential and verify its core properties.
For this week's problem set, you will engage with a central object in electrostatics: the electric dipole. The scalar potential field, V, of a dipole located at the origin and aligned with the z-axis is given by V of x, y, z is equal to a constant p, times z, divided by the quantity x-squared plus y-squared plus z-squared, all raised to the three-halves power. Your first task is to find the electric field, E, which is defined as the negative gradient of the potential: E equals negative del V. This will require careful application of the quotient rule and chain rule for partial derivatives. The algebra will be involved, but it is essential practice. Your second task, once you have the vector components of the electric field E, is to prove two key properties of this field in any region of space that does not include the origin. First, show that the curl of E is zero. This will confirm that the electrostatic field is conservative. Second, show that the divergence of E is also zero. This tells us there are no net charges in empty space. Working through this problem will solidify the mechanics of these operators and give you a preview of their profound physical significance in electrostatics.
We've established the mathematical language of vector calculus, centered on the 'del' operator. These tools are not just abstract math; they are the precise grammar we need to state the laws of electromagnetism.