Single-variable calculus studies functions — one input, one output. Multivariable calculus extends everything to functions of two or three variables: surfaces, vector fields, and 3D geometry.
The core ideas (limits, derivatives, integrals) carry over, but with richer structure. A function of two variables has infinitely many directions to differentiate in. An integral over a region in the plane computes volume. Vector fields assign a vector to every point in space, and their integrals compute work and flux.
This module covers vectors, partial derivatives, optimization with several variables, multiple integrals, and the three great theorems of vector calculus: Green's, Stokes', and the Divergence Theorem.
Vectors and the geometry of space
A vector in has magnitude and direction.
Dot product: . It measures how aligned two vectors are. Zero dot product means perpendicular.
Cross product: is a vector perpendicular to both and , with magnitude (the area of the parallelogram they span).
Equations of lines: (point plus direction). Equations of planes: (normal vector dotted with displacement is zero).
These tools let you describe points, lines, planes, and curves in 3D space — the setting for everything that follows.
Finding the equation of a plane
- Find the equation of the plane through with normal vector .
- The plane equation is .
- .
- Expand: .
- Simplify: .
Vector functions and space curves
A vector function traces a curve in 3D space as the parameter varies. Think of as time: at each moment, the point is the particle's position.
The derivative is the velocity vector — it points in the direction of motion and its magnitude is the speed.
Speed: . The unit tangent vector gives the direction of motion without the speed information.
Arc length: — integrate speed over time to get total distance traveled. This is the 3D generalization of .
Curvature measures how sharply the curve turns: . A straight line has ; a circle of radius has (tighter circle = higher curvature).
The acceleration vector naturally decomposes into two components: where (tangential — speeding up or slowing down) and (normal — turning). This is why you feel pushed sideways on a curve and pressed back under acceleration.
💡Explain it simply
A vector function describes a path through space, like the GPS track of a drone. The derivative is the velocity — how fast and which direction it's flying at each moment. Speed is how fast; the unit tangent vector is which direction.
Curvature measures how 'bendy' the path is at each point. Flying straight? Curvature is zero. Doing a tight spiral? Curvature is large. A circle with a small radius has high curvature (tight turns), while a circle with a huge radius has low curvature (gentle turns).
Partial derivatives
For , the partial derivative differentiates with respect to while treating as a constant.
Geometrically: is the slope of the surface in the -direction at the point .
Higher-order partials: , , , . Clairaut's Theorem: if and are continuous, then (the order of differentiation doesn't matter).
Example: if , then and .
Limits and continuity in multiple variables: means approaches from every possible path. To show a limit doesn't exist, find two paths that give different limits.
Showing a multivariable limit does not exist
- Investigate .
- Along the path : . Limit is .
- Along the path : . Limit is .
- Two paths give different limits (), so the limit does not exist.
The gradient vector and directional derivatives
The gradient of is the vector . It encodes all the directional information about how changes. Its direction points toward the steepest uphill, and its magnitude is the rate of steepest ascent.
The directional derivative of in the direction of unit vector is , where is the angle between and . This tells you the rate of change of in any direction.
Key consequences: is maximized when points in the direction of (steepest ascent, ). It's minimized in the direction of (steepest descent, ). It's zero when is perpendicular to — this is the 'contour direction' where stays constant.
The gradient is perpendicular to level curves (in 2D) and level surfaces (in 3D). This is why contour maps work: if you walk along a contour line ( constant), you're moving perpendicular to , so doesn't change.
The tangent plane to at is . This is the multivariable analog of the tangent line — the best linear approximation to the surface at that point.
💡Explain it simply
Imagine standing on a hillside. The gradient vector is an arrow that points directly uphill — the steepest direction you could walk. The length of the arrow tells you how steep that steepest direction is. Walking perpendicular to the gradient means walking along a contour line — staying at the same elevation.
The directional derivative answers: 'If I walk in this particular direction, how steep is the slope?' Walking straight uphill (with the gradient) gives the maximum slope. Walking along a contour (perpendicular to the gradient) gives zero slope. Walking at an angle gives something in between.
Optimization and Lagrange multipliers
To find extrema of : set and simultaneously. Solutions are critical points.
Second derivative test: compute at a critical point. If and : local min. If and : local max. If : saddle point. If : inconclusive.
Lagrange multipliers solve constrained optimization: maximize/minimize subject to a constraint .
Method: solve and simultaneously. The scalar is the Lagrange multiplier.
Geometric insight: at a constrained extremum, the gradient of must be parallel to the gradient of . They point in the same (or opposite) direction along the constraint curve.
Lagrange multipliers: maximizing on a circle
- Maximize subject to .
- and .
- Set : and .
- From equation 1: . From equation 2: .
- So .
- Substitute into the constraint: .
- Points: and . (max) and (min).
Multiple integrals
A double integral computes the volume under over a region in the -plane.
Iterated integrals: . Evaluate the inner integral first (treating the outer variable as a constant).
Fubini's Theorem: if is continuous on , you can integrate in either order: . Sometimes one order is much easier.
Polar coordinates: for circular or radial regions, use , , . The extra factor of is critical.
Triple integrals extend to 3D: computes mass (if is density), or volume (if ).
Cylindrical coordinates : . Use for problems with cylindrical symmetry.
Spherical coordinates : . Use for spheres and cones.
Applications: mass = , center of mass = , moments of inertia.
Double integral in polar coordinates
- Evaluate where is the disk .
- Convert to polar: , , and the disk becomes , .
- .
- The integral is trivial: .
- For the integral: . Let , : .
- Total: .
Vector fields
A vector field assigns a vector to every point in space: in 2D, or in 3D. Visually, draw a small arrow at each point showing the direction and magnitude.
Physical examples: gravitational fields (arrows point toward massive objects), electric fields (arrows show the force on a positive charge), fluid velocity fields (arrows show speed and direction of flow at each point), wind maps, and magnetic fields.
A vector field is conservative if for some scalar function (called the potential function). This means the field is the gradient of something. Conservative fields have a crucial property: the line integral between two points is independent of the path taken — only the endpoints matter.
Test for conservative fields in 2D: is conservative if and only if on a simply connected domain (no holes). This is the 'cross-partial' test.
Finding the potential function: if passes the cross-partial test, find by integrating: (treating as constant), then determine any leftover function of by matching .
Non-conservative fields include anything with a nonzero curl (in 3D) or failing the cross-partial test. The work done by such a field depends on the path, not just the endpoints. Example: has but , so it's not conservative — it swirls.
💡Explain it simply
A vector field is like a weather map with wind arrows at every location. At each point, the arrow tells you which way the wind blows and how strong it is.
A conservative field is special: it has a 'potential energy landscape' underneath it, like a hilly terrain where the arrows always point downhill. In such a field, the work done between two points depends only on the elevation difference, not on the path you take. A non-conservative field has no such landscape — the path matters, like a wind field that swirls in circles.
Line integrals
A line integral computes a quantity accumulated along a curve in space. There are two main types, and they answer different questions.
Scalar line integral: . Here is the arc length element. This computes the 'weighted length' of the curve — for example, the mass of a wire with density at each point, or the total cost of a path where is the cost per unit length.
Vector line integral (work integral): . The dot product picks out the component of in the direction of motion. This computes the work done by the force field on a particle moving along . Force components perpendicular to the path contribute zero work.
Fundamental Theorem for Line Integrals: if (conservative), then . The integral depends only on the endpoints, not the path. This is the multivariable analog of .
Corollary: for a conservative field, the line integral around any closed loop is zero (). You end where you started, so the potential difference is zero.
💡Explain it simply
A scalar line integral is like measuring the total cost of a road trip, where different stretches of road have different tolls per mile. You multiply the toll rate by the distance at each point and add up along the route.
A vector line integral (work) is like measuring how much the wind helps or hinders you as you walk along a path. Wind pushing you forward = positive work. Wind pushing sideways = zero contribution. Wind pushing backward = negative work. The total work is what you feel over the entire walk.
Work integral using the Fundamental Theorem
- Compute where and is any path from to .
- Check if is conservative: , . and . Since , is conservative.
- Find the potential function: . Then .
- So .
- By the Fundamental Theorem: .
- The answer is , regardless of which path we take from to .
Curl and divergence
Divergence measures how much a vector field 'spreads out' from a point: .
Positive divergence: source (field flows outward). Negative: sink (field flows inward). Zero: incompressible flow.
Curl measures the 'rotation' or 'circulation' of a field: .
If everywhere, the field is irrotational (no swirling). For simply connected domains, irrotational implies conservative.
Physical examples: the curl of a fluid velocity field tells you how fast and around which axis a small paddle wheel would spin. The divergence tells you whether fluid is being created or destroyed at a point.
Green's, Stokes', and the Divergence Theorem
These three theorems are the pinnacle of vector calculus. Each relates an integral over a boundary to an integral over the region it encloses.
Green's Theorem (2D): . A line integral around a closed curve equals a double integral over the enclosed region.
Stokes' Theorem (3D surfaces): . A line integral around the boundary of a surface equals the surface integral of the curl.
Divergence Theorem (3D volumes): . The flux through a closed surface equals the triple integral of the divergence inside.
Unified pattern: in every case, an integral over the boundary = an integral of a derivative over the interior. This is the same idea as the Fundamental Theorem of Calculus (), generalized to higher dimensions.
Green's Theorem is the 2D special case of Stokes'. The Divergence Theorem is the 3D analog for flux instead of circulation.
💡Explain it simply
Imagine you have a pond with water flowing around. You want to know the total circulation (how much the water swirls) around the edge of the pond. Green's Theorem says: instead of measuring along the entire bank, you can add up all the tiny swirls inside the pond. The total around the boundary equals the sum of what's happening inside.
Stokes' Theorem is the same idea but for a surface in 3D — like measuring the total wind circulation around the edge of a sail by adding up the curl of the wind over the sail's surface.
The Divergence Theorem says: the total amount of stuff flowing out through the walls of a room equals the total amount of stuff being produced inside the room. Sources inside push flux out through the boundary.
All three theorems say the same thing at different levels: boundary integral = interior derivative integral. This is the grand unification of calculus.
Common Mistakes to Avoid
- Forgetting the factor when converting to polar coordinates: , not .
- In double integrals, getting the order of integration wrong or using incorrect bounds. Always sketch the region first.
- Confusing the dot product and cross product. The dot product gives a scalar; the cross product gives a vector.
- Applying the 2D conservative test () to a non-simply-connected domain. The test can give a false positive if the domain has holes.
- In line integrals, forgetting to parametrize the curve before integrating. You need and .
- Confusing divergence (a scalar) with curl (a vector). Divergence measures expansion; curl measures rotation.
- In Stokes' Theorem, using the wrong orientation. The boundary curve and surface normal must be consistently oriented (right-hand rule).
- Forgetting the factor in spherical coordinates. This is the 3D analog of the factor in polar.