# Scalar potential

This article is about a general description of a function used in mathematics and physics to describe conservative fields. For the scalar potential of electromagnetism, see electric potential. For all other uses, see potential.

Scalar potential, simply stated, describes the situation where the difference in the potential energies of an object in two different positions depends only on the positions, not upon the path taken by the object in traveling from one position to the other. It is a scalar field in three-space: a directionless value (scalar) that depends only on its location. A familiar example is potential energy due to gravity.

gravitational potential well of an increasing mass where $\mathbf{F} = -\nabla P$

A scalar potential is a fundamental concept in vector analysis and physics (the adjective scalar is frequently omitted if there is no danger of confusion with vector potential). The scalar potential is an example of a scalar field. Given a vector field F, the scalar potential P is defined such that:

$\mathbf{F} = -\nabla P = - \left( \frac{\partial P}{\partial x}, \frac{\partial P}{\partial y}, \frac{\partial P}{\partial z} \right),$[1]

where P is the gradient of P and the second part of the equation is minus the gradient for a function of the Cartesian coordinates x,y,z.[2] In some cases, mathematicians may use a positive sign in front of the gradient to define the potential.[3] Because of this definition of P in terms of the gradient, the direction of F at any point is the direction of the steepest decrease of P at that point, its magnitude is the rate of that decrease per unit length.

In order for F to be described in terms of a scalar potential only, the following have to be true:

1. $-\int_a^b \mathbf{F}\cdot d\mathbf{l} = P(\mathbf{b})-P(\mathbf{a})$, where the integration is over a Jordan arc passing from location a to location b and P(b) is P evaluated at location b .
2. $\oint \mathbf{F}\cdot d\mathbf{l}=0$, where the integral is over any simple closed path, otherwise known as a Jordan curve.
3. ${\nabla}\times{\mathbf{F}} =0.$

The first of these conditions represents the fundamental theorem of the gradient and is true for any vector field that is a gradient of a differentiable single valued scalar field P. The second condition is a requirement of F so that it can be expressed as the gradient of a scalar function. The third condition re-expresses the second condition in terms of the curl of F using the fundamental theorem of the curl. A vector field F that satisfies these conditions is said to be irrotational (Conservative).

Scalar potentials play a prominent role in many areas of physics and engineering. The gravity potential is the scalar potential associated with the gravity per unit mass, i.e., the acceleration due to the field, as a function of position. The gravity potential is the gravitational potential energy per unit mass. In electrostatics the electric potential is the scalar potential associated with the electric field, i.e., with the electrostatic force per unit charge. The electric potential is in this case the electrostatic potential energy per unit charge. In fluid dynamics, irrotational lamellar fields have a scalar potential only in the special case when it is a Laplacian field. Certain aspects of the nuclear force can be described by a Yukawa potential. The potential play a prominent role in the Lagrangian and Hamiltonian formulations of classical mechanics. Further, the scalar potential is the fundamental quantity in quantum mechanics.

Not every vector field has a scalar potential. Those that do are called conservative, corresponding to the notion of conservative force in physics. Examples of non-conservative forces include frictional forces, magnetic forces, and in fluid mechanics a solenoidal field velocity field. By the Helmholtz decomposition theorem however, all vector fields can be describable in terms of a scalar potential and corresponding vector potential. In electrodynamics the electromagnetic scalar and vector potentials are known together as the electromagnetic four-potential.

## Integrability conditions

If F is a conservative vector field (also called irrotational, curl-free, or potential), and its components have continuous partial derivatives, the potential of F with respect to a reference point $\mathbf r_0$ is defined in terms of the line integral:

$V(\mathbf r) = -\int_C \mathbf{F}(\mathbf{r})\cdot\,d\mathbf{r} = -\int_a^b \mathbf{F}(\mathbf{r}(t))\cdot\mathbf{r}'(t)\,dt,$

where C is a parametrized path from $\mathbf r_0$ to $\mathbf r,$

$\mathbf{r}(t), a\leq t\leq b, \mathbf{r}(a)=\mathbf{r_0}, \mathbf{r}(b)=\mathbf{r}.$

