# Path Independence of Line Integrals

## Definitions

The line integral of a vector function * F* =

*P*

**i**+

*Q*

**j**+

*R*

**k**is said to be path independent, if and only if

*P*,

*Q*and

*R*are continuous in a domain

*D*, and if there exists some scalar function

*u*=

*u*(

*x*,

*y*,

*z*) in

*D*such that

If this is the case, then the line integral of * F* along the curve

*C*from

*A*to

*B*is given by the formula

(This result for line integrals is analogous to the Fundamental Theorem of Calculus for functions of one variable).

Hence, if the line integral is path independent, then for any closed contour \(C\)

A vector field of the form \(\mathbf{F} = \text{grad}\,u\) is called a conservative field, and the function \(u = u\left( {x,y,z} \right)\) is called a scalar potential.

## A Test for a Conservative Field

The line integral of a vector function

is path independent if and only if

It's implied that each component of \(\mathbf{F}\) has continuous partial derivatives of variables \(x, y\) and \(z.\)

If the line integral is taken in the \(xy\)-plane, then the following formula holds:

In this case, the test for determining if a vector field is conservative can be written in the form

The considered test is the necessary requirement, but generally speaking, it is not sufficient condition for a vector field to be conservative. However, this test is sufficient, if the region of integration \(D\) is simply connected.

## Solved Problems

Click or tap a problem to see the solution.

### Example 1

Evaluate the line integral \[\int\limits_{AB} {\left( {x + y} \right)dx + xdy} \] for two paths of integration:

- \(AB\) is the line segment from \(A\left( {0,0} \right)\) to \(B\left( {1,1} \right)\);
- \(AB\) is the parabola \(y = {x^2}\) from \(A\left( {0,0} \right)\) to \(B\left( {1,1} \right).\)

### Example 2

Show that the line integral

is path independent and calculate this integral. The coordinates of the points \(A, B\) are \(A\left( {1,2} \right),\) \(B\left( {4,5} \right).\)

### Example 1.

Evaluate the line integral \[\int\limits_{AB} {\left( {x + y} \right)dx + xdy} \] for two paths of integration:

- \(AB\) is the line segment from \(A\left( {0,0} \right)\) to \(B\left( {1,1} \right)\);
- \(AB\) is the parabola \(y = {x^2}\) from \(A\left( {0,0} \right)\) to \(B\left( {1,1} \right).\)

Solution.

Consider the first case. Obviously, the equation of the line is \(y = x.\) Then using the formula

we obtain

If the curve \(AB\) is parabola \(y = {x^2},\) we have

that is we have obtained the same answer.

Apply the test \({\frac{{\partial P}}{{\partial y}}} = {\frac{{\partial Q}}{{\partial x}}}\) to determine if the vector field is conservative.

As it can be seen, the vector field \(\mathbf{F} = \left( {x + y,x} \right)\) is conservative. This explains the result that the line integral is path independent.

### Example 2.

Show that the line integral

is path independent and calculate this integral. The coordinates of the points \(A, B\) are \(A\left( {1,2} \right),\) \(B\left( {4,5} \right).\)

Solution.

Since the components of the vector field

and their partial derivatives

are continuous, and the test \(\frac{{\partial P}}{{\partial y}} = \frac{{\partial Q}}{{\partial x}}\) is satisfied, we conclude that the vector field

is conservative and, hence, the line integral is path independent. To evaluate the line integral, we notice that

so the scalar potential is \(u = {{x^3}y + xy}.\) Then by the formula

we find the integral: