Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

Formula & theorem reference

Concept clusters →

Every named result in this course, grouped by chapter. Each one links back to where it's derived.

Readiness review

Formula

Vector Components, Magnitude, and Direction Angle

For a vector with magnitude |\mathbf{v}| and direction angle \theta, x = |\mathbf{v}|\cos\theta, \qquad y = |\mathbf{v}|\sin\theta. Conversely, for a vector with components \langle x, y\rangle, |\mathbf{v}| = \sqrt{x^2+y^2}, \qquad \theta = \tan^{-1}\!\left(\frac{y}{x}\right)\ \text{(adjusted for the quadrant of $\langle x,y\rangle$).}

Formula

Polar to Rectangular Conversion

For a point with polar coordinates (r, \theta), x = r\cos\theta, \qquad y = r\sin\theta.

Show proof

This is nothing but the unit-circle definitions of cosine and sine — \cos\theta and \sin\theta are the x- and y-coordinates on a circle of radius 1 — stretched from radius 1 out to radius r.

Formula

Rectangular to Polar Conversion

For a point with rectangular coordinates (x, y), not the pole, r = \sqrt{x^2 + y^2}, \qquad \tan\theta = \frac{y}{x}.

Show proof

r = \sqrt{x^2+y^2} is just the distance formula from the origin to (x,y). Dividing the two conversion equations above, \frac{y}{x} = \frac{r\sin\theta}{r\cos\theta} = \tan\theta, whenever x \neq 0.

Formula

Arc length of a curve

