# Conservative vector field

In vector calculus, a conservative vector field is a vector field that is the gradient of some function.[1] A conservative vector field has the property that its 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 under the line integral 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.[2] For a conservative system, the work done in moving along a path in a configuration space depends on only the endpoints of the path, so it is possible to define 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 ${\displaystyle 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.

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 lithograph print 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 print is impossible.

## Definition

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

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

Here, ${\displaystyle \nabla \varphi }$  denotes the gradient of ${\displaystyle \varphi }$ . Since ${\displaystyle \varphi }$  is continuously differentiable, ${\displaystyle \mathbf {v} }$  is continuous. When the equation above holds, ${\displaystyle \varphi }$  is called a scalar potential for ${\displaystyle \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 and conservative vector field

### Path independence

A line integral of a vector field ${\displaystyle \mathbf {v} }$  is said to be path-independent if it depends on only two integral path endpoints regardless of which path between them is chosen:[4]

${\displaystyle \int _{P_{1}}\mathbf {v} \cdot d\mathbf {r} =\int _{P_{2}}\mathbf {v} \cdot d\mathbf {r} }$

for any pair of integral paths ${\displaystyle P_{1}}$  and ${\displaystyle P_{2}}$  between a given pair of path endpoints in ${\displaystyle U}$ .

The path independence is also equivalently expressed as

${\displaystyle \int _{P_{c}}\mathbf {v} \cdot d\mathbf {r} =0}$

for any piecewise smooth closed path ${\displaystyle P_{c}}$  in ${\displaystyle U}$  where the two endpoints are coincident. Two expressions are equivalent since any closed path ${\displaystyle P_{c}}$  can be made by two path; ${\displaystyle P_{1}}$  from an endpoint ${\displaystyle A}$  to another endpoint ${\displaystyle B}$ , and ${\displaystyle P_{2}}$  from ${\displaystyle B}$  to ${\displaystyle A}$ , so
${\displaystyle \int _{P_{c}}\mathbf {v} \cdot d\mathbf {r} =\int _{P_{1}}\mathbf {v} \cdot d\mathbf {r} +\int _{P_{2}}\mathbf {v} \cdot d\mathbf {r} =\int _{P_{1}}\mathbf {v} \cdot d\mathbf {r} -\int _{-P_{2}}\mathbf {v} \cdot d\mathbf {r} =0}$

where ${\displaystyle -P_{2}}$  is the reverse of ${\displaystyle P_{2}}$  and the last equality holds due to the path independence ${\textstyle \int _{P_{1}}\mathbf {v} \cdot d\mathbf {r} =\int _{-P_{2}}\mathbf {v} \cdot d\mathbf {r} .}$

### Conservative vector field

A key property of a conservative vector field ${\displaystyle \mathbf {v} }$  is that its integral along a path depends on only the endpoints of that path, not the particular route taken. In other words, if it is a conservative vector field, then its line integral is path-independent. Suppose that ${\displaystyle \mathbf {v} =\nabla \varphi }$  for some ${\displaystyle C^{1}}$  (continuously differentiable) scalar field ${\displaystyle \varphi }$ [3] over ${\displaystyle U}$  as an open subset of ${\displaystyle \mathbb {R} ^{n}}$  (so ${\displaystyle \mathbf {v} }$  is a conservative vector field that is continuous) and ${\displaystyle P}$  is a differentiable path (i.e., it can be parameterized by a differentiable function) in ${\displaystyle U}$  with an initial point ${\displaystyle A}$  and a terminal point ${\displaystyle B}$ . Then the gradient theorem (also called fundamental theorem of calculus for line integrals) states that

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

This holds as a consequence of the definition of a line integral, the chain rule, and the second fundamental theorem of calculus. ${\displaystyle \mathbf {v} \cdot d\mathbf {r} =\nabla {\varphi }\cdot d\mathbf {r} }$  in the line integral is an exact differential for an orthogonal coordinate system (e.g., Cartesian, cylindrical, or spherical coordinates). Since the gradient theorem is applicable for a differentiable path, the path independence of a conservative vector field over piecewise-differential curves is also proved by the proof per differentiable curve component.[5]

So far it has been proven that a conservative vector field ${\displaystyle \mathbf {v} }$  is line integral path-independent. Conversely, if a continuous vector field ${\displaystyle \mathbf {v} }$  is (line integral) path-independent, then it is a conservative vector field, so the following biconditional statement holds:[4]

For a continuous vector field ${\displaystyle \mathbf {v} :U\to \mathbb {R} ^{n}}$ , where ${\displaystyle U}$  is an open subset of ${\displaystyle \mathbb {R} ^{n}}$ , it is conservative if and only if its line integral along a path in ${\displaystyle U}$  is path-independent, meaning that the line integral depends on only both path endpoints regardless of which path between them is chosen.

The proof of this converse statement is the following.

Line integral paths used to prove the following statement: if the line integral of a vector field is path-independent, then the vector field is a conservative vector field.

${\displaystyle \mathbf {v} }$  is a continuous vector field which line integral is path-independent. Then, let's make a function ${\displaystyle \varphi }$  defined as

${\displaystyle \varphi (x,y)=\int _{a,b}^{x,y}\mathbf {v} \cdot d{\mathbf {r} }}$

over an arbitrary path between a chosen starting point ${\displaystyle (a,b)}$  and an arbitrary point ${\displaystyle (x,y)}$ . Since it is path-independent, it depends on only ${\displaystyle (a,b)}$  and ${\displaystyle (x,y)}$  regardless of which path between these points is chosen.

Let's choose the path shown in the left of the right figure where a 2-dimensional Cartesian coordinate system is used. The second segment of this path is parallel to the ${\displaystyle x}$  axis so there is no change along the ${\displaystyle y}$  axis. The line integral along this path is

${\displaystyle \int _{a,b}^{x,y}\mathbf {v} \cdot d{\mathbf {r} }=\int _{a,b}^{x_{1},y}\mathbf {v} \cdot d{\mathbf {r} }+\int _{x_{1},y}^{x,y}\mathbf {v} \cdot d{\mathbf {r} }.}$

By the path independence, its partial derivative with respect to ${\displaystyle x}$  (for ${\displaystyle \varphi }$  to have partial derivatives, ${\displaystyle \mathbf {v} }$  needs to be continuous.) is
${\displaystyle {\frac {\partial \varphi }{\partial x}}={\frac {\partial }{\partial x}}\int _{a,b}^{x,y}\mathbf {v} \cdot d{\mathbf {r} }={\frac {\partial }{\partial x}}\int _{a,b}^{x_{1},y}\mathbf {v} \cdot d{\mathbf {r} }+{\frac {\partial }{\partial x}}\int _{x_{1},y}^{x,y}\mathbf {v} \cdot d{\mathbf {r} }=0+{\frac {\partial }{\partial x}}\int _{x_{1},y}^{x,y}\mathbf {v} \cdot d{\mathbf {r} }}$

since ${\displaystyle x_{1}}$  and ${\displaystyle x}$  are independent to each other. Let's express ${\displaystyle \mathbf {v} }$  as ${\displaystyle {\displaystyle \mathbf {v} }=P(x,y)\mathbf {i} +Q(x,y)\mathbf {j} }$  where ${\displaystyle \mathbf {i} }$  and ${\displaystyle \mathbf {j} }$  are unit vectors along the ${\displaystyle x}$  and ${\displaystyle y}$  axes respectively, then, since ${\displaystyle d\mathbf {r} =dx\mathbf {i} +dy\mathbf {j} }$ ,
${\displaystyle {\frac {\partial }{\partial x}}\varphi (x,y)={\frac {\partial }{\partial x}}\int _{x_{1},y}^{x,y}\mathbf {v} \cdot d\mathbf {r} ={\frac {\partial }{\partial x}}\int _{x_{1},y}^{x,y}P(t,y)dt=P(x,y)}$

where the last equality is from the second fundamental theorem of calculus.

A similar approach for the line integral path shown in the right of the right figure results in ${\textstyle {\frac {\partial }{\partial y}}\varphi (x,y)=Q(x,y)}$  so

${\displaystyle \mathbf {v} =P(x,y)\mathbf {i} +Q(x,y)\mathbf {j} ={\frac {\partial \varphi }{\partial x}}\mathbf {i} +{\frac {\partial \varphi }{\partial y}}\mathbf {j} =\nabla \varphi }$

is proved for the 2-dimensional Cartesian coordinate system. This proof method can be straightforwardly expanded to a higher dimensional orthogonal coordinate system (e.g., a 3-dimensional spherical coordinate system) so the converse statement is proved. Another proof is found here as the converse of the gradient theorem.

## Irrotational vector fields

The above vector field ${\displaystyle \mathbf {v} =\left(-{\frac {y}{x^{2}+y^{2}}},{\frac {x}{x^{2}+y^{2}}},0\right)}$  defined on ${\displaystyle U=\mathbb {R} ^{3}\setminus \{(0,0,z)\mid z\in \mathbb {R} \}}$ , i.e., ${\displaystyle \mathbb {R} ^{3}}$  with removing all coordinates on the ${\displaystyle z}$ -axis (so not a simply connected space), has zero curl everywhere in ${\displaystyle U}$  and is thus irrotational. However, it is neither conservative nor does it have path independence.

Let ${\displaystyle n=3}$  (3-dimensiontal space), and let ${\displaystyle \mathbf {v} :U\to \mathbb {R} ^{3}}$  be a ${\displaystyle C^{1}}$  (continuously differentiable) vector field, with an open subset ${\displaystyle U}$  of ${\displaystyle \mathbb {R} ^{n}}$ . Then ${\displaystyle \mathbf {v} }$  is called irrotational if and only if its curl is ${\displaystyle \mathbf {0} }$  everywhere in ${\displaystyle U}$ , i.e., if

${\displaystyle \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 ${\displaystyle C^{2}}$  (continuously differentiable up to the 2nd derivative) scalar field ${\displaystyle \varphi }$  on ${\displaystyle U}$ , we have

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

Therefore, every ${\displaystyle C^{1}}$  conservative vector field in ${\displaystyle U}$  is also an irrotational vector field in ${\displaystyle U}$ . This result can be easily proved by expressing ${\displaystyle \nabla \times (\nabla \varphi )}$  in a Cartesian coordinate system with Schwarz's theorem (also called Clairaut's theorem on equality of mixed partials).

Provided that ${\displaystyle U}$  is a simply connected open space (roughly speaking, a single piece open space without a hole within it), the converse of this is also true: Every irrotational vector field in a simply connected open space ${\displaystyle U}$  is a ${\displaystyle C^{1}}$  conservative vector field in ${\displaystyle U}$ .

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

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

Then ${\displaystyle \mathbf {v} }$  has zero curl everywhere in ${\displaystyle U}$  (${\displaystyle \nabla \times \mathbf {v} \equiv \mathbf {0} }$  at everywhere in ${\displaystyle U}$ ), i.e., ${\displaystyle \mathbf {v} }$  is irrotational. However, the circulation of ${\displaystyle \mathbf {v} }$  around the unit circle in the ${\displaystyle xy}$ -plane is ${\displaystyle 2\pi }$ ; in polar coordinates, ${\displaystyle \mathbf {v} =\mathbf {e} _{\phi }/r}$ , so the integral over the unit circle is

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

Therefore, ${\displaystyle \mathbf {v} }$  does not have the path-independence property discussed above so is not conservative even if ${\displaystyle \nabla \times \mathbf {v} \equiv \mathbf {0} }$  since ${\displaystyle U}$  where ${\displaystyle \mathbf {v} }$  is defined is not a simply connected open space.

Say again, in a simply connected open region, an irrotational vector field ${\displaystyle \mathbf {v} }$  has the path-independence property (so ${\displaystyle \mathbf {v} }$  as conservative). This can be proved directly by using Stokes' theorem,

${\displaystyle \oint _{P_{c}}\mathbf {v} \cdot d\mathbf {r} =\iint _{A}(\nabla \times \mathbf {v} )\cdot d\mathbf {a} =0}$

for any smooth oriented surface ${\displaystyle A}$  which boundary is a simple closed path ${\displaystyle P_{c}}$ . So, it is concluded that In a simply connected open region, any ${\displaystyle C^{1}}$  vector field that has the path-independence property (so it is a conservative vector field.) must also be irrotational and vise versa.

### Abstraction

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

### Vorticity

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

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

The vorticity of an irrotational field is zero everywhere.[6] 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 to travel 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, (gravitational or electrostatic) potential energy
• VC, Coulomb potential
• aG, gravitational acceleration
• F, (gravitational or electrostatic) force
• E, electric field strength

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

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

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

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

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

is the gravitational potential energy. In other words, the gravitation field ${\displaystyle {\frac {\mathbf {F} _{G}}{m}}}$  associated with the gravitational force ${\displaystyle \mathbf {F} _{G}}$  is the gradient of the gravitation potential ${\displaystyle {\frac {\Phi _{G}}{m}}}$  associated with the gravitational potential energy ${\displaystyle \Phi _{G}}$ . It can be shown that any vector field of the form ${\displaystyle \mathbf {F} =F(r){\hat {\mathbf {r} }}}$  is conservative, provided that ${\displaystyle F(r)}$  is integrable.

For conservative forces, path independence can be interpreted to mean that the work done in going from a point ${\displaystyle A}$  to a point ${\displaystyle B}$  is independent of the moving path chosen (dependent on only the points ${\displaystyle A}$  and ${\displaystyle B}$ ), and that the work ${\displaystyle W}$  done in going around a simple closed loop ${\displaystyle C}$  is ${\displaystyle 0}$ :

${\displaystyle 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 the equal quantity of kinetic energy, or vice versa.

3. ^ a b For ${\displaystyle \mathbf {v} =\nabla \varphi }$  to be path-independent, ${\displaystyle \varphi }$  is not necessarily continuously differentiable, the condition of being differentiable is enough, since the Gradient theorem, that proves the path independence of ${\displaystyle \nabla \varphi }$ , does not require ${\displaystyle \varphi }$  to be continuously differentiable. There must be a reason for the definition of conservative vector fields to require ${\displaystyle \varphi }$  to be continuously differentiable.