# Conservative vector field

In vector calculus, a conservative vector field is a vector field that is the gradient of some function. Conservative vector fields have the property that the line integral is path independent; the choice of any path between two points does not change the value of the line integral. Path independence of the line integral is equivalent to the vector field being conservative. A conservative vector field is also irrotational; in three dimensions, this means that it has vanishing curl. An irrotational vector field is necessarily conservative provided that the domain is simply connected.

Conservative vector fields appear naturally in mechanics: They are vector fields representing forces of physical systems in which energy is conserved. For a conservative system, the work done in moving along a path in configuration space depends only on the endpoints of the path, so it is possible to define a potential energy that is independent of the actual path taken.

## Informal treatment

In a two- and three-dimensional space, there is an ambiguity in taking an integral between two points as there are infinitely many paths between the two points—apart from the straight line formed between the two points, one could choose a curved path of greater length as shown in the figure. Therefore, in general, the value of the integral depends on the path taken. However, in the special case of a conservative vector field, the value of the integral is independent of the path taken, which can be thought of as a large-scale cancellation of all elements $d{R}$  that don't have a component along the straight line between the two points. To visualize this, imagine two people climbing a cliff; one decides to scale the cliff by going vertically up it, and the second decides to walk along a winding path that is longer in length than the height of the cliff, but at only a small angle to the horizontal. Although the two hikers have taken different routes to get up to the top of the cliff, at the top, they will have both gained the same amount of gravitational potential energy. This is because a gravitational field is conservative. As an example of a non-conservative field, imagine pushing a box from one end of a room to another. Pushing the box in a straight line across the room requires noticeably less work against friction than along a curved path covering a greater distance.

Depiction of two possible paths to integrate. In green is the simplest possible path; blue shows a more convoluted curve

## Intuitive explanation

M. C. Escher's painting Ascending and Descending illustrates a non-conservative vector field, impossibly made to appear to be the gradient of the varying height above ground as one moves along the staircase. It is rotational in that one can keep getting higher or keep getting lower while going around in circles. It is non-conservative in that one can return to one's starting point while ascending more than one descends or vice versa. On a real staircase, the height above the ground is a scalar potential field: If one returns to the same place, one goes upward exactly as much as one goes downward. Its gradient would be a conservative vector field and is irrotational. The situation depicted in the painting is impossible.

## Definition

A vector field $\mathbf {v} :U\to \mathbb {R} ^{n}$ , where $U$  is an open subset of $\mathbb {R} ^{n}$ , is said to be conservative if and only if there exists a $C^{1}$  scalar field $\varphi$  on $U$  such that

$\mathbf {v} =\nabla \varphi .$

Here, $\nabla \varphi$  denotes the gradient of $\varphi$ . When the equation above holds, $\varphi$  is called a scalar potential for $\mathbf {v}$ .

The fundamental theorem of vector calculus states that any vector field can be expressed as the sum of a conservative vector field and a solenoidal field.

## Path independence

A key property of a conservative vector field $\mathbf {v}$  is that its integral along a path depends only on the endpoints of that path, not the particular route taken. Suppose that $P$  is a rectifiable path in $U$  with initial point $A$  and terminal point $B$ . If $\mathbf {v} =\nabla \varphi$  for some $C^{1}$  scalar field $\varphi$  so that $\mathbf {v}$  is a conservative vector field, then the gradient theorem states that

$\int _{P}\mathbf {v} \cdot d{\mathbf {r} }=\varphi (B)-\varphi (A).$

This holds as a consequence of the chain rule and the fundamental theorem of calculus.

An equivalent formulation of this is that

$\oint _{C}\mathbf {v} \cdot d{\mathbf {r} }=0$

for every rectifiable simple closed path $C$  in $U$ . The converse of this statement is also true: If the circulation of $\mathbf {v}$  around every rectifiable simple closed path in $U$  is $0$ , then $\mathbf {v}$  is a conservative vector field.

## Irrotational vector fields

The above vector field $\mathbf {v} =\left(-{\frac {y}{x^{2}+y^{2}}},{\frac {x}{x^{2}+y^{2}}},0\right)$  defined on $U=\mathbb {R} ^{3}\setminus \{(0,0,z)\mid z\in \mathbb {R} \}$  has zero curl almost everywhere and is thus irrotational. However, it is neither conservative nor does it have path independence.

Let $n=3$ , and let $\mathbf {v} :U\to \mathbb {R} ^{3}$  be a $C^{1}$  vector field, with $U$  open as always. Then $\mathbf {v}$  is called irrotational if and only if its curl is $\mathbf {0}$  everywhere in $U$ , i.e., if

$\nabla \times \mathbf {v} \equiv \mathbf {0} .$

For this reason, such vector fields are sometimes referred to as curl-free vector fields or curl-less vector fields. They are also referred to as longitudinal vector fields.