For a smooth function f with continuous derivative on [a,b], the length of the curve y=f(x) from x=a to x=b is L = \int_a^b \sqrt{1+\big[f'(x)\big]^2}\,dx.

Show proof

Approximate the curve by a polygonal path connecting points at x_0,x_1,\ldots,x_n. Between consecutive points, the path rises \Delta y_i over a run of \Delta x, so that segment's length is \sqrt{(\Delta x)^2+(\Delta y_i)^2} = \sqrt{1+(\Delta y_i/\Delta x)^2}\,\Delta x. By the Mean Value Theorem, \Delta y_i/\Delta x = f'(x_i^*) for some point x_i^* in that subinterval, so the segment's length is \sqrt{1+[f'(x_i^*)]^2}\,\Delta x. Summing over all n segments gives a Riemann sum for \sqrt{1+[f'(x)]^2}, and letting n\to\infty turns that sum into the stated integral, with the polygonal path's total length converging to the true arc length.

Formula

u-Substitution

also known as: Change of Variables, Reverse Chain Rule

If u = g(x) with g differentiable and f continuous on the range of g, then \int f(g(x))\,g'(x)\,dx = \int f(u)\,du. For a definite integral, the bounds transform along with the variable: \int_a^b f(g(x))\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du.

Loading interactive…

Formula

Integration by Parts

also known as: the product rule run in reverse

For differentiable u=u(x) and v=v(x): \int u\,dv = uv - \int v\,du.

Show proof

Start from the product rule, \dfrac{d}{dx}[uv] = u\,\dfrac{dv}{dx} + v\,\dfrac{du}{dx}, and integrate both sides with respect to x: uv = \int u\,\frac{dv}{dx}\,dx + \int v\,\frac{du}{dx}\,dx = \int u\,dv + \int v\,du. Solving for \int u\,dv gives the formula directly. No information is added or lost — it's the product rule read from right to left, with the two terms it produces separated onto opposite sides of the equation.

Theorem

Fundamental Theorem of Calculus, Part 1

also known as: FTC1, the accumulation-function derivative theorem

Suppose f is continuous on [a, b]. Define A(x) = \int_a^x f(t)\,dt for x in [a, b]. Then A is differentiable on (a, b) and

A'(x) = f(x).
Show proof

Fix x in (a,b) and form the difference quotient defining A'(x): \frac{A(x+h)-A(x)}{h} = \frac{1}{h}\left[\int_a^{x+h}f(t)\,dt -\int_a^x f(t)\,dt\right] = \frac{1}{h}\int_x^{x+h} f(t)\,dt, the last step by additivity of the definite integral over adjacent intervals. The remaining integral is f's net signed area over a sliver of width h -- and by the Mean Value Theorem for Integrals (f continuous on [x,x+h]), that sliver equals f(c)\cdot h for SOME c between x and x+h, so \frac{A(x+h)-A(x)}{h} = f(c) \quad\text{for some $c$ strictly between $x$ and $x+h$.} As h\to0, c is squeezed between x and x+h and is forced to x too, and f's continuity at x then forces f(c)\to f(x). Taking the limit, A'(x) = \lim_{h\to0}\frac{A(x+h)-A(x)}{h} = \lim_{h\to0} f(c) = f(x).

The same conclusion falls out of the Riemann-sum definition directly, without invoking the Mean Value Theorem for Integrals: for small h, \int_x^{x+h} f(t)\,dt is itself approximated by a single thin rectangle of width h and height approximately f(x) (since f barely changes over an interval that short, by continuity), so \frac{1}{h}\int_x^{x+h}f(t)\,dt\approx f(x), with the approximation becoming exact in the limit h\to0 -- the same "thin slice, height \approx f(x)" idea Chapter 7 built Riemann sums from in the first place, just run over a single infinitesimally short interval instead of the whole [a,b].

Continuity of f is load-bearing in both arguments: it is what supplies the Mean Value Theorem for Integrals' own hypothesis, and it is what forces f(c)\to f(x) as the squeezed point c\to x -- a discontinuous f can make A fail to be differentiable exactly at the discontinuity, even though A itself (an accumulated area) still exists there.

Loading interactive…

Formula

Chain Rule

If y = f(u) and u = g(x), then \frac{dy}{dx} = f'(g(x)) \cdot g'(x).

Loading interactive…

Vectors and the geometry of space

Formula

Distance Formula in 3D

also known as: the 3D extension of the Pythagorean distance formula

For points P_1=(x_1,y_1,z_1) and P_2=(x_2,y_2,z_2),

d(P_1,P_2) = \sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}.
Show proof

Let Q=(x_2,y_1,z_1) and R=(x_2,y_2,z_1) sit on the path from P_1 to P_2 that moves along one axis at a time. In the horizontal plane z=z_1, P_1, Q, R form a right triangle with legs |x_2-x_1| and |y_2-y_1|, so by the Pythagorean theorem

d(P_1,R)^2 = (x_2-x_1)^2+(y_2-y_1)^2.

Now R and P_2 differ only in z, and the segment RP_2 is perpendicular to the plane z=z_1 — hence perpendicular to P_1R — so P_1, R, P_2 form a second right triangle, this one with legs d(P_1,R) and |z_2-z_1|:

d(P_1,P_2)^2 = d(P_1,R)^2+(z_2-z_1)^2 = (x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2.

Taking the positive square root gives the formula.

Theorem

The Dot Product in 3D

also known as: the scalar product

For vectors \mathbf{u}=\langle u_1,u_2,u_3\rangle and \mathbf{v}=\langle v_1,v_2,v_3\rangle with angle \theta between them,

\mathbf{u}\cdot\mathbf{v} = u_1v_1+u_2v_2+u_3v_3 = |\mathbf{u}|\,|\mathbf{v}|\cos\theta.
Show proof

Draw \mathbf{u} and \mathbf{v} from a common point O, with tips at U and V. The triangle OUV has two sides |\mathbf{u}|, |\mathbf{v}| meeting at angle \theta, and third side |\mathbf{u}-\mathbf{v}|, so the Law of Cosines gives

|\mathbf{u}-\mathbf{v}|^2 = |\mathbf{u}|^2+|\mathbf{v}|^2-2|\mathbf{u}||\mathbf{v}|\cos\theta.

Expanding the left side component-by-component, \mathbf{u}-\mathbf{v}=\langle u_1-v_1,\,u_2-v_2,\,u_3-v_3\rangle, so

|\mathbf{u}-\mathbf{v}|^2 = \sum_i (u_i-v_i)^2 = \sum_i u_i^2+\sum_i v_i^2 - 2\sum_i u_iv_i = |\mathbf{u}|^2+|\mathbf{v}|^2-2\sum_i u_iv_i.

Both expressions equal |\mathbf{u}-\mathbf{v}|^2; setting them equal, canceling |\mathbf{u}|^2+|\mathbf{v}|^2 from both sides, and dividing by -2 leaves \sum_i u_iv_i = |\mathbf{u}||\mathbf{v}|\cos\theta, which is exactly \mathbf{u}\cdot\mathbf{v}=u_1v_1+u_2v_2+u_3v_3 on the left.

Formula

Vector Projection

also known as: the shadow one vector casts onto another

For vectors \mathbf{u} and \mathbf{v} with \mathbf{u} \neq \mathbf{0}, the projection of \mathbf{v} onto \mathbf{u} is

\text{proj}_{\mathbf{u}}\mathbf{v} = \left(\frac{\mathbf{v}\cdot\mathbf{u}}{|\mathbf{u}|^2}\right)\mathbf{u}.
Show proof

Drop a perpendicular from the tip of \mathbf{v} down onto the line through \mathbf{u}; this forms a right triangle with hypotenuse |\mathbf{v}| and angle \theta between \mathbf{u} and \mathbf{v}. Exactly as in Chapter 8, the leg lying along \mathbf{u}'s line — the scalar projection — has length |\mathbf{v}|\cos\theta (adjacent equals hypotenuse times cosine). From the theorem above, \cos\theta = \frac{\mathbf{u}\cdot\mathbf{v}}{|\mathbf{u}|\,|\mathbf{v}|}, so the scalar projection simplifies to

|\mathbf{v}|\cos\theta = |\mathbf{v}|\cdot\frac{\mathbf{u}\cdot\mathbf{v}}{|\mathbf{u}|\,|\mathbf{v}|} = \frac{\mathbf{u}\cdot\mathbf{v}}{|\mathbf{u}|}.

The vector projection points along \mathbf{u}'s own direction, so multiply this scalar length by the unit vector \frac{\mathbf{u}}{|\mathbf{u}|}:

\text{proj}_{\mathbf{u}}\mathbf{v} = \frac{\mathbf{u}\cdot\mathbf{v}}{|\mathbf{u}|}\cdot\frac{\mathbf{u}}{|\mathbf{u}|} = \frac{\mathbf{u}\cdot\mathbf{v}}{|\mathbf{u}|^2}\mathbf{u}.

Formula

The Cross Product

also known as: the vector product

For \mathbf{u}=\langle u_1,u_2,u_3\rangle and \mathbf{v}=\langle v_1,v_2,v_3\rangle,

\mathbf{u}\times\mathbf{v} = \begin{vmatrix}\mathbf{i}&\mathbf{j}&\mathbf{k}\\ u_1&u_2&u_3\\ v_1&v_2&v_3\end{vmatrix} = \langle u_2v_3-u_3v_2,\ u_3v_1-u_1v_3,\ u_1v_2-u_2v_1\rangle,

a new vector perpendicular to both \mathbf{u} and \mathbf{v}, with magnitude |\mathbf{u}\times\mathbf{v}| = |\mathbf{u}||\mathbf{v}|\sin\theta, which is the area of the parallelogram \mathbf{u} and \mathbf{v} span.

Show proof

Direct computation confirms perpendicularity: expanding the dot product \mathbf{u}\cdot(\mathbf{u}\times\mathbf{v}) component-by-component gives u_1(u_2v_3-u_3v_2)+u_2(u_3v_1-u_1v_3)+u_3(u_1v_2-u_2v_1), and every term cancels against another, leaving 0; the same cancellation shows \mathbf{v}\cdot(\mathbf{u}\times\mathbf{v})=0.

For the magnitude, Lagrange's identity states |\mathbf{u}\times\mathbf{v}|^2 = |\mathbf{u}|^2|\mathbf{v}|^2 - (\mathbf{u}\cdot\mathbf{v})^2 (both sides expand to the same sum of squared component products — a direct algebraic check). Substituting \mathbf{u}\cdot\mathbf{v}=|\mathbf{u}||\mathbf{v}|\cos\theta:

|\mathbf{u}\times\mathbf{v}|^2 = |\mathbf{u}|^2|\mathbf{v}|^2 - |\mathbf{u}|^2|\mathbf{v}|^2\cos^2\theta = |\mathbf{u}|^2|\mathbf{v}|^2(1-\cos^2\theta) = |\mathbf{u}|^2|\mathbf{v}|^2\sin^2\theta.

Since 0\le\theta\le\pi makes \sin\theta\ge0, taking square roots gives |\mathbf{u}\times\mathbf{v}|=|\mathbf{u}||\mathbf{v}|\sin\theta.

Formula

The Scalar Triple Product and Parallelepiped Volume

also known as: the box product

For \mathbf{u},\mathbf{v},\mathbf{w} in \mathbb{R}^3,

\mathbf{u}\cdot(\mathbf{v}\times\mathbf{w}) = \begin{vmatrix}u_1&u_2&u_3\\ v_1&v_2&v_3\\ w_1&w_2&w_3\end{vmatrix},

and |\mathbf{u}\cdot(\mathbf{v}\times\mathbf{w})| is the volume of the parallelepiped with edges \mathbf{u}, \mathbf{v}, \mathbf{w}.

Show proof

\mathbf{v}\times\mathbf{w} is perpendicular to the base parallelogram spanned by \mathbf{v} and \mathbf{w}, with length equal to that base's area. Writing \mathbf{n}=\mathbf{v}\times\mathbf{w} and \hat{\mathbf{n}}=\mathbf{n}/|\mathbf{n}|, the parallelepiped's height — how far \mathbf{u} reaches in the direction perpendicular to the base — is the absolute value of the scalar projection of \mathbf{u} onto \hat{\mathbf{n}}, namely |\mathbf{u}\cdot\hat{\mathbf{n}}|. Volume is base area times height:

V = |\mathbf{n}|\cdot|\mathbf{u}\cdot\hat{\mathbf{n}}| = \left|\mathbf{u}\cdot\left(|\mathbf{n}|\hat{\mathbf{n}}\right)\right| = |\mathbf{u}\cdot(\mathbf{v}\times\mathbf{w})|.

The determinant form follows from expanding \mathbf{v}\times\mathbf{w} into components and dotting with \mathbf{u} — exactly the cofactor expansion of the 3\times3 determinant along its first row.

Formula

Vector, Parametric, and Symmetric Equations of a Line

The line through P_0=(x_0,y_0,z_0) with direction vector \mathbf{v}=\langle a,b,c\rangle consists of every point \mathbf{r}(t) = \mathbf{r}_0 + t\mathbf{v}, t\in\mathbb{R}, called the vector equation. In components, this is the parametric equations

x = x_0+at,\qquad y = y_0+bt,\qquad z = z_0+ct,

and when a,b,c are all nonzero, solving each for t and setting the results equal gives the symmetric equations

\frac{x-x_0}{a} = \frac{y-y_0}{b} = \frac{z-z_0}{c}.
Show proof

A point Q=(x,y,z) lies on the line through P_0 in direction \mathbf{v} exactly when \overrightarrow{P_0Q} is parallel to \mathbf{v} — that is, \overrightarrow{P_0Q}=t\mathbf{v} for some real t. Writing \mathbf{r}=\langle x,y,z\rangle and \mathbf{r}_0=\langle x_0,y_0,z_0\rangle, this parallelism condition is exactly \mathbf{r}-\mathbf{r}_0=t\mathbf{v}, i.e. \mathbf{r}=\mathbf{r}_0+t\mathbf{v}. Reading off each component gives the parametric form; eliminating t from each of t=\frac{x-x_0}{a}=\frac{y-y_0}{b}=\frac{z-z_0}{c} (valid whenever a,b,c\neq0) gives the symmetric form.

Formula

The Scalar Equation of a Plane

The plane through P_0=(x_0,y_0,z_0) with normal vector \mathbf{n}=\langle a,b,c\rangle consists of every point (x,y,z) satisfying

a(x-x_0)+b(y-y_0)+c(z-z_0)=0,

which expands to the linear equation form ax+by+cz=d, where d=ax_0+by_0+cz_0.

Show proof

A point Q=(x,y,z) lies in the plane exactly when \overrightarrow{P_0Q}=\langle x-x_0,\,y-y_0,\,z-z_0\rangle lies flat in the plane itself, which is exactly the condition that \overrightarrow{P_0Q} is perpendicular to the normal \mathbf{n}: \mathbf{n}\cdot\overrightarrow{P_0Q}=0. Writing that dot product out in components gives a(x-x_0)+b(y-y_0)+c(z-z_0)=0 directly, and collecting the constant terms on the right gives ax+by+cz=ax_0+by_0+cz_0=d.

Formula

Distance from a Point to a Plane

For a plane ax+by+cz=d with normal \mathbf{n}=\langle a,b,c\rangle and a point P_1=(x_1,y_1,z_1) not necessarily on the plane, the distance from P_1 to the plane is

D = \frac{|ax_1+by_1+cz_1-d|}{|\mathbf{n}|}.
Show proof

Let P_0=(x_0,y_0,z_0) be any point that IS on the plane, so ax_0+by_0+cz_0=d. The distance D is the length of whatever piece of \overrightarrow{P_0P_1} points straight off the plane — exactly the absolute value of the scalar projection of \overrightarrow{P_0P_1} onto the unit normal \hat{\mathbf{n}}=\mathbf{n}/|\mathbf{n}|:

D = \left|\overrightarrow{P_0P_1}\cdot\hat{\mathbf{n}}\right| = \frac{|a(x_1-x_0)+b(y_1-y_0)+c(z_1-z_0)|}{|\mathbf{n}|} = \frac{|(ax_1+by_1+cz_1)-(ax_0+by_0+cz_0)|}{|\mathbf{n}|}.

Substituting ax_0+by_0+cz_0=d gives D=\dfrac{|ax_1+by_1+cz_1-d|}{|\mathbf{n}|}, which no longer references P_0 at all — any point on the plane gives the same answer, as it must.

Vector-valued functions and motion

Formula

Derivative of a Vector-Valued Function

also known as: componentwise differentiation of r(t)

If \mathbf{r}(t) = \langle f(t), g(t), h(t)\rangle and f, g, h are each differentiable, then \mathbf{r}'(t) = \lim_{\Delta t \to 0}\frac{\mathbf{r}(t+\Delta t) - \mathbf{r}(t)}{\Delta t} = \langle f'(t), g'(t), h'(t)\rangle. When \mathbf{r}'(t) \neq \mathbf{0}, it points in the direction of travel and is tangent to the curve traced by \mathbf{r}(t) at that point.

Show proof

Write the difference quotient component by component: \frac{\mathbf{r}(t+\Delta t) - \mathbf{r}(t)}{\Delta t} = \left\langle \frac{f(t+\Delta t)-f(t)}{\Delta t}, \frac{g(t+\Delta t)-g(t)}{\Delta t}, \frac{h(t+\Delta t)-h(t)}{\Delta t}\right\rangle. A vector-valued limit is taken component by component (each component is an ordinary real-valued limit), so letting \Delta t \to 0 sends each bracketed quotient to f'(t), g'(t), h'(t) respectively, giving \mathbf{r}'(t) = \langle f'(t), g'(t), h'(t)\rangle.

Theorem

Differentiation Rules for Vector Functions

Let \mathbf{u}(t), \mathbf{v}(t) be differentiable vector-valued functions, f(t) a differentiable scalar function, and c a constant. Then \frac{d}{dt}\big[\mathbf{u}(t) \pm \mathbf{v}(t)\big] = \mathbf{u}'(t) \pm \mathbf{v}'(t), \frac{d}{dt}\big[c\,\mathbf{u}(t)\big] = c\,\mathbf{u}'(t), \frac{d}{dt}\big[f(t)\,\mathbf{u}(t)\big] = f'(t)\,\mathbf{u}(t) + f(t)\,\mathbf{u}'(t), \frac{d}{dt}\big[\mathbf{u}(t)\cdot\mathbf{v}(t)\big] = \mathbf{u}'(t)\cdot\mathbf{v}(t) + \mathbf{u}(t)\cdot\mathbf{v}'(t), \frac{d}{dt}\big[\mathbf{u}(t)\times\mathbf{v}(t)\big] = \mathbf{u}'(t)\times\mathbf{v}(t) + \mathbf{u}(t)\times\mathbf{v}'(t), \frac{d}{dt}\big[\mathbf{u}(f(t))\big] = f'(t)\,\mathbf{u}'(f(t)). The cross-product rule preserves the order of the factors in each term. The cross product doesn't commute, so \mathbf{u}\times\mathbf{v}' and \mathbf{v}'\times\mathbf{u} are not interchangeable.

Show proof

Each rule reduces to the ordinary single-variable product/chain rule applied component by component. For the dot-product rule, write \mathbf{u}\cdot\mathbf{v} = u_1v_1+u_2v_2+u_3v_3 and differentiate each term with the scalar product rule: \frac{d}{dt}(u_iv_i) = u_i'v_i + u_iv_i'. Summing the three terms regroups exactly into $\mathbf{u}'\cdot\mathbf{v}

  • \mathbf{u}\cdot\mathbf{v}'. The cross-product rule follows the same way, differentiating the determinant expansion of \mathbf{u}\times \mathbf{v}$ term by term and keeping every factor's original left/right position, since each entry of the resulting vector is itself a sum of products of components.

Formula

Integral of a Vector-Valued Function

also known as: componentwise antidifferentiation of r(t)

If \mathbf{r}(t) = \langle f(t), g(t), h(t)\rangle, then \int \mathbf{r}(t)\,dt = \left\langle \int f(t)\,dt, \int g(t)\,dt, \int h(t)\,dt\right\rangle + \mathbf{C}, where \mathbf{C} is a constant vector of integration, and \int_a^b \mathbf{r}(t)\,dt = \left\langle \int_a^b f(t)\,dt, \int_a^b g(t)\,dt, \int_a^b h(t)\,dt\right\rangle. Given an initial condition \mathbf{r}(t_0) = \mathbf{r}_0, \mathbf{C} is pinned down uniquely, the same way one initial condition pins down a single-variable antiderivative's +C.

Show proof

Antidifferentiation undoes differentiation, and \mathbf{r}'(t)=\langle f'(t),g'(t),h'(t)\rangle already shows a vector-valued derivative acts component by component. Running that statement backward, an antiderivative of \mathbf{r}(t) must have f(t), g(t), h(t) as the derivatives of its own three components, so each component of \int\mathbf{r}(t)\,dt is exactly the ordinary antiderivative of the matching component of \mathbf{r}(t). Each component contributes its own scalar constant, and the three scalar constants bundle into one constant vector \mathbf{C}.

Formula

Arc Length of a Space Curve

also known as: arc length of a vector-valued function

For a smooth curve \mathbf{r}(t) = \langle f(t), g(t), h(t)\rangle on [a,b], the arc length is L = \int_a^b |\mathbf{r}'(t)|\,dt = \int_a^b \sqrt{[f'(t)]^2 + [g'(t)]^2 + [h'(t)]^2}\,dt.

