Calculus 4Vector Fields

Gradient Fields and Potentials

F = ∇f for a potential function f.

Not started Jump to practice

Every differentiable function $f$ comes with a vector field: its gradient $\nabla f$, computed at every point. These gradient fields are the most important vector fields in the course, because many physical fields are gradients: gravity, the electric field of charges, the flow of heat (which goes against the temperature gradient).

Key idea

For $f(x, y)$, the gradient field is $\nabla f = \langle f_x, f_y \rangle$; for $f(x, y, z)$ it is $\langle f_x, f_y, f_z \rangle$. A field $\mathbf{F}$ is a gradient field (or conservative) when $\mathbf{F} = \nabla f$ for some $f$, called a potential function for $\mathbf{F}$.
At each point, $\nabla f$ is perpendicular to the level curve of $f$ through it and points in the direction in which $f$ increases fastest.

A word about signs. In mathematics we call $f$ a potential when $\mathbf{F} = \nabla f$. Physicists usually write $\mathbf{F} = -\nabla U$ with a potential energy $U$, so that forces push toward lower energy. The two differ only by a minus sign: $U = -f$.

Why it works

A quick test. If $\mathbf{F} = \langle P, Q \rangle = \nabla f$ and $f$ has continuous second partial derivatives, then $P = f_x$ and $Q = f_y$, so $$P_y = f_{xy} = f_{yx} = Q_x$$ by Clairaut's theorem. A field with $P_y \ne Q_x$ cannot be a gradient field. (On regions without holes the converse is also true; that comes in testing for conservative fields.)
Why the arrows cross the level curves at right angles: along a level curve $\mathbf{r}(t)$, $f(\mathbf{r}(t))$ is constant, so by the chain rule $\nabla f \cdot \mathbf{r}'(t) = 0$.
Level curves of $f = x^2y + \frac{1}{3}y^3$ with $\nabla f = \langle 2xy, x^2 + y^2 \rangle$ at a point you drag. The gradient always crosses the level curve at a right angle, and the path of steepest ascent follows the gradient field.

Worked examples

Worked example: A gradient field

Find the gradient field of $f(x, y) = x^2y + y^3$.
  1. $f_x = 2xy$ (treat $y$ as a constant) and $f_y = x^2 + 3y^2$.
  2. $\nabla f = \langle 2xy, x^2 + 3y^2 \rangle$.
  3. Check the test: $P_y = 2x$ and $Q_x = 2x$. Equal, as they must be.

Answer: $\langle 2xy, x^2 + 3y^2 \rangle$

Worked example: In space, at a point

For $f(x, y, z) = xyz + e^x$, find $\nabla f$ and its value at $(0, 1, 2)$.
  1. $f_x = yz + e^x$, $f_y = xz$, $f_z = xy$.
  2. At $(0, 1, 2)$: $\langle 2 + 1, 0, 0 \rangle = \langle 3, 0, 0 \rangle$.
  3. So at that point $f$ increases fastest in the $+x$ direction, at rate ${}3$.

Answer: $\langle yz + e^x, xz, xy \rangle$; $\langle 3, 0, 0 \rangle$ at $(0, 1, 2)$

Worked example: Not a gradient field

Is $\mathbf{F} = \langle y, -x \rangle$ a gradient field?
  1. $P = y$ gives $P_y = 1$; $Q = -x$ gives $Q_x = -1$.
  2. $P_y \ne Q_x$, so no function $f$ has $\nabla f = \mathbf{F}$.
  3. Picture: this field circles the origin clockwise. A gradient field cannot circle back on itself, since following it always takes you uphill on $f$.

Answer: no

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 2 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

  • OpenStax Calculus Volume 3, 6.1 Vector Fields
  • OpenStax Calculus Volume 3, 6.3 Conservative Vector Fields
@teddyrookbook GitHub