The fact that the line integral depends on the path C only through its terminal points $\mathbf r_0$ and $\mathbf r$ is, in essence, the path independence property of a conservative vector field. The fundamental theorem of calculus for line integrals implies that if V is defined in this way, then $\mathbf{F}= -\nabla V,$ so that V is a scalar potential of the conservative vector field F. Scalar potential is not determined by the vector field alone: indeed, the gradient of a function is unaffected if a constant is added to it. If V is defined in terms of the line integral, the ambiguity of V reflects the freedom in the choice of the reference point $\mathbf r_0.$

## Altitude as gravitational potential energy

uniform gravitational field near the Earth's surface
Plot of a two-dimensional slice of the gravitational potential in and around a uniform spherical body. The inflection points of the cross-section are at the surface of the body.

An example is the (nearly) uniform gravitational field near the Earth's surface. It has a potential energy

$U = m g h$

where U is the gravitational potential energy and h is the height above the surface. This means that gravitational potential energy on a contour map is proportional to altitude. On a contour map, the two-dimensional negative gradient of the altitude is a two-dimensional vector field, whose vectors are always perpendicular to the contours and also perpendicular to the direction of gravity. But on the hilly region represented by the contour map, the three-dimensional negative gradient of U always points straight downwards in the direction of gravity; F. However, a ball rolling down a hill cannot move directly downwards due to the normal force of the hill's surface, which cancels out the component of gravity perpendicular to the hill's surface. The component of gravity that remains to move the ball is parallel to the surface:

$F_S = - m g \ \sin \theta$

where θ is the angle of inclination, and the component of FS perpendicular to gravity is

$F_P = - m g \ \sin \theta \ \cos \theta = - {1 \over 2} m g \sin 2 \theta.$

This force FP, parallel to the ground, is greatest when θ is 45 degrees.

Let Δh be the uniform interval of altitude between contours on the contour map, and let Δx be the distance between two contours. Then

$\theta = \tan^{-1}\frac{\Delta h}{\Delta x}$

so that

$F_P = - m g { \Delta x \, \Delta h \over \Delta x^2 + \Delta h^2 }.$

However, on a contour map, the gradient is inversely proportional to Δx, which is not similar to force FP: altitude on a contour map is not exactly a two-dimensional potential field. The magnitudes of forces are different, but the directions of the forces are the same on a contour map as well as on the hilly region of the Earth's surface represented by the contour map.

## Pressure as buoyant potential

In fluid mechanics, a fluid in equilibrium, but in the presence of a uniform gravitational field is permeated by a uniform buoyant force that cancels out the gravitational force: that is how the fluid maintains its equilibrium. This buoyant force is the negative gradient of pressure:

$\mathbf{f_B} = - \nabla p. \,$

Since buoyant force points upwards, in the direction opposite to gravity, then pressure in the fluid increases downwards. Pressure in a static body of water increases proportionally to the depth below the surface of the water. The surfaces of constant pressure are planes parallel to the ground. The surface of the water can be characterized as a plane with zero pressure.

If the liquid has a vertical vortex (whose axis of rotation is perpendicular to the ground), then the vortex causes a depression in the pressure field. The surfaces of constant pressure are parallel to the ground far away from the vortex, but near and inside the vortex the surfaces of constant pressure are pulled downwards, closer to the ground. This also happens to the surface of zero pressure. Therefore, inside the vortex, the top surface of the liquid is pulled downwards into a depression, or even into a tube (a solenoid).

The buoyant force due to a fluid on a solid object immersed and surrounded by that fluid can be obtained by integrating the negative pressure gradient along the surface of the object:

$F_B = - \oint_S \nabla p \cdot \, d\mathbf{S}.$

A moving airplane wing makes the air pressure above it decrease relative to the air pressure below it. This creates enough buoyant force to counteract gravity.

## Calculating the scalar potential

Given a vector field E, its scalar potential Φ can be calculated to be

$\phi(\vec{r}) = {1 \over 4 \pi} \iiint_{\vec{r}'} {\vec{\nabla}_{\vec{r}'} \bullet \vec{E}(\vec{r}') \over \| \vec{r} - \vec{r}' \|} \, d\tau'$