Show proof

Partition [a,b] into n pieces of width \Delta t. The straight-line distance between consecutive sample points \mathbf{r}(t_{i-1}) and \mathbf{r}(t_i) approximates |\mathbf{r}'(t_i)|\,\Delta t, the same "speed times a short time interval" approximation used for a plane curve, since |\mathbf{r}'(t)| is exactly the instantaneous speed \dfrac{ds}{dt}. Summing these n straight-line pieces gives a Riemann sum \sum |\mathbf{r}'(t_i)|\,\Delta t for the length of the inscribed polygonal path; letting n \to \infty turns the sum into \int_a^b |\mathbf{r}'(t)|\,dt, and the polygonal path's length converges to the curve's own length because \mathbf{r} is smooth (continuously differentiable with \mathbf{r}'(t)\ne\mathbf{0}).

Formula

The Unit Tangent Vector

also known as: T(t)

For a smooth curve \mathbf{r}(t) with \mathbf{r}'(t) \neq \mathbf{0}, the unit tangent vector is \mathbf{T}(t) = \frac{\mathbf{r}'(t)}{|\mathbf{r}'(t)|}. This vector always has length 1 and points in the direction of travel. It records ONLY direction, never speed. That is why it stays well-defined at points where \mathbf{r}'(t) is long or short, but never zero.

Formula

Curvature

also known as: kappa, the curvature of a space curve

The curvature of a smooth curve \mathbf{r}(t) at a point is \kappa = \left|\frac{d\mathbf{T}}{ds}\right| = \frac{|\mathbf{T}'(t)|}{|\mathbf{r}'(t)|}. Equivalently, \kappa can be computed directly from \mathbf{r} without first finding \mathbf{T}: \kappa = \frac{|\mathbf{r}'(t)\times\mathbf{r}''(t)|}{|\mathbf{r}'(t)|^3}. This measures how fast the unit tangent turns per unit of arc length traveled: large where the curve bends sharply, zero along a straight line.

The (principal) unit normal vector is \mathbf{N}(t) = \frac{\mathbf{T}'(t)}{|\mathbf{T}'(t)|}. It always points toward the concave side of the curve, perpendicular to \mathbf{T}.

Show proof

Since \mathbf{T}(t)\cdot\mathbf{T}(t)=1 for every t (it's a unit vector), differentiating both sides with the dot-product rule gives 2\,\mathbf{T}(t)\cdot\mathbf{T}'(t) = 0, so \mathbf{T}'(t) is always perpendicular to \mathbf{T}(t) — that perpendicularity is exactly what makes \mathbf{N}(t), the normalized \mathbf{T}'(t), well-defined as "the direction the tangent is turning toward." For the cross-product form: \mathbf{r}'=|\mathbf{r}'|\mathbf{T}, so differentiating with the product rule gives \mathbf{r}'' = |\mathbf{r}'|'\mathbf{T} + |\mathbf{r}'|\mathbf{T}'. Crossing both sides with \mathbf{r}' kills the first term (a vector crossed with a parallel multiple of itself is \mathbf{0}), leaving \mathbf{r}'\times\mathbf{r}'' = |\mathbf{r}'|^2(\mathbf{T}\times\mathbf{T}'), and since \mathbf{T} and \mathbf{T}' are perpendicular, |\mathbf{T}\times\mathbf{T}'| = |\mathbf{T}'|. Solving for |\mathbf{T}'| and substituting into \kappa = |\mathbf{T}'|/|\mathbf{r}'| produces the stated formula.

Theorem

The Frenet–Serret Formulas

also known as: the TNB frame, torsion

The unit tangent \mathbf{T}, unit normal \mathbf{N}, and binormal \mathbf{B}=\mathbf{T}\times\mathbf{N} form a moving frame (three mutually perpendicular unit vectors riding along the curve). Their rates of change with respect to arc length s are \frac{d\mathbf{T}}{ds}=\kappa\mathbf{N}, \qquad \frac{d\mathbf{N}}{ds}=-\kappa\mathbf{T}+\tau\mathbf{B}, \qquad \frac{d\mathbf{B}}{ds}=-\tau\mathbf{N}. Here, \kappa is curvature, already defined, and \tau (torsion) measures how fast the curve twists OUT of its osculating (instantaneous \mathbf{T}-\mathbf{N}) plane. In terms of t directly, \tau = \frac{(\mathbf{r}'(t)\times\mathbf{r}''(t))\cdot \mathbf{r}'''(t)}{|\mathbf{r}'(t)\times\mathbf{r}''(t)|^2}. A planar curve (one that never leaves a single flat plane) has \tau=0 everywhere, since \mathbf{B} never has to tilt away from that plane at all.

Show proof

\mathbf{T}\cdot\mathbf{T}=1, \mathbf{N}\cdot\mathbf{N}=1, and \mathbf{T}\cdot\mathbf{N}=0 hold at every s; differentiating each with the product rule shows d\mathbf{T}/ds is perpendicular to \mathbf{T} (so it's some combination of \mathbf{N} and \mathbf{B}) and, by curvature's own definition \kappa=|d\mathbf{T}/ds| together with \mathbf{N}'s definition as the normalized d\mathbf{T}/ds, that combination is exactly \kappa\mathbf{N} with no \mathbf{B} part. Differentiating \mathbf{B}=\mathbf{T}\times\mathbf{N} and substituting d\mathbf{T}/ds=\kappa\mathbf{N} kills the first term (a vector crossed with a parallel multiple of itself), leaving d\mathbf{B}/ds = \mathbf{T}\times(d\mathbf{N}/ds), which turns out to have no \mathbf{T}-component and no \mathbf{B}-component (both follow from differentiating \mathbf{B}\cdot\mathbf{T}=0 and \mathbf{B}\cdot\mathbf{B}=1 the same way) — so d\mathbf{B}/ds is a multiple of \mathbf{N} alone; that multiple is DEFINED to be -\tau. Finally \mathbf{N}=\mathbf{B}\times\mathbf{T}, so differentiating and substituting the first two formulas produces the middle one, d\mathbf{N}/ds = -\kappa\mathbf{T}+\tau\mathbf{B}.

Formula

Tangential and Normal Components of Acceleration

For a smooth motion \mathbf{r}(t) with speed v(t) = |\mathbf{r}'(t)|, the acceleration decomposes into TNB-frame components as \mathbf{a}(t) = a_T\,\mathbf{T}(t) + a_N\,\mathbf{N}(t), \qquad a_T = v'(t) = \frac{\mathbf{r}'(t)\cdot\mathbf{r}''(t)}{|\mathbf{r}'(t)|}, \qquad a_N = \kappa v(t)^2 = \frac{|\mathbf{r}'(t)\times \mathbf{r}''(t)|}{|\mathbf{r}'(t)|}. a_T is the rate speed itself is changing (zero at constant speed); a_N measures how sharply the path curves, and is zero only along a straight line. Acceleration has no component along the binormal \mathbf{B}(t) = \mathbf{T}(t)\times\mathbf{N}(t) at all: motion always bends within the plane spanned by \mathbf{T} and \mathbf{N}.

Show proof

Write \mathbf{r}' = v\mathbf{T} (velocity is speed times direction) and differentiate with the product rule: \mathbf{a} = \mathbf{r}'' = v'\mathbf{T} + v\mathbf{T}'. Since \mathbf{T}' = |\mathbf{T}'|\mathbf{N} by the definition of \mathbf{N}, and \kappa = |\mathbf{T}'|/v gives |\mathbf{T}'| = \kappa v, the second term becomes v(\kappa v)\mathbf{N} = \kappa v^2\mathbf{N}. So \mathbf{a} = v'\mathbf{T} + \kappa v^2\mathbf{N} — no \mathbf{B} term appears at all, matching a_T=v', a_N=\kappa v^2. The dot/cross-product forms of a_T, a_N follow by dotting or crossing \mathbf{a} = v'\mathbf{T}+\kappa v^2\mathbf{N} with \mathbf{r}'=v\mathbf{T}: dotting kills the \mathbf{N} term (\mathbf{T}\cdot\mathbf{N}=0) and leaves v v', matching \mathbf{r}'\cdot\mathbf{r}''=vv' divided by v; crossing kills the \mathbf{T} term (\mathbf{T}\times\mathbf{T}=\mathbf{0}) and leaves v\cdot\kappa v^2(\mathbf{T}\times\mathbf{N}), a unit vector magnitude \kappa v^3, matching |\mathbf{r}'\times\mathbf{r}''| divided by v.

Partial derivatives

Theorem

Clairaut's Theorem

also known as: equality of mixed partial derivatives

If f is a function of x and y and both mixed partial derivatives f_{xy} and f_{yx} are continuous on an open region containing a point (a,b), then f_{xy}(a,b) = f_{yx}(a,b).

Show proof

Fix (a,b) and consider the second difference \Delta(h,k) = f(a+h,b+k) - f(a+h,b) - f(a,b+k) + f(a,b). Define g(x) = f(x,b+k) - f(x,b), so \Delta(h,k) = g(a+h)-g(a). The Mean Value Theorem gives \Delta(h,k) = h\,g'(c) = h\big(f_x(c,b+k) - f_x(c,b)\big) for some c between a and a+h, and applying the Mean Value Theorem again to f_x(c,\cdot) gives \Delta(h,k) = hk\,f_{xy}(c,d) for some d between b and b+k. Running the same argument the other order (differencing in y first, then x) gives \Delta(h,k) = hk\,f_{yx}(c',d') for some other point (c',d'). Both (c,d) and (c',d') approach (a,b) as (h,k)\to(0,0), so continuity of f_{xy} and f_{yx} at (a,b) forces f_{xy}(a,b) = \lim_{(h,k)\to(0,0)} \frac{\Delta(h,k)}{hk} = f_{yx}(a,b).

Loading interactive…

Formula

Tangent Plane Equation

If f is differentiable at (x_0,y_0), the plane tangent to the surface z=f(x,y) at the point \big(x_0,y_0,f(x_0,y_0)\big) is z = f(x_0,y_0) + f_x(x_0,y_0)(x-x_0) + f_y(x_0,y_0)(y-y_0).

Formula

Linear Approximation and the Total Differential

also known as: linearization L(x,y); dz in terms of dx and dy

Near a point (x_0,y_0) where f is differentiable, the linearization L(x,y) = f(x_0,y_0) + f_x(x_0,y_0)(x-x_0) + f_y(x_0,y_0)(y-y_0) approximates f(x,y) \approx L(x,y). Writing dx=x-x_0, dy=y-y_0, the same right-hand linear part is the total differential dz = f_x(x_0,y_0)\,dx + f_y(x_0,y_0)\,dy, which estimates the actual change \Delta z = f(x_0+dx,y_0+dy) - f(x_0,y_0) without evaluating f at the new point at all.

Formula

The Multivariable Chain Rule

also known as: chain rule for z = f(x,y) with x, y functions of t

If z=f(x,y) is differentiable and x=x(t), y=y(t) are both differentiable functions of t, then z is a differentiable function of t and \frac{dz}{dt} = \frac{\partial z}{\partial x}\frac{dx}{dt} + \frac{\partial z}{\partial y}\frac{dy}{dt}. More generally, if x=x(s,t) and y=y(s,t) then \frac{\partial z}{\partial s} = \frac{\partial z}{\partial x} \frac{\partial x}{\partial s} + \frac{\partial z}{\partial y} \frac{\partial y}{\partial s}, \qquad \frac{\partial z}{\partial t} = \frac{\partial z}{\partial x} \frac{\partial x}{\partial t} + \frac{\partial z}{\partial y} \frac{\partial y}{\partial t}.

Formula

Second-Order Taylor Polynomial in Two Variables

Near a point (a,b) where f has continuous second partial derivatives, the second-order Taylor polynomial is \begin{aligned} P_2(x,y) = f(a,b) &+ f_x(a,b)(x-a) + f_y(a,b)(y-b) \\ &+ \tfrac12 f_{xx}(a,b)(x-a)^2 + f_{xy}(a,b)(x-a)(y-b) + \tfrac12 f_{yy}(a,b)(y-b)^2, \end{aligned} with f(x,y) \approx P_2(x,y) for (x,y) near (a,b). This is the same linearization from tangent planes, plus the quadratic correction that captures how the surface curves away from that plane.

The gradient and directional derivatives

Formula

The Directional Derivative

also known as: D_u f, the rate of change of f in the direction of u

For a differentiable function f(x,y), a point (x_0,y_0), and a unit vector \mathbf{u}=\langle a,b\rangle, the directional derivative of f at (x_0,y_0) in the direction of \mathbf{u} is D_{\mathbf{u}}f(x_0,y_0) = \lim_{t\to 0} \frac{f(x_0+ta,\,y_0+tb)-f(x_0,y_0)}{t}.

When f is differentiable, this limit is computed directly from the partial derivatives: D_{\mathbf{u}}f(x_0,y_0) = f_x(x_0,y_0)\,a + f_y(x_0,y_0)\,b.

Show proof

Let g(t) = f(x_0+ta,\,y_0+tb), so D_{\mathbf{u}}f(x_0,y_0) = g'(0) by the limit definition above. g is f composed with the line x(t)=x_0+ta,\ y(t)=y_0+tb, so the chain rule gives g'(t) = f_x(x(t),y(t))\,x'(t) + f_y(x(t),y(t))\,y'(t) = f_x(x(t),y(t))\,a + f_y(x(t),y(t))\,b. Evaluating at t=0 gives g'(0) = f_x(x_0,y_0)\,a + f_y(x_0,y_0)\,b.

Loading interactive…

Formula

The Gradient Vector

also known as: \nabla f, grad f, del f

For a differentiable function f(x,y), the gradient of f is the vector-valued function \nabla f(x,y) = \langle f_x(x,y),\, f_y(x,y)\rangle.

The directional derivative in the direction of a unit vector \mathbf{u} is then exactly the dot product of \mathbf{u} with the gradient: D_{\mathbf{u}}f(x,y) = \nabla f(x,y)\cdot\mathbf{u}.

Show proof

Write \mathbf{u}=\langle a,b\rangle. The directional-derivative formula already gives D_{\mathbf{u}}f = f_x a + f_y b, and \langle f_x,f_y\rangle\cdot\langle a,b\rangle = f_x a + f_y b by the definition of the dot product — the two expressions are the same number, just written two different ways.

Loading interactive…

Theorem

The Gradient Gives the Direction of Steepest Ascent

Suppose f is differentiable at (x_0,y_0) and \nabla f(x_0,y_0)\neq \mathbf{0}. Among all unit vectors \mathbf{u}, the directional derivative D_{\mathbf{u}}f(x_0,y_0) is

  • maximized, with value |\nabla f(x_0,y_0)|, when \mathbf{u} = \dfrac{\nabla f(x_0,y_0)}{|\nabla f(x_0,y_0)|};
  • minimized, with value -|\nabla f(x_0,y_0)|, when \mathbf{u} points the opposite way.
Show proof

Let \theta be the angle between \mathbf{u} and \nabla f(x_0,y_0). Since \mathbf{u} is a unit vector, the dot product formula for D_{\mathbf{u}}f = \nabla f\cdot\mathbf{u} becomes D_{\mathbf{u}}f(x_0,y_0) = |\nabla f(x_0,y_0)|\,|\mathbf{u}|\cos\theta = |\nabla f(x_0,y_0)|\cos\theta. Since -1\le\cos\theta\le 1, this quantity ranges over exactly [-|\nabla f(x_0,y_0)|,\,|\nabla f(x_0,y_0)|], hit at \theta=0 (u points along \nabla f) and \theta=\pi (u points opposite it) respectively.

Loading interactive…

Theorem

The Gradient Is Orthogonal to Level Curves

If f is differentiable at (x_0,y_0) and \nabla f(x_0,y_0)\neq \mathbf{0}, then \nabla f(x_0,y_0) is orthogonal to the level curve f(x,y)=k passing through (x_0,y_0), meaning orthogonal to that curve's tangent line at (x_0,y_0).

Show proof

Parametrize the level curve near (x_0,y_0) as \mathbf{r}(t) = \langle x(t), y(t)\rangle with \mathbf{r}(0) = \langle x_0,y_0\rangle and f(x(t),y(t)) = k for every t near 0. Differentiating both sides with respect to t (chain rule) gives f_x(x(t),y(t))\,x'(t) + f_y(x(t),y(t))\,y'(t) = 0, which is exactly \nabla f(x(t),y(t))\cdot\mathbf{r}'(t) = 0. At t=0, \mathbf{r}'(0) is tangent to the level curve, so \nabla f(x_0,y_0)\cdot\mathbf{r}'(0) = 0 says the gradient is orthogonal to that tangent direction.

Loading interactive…

Theorem

The Gradient Is Normal to Level Surfaces

If F(x,y,z) is differentiable at (x_0,y_0,z_0) and \nabla F(x_0,y_0,z_0)\neq\mathbf{0}, then \nabla F(x_0,y_0,z_0) is normal (perpendicular) to the level surface F(x,y,z)=k passing through (x_0,y_0,z_0). Here, normal means perpendicular to every curve on that surface through the point, not just to one tangent line.

Show proof

Let \mathbf{r}(t) = \langle x(t),y(t),z(t)\rangle be ANY curve lying on the surface with \mathbf{r}(0) = \langle x_0,y_0,z_0\rangle, so F(x(t),y(t),z(t)) = k for every t near 0. The chain rule gives F_x\,x'(t) + F_y\,y'(t) + F_z\,z'(t) = 0, i.e. \nabla F(\mathbf{r}(t))\cdot\mathbf{r}'(t) = 0. At t=0 this says \nabla F(x_0,y_0,z_0) is orthogonal to \mathbf{r}'(0) — the tangent vector of an arbitrary curve on the surface through the point. Since the curve was arbitrary, \nabla F(x_0,y_0,z_0) is orthogonal to every tangent vector to the surface there, which is what "normal to the surface" means.

Loading interactive…

Formula

Tangent Plane and Normal Line via the Gradient

Let F(x,y,z) be differentiable with \nabla F(x_0,y_0,z_0)\neq \mathbf{0} at a point P=(x_0,y_0,z_0) on the level surface F(x,y,z)=k. Using \nabla F(P) = \langle F_x,F_y,F_z\rangle (evaluated at P) as a normal vector:

Tangent plane at P: F_x(P)(x-x_0) + F_y(P)(y-y_0) + F_z(P)(z-z_0) = 0.

Normal line at P (parametrized by t): \langle x,y,z\rangle = \langle x_0,y_0,z_0\rangle + t\,\nabla F(P).

This includes the ordinary surface z=f(x,y) as the special case F(x,y,z)=f(x,y)-z, whose level surface F=0 is the graph of f itself.

Loading interactive…

Formula

The Gradient Descent Update Rule

To search for a local minimum of a differentiable function f, starting from a point \mathbf{x}_0, repeat \mathbf{x}_{n+1} = \mathbf{x}_n - \alpha\,\nabla f(\mathbf{x}_n), where \alpha>0 is a fixed (or shrinking) learning rate. Each step moves from \mathbf{x}_n a small distance in the direction of steepest descent, -\nabla f(\mathbf{x}_n), and stops improving (to first order) once \nabla f(\mathbf{x}_n)\approx\mathbf{0}.

Loading interactive…

Formula

The Gradient in Three Variables

For a differentiable function f(x,y,z), the gradient generalizes with one more component: \nabla f(x,y,z) = \langle f_x,\,f_y,\,f_z\rangle.

Every fact already established in two variables carries over unchanged. For a unit vector \mathbf{u}=\langle a,b,c\rangle, D_{\mathbf{u}}f = \nabla f\cdot\mathbf{u} = f_x a + f_y b + f_z c.

\nabla f points in the direction of steepest increase of f, with magnitude |\nabla f| equal to that maximum rate. Treating f as a level-surface function F, \nabla f is also normal to the level surface f(x,y,z)=k through any point where it is nonzero.

Loading interactive…

Optimization

Theorem

The Second Partials Test

also known as: the multivariable second derivative test

Let f have continuous second-order partial derivatives near a critical point (a, b) (so f_x(a,b) = f_y(a,b) = 0), and define the discriminant D(a,b) = f_{xx}(a,b)\,f_{yy}(a,b) - \big[f_{xy}(a,b)\big]^2.

  • If D(a,b) > 0 and f_{xx}(a,b) > 0, then f has a local minimum at (a,b).
  • If D(a,b) > 0 and f_{xx}(a,b) < 0, then f has a local maximum at (a,b).
  • If D(a,b) < 0, then (a,b) is a saddle point, neither a local max nor a local min.
  • If D(a,b) = 0, the test is inconclusive.
Show proof

Near (a,b), Taylor's theorem in two variables writes f as its constant value plus a quadratic form built from the second partials (the linear terms vanish because (a,b) is critical): f(a+h, b+k) \approx f(a,b) + \tfrac12\left(f_{xx}h^2 + 2f_{xy}hk + f_{yy}k^2\right). Completing the square in h (treating f_{xx} \neq 0) turns the bracket into f_{xx}\left(h + \frac{f_{xy}}{f_{xx}}k\right)^2 + \frac{f_{xx}f_{yy} - f_{xy}^2}{f_{xx}}k^2 = f_{xx}\left(h + \frac{f_{xy}}{f_{xx}}k\right)^2 + \frac{D}{f_{xx}}k^2. When D>0, both squared terms carry the same sign as f_{xx} for every direction (h,k), so the quadratic form never changes sign near (a,b) — a min if that sign is positive, a max if negative. When D<0, the two terms have opposite signs: moving purely in h (with k=0) gives one sign, moving purely in k-dominated directions gives the other, so f rises in some directions and falls in others — the saddle signature. When D=0 the quadratic approximation degenerates along some direction, and the cubic-and-higher terms Taylor's theorem dropped are what actually decide the case, which is exactly why the test goes silent there.

Theorem

The Extreme Value Theorem for Several Variables

also known as: multivariable EVT

If f is continuous on a closed, bounded region D in \mathbb{R}^2 (or \mathbb{R}^3), then f attains both an absolute maximum value and an absolute minimum value somewhere in D. That is, there exist points \mathbf{c}, \mathbf{d} in D with f(\mathbf{c}) \geq f(\mathbf{x}) and f(\mathbf{d}) \leq f(\mathbf{x}) for every \mathbf{x} in D.

Show proof

The single-variable Extreme Value Theorem needs a closed, bounded interval; this is the exact same statement one dimension up, and both hypotheses are load-bearing in the same way. "Bounded" keeps D from letting f's values run off to infinity along some escaping direction. "Closed" — D contains its own boundary curve, not just its interior — keeps a candidate maximum from sitting at a boundary point that's excluded from the region, the way f(x,y) = x on the open disk x^2+y^2<1 has no maximum: any point falls short of the open edge, and a point arbitrarily close to the edge is always beaten by one closer still. A full proof again goes through compactness (a closed, bounded region in \mathbb{R}^n is exactly a compact one) and a convergent-subsequence argument identical in spirit to the one-variable case; what matters here is the payoff — on a closed, bounded region, the candidates test (interior critical points plus the entire boundary) is guaranteed to contain the winner.

Theorem

The Method of Lagrange Multipliers

also known as: the Lagrange condition

Suppose f and g have continuous partial derivatives, and f has a local extremum at a point (a,b) on the constraint curve g(x,y) = k, with \nabla g(a,b) \neq \mathbf{0}. Then there is a scalar \lambda (the Lagrange multiplier) with \nabla f(a,b) = \lambda\, \nabla g(a,b). Every constrained extremum is therefore found among the solutions of the system \nabla f = \lambda \nabla g together with g(x,y) = k: three equations (f_x = \lambda g_x, f_y = \lambda g_y, g = k) in three unknowns x, y, \lambda.

Show proof

Parametrize the constraint curve near (a,b) by arc length, \mathbf{r}(t) = (x(t), y(t)), with \mathbf{r}(0) = (a,b) — this is possible precisely because \nabla g(a,b) \neq \mathbf{0}, which keeps the level curve g=k smooth with a well-defined tangent there. Restrict f to the curve: h(t) = f(x(t), y(t)). If f has a local extremum at (a,b) subject to the constraint, then h has an ordinary single-variable local extremum at t=0, so h'(0) = 0. The chain rule expands that as h'(0) = f_x(a,b)\,x'(0) + f_y(a,b)\,y'(0) = \nabla f(a,b)\cdot \mathbf{r}'(0) = 0, meaning \nabla f(a,b) is perpendicular to the curve's tangent vector \mathbf{r}'(0) at that point. But \nabla g(a,b) is also perpendicular to the same tangent vector — that's what it means for g=k to be a level curve of g. Two vectors both perpendicular to the same tangent line in the plane must be parallel to each other, so \nabla f(a,b) = \lambda \nabla g(a,b) for some scalar \lambda.

Theorem

Lagrange Multipliers with Two Constraints

also known as: the two-constraint Lagrange condition

Suppose f, g, h have continuous partial derivatives, and f has a local extremum at a point \mathbf{p} on the curve where the two constraint surfaces g(x,y,z) = k_1 and h(x,y,z) = k_2 intersect, with \nabla g(\mathbf{p}) and \nabla h(\mathbf{p}) nonzero and not parallel to each other. Then there are scalars \lambda, \mu with \nabla f(\mathbf{p}) = \lambda\, \nabla g(\mathbf{p}) + \mu\, \nabla h(\mathbf{p}). Every constrained extremum is found among the solutions of the system f_x = \lambda g_x + \mu h_x, f_y = \lambda g_y + \mu h_y, f_z = \lambda g_z + \mu h_z, together with g = k_1 and h = k_2: five equations in the five unknowns x, y, z, \lambda, \mu.

Show proof

The intersection of the two surfaces g=k_1 and h=k_2 is (near \mathbf{p}, given the non-parallel gradient hypothesis) a smooth space curve, tangent line \mathbf{r}'(0) at \mathbf{p}. The same restrict-and-differentiate argument as the single-constraint case applies: if f has a constrained extremum at \mathbf{p}, then \nabla f(\mathbf{p}) is perpendicular to \mathbf{r}'(0). So are \nabla g(\mathbf{p}) and \nabla h(\mathbf{p}), since the curve lies in both level surfaces at once. The set of vectors perpendicular to a single line in \mathbb{R}^3 is an entire plane, not just a single direction — so unlike the one-constraint case, being perpendicular to \mathbf{r}'(0) doesn't force \nabla f to be parallel to any one gradient. It does force \nabla f(\mathbf{p}) to lie in the plane that \nabla g(\mathbf{p}) and \nabla h(\mathbf{p}) themselves span (the normal plane to the curve, since both are perpendicular to \mathbf{r}'(0) and non-parallel to each other) — and every vector in that plane is some combination \lambda \nabla g + \mu \nabla h.

Formula

The Least-Squares Regression Line

also known as: the normal equations for linear regression

For n data points (x_1,y_1), \dots, (x_n,y_n), the line y = mx+b minimizing the sum of squared vertical errors E(m,b) = \sum_{i=1}^n \big(y_i - (mx_i+b)\big)^2 has slope and intercept m = \frac{n\sum x_iy_i - \sum x_i \sum y_i}{n\sum x_i^2 - \left(\sum x_i\right)^2}, \qquad b = \frac{\sum y_i - m\sum x_i}{n}.

Double integrals

Theorem

Fubini's Theorem

also known as: iterated integrals for double integrals

If f is continuous on the rectangle R = [a,b]\times[c,d], then the double integral of f over R equals either iterated integral, computed one variable at a time. \iint_R f(x,y)\,dA = \int_a^b\!\!\int_c^d f(x,y)\,dy\,dx = \int_c^d\!\!\int_a^b f(x,y)\,dx\,dy. The inner integral is computed first, treating the outer variable as a constant. The result is a number, and it is the same number no matter which variable is integrated first.

Show proof

Fix x and let A(x) = \int_c^d f(x,y)\,dy, the (signed) area of the cross-section cut by the vertical plane at that x. Slicing the solid region under z=f(x,y) into thin slabs of thickness dx, each slab has volume approximately A(x)\,dx, and summing all the slabs gives \int_a^b A(x)\,dx as the total volume — the definition of the double integral itself. This is exactly the cross-sectional-area argument behind volume by slicing from single-variable calculus, run in the x-direction instead of a fixed axis. The same slicing argument in the y-direction produces the other iterated order, and continuity of f on a closed rectangle guarantees both limits exist and agree.

Formula

Average Value Over a Region

also known as: mean value of f over R

For f continuous on a region R with area A(R) = \iint_R 1\,dA, the average value of f over R is f_{\text{avg}} = \frac{1}{A(R)}\iint_R f(x,y)\,dA.

Formula

Double Integrals in Polar Coordinates

also known as: polar area element dA = r dr dtheta

If R is a polar region \alpha \le \theta \le \beta, g_1(\theta) \le r \le g_2(\theta), then \iint_R f(x,y)\,dA = \int_\alpha^\beta\!\!\int_{g_1(\theta)}^{g_2(\theta)} f(r\cos\theta, r\sin\theta)\; r\,dr\,d\theta. The extra factor of r is not optional. It is what makes a polar area element dA correct, since a coordinate rectangle [r, r+dr]\times[\theta,\theta+d\theta] is really a thin arc-shaped patch of area r\,dr\,d\theta, not dr\,d\theta.

Show proof

Partition the region with n rays and m concentric arcs. One polar "grid cell" between radii r_i and r_i+\Delta r and angles \theta_j and \theta_j+\Delta\theta is an annular sector, whose exact area is \frac12(r_i+\Delta r)^2\Delta\theta - \frac12 r_i^2\Delta\theta = \left(r_i + \frac{\Delta r}{2}\right)\Delta r\,\Delta\theta. As \Delta r \to 0, this area is r_i\,\Delta r\,\Delta\theta + O(\Delta r^2), so the Riemann sum \sum f(r_i\cos\theta_j, r_i\sin\theta_j)\, r_i\,\Delta r\,\Delta\theta converges to the double integral with the extra factor of r built in, exactly the substitution x=r\cos\theta, y=r\sin\theta carries into the area element.

Formula

Surface Area of a Graph z = f(x, y)

also known as: surface area of a graph over a region

If f has continuous partial derivatives on a region R, the surface area of z=f(x,y) over R is S = \iint_R \sqrt{1 + f_x^2 + f_y^2}\;dA.

Show proof

Partition R into small rectangles of dimensions \Delta x \times \Delta y. Over one such piece, the surface is approximated by a parallelogram cut from the tangent plane at that point, spanned by the vectors \mathbf{a}=\langle \Delta x, 0, f_x\Delta x\rangle (walking \Delta x in the x-direction along the tangent plane) and \mathbf{b}=\langle 0, \Delta y, f_y\Delta y\rangle. That parallelogram's area is |\mathbf{a}\times\mathbf{b}| = \sqrt{f_x^2+f_y^2+1}\;\Delta x\,\Delta y, so summing every piece and refining the partition turns the sum into \iint_R \sqrt{1+f_x^2+f_y^2}\,dA — the same tangent-plane-approximation idea behind arc length in one variable, extended by one dimension.

Formula

Mass of a Lamina

also known as: mass from a variable density function

A thin, flat plate (a lamina) occupying a region R with density \rho(x,y) (mass per unit area, a function of position rather than a single constant) has total mass m = \iint_R \rho(x,y)\,dA.

Formula

Center of Mass of a Lamina

also known as: moments and centroid of a plate

A lamina on region R with density \rho(x,y) and mass m = \iint_R \rho\,dA has moments about the y- and x-axes M_y = \iint_R x\,\rho(x,y)\,dA, \qquad M_x = \iint_R y\,\rho(x,y)\,dA, and center of mass (\bar x, \bar y) = \left(\dfrac{M_y}{m}, \dfrac{M_x}{m}\right). When \rho is constant, (\bar x,\bar y) is called the centroid and depends only on the region's shape.

Formula

Moments of Inertia of a Lamina

also known as: rotational inertia about the axes and origin

A lamina on region R with density \rho(x,y) has moments of inertia (second moments) about the x-axis, y-axis, and origin, defined as follows. I_x = \iint_R y^2\rho(x,y)\,dA, \qquad I_y = \iint_R x^2\rho(x,y)\,dA, \qquad I_0 = I_x + I_y = \iint_R (x^2+y^2)\rho(x,y)\,dA. Each measures resistance to rotation about that axis. Mass is weighted not just by amount, as ordinary mass does, but by the square of its distance from the axis. A mass far from an axis contributes far more to spin-up effort than the same mass sitting near it.

Triple integrals and coordinate systems

Theorem

Fubini's Theorem for Triple Integrals

also known as: iterated triple integrals over a general solid

If f is continuous on a bounded solid region E, the triple integral \iiint_E f(x,y,z)\,dV can be evaluated as an iterated integral. The order of the three single-variable integrations can be swapped freely, as long as each pair of bounds is rewritten to match the new order. For a Type I solid E=\{(x,y,z): (x,y)\in D,\ u_1(x,y)\le z\le u_2(x,y)\}, with D the shadow of E in the xy-plane, that order is: \iiint_E f(x,y,z)\,dV = \int\!\!\int\!\!\int f(x,y,z)\,dz\,dy\,dx A Type II solid follows the same pattern with its shadow in the yz-plane instead, and bounds that are functions of y and z. A Type III solid has its shadow in the xz-plane, with bounds that are functions of x and z.

Show proof

Slice E by fixing (x,y)\in D and integrating f over the segment of the vertical line through (x,y) that lies inside E — that inner integral is exactly \int_{u_1(x,y)}^{u_2(x,y)} f(x,y,z)\,dz, a function of x and y alone. Fubini's theorem for double integrals then lets that result be integrated over D in either x-then-y or y-then-x order, since D is itself an ordinary plane region. The Type II and Type III versions follow by relabeling which pair of variables describes the shadow and which variable the two surfaces bound.

Formula

Cylindrical Coordinates

also known as: polar coordinates in the xy-plane, plus z

A point is located by (r,\theta,z), where (r,\theta) are its usual polar coordinates in the xy-plane and z is the same rectangular height as before. x = r\cos\theta, \qquad y = r\sin\theta, \qquad z = z r^2 = x^2+y^2, \qquad \tan\theta = \frac{y}{x} The volume element picks up the same factor polar coordinates already contribute in the plane. dV = r\,dz\,dr\,d\theta

Formula

Spherical Coordinates

also known as: distance-from-origin, two-angle coordinates

A point is located by (\rho,\theta,\phi). Here \rho\ge 0 is the straight-line distance from the origin, \theta is the same polar angle as in cylindrical coordinates, and \phi\in[0,\pi] is the angle down from the positive z-axis. x = \rho\sin\phi\cos\theta, \qquad y = \rho\sin\phi\sin\theta, \qquad z = \rho\cos\phi \rho^2 = x^2+y^2+z^2 The volume element is dV = \rho^2\sin\phi\,d\rho\,d\phi\,d\theta

Show proof

Build the box [\rho,\rho+d\rho]\times[\theta,\theta+d\theta]\times[\phi,\phi+d\phi] one edge at a time. Moving \rho by d\rho with \theta,\phi fixed sweeps a straight radial edge of length d\rho. Moving \phi by d\phi with \rho,\theta fixed sweeps an arc of a great circle of radius \rho, length \rho\,d\phi. Moving \theta by d\theta with \rho,\phi fixed sweeps an arc around the z-axis at horizontal radius \rho\sin\phi (the same r a cylindrical slice at that height would have), length \rho\sin\phi\,d\theta. The three edges are mutually perpendicular, so the box's volume is their product: d\rho\cdot(\rho\,d\phi)\cdot(\rho\sin\phi\,d\theta) = \rho^2\sin\phi\,d\rho\,d\phi\,d\theta.

Formula

The Jacobian

also known as: the local area-scaling factor of a change of variables

For a transformation x=x(u,v),\ y=y(u,v), the Jacobian is the determinant of the matrix of first partial derivatives. \frac{\partial(x,y)}{\partial(u,v)} = \begin{vmatrix} \dfrac{\partial x}{\partial u} & \dfrac{\partial x}{\partial v} \\[4pt] \dfrac{\partial y}{\partial u} & \dfrac{\partial y}{\partial v} \end{vmatrix} = \frac{\partial x}{\partial u}\frac{\partial y}{\partial v} - \frac{\partial x}{\partial v}\frac{\partial y}{\partial u} Its absolute value \left|\dfrac{\partial(x,y)}{\partial(u,v)}\right| is the factor by which the transformation stretches or shrinks area near (u,v). A small rectangle of area du\,dv in the uv-plane maps to a region of area approximately \left|\dfrac{\partial(x,y)}{\partial(u,v)}\right|du\,dv in the xy-plane. The same construction extends to three variables as a 3\times3 determinant of first partials, \dfrac{\partial(x,y,z)}{\partial(u,v,w)}.

Show proof

Near (u_0,v_0), the transformation's best linear approximation sends the edge vector (du,0) to \left(\frac{\partial x}{\partial u}, \frac{\partial y}{\partial u}\right)du and the edge vector (0,dv) to \left(\frac{\partial x}{\partial v}, \frac{\partial y}{\partial v}\right)dv — the two columns of the Jacobian matrix, scaled. The image of the small du\times dv rectangle is (to first order) the parallelogram spanned by those two vectors, and the area of a parallelogram spanned by (a,b) and (c,d) is |ad-bc|, exactly the absolute value of that 2\times2 determinant.

Theorem

Change of Variables (Double Integrals)

Let x=x(u,v),\ y=y(u,v) map a region S in the uv-plane one-to-one onto a region R in the xy-plane, with continuous first partial derivatives and nonzero Jacobian on S. Then \iint_R f(x,y)\,dA = \iint_S f\big(x(u,v),y(u,v)\big) \left|\frac{\partial(x,y)}{\partial(u,v)}\right| du\,dv.

Show proof

Partition S into small rectangles of area du\,dv. Each maps, to first order, onto a parallelogram in R of area \left|\frac{\partial(x,y)}{\partial(u,v)}\right|du\,dv (the Jacobian's own defining property). Summing f times the image area over every small piece and refining the partition gives a Riemann sum for the left side built out of a Riemann sum for the right side; the two limits agree because they are both approximating the same collection of shrinking pieces, just measured in different coordinates.

Theorem

Change of Variables (Triple Integrals)

Let x=x(u,v,w),\ y=y(u,v,w),\ z=z(u,v,w) map a solid S in uvw-space one-to-one onto a solid E in xyz-space, with continuous first partial derivatives and nonzero Jacobian on S. Then \iiint_E f(x,y,z)\,dV = \iiint_S f\big(x(u,v,w),y(u,v,w),z(u,v,w)\big) \left|\frac{\partial(x,y,z)}{\partial(u,v,w)}\right| du\,dv\,dw. Cylindrical and spherical coordinates are both special cases: their volume elements r\,dz\,dr\,d\theta and \rho^2\sin\phi\,d\rho\,d\phi\,d\theta are exactly \left|\dfrac{\partial(x,y,z)}{\partial(u,v,w)}\right| for (u,v,w)=(r,\theta,z) and (u,v,w)=(\rho,\theta,\phi) respectively.

Vector fields and line integrals

Theorem

Fundamental Theorem for Line Integrals

also known as: the gradient theorem

Let C be a smooth curve from point A to point B, parametrized by \mathbf{r}(t) for t \in [a,b] with \mathbf{r}(a) = A, \mathbf{r}(b) = B. If f is differentiable and \nabla f is continuous on an open region containing C, then \int_C \nabla f \cdot d\mathbf{r} = f(B) - f(A).

Show proof

By the chain rule, \dfrac{d}{dt}f(\mathbf{r}(t)) = \nabla f(\mathbf{r}(t)) \cdot \mathbf{r}'(t). So \int_C \nabla f \cdot d\mathbf{r} = \int_a^b \nabla f(\mathbf{r}(t)) \cdot \mathbf{r}'(t)\, dt = \int_a^b \frac{d}{dt}f(\mathbf{r}(t))\, dt = f(\mathbf{r}(b)) - f(\mathbf{r}(a)) = f(B) - f(A), the last step being the ordinary single-variable Fundamental Theorem of Calculus applied to the scalar function t \mapsto f(\mathbf{r}(t)).

Theorem

Path Independence of Line Integrals

Let \mathbf{F} be a continuous vector field on an open, connected region D. The following three statements are equivalent:

  1. \mathbf{F} = \nabla f for some scalar function f on D (i.e. \mathbf{F} is conservative).
  2. \displaystyle\int_C \mathbf{F} \cdot d\mathbf{r} has the same value for every piecewise-smooth curve C in D sharing the same start and end points (path independence).
  3. \displaystyle\oint_C \mathbf{F} \cdot d\mathbf{r} = 0 for every piecewise-smooth closed curve C in D.
Show proof

(1 \Rightarrow 2) is the Fundamental Theorem for Line Integrals: if \mathbf{F} = \nabla f, every curve from A to B gives f(B) - f(A), regardless of the route taken.

(2 \Rightarrow 3): a closed curve C starts and ends at the same point A, so under path independence its integral must equal the integral over the degenerate curve that never leaves A, namely 0.

(3 \Rightarrow 2): given two curves C_1, C_2 from A to B, let C be C_1 followed by C_2 reversed — a closed loop. Then 0 = \oint_C \mathbf{F}\cdot d\mathbf{r} = \int_{C_1}\mathbf{F}\cdot d\mathbf{r} - \int_{C_2}\mathbf{F}\cdot d\mathbf{r}, so the two path integrals agree.

(2 \Rightarrow 1): fix a basepoint A_0 \in D and define f(A) = \int_{A_0}^{A}\mathbf{F}\cdot d\mathbf{r} along any path (well defined by path independence). A direct computation shows \nabla f = \mathbf{F}.

Theorem

The 2D Test for Conservative Fields

also known as: the cross-partials test

Let \mathbf{F}(x,y) = P(x,y)\,\mathbf{i} + Q(x,y)\,\mathbf{j} where P and Q have continuous first partial derivatives on an open, simply connected region D. Then \mathbf{F} is conservative on D if and only if \frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x} \quad \text{throughout } D.

Show proof

(\Rightarrow) If \mathbf{F} = \nabla f, then P = f_x and Q = f_y, so P_y = f_{xy} and Q_x = f_{yx}. Because P and Q have continuous partials, f's second partials are continuous too, and Clairaut's Theorem gives f_{xy} = f_{yx}, hence P_y = Q_x.

(\Leftarrow) The converse needs simple connectedness: it is exactly the hypothesis Green's Theorem requires to convert \oint_C \mathbf{F}\cdot d\mathbf{r} over any closed curve C in D into \iint_R (Q_x - P_y)\, dA = 0, which forces every closed-loop integral to vanish — the third equivalent condition for conservative fields. On a region with a hole (where D is not simply connected), P_y = Q_x can hold everywhere \mathbf{F} is defined without \mathbf{F} being conservative, since a loop around the hole isn't the boundary of a region entirely inside D.

Theorem

Green's Theorem

Let C be a positively oriented (counterclockwise), piecewise-smooth, simple closed curve in the plane, and let R be the region it encloses. If P and Q have continuous first partial derivatives on an open region containing R, then \oint_C P\,dx + Q\,dy = \iint_R \left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right) dA.

Equivalently, writing \mathbf{F} = P\,\mathbf{i} + Q\,\mathbf{j}, the circulation form is \oint_C \mathbf{F}\cdot d\mathbf{r} = \iint_R \operatorname{curl} \mathbf{F}\, dA, trading a circulation integral around the boundary for a curl integral over the whole enclosed region.

Show proof

Sketch for a region R that is both x-simple and y-simple (the general case patches finitely many such regions together, with the shared interior edges canceling since each is traversed once in each direction). Write R = \{(x,y) : a \le x \le b,\ g_1(x) \le y \le g_2(x)\}. Then \iint_R -\frac{\partial P}{\partial y}\, dA = -\int_a^b \big[P(x,g_2(x)) - P(x,g_1(x))\big]\, dx, by the single-variable Fundamental Theorem applied to the inner integral. The right side is exactly \oint_C P\,dx, splitting C into its bottom piece y=g_1(x) (traversed left to right) and top piece y=g_2(x) (traversed right to left, contributing the minus sign). The same argument with R described as y-simple gives \iint_R \frac{\partial Q}{\partial x}\, dA = \oint_C Q\,dy. Adding the two established identities gives the theorem.

Surface integrals and flux

Formula

Parametrizing a Surface of Revolution

also known as: revolving a profile curve

For y=f(x) \geq 0, a\le x\le b, revolved about the x-axis, the resulting surface is parametrized by \mathbf{r}(x,\theta) = \big\langle\, x,\; f(x)\cos\theta,\; f(x)\sin\theta \,\big\rangle, \qquad a\le x\le b,\;\; 0\le\theta\le 2\pi.

Formula

Tangent Plane to a Parametric Surface

also known as: the normal vector of a parametric surface

For a parametric surface \mathbf{r}(u,v) with \mathbf{r}_u and \mathbf{r}_v both defined and \mathbf{r}_u\times\mathbf{r}_v \neq \mathbf{0} at (u_0,v_0), the tangent plane at \mathbf{r}(u_0,v_0) has normal vector \mathbf{n} = \mathbf{r}_u(u_0,v_0)\times\mathbf{r}_v(u_0,v_0).

Show proof

Hold v=v_0 fixed and let u vary: \mathbf{r}(u,v_0) traces a curve lying entirely on the surface and passing through \mathbf{r}(u_0,v_0), with velocity vector \mathbf{r}_u(u_0,v_0) — so \mathbf{r}_u is tangent to the surface there. The same argument with u=u_0 fixed shows \mathbf{r}_v is tangent to the surface too, along the perpendicular grid direction. Two non-parallel vectors tangent to the surface at the same point span its entire tangent plane, and the cross product of two vectors spanning a plane is normal to that plane — so \mathbf{r}_u\times\mathbf{r}_v is a normal vector, and the tangent plane is the plane through \mathbf{r}(u_0,v_0) with that normal.

Formula

Surface Area of a Parametric Surface

also known as: the dS scale factor

For a smooth parametric surface \mathbf{r}(u,v) over a region D in the uv-plane, with \mathbf{r} one-to-one except possibly on the boundary of D, the surface area is S = \iint_D |\mathbf{r}_u\times\mathbf{r}_v|\;du\,dv.

Show proof

Partition D into small rectangles of dimensions \Delta u\times\Delta v. A single such rectangle, based at (u_0,v_0), maps under \mathbf{r} to a small curved patch that's well approximated by the parallelogram spanned by \mathbf{r}_u(u_0,v_0)\,\Delta u and \mathbf{r}_v(u_0,v_0)\,\Delta v — the same tangent-plane linearization argument behind every "dS from two tangent vectors" formula in this course. That parallelogram's area is |\mathbf{r}_u\Delta u \times \mathbf{r}_v\Delta v| = |\mathbf{r}_u\times\mathbf{r}_v|\;\Delta u\,\Delta v. Summing this over every rectangle in the partition and refining the partition turns the Riemann sum into \iint_D |\mathbf{r}_u\times \mathbf{r}_v|\,du\,dv.

Formula

Surface Integral of a Scalar Function

also known as: mass of a curved surface, weighted surface area

For a scalar function f defined on a parametric surface \mathbf{r}(u,v) over a region D, \iint_S f\,dS = \iint_D f(\mathbf{r}(u,v))\,|\mathbf{r}_u\times \mathbf{r}_v|\;du\,dv.

Show proof

Partition D into small rectangles as in the surface-area formula. Each rectangle's image patch has area \approx |\mathbf{r}_u\times\mathbf{r}_v|\,\Delta u\,\Delta v; weighting that patch by f evaluated at the corresponding point and summing over every patch gives a Riemann sum \sum f(\mathbf{r}(u_i,v_i))\,|\mathbf{r}_u\times\mathbf{r}_v|\, \Delta u\,\Delta v. Refining the partition turns the sum into the double integral above — exactly the same "weight the area element by f" move that turns arc length \int_C ds into the scalar line integral \int_C f\,ds, one dimension up.

Formula

Flux Integral of a Vector Field

also known as: the surface integral of F over S

For a vector field \mathbf{F} and an oriented parametric surface \mathbf{r}(u,v) over a region D, with \mathbf{r}_u\times \mathbf{r}_v pointing in the chosen orientation, \iint_S \mathbf{F}\cdot d\mathbf{S} = \iint_D \mathbf{F}(\mathbf{r}(u,v))\cdot(\mathbf{r}_u\times\mathbf{r}_v)\; du\,dv.

Show proof

Write d\mathbf{S} = \mathbf{n}\,dS for the unit normal \mathbf{n} = \dfrac{\mathbf{r}_u\times\mathbf{r}_v}{|\mathbf{r}_u\times\mathbf{r}_v|} in the chosen orientation. By the scalar surface integral, dS = |\mathbf{r}_u\times\mathbf{r}_v|\,du\,dv, so d\mathbf{S} = \frac{\mathbf{r}_u\times\mathbf{r}_v} {|\mathbf{r}_u\times\mathbf{r}_v|}\,|\mathbf{r}_u\times\mathbf{r}_v|\, du\,dv = (\mathbf{r}_u\times\mathbf{r}_v)\,du\,dv — the two magnitude factors cancel, leaving the bare cross product as the vector area element. Dotting \mathbf{F} against d\mathbf{S} and integrating over D gives the formula above, the direct surface analogue of \int_C \mathbf{F}\cdot d\mathbf{r} = \int_a^b \mathbf{F}(\mathbf{r}(t))\cdot\mathbf{r}'(t)\,dt for a line integral of a vector field.

The fundamental theorems of vector calculus

Formula

Divergence

also known as: div F, ∇·F

For \mathbf{F}(x,y,z) = P\,\mathbf{i} + Q\,\mathbf{j} + R\,\mathbf{k} with continuous first partial derivatives, \operatorname{div}\mathbf{F} = \nabla\cdot\mathbf{F} = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z}. Divergence is a scalar-valued function. At each point it measures the net rate at which \mathbf{F} expands outward per unit volume there. Picture a closed surface shrinking down around the point: divergence is the limit of the outward flux of \mathbf{F} through that surface, divided by the enclosed volume, as the surface shrinks to nothing. Positive divergence marks a source (net outflow), negative marks a sink (net inflow), and zero marks neither.

Formula

Curl

also known as: curl F, ∇×F, rot F

For \mathbf{F}(x,y,z) = P\,\mathbf{i} + Q\,\mathbf{j} + R\,\mathbf{k} with continuous first partial derivatives, \operatorname{curl}\mathbf{F} = \nabla\times\mathbf{F} = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ \dfrac{\partial}{\partial x} & \dfrac{\partial}{\partial y} & \dfrac{\partial}{\partial z} \\ P & Q & R \end{vmatrix} = \left(\frac{\partial R}{\partial y} - \frac{\partial Q}{\partial z}\right)\mathbf{i} + \left(\frac{\partial P}{\partial z} - \frac{\partial R}{\partial x}\right)\mathbf{j} + \left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right)\mathbf{k}. Curl is a vector-valued function. At each point, \operatorname{curl} \mathbf{F} points along the axis a paddle wheel dropped there would spin about, by the right-hand rule. The vector's length is twice that wheel's angular speed. A field with \operatorname{curl}\mathbf{F} = \mathbf{0} everywhere is irrotational: no paddle wheel, at any point or any orientation, ever spins.

Theorem

The 3D Conservative-Field Test

also known as: the curl test

Let \mathbf{F}(x,y,z) = P\,\mathbf{i} + Q\,\mathbf{j} + R\,\mathbf{k} where P, Q, R have continuous first partial derivatives on an open, simply connected region D in space. Then \mathbf{F} is conservative on D if and only if \operatorname{curl}\mathbf{F} = \mathbf{0} \quad \text{throughout } D, i.e. all three component equations R_y = Q_z, P_z = R_x, Q_x = P_y hold at once.

Show proof

(\Rightarrow) If \mathbf{F} = \nabla f, then P=f_x, Q=f_y, R=f_z. Each component of \operatorname{curl}\mathbf{F} is a difference of mixed second partials of f — e.g. the \mathbf{k}-component is f_{yx}-f_{xy} — which vanishes by Clairaut's Theorem since f's second partials are continuous. The same argument kills the other two components, so \operatorname{curl}\mathbf{F}=\mathbf{0}.

(\Leftarrow) The converse needs simple connectedness in space: every closed curve in D must be shrinkable to a point without leaving D (a stronger condition than merely "no holes" — a region built around a solid tube, for instance, is not simply connected even though it has no cavity). Given \operatorname{curl}\mathbf{F}=\mathbf{0} on such a D, Stokes' Theorem (later in this chapter) lets any closed curve C in D be spanned by a surface S entirely inside D, giving \oint_C \mathbf{F}\cdot d\mathbf{r} = \iint_S \operatorname{curl}\mathbf{F}\cdot d\mathbf{S} = 0 — zero circulation around every closed loop, which is the closed-loop form of path independence.

Theorem

Green's Theorem (Normal / Flux Form)

also known as: the divergence form of Green's Theorem

Let C be a positively oriented, piecewise-smooth, simple closed curve in the plane enclosing region R, and let \mathbf{n} be the outward unit normal along C. If \mathbf{F}=P\,\mathbf{i}+Q\,\mathbf{j} has continuous first partial derivatives on an open region containing R, then \oint_C \mathbf{F}\cdot\mathbf{n}\,ds = \iint_R \operatorname{div} \mathbf{F}\, dA, trading a flux integral around the boundary for a divergence integral over the whole enclosed region.

Show proof

Apply the circulation (tangential) form of Green's Theorem to the rotated field \mathbf{G} = Q\,\mathbf{i} - P\,\mathbf{j} — rotating \mathbf{F} by -90° at every point turns "tangent to C" into "normal to C" and vice versa, since rotating \mathbf{T}=(dx/ds,\,dy/ds) by -90° gives exactly the outward normal \mathbf{n}=(dy/ds,\,-dx/ds) for a positively oriented C. Then \mathbf{G}\cdot d\mathbf{r} = \mathbf{F}\cdot\mathbf{n}\,ds, and the circulation form gives \oint_C \mathbf{G}\cdot d\mathbf{r} = \iint_R \Big(\underbrace{(-P)_x - Q_y}_{\text{curl of }\mathbf{G}}\Big)\,dA \cdot(-1)= \iint_R (P_x+Q_y)\,dA = \iint_R \operatorname{div}\mathbf{F}\,dA, matching the flux integral on the left to the divergence integral on the right.

Theorem

Stokes' Theorem

also known as: the curl theorem

Let S be an oriented, piecewise-smooth surface bounded by a simple, closed, piecewise-smooth curve C, with C's orientation matching S's unit normal \mathbf{n} by the right-hand rule. (Curl the fingers of the right hand along C's direction of travel, and the thumb points along \mathbf{n}.) If \mathbf{F} has continuous first partial derivatives on an open region containing S, then \oint_C \mathbf{F}\cdot d\mathbf{r} = \iint_S \operatorname{curl} \mathbf{F}\cdot d\mathbf{S}, trading a curve's circulation for a surface's curl-flux.

Show proof

Sketch for S a graph z=g(x,y) over a region R in the xy-plane, with C the boundary of R lifted onto the graph. Parametrize S by (x,y)\mapsto(x,y,g(x,y)), so d\mathbf{S} = (-g_x,-g_y,1)\,dA. Writing out \operatorname{curl}\mathbf{F}\cdot d\mathbf{S} in terms of P, Q, R and their partials, then substituting z=g(x,y) throughout, the right side reduces — after applying the multivariable chain rule to track how P and Q change along the lifted curve — to exactly \oint_{\partial R} \big[P(x,y,g(x,y))+R(x,y,g(x,y))g_x\big]\,dx + \big[Q(x,y,g(x,y))+R(x,y,g(x,y))g_y\big]\,dy, which the circulation form of Green's Theorem converts into a double integral over R identical to the one obtained by substituting z=g(x,y) into the left-hand side's curl-flux integrand directly. A general piecewise-smooth S is patched together from finitely many such graphs, with shared interior edges canceling since each is traversed once in each direction.

Theorem

The Divergence Theorem

also known as: Gauss's Theorem

Let E be a solid region in space bounded by a closed, piecewise-smooth surface S=\partial E, oriented outward. If \mathbf{F} has continuous first partial derivatives on an open region containing E, then \oiint_S \mathbf{F}\cdot d\mathbf{S} = \iiint_E \operatorname{div} \mathbf{F}\, dV, trading a closed surface's flux for a solid's divergence integral.

Show proof

Sketch for E a solid that is simultaneously x-simple, y-simple, and z-simple (a general E patches together finitely many such pieces, with shared interior faces canceling since each is traversed with opposite outward normals from the two adjoining pieces). It suffices to prove the three component identities separately and add them; take the z-component. Write E=\{(x,y,z): (x,y)\in R,\ h_1(x,y)\le z\le h_2(x,y)\}. Then \iiint_E \frac{\partial R}{\partial z}\, dV = \iint_R \big[R(x,y,h_2(x,y)) - R(x,y,h_1(x,y))\big]\, dA by the single-variable Fundamental Theorem applied to the inner integral. The right side is exactly the flux of R\,\mathbf{k} through S's top piece z=h_2(x,y) (outward normal has positive z-component) plus its bottom piece z=h_1(x,y) (outward normal has negative z-component, contributing the minus sign) — the side faces of E, if any, are vertical and contribute nothing to a \mathbf{k}-component flux. The same argument for the other two components, summed, gives the theorem.

Graph settings

Calculator