10. Vector Fields and Line Integrals

Potential Functions

Potential Functions

students, in multivariable calculus, a potential function is a function whose gradient gives a vector field. That idea connects geometry, physics, and computation in a powerful way. 🚀 In this lesson, you will learn how potential functions help us understand vector fields, how to test whether a field has one, and why they matter for line integrals and work.

Introduction: Why potential functions matter

A vector field assigns a vector to each point in space. For example, a wind map can show air moving differently at different locations, or a force field can show how gravity or electricity acts at each point. In some special vector fields, there is a hidden function $f(x,y)$ or $f(x,y,z)$ behind the scenes. This hidden function is the potential function.

The main idea is this:

$$\nabla f = \langle f_x, f_y, f_z \rangle = \mathbf{F}$$

when a vector field $\mathbf{F}$ is conservative. If such an $f$ exists, then $\mathbf{F}$ is called a gradient field or conservative field.

Objectives for this lesson

By the end of this lesson, students, you should be able to:

  • explain the main ideas and terminology behind potential functions,
  • find a potential function when one exists,
  • connect potential functions to vector fields and line integrals,
  • recognize why conservative fields make some calculations much easier,
  • use examples to check whether a vector field has a potential function.

A useful real-world picture is a hill 🏔️. If $f(x,y)$ is the height of the hill, then $\nabla f$ points in the direction of steepest uphill increase. A vector field made from a gradient is telling you how the landscape rises or falls.

What a potential function is

Suppose a vector field in two variables is

$$\mathbf{F}(x,y) = \langle P(x,y), Q(x,y) \rangle.$$

A function $f(x,y)$ is a potential function for $\mathbf{F}$ if

$$\nabla f = \langle f_x, f_y \rangle = \langle P, Q \rangle.$$

In three variables, if

$$\mathbf{F}(x,y,z) = \langle P(x,y,z), Q(x,y,z), R(x,y,z) \rangle,$$

then $f$ is a potential function if

$$\nabla f = \langle f_x, f_y, f_z \rangle = \langle P, Q, R \rangle.$$

The word “potential” comes from physics. In many situations, the function $f$ stores potential energy, and the vector field gives the force related to how that energy changes. For example, gravity near Earth can often be modeled using a potential function.

A field with a potential function is special because the vector field is determined by the rate of change of one scalar function. That makes many problems easier to solve and explains why line integrals over such fields behave in a predictable way.

How to find a potential function

To find a potential function, you reverse the gradient process. That means you start from the vector field and build a function $f$ whose partial derivatives match the field components.

In two variables

If

$$\mathbf{F}(x,y) = \langle P(x,y), Q(x,y) \rangle,$$

then you want

$$f_x = P \quad \text{and} \quad f_y = Q.$$

A common method is:

  1. Integrate $P$ with respect to $x$.
  2. Add an unknown function of the other variable, often $g(y)$.
  3. Differentiate the result with respect to $y$.
  4. Match that derivative to $Q$ and solve for $g(y)$.

Example 1

Find a potential function for

$$\mathbf{F}(x,y) = \langle 2xy, x^2 \rangle.$$

Start with $f_x = 2xy$. Integrate with respect to $x$:

$$f(x,y) = x^2y + g(y).$$

Now differentiate with respect to $y$:

$$f_y = x^2 + g'(y).$$

Since $f_y$ must equal $Q = x^2$, we get

$$x^2 + g'(y) = x^2,$$

so

$$g'(y) = 0.$$

Thus $g(y)$ is constant, and one potential function is

$$f(x,y) = x^2y.$$

Check it:

$$\nabla f = \langle 2xy, x^2 \rangle,$$

which matches the field.

In three variables

For a vector field

$$\mathbf{F}(x,y,z) = \langle P, Q, R \rangle,$$

you need

$$f_x = P, \quad f_y = Q, \quad f_z = R.$$

The process is similar, but now you may need more than one unknown function while integrating. The idea is still to use partial derivatives to match each component.

Example 2

Find a potential function for

$$\mathbf{F}(x,y,z) = \langle yz, xz, xy \rangle.$$

Since $f_x = yz$, integrate with respect to $x$:

$$f(x,y,z) = xyz + g(y,z).$$

Differentiate with respect to $y$:

$$f_y = xz + g_y(y,z).$$

This must equal $xz$, so

$$g_y(y,z) = 0.$$

That means $g$ does not depend on $y$. Now differentiate with respect to $z$:

$$f_z = xy + g_z(z).$$