where dτ' is an infinitesimal volume element with respect to r'. Then, if E is irrotational (Conservative),

$\vec{E} = -\vec{\nabla} \phi = - {1 \over 4 \pi} \vec{\nabla} \iiint_{\vec{r}'} {\vec{\nabla}_{\vec{r}'} \bullet \vec{E}(\vec{r}') \over \| \vec{r} - \vec{r}' \|} \, d\tau'$

This formula is known to be correct if E is continuous and vanishes asymptotically to zero towards infinity, decaying faster than 1/r and if the divergence of E likewise vanishes towards infinity, decaying faster than 1/r2.

Proof:

Consider the equation $\vec{\nabla}\phi = -\vec{E}$.

Take the divergence of both sides to get:

$\vec{\nabla} \bullet \vec{\nabla}\phi = -\vec{\nabla} \bullet \vec{E} \iff \nabla^2\phi = -\vec{\nabla} \bullet \vec{E}$

The Green's function solution for the above Poisson's equation is:

$\phi(\vec{r}) = \frac{1}{4\pi}\iiint_{\vec{r}'} \frac{\vec{\nabla}_{\vec{r}'} \bullet \vec{E}(\vec{r}')}{\|\vec{r}-\vec{r}'\|}d\tau'$

Another formula can be derived from the above formula as follows:

$\phi(\vec{r}) = \frac{1}{4\pi}\iiint_{\vec{r}'} \frac{\vec{\nabla}_{\vec{r}'} \bullet \vec{E}(\vec{r}')}{\|\vec{r}-\vec{r}'\|}d\tau' = \frac{1}{4\pi}\left(\iiint_{\vec{r}'} \vec{\nabla}_{\vec{r}'} \bullet \frac{\vec{E}(\vec{r}')}{\|\vec{r}-\vec{r}'\|}d\tau' - \iiint_{\vec{r}'} \left(\vec{E}(\vec{r}') \bullet \vec{\nabla}_{\vec{r}'}\frac{1}{\|\vec{r} - \vec{r}'\|}\right)d\tau'\right)$

$= \frac{1}{4\pi}\left(\iint_{\vec{r}' \; \text{is at infinity}} \frac{\vec{E}(\vec{r}')}{\|\vec{r}-\vec{r}'\|} \bullet d\vec{A}' - \iiint_{\vec{r}'} \left(\vec{E}(\vec{r}') \bullet -\frac{\vec{r}' - \vec{r}}{\|\vec{r} - \vec{r}'\|^3}\right)d\tau'\right)$

$= -\frac{1}{4\pi}\iiint_{\vec{r}'} \frac{\vec{E}(\vec{r}') \bullet (\vec{r} - \vec{r}')}{\|\vec{r} - \vec{r}'\|^3}d\tau'$

Therefore, the scalar potential can also be computed using:

$\phi(\vec{r}) = -\frac{1}{4\pi}\iiint_{\vec{r}'} \frac{\vec{E}(\vec{r}') \bullet (\vec{r} - \vec{r}')}{\|\vec{r} - \vec{r}'\|^3}d\tau'$

## Calculating the Scalar Potential for n dimensions

A general formula for the scalar potential in $n \geq 3$ dimensions can be derived using an approach similar to the derivation of the Helmholtz decomposition theorem.

Let $A_n$ denote the "surface area" of a solid n-dimensional unit sphere embedded in $\mathbb{R}^n$.

Let $\vec{F}$ denote an irrotational/conservative vector field in $\mathbb{R}^n$. For any $i, j \in \{1, 2, \dots, n\}$, it is the case that $\frac{\partial}{\partial x_i}F_j - \frac{\partial}{\partial x_j}F_i = 0$.