It is an identity of vector calculus that for any $C^{2}$  scalar field $\varphi$  on $U$ , we have

$\nabla \times (\nabla \varphi )\equiv \mathbf {0} .$

Therefore, every $C^{1}$  conservative vector field on $U$  is also an irrotational vector field on $U$ .

Provided that $U$  is simply connected, the converse of this is also true: Every irrotational vector field on $U$  is a $C^{1}$  conservative vector field on $U$ .

The above statement is not true in general if $U$  is not simply connected. Let $U$  be $\mathbb {R} ^{3}$  with the $z$ -axis removed, i.e., $U=\mathbb {R} ^{3}\setminus \{(0,0,z)\mid z\in \mathbb {R} \}$ . Now, define a vector field $\mathbf {v}$  on $U$  by

$\mathbf {v} (x,y,z)~{\stackrel {\text{def}}{=}}~\left(-{\frac {y}{x^{2}+y^{2}}},{\frac {x}{x^{2}+y^{2}}},0\right).$

Then $\mathbf {v}$  has zero curl everywhere in $U$ , i.e., $\mathbf {v}$  is irrotational. However, the circulation of $\mathbf {v}$  around the unit circle in the $xy$ -plane is $2\pi$ . Indeed, note that in polar coordinates, $\mathbf {v} =\mathbf {e} _{\phi }/r$ , so the integral over the unit circle is

$\oint _{C}\mathbf {v} \cdot \mathbf {e} _{\phi }~d{\phi }=2\pi .$

Therefore, $\mathbf {v}$  does not have the path-independence property discussed above and is not conservative.

In a simply connected open region, an irrotational vector field has the path-independence property. This can be seen by noting that in such a region, an irrotational vector field is conservative, and conservative vector fields have the path-independence property. The result can also be proved directly by using Stokes' theorem. In a simply connected open region, any vector field that has the path-independence property must also be irrotational.

More abstractly, in the presence of a Riemannian metric, vector fields correspond to differential $1$ -forms. The conservative vector fields correspond to the exact $1$ -forms, that is, to the forms which are the exterior derivative $d\phi$  of a function (scalar field) $\phi$  on $U$ . The irrotational vector fields correspond to the closed $1$ -forms, that is, to the $1$ -forms $\omega$  such that $d\omega =0$ . As $d^{2}=0$ , any exact form is closed, so any conservative vector field is irrotational. Conversely, all closed $1$ -forms are exact if $U$  is simply connected.

### Vorticity

The vorticity ${\boldsymbol {\omega }}$  of a vector field can be defined by:

${\boldsymbol {\omega }}~{\stackrel {\text{def}}{=}}~\nabla \times \mathbf {v} .$

The vorticity of an irrotational field is zero everywhere. Kelvin's circulation theorem states that a fluid that is irrotational in an inviscid flow will remain irrotational. This result can be derived from the vorticity transport equation, obtained by taking the curl of the Navier-Stokes Equations.

For a two-dimensional field, the vorticity acts as a measure of the local rotation of fluid elements. Note that the vorticity does not imply anything about the global behavior of a fluid. It is possible for a fluid traveling in a straight line to have vorticity, and it is possible for a fluid that moves in a circle to be irrotational.

## Conservative forces

Examples of potential and gradient fields in physics:
•   Scalar fields, scalar potentials:
• VG, gravitational potential
• Wpot, potential energy
• VC, Coulomb potential
• aG, gravitational acceleration
• F, force
• E, electric field strength

If the vector field associated to a force $\mathbf {F}$  is conservative, then the force is said to be a conservative force.

The most prominent examples of conservative forces are the gravitational force and the electric force associated to an electrostatic field. According to Newton's law of gravitation, the gravitational force $\mathbf {F} _{G}$  acting on a mass $m$  due to a mass $M$ , which is a distance $r$  between them, obeys the equation

$\mathbf {F} _{G}=-{\frac {GmM}{r^{2}}}{\hat {\mathbf {r} }},$

where $G$  is the gravitational constant and ${\hat {\mathbf {r} }}$  is a unit vector pointing from $M$  toward $m$ . The force of gravity is conservative because $\mathbf {F} _{G}=-\nabla \Phi _{G}$ , where

$\Phi _{G}~{\stackrel {\text{def}}{=}}-{\frac {GmM}{r}}$

is the gravitational potential energy. It can be shown that any vector field of the form $\mathbf {F} =F(r){\hat {\mathbf {r} }}$  is conservative, provided that $F(r)$  is integrable.

For conservative forces, path independence can be interpreted to mean that the work done in going from a point $A$  to a point $B$  is independent of the path chosen, and that the work $W$  done in going around a simple closed loop is $0$ :

$W=\oint _{C}\mathbf {F} \cdot d{\mathbf {r} }=0.$

The total energy of a particle moving under the influence of conservative forces is conserved, in the sense that a loss of potential energy is converted to an equal quantity of kinetic energy, or vice versa.