10. Vector Fields and Line Integrals

Conservative Fields

Conservative Fields

Introduction

students, imagine walking on a hill. If you start at the same place and end at the same place, the total change in height depends only on where you began and where you finished, not on the path you took. That same idea shows up in conservative vector fields in multivariable calculus 🌍

In this lesson, you will learn how to recognize conservative fields, why they matter, and how they connect to work, circulation, and potential functions. By the end, you should be able to:

  • explain what a conservative field is and what the key terms mean,
  • check whether a vector field is conservative using calculus tools,
  • use a potential function to compute line integrals more easily,
  • connect conservative fields to work done by force and circulation.

These ideas are important because they turn complicated path problems into simpler start-and-endpoint problems ✨

What Does Conservative Mean?

A vector field assigns a vector to each point in space. In two dimensions, a field often looks like $\mathbf{F}(x,y)=\langle P(x,y),Q(x,y)\rangle$. In three dimensions, it may look like $\mathbf{F}(x,y,z)=\langle P(x,y,z),Q(x,y,z),R(x,y,z)\rangle$.

A vector field is called conservative if its line integral between two points does not depend on the path taken, only on the endpoints. In symbols, if $C_1$ and $C_2$ are any two curves with the same start and end points, then

$$\int_{C_1}\mathbf{F}\cdot d\mathbf{r}=\int_{C_2}\mathbf{F}\cdot d\mathbf{r}$$

for a conservative field.

This means that if you walk from point $A$ to point $B$ through the field, the “total push” you feel is the same no matter which route you take. A good real-world image is gravity near Earth. If you lift a backpack from one shelf to another, the change in gravitational potential energy depends only on the heights, not on whether you used the stairs or a ladder 🚶‍♂️

Another important idea is that conservative fields are often written as gradients of scalar functions. If there is a function $f$ such that

$$\mathbf{F}=\nabla f,$$

then $\mathbf{F}$ is conservative. The function $f$ is called a potential function.

Potential Functions and Why They Matter

A potential function is a scalar function whose gradient gives the vector field. If $\mathbf{F}=\nabla f$, then

$$\mathbf{F}=\left\langle \frac{\partial f}{\partial x},\frac{\partial f}{\partial y}\right\rangle$$

in two dimensions, or

$$\mathbf{F}=\left\langle \frac{\partial f}{\partial x},\frac{\partial f}{\partial y},\frac{\partial f}{\partial z}\right\rangle$$

in three dimensions.

This matters because the Fundamental Theorem for Line Integrals says that if $\mathbf{F}=\nabla f$ and $C$ goes from point $A$ to point $B$, then

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

That is a huge simplification. Instead of calculating along a curve step by step, students only needs the potential function and the endpoints.

Example: A Simple Conservative Field

Suppose

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

Then

$$\nabla f=\left\langle 2x,2y\right\rangle.$$

So the vector field

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

is conservative.

If $C$ goes from $(1,2)$ to $(3,4)$, then

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

Compute the values:

$$f(3,4)=3^2+4^2=25$$

and

$$f(1,2)=1^2+2^2=5.$$

So

$$\int_C \mathbf{F}\cdot d\mathbf{r}=25-5=20.$$

Notice how the actual path never mattered. That is the power of conservative fields ✅

How to Test Whether a Field Is Conservative

In multivariable calculus, one common way to test whether a field is conservative is to compare mixed partial derivatives.

For a two-dimensional field

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

if the domain is simple enough, a necessary and often sufficient condition is

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

If these derivatives match everywhere on a suitable domain, the field is conservative.

For a three-dimensional field

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

a field is conservative on a simply connected domain when its curl is zero:

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

In components, this means all parts of the curl vanish.

Example: Checking a Field in Two Variables

Let

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

Here,

$$P(x,y)=y$$

and

$$Q(x,y)=x.$$

Now compute the partial derivatives:

$$\frac{\partial P}{\partial y}=1$$

and

$$\frac{\partial Q}{\partial x}=1.$$

They match, so this field is conservative on a suitable domain such as all of $\mathbb{R}^2$.

To find a potential function $f$, start with

$$\frac{\partial f}{\partial x}=y.$$

Integrate with respect to $x$:

$$f(x,y)=xy+g(y),$$

where $g(y)$ is a function of $y$.

Now differentiate with respect to $y$:

$$\frac{\partial f}{\partial y}=x+g'(y).$$

Since this must equal $Q(x,y)=x$, we get

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

so $g(y)$ is constant. Thus a potential function is

$$f(x,y)=xy.$$

Then $\nabla f=\langle y,x\rangle$, as expected.

Line Integrals, Work, and Circulation

A line integral measures accumulation along a curve. In physics, one major interpretation is work. If a force field is $\mathbf{F}$ and an object moves along curve $C$, then the work done is

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

For a conservative field, this work depends only on the endpoints. That means a force like gravity or an ideal spring force can often be described using a potential function.

Work Example

Suppose a particle moves from $A=(0,0)$ to $B=(2,1)$ in the field

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

Since this field is conservative with potential

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

the work is

$$W=f(2,1)-f(0,0)=\left(2^2+1^2\right)-0=5.$$

No matter which path the particle takes, the work is $5$.

Circulation and Conservative Fields

Circulation measures how much a field pushes along a closed curve. For a closed curve $C$, if $\mathbf{F}$ is conservative, then

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

This is a key test idea: a conservative field has zero net work around any closed loop, assuming the field is defined nicely on the region.

Think of walking around a neighborhood and returning to your front door. If the field were a perfectly conservative “energy landscape,” you would gain nothing and lose nothing after a full loop. The total effect cancels out 🔄

Why Path Independence Is Such a Big Deal

Path independence is one of the most important features of conservative fields. It means the line integral can be replaced by a much easier computation. Instead of parameterizing a curve and evaluating

$$\int_a^b \mathbf{F}(\mathbf{r}(t))\cdot \mathbf{r}'(t)\,dt,$$

you can often just compute a difference of potential values.

This also helps explain energy ideas in real life. If a force is conservative, then the work done moving between two points depends only on the positions, not on the route. That is why potential energy is useful in mechanics: it stores information about position in a simple function.

A field can fail to be conservative if it has “swirl” or rotation. In those cases, the work around a closed loop may not be zero. That is why checking curl or mixed partial derivatives is so useful: it helps detect whether a field behaves like a gradient field or not.

Conclusion

Conservative fields are a central idea in vector fields and line integrals. They connect geometry, calculus, and physics through a simple message: when a field is conservative, the line integral depends only on the endpoints, not the path. students should remember the three major features:

  1. conservative fields are gradient fields, meaning $\mathbf{F}=\nabla f$,
  2. they have potential functions, which make line integrals easier,
  3. they produce zero circulation around closed curves, so $\oint_C \mathbf{F}\cdot d\mathbf{r}=0$.

These ideas make conservative fields a powerful tool for solving work problems and understanding how vector fields behave.

Study Notes

  • A vector field is conservative if its line integral depends only on endpoints.
  • If $\mathbf{F}=\nabla f$, then $\mathbf{F}$ is conservative and $f$ is a potential function.
  • For a conservative field, the Fundamental Theorem for Line Integrals gives

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

  • In two dimensions, a common test is

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

  • In three dimensions, a field is conservative on a suitable domain when

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

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

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

  • Conservative fields model situations where work depends only on start and end points, such as gravity and other energy-based systems.
  • The main benefit is simplification: a difficult path integral becomes a difference of potential values.

Practice Quiz

5 questions to test your understanding

Conservative Fields — Multivariable Calculus | A-Warded