$\vec{F}(\vec{r}) = \int_{\vec{r}' \in \mathbb{R}^n}^{} \delta^n(\vec{r} - \vec{r}')\vec{F}(\vec{r}')d\tau'$ $= \frac{1}{A_n}\int_{\vec{r}' \in \mathbb{R}^n}^{} \left(\vec{\nabla}_{\vec{r}} \bullet{} \frac{\vec{r}-\vec{r}'}{|\vec{r}-\vec{r}'|^n}\right)\vec{F}(\vec{r}')d\tau'$

$= \frac{-1}{(n-2)A_n}\int_{\vec{r}' \in \mathbb{R}^n}^{} \left(\nabla^2_{\vec{r}}\frac{1}{|\vec{r}-\vec{r}'|^{n-2}}\right)\vec{F}(\vec{r}')d\tau'$ $= \frac{-1}{(n-2)A_n}\nabla^2_{\vec{r}}\int_{\vec{r}' \in \mathbb{R}^n}^{} \frac{1}{|\vec{r}-\vec{r}'|^{n-2}}\vec{F}(\vec{r}')d\tau'$

We will now prove that the vector field $\int_{\vec{r}' \in \mathbb{R}^n}^{} {\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}\vec{F}(\vec{r}')d\tau'}$ is irrotational.

Let $i, j \in \{1, 2, \dots, n\}$ be arbitrary and assume that $i \neq j$. We need to prove that

$\frac{\partial}{\partial x_i} \int_{\vec{r}' \in \mathbb{R}^n}^{} {\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}F_j(\vec{r}')d\tau'} - \frac{\partial}{\partial x_j} \int_{\vec{r}' \in \mathbb{R}^n}^{} {\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}F_i(\vec{r}')d\tau'} = 0$

$\frac{\partial}{\partial x_i} \int_{\vec{r}' \in \mathbb{R}^n}^{} {\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}F_j(\vec{r}')d\tau'} - \frac{\partial}{\partial x_j} \int_{\vec{r}' \in \mathbb{R}^n}^{} {\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}F_i(\vec{r}')d\tau'}$

$= \int_{\vec{r}' \in \mathbb{R}^n}^{} {\left(\frac{\partial}{\partial x_i}\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}\right)F_j(\vec{r}')d\tau'} - \int_{\vec{r}' \in \mathbb{R}^n}^{} {\left(\frac{\partial}{\partial x_j}\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}\right)F_i(\vec{r}')d\tau'}$

$= \int_{\vec{r}' \in \mathbb{R}^n}^{} {-\left(\frac{\partial}{{\partial x_i'}}\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}\right)F_j(\vec{r}')d\tau'} - \int_{\vec{r}' \in \mathbb{R}^n}^{} {-\left(\frac{\partial}{{\partial x_j'}}\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}\right)F_i(\vec{r}')d\tau'}$

$= \int_{\vec{r}' \in \mathbb{R}^n}^{} {\bigg(-\left(\frac{\partial}{{\partial x_i'}}\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}\right)F_j(\vec{r}') + \left(\frac{\partial}{{\partial x_j'}}\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}\right)F_i(\vec{r}')\bigg)d\tau'}$

$= \int_{\vec{r}' \in \mathbb{R}^n}^{} {\bigg(-\frac{\partial}{{\partial x_i'}}\left(\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}F_j(\vec{r}')\right) + \frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}\frac{\partial}{{\partial x_i'}}F_j(\vec{r}') + \frac{\partial}{{\partial x_j'}}\left(\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}F_i(\vec{r}')\right) - \frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}\frac{\partial}{{\partial x_j'}}F_i(\vec{r}')\bigg)d\tau'}$

$= \int_{\vec{r}' \in \mathbb{R}^n}^{} {\bigg(-\frac{\partial}{{\partial x_i'}}\left(\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}F_j(\vec{r}')\right) + \frac{\partial}{{\partial x_j'}}\left(\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}F_i(\vec{r}')\right) + \frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}\left(\frac{\partial}{{\partial x_i'}}F_j(\vec{r}') - \frac{\partial}{{\partial x_j'}}F_i(\vec{r}')\right)\bigg)d\tau'}$

Since $\vec{F}$ is irrotational, the above expression equals:

