From a Scalar Function to a Vector Field
A vector field assigns a vector to each point in its domain. In two dimensions, write such a field as \(\mathbf{f}(x,y)=\langle P(x,y),Q(x,y)\rangle\). In three dimensions, write \(\mathbf{f}(x,y,z)=\langle P(x,y,z),Q(x,y,z),R(x,y,z)\rangle\). The component functions describe the vector assigned at each point.
A scalar function assigns a number to each point. A differentiable scalar function can also generate a vector field: take its partial derivative with respect to each coordinate and place those derivatives in a vector. This vector is the function’s gradient. When a vector field is the gradient of a scalar function, the scalar function is called a potential for the field.
In two dimensions, the definition means that if \(\mathbf{f}(x,y)=\langle P(x,y),Q(x,y)\rangle\), then \(\phi\) is a potential precisely when
In three dimensions, there are three partial derivatives to check:
The equality in the definition is an equality of vector fields: each component must agree at every point of the domain. Checking that the components agree at a few selected points is not enough. For polynomial fields and proposed polynomial potentials, the derivatives can be calculated directly and compared as functions.
Verifying a Potential Component by Component
A potential is a candidate that must be tested against the definition. The test is direct: differentiate the candidate with respect to each coordinate, assemble the gradient, and compare the result with the given field. The same order of coordinates must be used on both sides.
Worked Example: A Radial Polynomial Field
Consider the field \(\mathbf{f}(x,y)=\langle 2x,2y\rangle\) on \(\mathbb{R}^2\). Verify that \(\phi(x,y)=x^2+y^2\) is a potential.
First differentiate \(\phi\) with respect to \(x\), holding \(y\) fixed:
Next differentiate with respect to \(y\), holding \(x\) fixed:
Thus the gradient is \(\nabla\phi(x,y)=\langle 2x,2y\rangle\), which equals the given field at every \((x,y)\in\mathbb{R}^2\). Therefore \(\phi(x,y)=x^2+y^2\) is a potential and the field is conservative on \(\mathbb{R}^2\).
Check: The first component of the gradient is \(2x\), matching the field’s first component, and the second is \(2y\), matching its second component. The equality is exact for arbitrary \(x\) and \(y\).
The example illustrates why partial derivatives, rather than ordinary one-variable derivatives, appear in the definition. When differentiating with respect to one coordinate, the other coordinate is treated as constant. Each resulting partial derivative supplies the matching component of the vector field.
Worked Example: A Field with Mixed Terms
Let \(\mathbf{f}(x,y)=\langle y+3x^2,\;x+4y^3\rangle\) on \(\mathbb{R}^2\). Verify that \(\phi(x,y)=xy+x^3+y^4\) is a potential.
For the first component, differentiate the proposed potential with respect to \(x\):
For the second component, differentiate with respect to \(y\):
Therefore \(\nabla\phi(x,y)=\langle y+3x^2,x+4y^3\rangle=\mathbf{f}(x,y)\) for every point in the domain. The proposed function is a potential, and the given field is conservative on \(\mathbb{R}^2\).
Check: Differentiating the mixed term \(xy\) gives \(y\) in the \(x\)-partial and \(x\) in the \(y\)-partial. These are exactly the mixed terms required by the two field components.
Why the Gradient Structure Matters
The definition links the field at a point to how a scalar function changes near that point. This link can be seen by following any differentiable curve through the domain. Let \(\mathbf{r}(t)=\langle x(t),y(t)\rangle\) be a differentiable curve and suppose \(\mathbf{f}=\nabla\phi\). The ordinary chain rule gives
Since \(\mathbf{r}'(t)=\langle x'(t),y'(t)\rangle\) and \(\nabla\phi=\mathbf{f}\), the right-hand side is the dot product of the field with the curve’s velocity:
This identity explains why potentials are useful: along a curve, the rate of change of the scalar potential is determined by the field and the direction of motion. The argument uses only the chain rule and the definition of a potential. It does not depend on a special choice of curve.
The same reasoning works in three dimensions. If \(\mathbf{r}(t)=\langle x(t),y(t),z(t)\rangle\), then the chain rule gives
When the field equals \(\nabla\phi\), this rate is also \(\mathbf{f}(\mathbf{r}(t))\mathbin{\cdot}\mathbf{r}'(t)\). This is the local calculus connection between a conservative field and its potential.
Verifying a Three-Dimensional Field
In three dimensions, a valid potential must reproduce all three components, not just two. A field that matches a proposed gradient in two coordinates but not in the third does not satisfy the definition.
Worked Example: A Polynomial Field in Three Dimensions
Consider \(\mathbf{f}(x,y,z)=\langle 2xz+y,\;x+2yz,\;x^2+y^2\rangle\) on \(\mathbb{R}^3\). Verify that \(\phi(x,y,z)=x^2z+xy+y^2z\) is a potential.
Differentiate with respect to \(x\):
Differentiate with respect to \(y\):
Differentiate with respect to \(z\):
Putting the three partial derivatives in coordinate order gives
Thus \(\phi\) is a potential for \(\mathbf{f}\), and the field is conservative on \(\mathbb{R}^3\).
Check: The \(x\)-, \(y\)-, and \(z\)-partial derivatives match the first, second, and third components respectively, so the equality holds throughout the domain.
A Common Mistake: Matching the Wrong Components
A proposed function can look plausible and still fail. For example, consider the field \(\mathbf{f}(x,y)=\langle x,y\rangle\) and the proposed function \(\psi(x,y)=xy\). A mistaken check might say that the \(x\)-derivative is \(x\) and the \(y\)-derivative is \(y\), then conclude that the gradient matches the field. But those derivatives have been interchanged: the product rule for partial derivatives gives
Unless \(x=y\), this is not \(\langle x,y\rangle\), so \(\psi=xy\) is not a potential for this field on \(\mathbb{R}^2\). The correction is to test a candidate whose partial derivatives match in the right order. For \(\phi(x,y)=\tfrac12x^2+\tfrac12y^2\),
This verifies that \(\phi\) is a potential for the field. The important practice is to compare the complete gradient with the complete field, coordinate by coordinate, rather than relying on the appearance of the candidate.
Potentials Are Not Numerically Unique
If \(\phi\) is a potential for \(\mathbf{f}\), adding a constant does not change its gradient. For any constant \(C\),
because each partial derivative of a constant is zero. Thus \(\phi+C\) is also a potential for the same field. For instance, \(x^2+y^2+7\) and \(x^2+y^2\) both generate the field \(\langle2x,2y\rangle\). When verifying a potential, the definition asks whether its gradient equals the field; it does not prescribe a particular constant term.
Check Your Understanding
Use the definition of a potential and compute the requested partial derivatives explicitly.
- For \(\phi(x,y)=x^2y\), compute \(\nabla\phi\).
- Verify that \(\phi(x,y)=x^2+y^2\) is a potential for \(\mathbf{f}(x,y)=\langle2x,2y\rangle\).
- Is \(\psi(x,y)=x^2y\) a potential for \(\mathbf{f}(x,y)=\langle2xy,x^2\rangle\)? Check both components.
- Why must all three partial derivatives be checked when verifying a proposed potential for a three-dimensional field?
- If \(\phi\) is a potential for \(\mathbf{f}\), explain why \(\phi-4\) is also a potential.