This must equal $xy$, so

$$g_z(z) = 0.$$

Therefore $g$ is constant, and a potential function is

$$f(x,y,z) = xyz.$$

How to tell whether a potential function exists

Not every vector field has a potential function. A field must be conservative. In a simply connected region, a common test in two variables is:

$$\frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x}.$$

If this condition holds and the domain has no holes, then the vector field is conservative and has a potential function.

For three variables, a similar idea uses the curl. If

$$\nabla \times \mathbf{F} = \mathbf{0},$$

and the region is appropriate, then the field is conservative.

Important caution

The derivative test alone is not always enough if the domain has holes. For example, a field may satisfy the equality of mixed partial checks on a region that is not simply connected, yet still fail to have a global potential function. So students, always pay attention to the domain. A donut-shaped region can create trouble because loops around the hole may behave differently.

Potential functions and line integrals

This is where the topic becomes especially useful. If $\mathbf{F}$ has a potential function $f$, then the line integral of $\mathbf{F}$ along a path $C$ from point $A$ to point $B$ depends only on the endpoints:

$$\int_C \mathbf{F} \cdot d\mathbf{r} = f(B) - f(A).$$

This is called the Fundamental Theorem for Line Integrals.

That means you do not have to calculate the full path integral directly if you know a potential function. This can save a lot of work.

Work example

Imagine a force field that pushes an object along a path. The work done by the force is

$$W = \int_C \mathbf{F} \cdot d\mathbf{r}.$$

If $\mathbf{F}$ has potential function $f$, then the work becomes

$$W = f(B) - f(A).$$

This means the work depends only on where the object starts and ends, not on the path taken. That is a major difference from many other force situations.

Example 3

Let

$$\mathbf{F}(x,y) = \langle 2xy, x^2 \rangle$$

and let $C$ go from $(1,1)$ to $(2,3)$ along any path. Since a potential function is

$$f(x,y) = x^2y,$$

the line integral is

$$\int_C \mathbf{F} \cdot d\mathbf{r} = f(2,3) - f(1,1).$$

Compute the values:

$$f(2,3) = 2^2\cdot 3 = 12,$$

$$f(1,1) = 1^2\cdot 1 = 1.$$

So

$$\int_C \mathbf{F} \cdot d\mathbf{r} = 11.$$

No matter what path $C$ takes, the answer is the same, as long as the endpoints stay the same. ✅

Why this fits into vector fields and line integrals

Potential functions connect several big ideas in multivariable calculus:

  • A vector field can describe force, flow, or movement at each point.
  • A conservative field is a vector field with a potential function.
  • A line integral measures accumulated effect along a path.
  • For conservative fields, line integrals become endpoint calculations.

This connection helps explain circulation and work. If a field is conservative, then the total circulation around any closed curve is zero:

$$\oint_C \mathbf{F} \cdot d\mathbf{r} = 0.$$

That makes sense because a potential function means the field is not “adding up” extra effect when you travel in a loop. You return to the same potential value where you started.

Conclusion

Potential functions are one of the most important ideas in vector fields and line integrals. They turn a vector field into the gradient of a scalar function, which gives a powerful shortcut for computing work and line integrals. students, when you recognize a conservative field and find its potential function, you unlock an easier way to solve problems and a deeper way to understand how vector fields behave. 🌟

Study Notes

  • A potential function $f$ satisfies $\nabla f = \mathbf{F}$.
  • If a vector field has a potential function, it is called conservative or a gradient field.
  • In two variables, if $\mathbf{F} = \langle P, Q \rangle$, then a potential function must satisfy $f_x = P$ and $f_y = Q$.
  • In three variables, if $\mathbf{F} = \langle P, Q, R \rangle$, then a potential function must satisfy $f_x = P$, $f_y = Q$, and $f_z = R$.
  • A common test in two variables is $\frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x}$, assuming the domain has no holes.
  • In three variables, a conservative field often satisfies $\nabla \times \mathbf{F} = \mathbf{0}$ in a suitable domain.
  • If $\mathbf{F}$ has potential function $f$, then

$$\int_C \mathbf{F} \cdot d\mathbf{r} = f(B) - f(A).$$

  • For a closed curve $C$ in a conservative field,

$$\oint_C \mathbf{F} \cdot d\mathbf{r} = 0.$$

  • Potential functions explain why some line integrals depend only on endpoints, not on the path.
  • Always check the domain, because holes in the region can prevent a global potential function from existing.

Practice Quiz

5 questions to test your understanding