$= \int_{\vec{r}' \in \mathbb{R}^n}^{} {\bigg(-\frac{\partial}{{\partial x_i'}}\left(\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}F_j(\vec{r}')\right) + \frac{\partial}{{\partial x_j'}}\left(\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}F_i(\vec{r}')\right)\bigg)d\tau'}$

$= -\int_{\vec{r}' \in \mathbb{R}^n}^{} {\bigg(\frac{\partial}{{\partial x_i'}}\left(\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}F_j(\vec{r}')\right) - \frac{\partial}{{\partial x_j'}}\left(\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}F_i(\vec{r}')\right)\bigg)d\tau'}$

If we hold constant all co-ordinates except $x_i$ and $x_j$, integrating over $x_i$ and $x_j$ using Green's theorem yields the following curve integral embedded in the $x_i, x_j$ plane:

$-{\oint_{\vec{r}' \text{ is at infinity}} {\bigg(\left(\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}F_i(\vec{r}')\right)\hat{x}_i + \left(\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}F_j(\vec{r}')\right)\hat{x}_j\bigg) \bullet{} d\vec{r}'}}$

For the total integral to approach 0 at infinity, it must be the case that the above curve integral is $o(|\vec{r}'|^{-(n-2)})$ as the boundary approaches infinity. This is the case if $\vec{F}(\vec{r})$ is $o(|\vec{r}|^{-1})$ as $\vec{r}$ approaches infinity. Therefore $\int_{\vec{r}' \in \mathbb{R}^n}^{} {\frac{1}{|{\vec{r}-\vec{r}'}|^{n-2}}\vec{F}(\vec{r}')d\tau'}$ is irrotational.

For an irrotational vector field $\vec{G}$, it can be shown that

$\nabla^2\vec{G} = \vec{\nabla}(\vec{\nabla} \bullet{} \vec{G})$

Therefore:

$\vec{F}(\vec{r}) = \vec{\nabla}_{\vec{r}}\bigg(\frac{-1}{(n-2)A_n}\vec{\nabla}_{\vec{r}} \bullet{} \int_{\vec{r}' \in \mathbb{R}^n}^{} {\frac{1}{|\vec{r}-\vec{r}'|^{n-2}}\vec{F}(\vec{r}')d\tau'}\bigg)$

$= \vec{\nabla}_{\vec{r}}\bigg(\frac{-1}{(n-2)A_n}\int_{\vec{r}' \in \mathbb{R}^n}^{} {\vec{\nabla}_{\vec{r}} \bullet{} \bigg(\frac{1}{|\vec{r}-\vec{r}'|^{n-2}}\vec{F}(\vec{r}')\bigg)d\tau'}\bigg)$

$= \vec{\nabla}_{\vec{r}}\bigg(\frac{-1}{(n-2)A_n}\int_{\vec{r}' \in \mathbb{R}^n}^{} {\bigg(\vec{\nabla}_{\vec{r}} \frac{1}{|\vec{r}-\vec{r}'|^{n-2}}\bigg) \bullet{} \vec{F}(\vec{r}')d\tau'}\bigg)$

$= \vec{\nabla}_{\vec{r}}\bigg(\frac{1}{A_n}\int_{\vec{r}' \in \mathbb{R}^n}^{} {\frac{\vec{r}-\vec{r}'}{|\vec{r}-\vec{r}'|^n} \bullet{} \vec{F}(\vec{r}')d\tau'}\bigg)$

$= \vec{\nabla}_{\vec{r}}\bigg(\frac{1}{A_n}\int_{\vec{r}' \in \mathbb{R}^n}^{} {\frac{{(\vec{r}-\vec{r}') \bullet{} \vec{F}(\vec{r}')}}{|\vec{r}-\vec{r}'|^n}d\tau'}\bigg)$

In conclusion:

$\phi(\vec{r}) = -{\frac{1}{A_n}\int_{\vec{r}' \in \mathbb{R}^n}^{} {\frac{{(\vec{r}-\vec{r}') \bullet{} \vec{F}(\vec{r}')}}{|\vec{r}-\vec{r}'|^n}d\tau'}}$

is a valid scalar potential for $\vec{F}$.