# Helmholtz decomposition

In physics and mathematics, in the area of vector calculus, Helmholtz's theorem, also known as the fundamental theorem of vector calculus, states that any sufficiently smooth, rapidly decaying vector field in three dimensions can be resolved into the sum of an irrotational (curl-free) vector field and a solenoidal (divergence-free) vector field; this is known as the Helmholtz decomposition or Helmholtz representation. It is named after Hermann von Helmholtz.

## Definition

For a vector field $\mathbf {F} \in C^{1}(V,\mathbb {R} ^{n})$  defined on a domain $V\subseteq \mathbb {R} ^{n}$ , a Helmholtz decomposition is a pair of vector fields $\mathbf {G} \in C^{1}(V,\mathbb {R} ^{n})$  and $\mathbf {R} \in C^{1}(V,\mathbb {R} ^{n})$  such that:

{\begin{aligned}\mathbf {F} (\mathbf {r} )&=\mathbf {G} (\mathbf {r} )+\mathbf {R} (\mathbf {r} ),\\\mathbf {G} (\mathbf {r} )&=-\nabla \Phi (\mathbf {r} ),\\\nabla \mathbf {R} (\mathbf {r} )&=0.\end{aligned}}

Here, $\Phi \in C^{2}(V,\mathbb {R} )$  is a scalar potential, $\nabla \Phi$  is its gradient, and $\nabla \mathbf {R}$  is the divergence. The irrotational vector field $\mathbf {G}$  is called a gradient field and $\mathbf {R}$  is called a solenoidal field or rotation field. This decomposition does not exist for all vector fields and is not unique.

## History

The Helmholtz decomposition in three dimensions was first described in 1849 by George Gabriel Stokes for a theory of diffraction. Hermann von Helmholtz published his paper on some hydrodynamic basic equations in 1858, which was part of his research on the Helmholtz's theorems describing the motion of fluid in the vicinity of vortex lines. Their derivation required the vector fields to decay sufficiently fast at infinity. Later, this condition could be relaxed, and the Helmholtz decomposition could be extended to higher dimensions. For riemannian manifolds, the Helmholtz-Hodge decomposition using differential geometry and tensor calculus was derived.

The decomposition has become an important tool for many problems in theoretical physics, but has also found applications in animation, computer vision as well as robotics.

## Three-dimensional space

Many physics textbooks restrict the Helmholtz decomposition to the three-dimensional space and limit its application to vector fields that decay sufficiently fast at infinity or to bump function that are defined on a bounded domain. Then, a vector potential $A$  can be defined, such that the rotation field is given by $\mathbf {R} =\nabla \times \mathbf {A}$ , using the Curl of a vector field.

Let $\mathbf {F}$  be a vector field on a bounded domain $V\subseteq \mathbb {R} ^{3}$ , which is twice continuously differentiable inside $V$ , and let $S$  be the surface that encloses the domain $V$ . Then $\mathbf {F}$  can be decomposed into a curl-free component and a divergence-free component as follows:

$\mathbf {F} =-\nabla \Phi +\nabla \times \mathbf {A} ,$

where
{\begin{aligned}\Phi (\mathbf {r} )&={\frac {1}{4\pi }}\int _{V}{\frac {\nabla '\cdot \mathbf {F} (\mathbf {r} ')}{|\mathbf {r} -\mathbf {r} '|}}\,\mathrm {d} V'-{\frac {1}{4\pi }}\oint _{S}\mathbf {\hat {n}} '\cdot {\frac {\mathbf {F} (\mathbf {r} ')}{|\mathbf {r} -\mathbf {r} '|}}\,\mathrm {d} S'\\[8pt]\mathbf {A} (\mathbf {r} )&={\frac {1}{4\pi }}\int _{V}{\frac {\nabla '\times \mathbf {F} (\mathbf {r} ')}{|\mathbf {r} -\mathbf {r} '|}}\,\mathrm {d} V'-{\frac {1}{4\pi }}\oint _{S}\mathbf {\hat {n}} '\times {\frac {\mathbf {F} (\mathbf {r} ')}{|\mathbf {r} -\mathbf {r} '|}}\,\mathrm {d} S'\end{aligned}}

and $\nabla '$  is the nabla operator with respect to $\mathbf {r'}$ , not $\mathbf {r}$ .

If $V=\mathbb {R} ^{3}$  and is therefore unbounded, and $\mathbf {F}$  vanishes at least as fast as $1/r$  as $r\to \infty$ , then one has

{\begin{aligned}\Phi (\mathbf {r} )&={\frac {1}{4\pi }}\int _{\mathbb {R} ^{3}}{\frac {\nabla '\cdot \mathbf {F} (\mathbf {r} ')}{|\mathbf {r} -\mathbf {r} '|}}\,\mathrm {d} V'\\[8pt]\mathbf {A} (\mathbf {r} )&={\frac {1}{4\pi }}\int _{\mathbb {R} ^{3}}{\frac {\nabla '\times \mathbf {F} (\mathbf {r} ')}{|\mathbf {r} -\mathbf {r} '|}}\,\mathrm {d} V'\end{aligned}}

This holds in particular if $\mathbf {F}$  is twice continuously differentiable in $\mathbb {R} ^{3}$  and of bounded support.

### Derivation

Proof

Suppose we have a vector function $\mathbf {F} (\mathbf {r} )$  of which we know the curl, $\nabla \times \mathbf {F}$ , and the divergence, $\nabla \cdot \mathbf {F}$ , in the domain and the fields on the boundary. Writing the function using delta function in the form

$\delta ^{3}(\mathbf {r} -\mathbf {r} ')=-{\frac {1}{4\pi }}\nabla ^{2}{\frac {1}{|\mathbf {r} -\mathbf {r} '|}}\,,$

where $\nabla ^{2}:=\nabla \cdot \nabla$  is the Laplace operator, we have

{\begin{aligned}\mathbf {F} (\mathbf {r} )&=\int _{V}\mathbf {F} \left(\mathbf {r} '\right)\delta ^{3}(\mathbf {r} -\mathbf {r} ')\mathrm {d} V'\\&=\int _{V}\mathbf {F} (\mathbf {r} ')\left(-{\frac {1}{4\pi }}\nabla ^{2}{\frac {1}{\left|\mathbf {r} -\mathbf {r} '\right|}}\right)\mathrm {d} V'\\&=-{\frac {1}{4\pi }}\nabla ^{2}\int _{V}{\frac {\mathbf {F} (\mathbf {r} ')}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'\\&=-{\frac {1}{4\pi }}\left[\nabla \left(\nabla \cdot \int _{V}{\frac {\mathbf {F} (\mathbf {r} ')}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'\right)-\nabla \times \left(\nabla \times \int _{V}{\frac {\mathbf {F} (\mathbf {r} ')}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'\right)\right]\\&=-{\frac {1}{4\pi }}\left[\nabla \left(\int _{V}\mathbf {F} (\mathbf {r} ')\cdot \nabla {\frac {1}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'\right)+\nabla \times \left(\int _{V}\mathbf {F} (\mathbf {r} ')\times \nabla {\frac {1}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'\right)\right]\\&=-{\frac {1}{4\pi }}\left[-\nabla \left(\int _{V}\mathbf {F} (\mathbf {r} ')\cdot \nabla '{\frac {1}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'\right)-\nabla \times \left(\int _{V}\mathbf {F} (\mathbf {r} ')\times \nabla '{\frac {1}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'\right)\right]\end{aligned}}

where we have used the definition of the vector Laplacian:

$\nabla ^{2}\mathbf {a} =\nabla (\nabla \cdot \mathbf {a} )-\nabla \times (\nabla \times \mathbf {a} )\ ,$

differentiation/integration with respect to $\mathbf {r} '$ by $\nabla '/\mathrm {d} V',$  and in the last line, linearity of function arguments:

$\nabla {\frac {1}{\left|\mathbf {r} -\mathbf {r} '\right|}}=-\nabla '{\frac {1}{\left|\mathbf {r} -\mathbf {r} '\right|}}\ .$

Then using the vectorial identities

{\begin{aligned}\mathbf {a} \cdot \nabla \psi &=-\psi (\nabla \cdot \mathbf {a} )+\nabla \cdot (\psi \mathbf {a} )\\\mathbf {a} \times \nabla \psi &=\psi (\nabla \times \mathbf {a} )-\nabla \times (\psi \mathbf {a} )\end{aligned}}

we get

{\begin{aligned}\mathbf {F} (\mathbf {r} )=-{\frac {1}{4\pi }}{\bigg [}&-\nabla \left(-\int _{V}{\frac {\nabla '\cdot \mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'+\int _{V}\nabla '\cdot {\frac {\mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'\right)\\&-\nabla \times \left(\int _{V}{\frac {\nabla '\times \mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'-\int _{V}\nabla '\times {\frac {\mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'\right){\bigg ]}.\end{aligned}}

Thanks to the divergence theorem the equation can be rewritten as

{\begin{aligned}\mathbf {F} (\mathbf {r} )&=-{\frac {1}{4\pi }}{\bigg [}-\nabla \left(-\int _{V}{\frac {\nabla '\cdot \mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'+\oint _{S}\mathbf {\hat {n}} '\cdot {\frac {\mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} S'\right)\\&\qquad \qquad -\nabla \times \left(\int _{V}{\frac {\nabla '\times \mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'-\oint _{S}\mathbf {\hat {n}} '\times {\frac {\mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} S'\right){\bigg ]}\\&=-\nabla \left[{\frac {1}{4\pi }}\int _{V}{\frac {\nabla '\cdot \mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'-{\frac {1}{4\pi }}\oint _{S}\mathbf {\hat {n}} '\cdot {\frac {\mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} S'\right]\\&\quad +\nabla \times \left[{\frac {1}{4\pi }}\int _{V}{\frac {\nabla '\times \mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'-{\frac {1}{4\pi }}\oint _{S}\mathbf {\hat {n}} '\times {\frac {\mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} S'\right]\end{aligned}}

with outward surface normal $\mathbf {\hat {n}} '$ .

Defining

$\Phi (\mathbf {r} )\equiv {\frac {1}{4\pi }}\int _{V}{\frac {\nabla '\cdot \mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'-{\frac {1}{4\pi }}\oint _{S}\mathbf {\hat {n}} '\cdot {\frac {\mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} S'$

$\mathbf {A} (\mathbf {r} )\equiv {\frac {1}{4\pi }}\int _{V}{\frac {\nabla '\times \mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'-{\frac {1}{4\pi }}\oint _{S}\mathbf {\hat {n}} '\times {\frac {\mathbf {F} \left(\mathbf {r} '\right)}{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} S'$

we finally obtain

$\mathbf {F} =-\nabla \Phi +\nabla \times \mathbf {A} .$

### Fields with prescribed divergence and curl

The term "Helmholtz theorem" can also refer to the following. Let C be a solenoidal vector field and d a scalar field on R3 which are sufficiently smooth and which vanish faster than 1/r2 at infinity. Then there exists a vector field F such that

$\nabla \cdot \mathbf {F} =d\quad {\text{ and }}\quad \nabla \times \mathbf {F} =\mathbf {C} ;$

if additionally the vector field F vanishes as r → ∞, then F is unique.

In other words, a vector field can be constructed with both a specified divergence and a specified curl, and if it also vanishes at infinity, it is uniquely specified by its divergence and curl. This theorem is of great importance in electrostatics, since Maxwell's equations for the electric and magnetic fields in the static case are of exactly this type. The proof is by a construction generalizing the one given above: we set

$\mathbf {F} =-\nabla ({\mathcal {G}}(d))+\nabla \times ({\mathcal {G}}(\mathbf {C} )),$

where ${\mathcal {G}}$  represents the Newtonian potential operator. (When acting on a vector field, such as ∇ × F, it is defined to act on each component.)

### Weak formulation

The Helmholtz decomposition can be generalized by reducing the regularity assumptions (the need for the existence of strong derivatives). Suppose Ω is a bounded, simply-connected, Lipschitz domain. Every square-integrable vector field u ∈ (L2(Ω))3 has an orthogonal decomposition:

$\mathbf {u} =\nabla \varphi +\nabla \times \mathbf {A}$

where φ is in the Sobolev space H1(Ω) of square-integrable functions on Ω whose partial derivatives defined in the distribution sense are square integrable, and AH(curl, Ω), the Sobolev space of vector fields consisting of square integrable vector fields with square integrable curl.

For a slightly smoother vector field uH(curl, Ω), a similar decomposition holds:

$\mathbf {u} =\nabla \varphi +\mathbf {v}$

where φH1(Ω), v ∈ (H1(Ω))d.

### Derivation from the Fourier transform

Note that in the theorem stated here, we have imposed the condition that if $\mathbf {F}$  is not defined on a bounded domain, then $\mathbf {F}$  shall decay faster than $1/r$ . Thus, the Fourier transform of $\mathbf {F}$ , denoted as $\mathbf {G}$ , is guaranteed to exist. We apply the convention

$\mathbf {F} (\mathbf {r} )=\iiint \mathbf {G} (\mathbf {k} )e^{i\mathbf {k} \cdot \mathbf {r} }dV_{k}$

The Fourier transform of a scalar field is a scalar field, and the Fourier transform of a vector field is a vector field of same dimension.

Now consider the following scalar and vector fields:

{\begin{aligned}G_{\Phi }(\mathbf {k} )&=i{\frac {\mathbf {k} \cdot \mathbf {G} (\mathbf {k} )}{\|\mathbf {k} \|^{2}}}\\\mathbf {G} _{\mathbf {A} }(\mathbf {k} )&=i{\frac {\mathbf {k} \times \mathbf {G} (\mathbf {k} )}{\|\mathbf {k} \|^{2}}}\\[8pt]\Phi (\mathbf {r} )&=\iiint G_{\Phi }(\mathbf {k} )e^{i\mathbf {k} \cdot \mathbf {r} }dV_{k}\\\mathbf {A} (\mathbf {r} )&=\iiint \mathbf {G} _{\mathbf {A} }(\mathbf {k} )e^{i\mathbf {k} \cdot \mathbf {r} }dV_{k}\end{aligned}}

Hence

{\begin{aligned}\mathbf {G} (\mathbf {k} )&=-i\mathbf {k} G_{\Phi }(\mathbf {k} )+i\mathbf {k} \times \mathbf {G} _{\mathbf {A} }(\mathbf {k} )\\[6pt]\mathbf {F} (\mathbf {r} )&=-\iiint i\mathbf {k} G_{\Phi }(\mathbf {k} )e^{i\mathbf {k} \cdot \mathbf {r} }dV_{k}+\iiint i\mathbf {k} \times \mathbf {G} _{\mathbf {A} }(\mathbf {k} )e^{i\mathbf {k} \cdot \mathbf {r} }dV_{k}\\&=-\nabla \Phi (\mathbf {r} )+\nabla \times \mathbf {A} (\mathbf {r} )\end{aligned}}

### Longitudinal and transverse fields

A terminology often used in physics refers to the curl-free component of a vector field as the longitudinal component and the divergence-free component as the transverse component. This terminology comes from the following construction: Compute the three-dimensional Fourier transform ${\hat {\mathbf {F} }}$  of the vector field $\mathbf {F}$ . Then decompose this field, at each point k, into two components, one of which points longitudinally, i.e. parallel to k, the other of which points in the transverse direction, i.e. perpendicular to k. So far, we have

${\hat {\mathbf {F} }}(\mathbf {k} )={\hat {\mathbf {F} }}_{t}(\mathbf {k} )+{\hat {\mathbf {F} }}_{l}(\mathbf {k} )$

$\mathbf {k} \cdot {\hat {\mathbf {F} }}_{t}(\mathbf {k} )=0.$

$\mathbf {k} \times {\hat {\mathbf {F} }}_{l}(\mathbf {k} )=\mathbf {0} .$

Now we apply an inverse Fourier transform to each of these components. Using properties of Fourier transforms, we derive:

$\mathbf {F} (\mathbf {r} )=\mathbf {F} _{t}(\mathbf {r} )+\mathbf {F} _{l}(\mathbf {r} )$

$\nabla \cdot \mathbf {F} _{t}(\mathbf {r} )=0$

$\nabla \times \mathbf {F} _{l}(\mathbf {r} )=\mathbf {0}$

Since $\nabla \times (\nabla \Phi )=0$  and $\nabla \cdot (\nabla \times \mathbf {A} )=0$ ,

we can get

$\mathbf {F} _{t}=\nabla \times \mathbf {A} ={\frac {1}{4\pi }}\nabla \times \int _{V}{\frac {\nabla '\times \mathbf {F} }{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'$

$\mathbf {F} _{l}=-\nabla \Phi =-{\frac {1}{4\pi }}\nabla \int _{V}{\frac {\nabla '\cdot \mathbf {F} }{\left|\mathbf {r} -\mathbf {r} '\right|}}\mathrm {d} V'$

so this is indeed the Helmholtz decomposition.

## Generalization to higher dimensions

### Matrix approach

The generalization to $d$  dimensions cannot be done with a vector potential, since the rotation operator and the cross product are defined only in three dimensions.

Let $\mathbf {F}$  be a vector field on a bounded domain $V\subseteq \mathbb {R} ^{d}$  which decays faster then $|\mathbf {r} |^{-\delta }$  for $|\mathbf {r} |\to \infty$  and $\delta >2$ .

The scalar potential is defined similar to the three dimensional case as:

$\Phi (\mathbf {r} )=-\int _{\mathbb {R} ^{d}}\operatorname {div} (\mathbf {F} (\mathbf {r} '))K(\mathbf {r} ,\mathbf {r} ')\mathrm {d} V'=-\int _{\mathbb {R} ^{d}}\sum _{i}{\frac {\partial F_{i}}{\partial r_{i}}}(\mathbf {r} ')K(\mathbf {r} ,\mathbf {r} ')\mathrm {d} V',$

where as the integration kernel $K(\mathbf {r} ,\mathbf {r} ')$  is again the fundamental solution of Laplace's equation, but in d-dimensional space:
$K(\mathbf {r} ,\mathbf {r} ')={\begin{cases}{\frac {1}{2\pi }}\log {|\mathbf {r} -\mathbf {r} '|}&d=2,\\{\frac {1}{d(2-d)V_{d}}}|\mathbf {r} -\mathbf {r} '|^{2-d}&{\text{otherwise}},\end{cases}}$

with $V_{d}=\pi ^{\frac {d}{2}}/\Gamma {\big (}{\tfrac {d}{2}}+1{\big )}$  the volume of the d-dimensional unit balls and $\Gamma (\mathbf {r} )$  the gamma function.

For $d=3$ , $V_{d}$  is just equal to ${\frac {4\pi }{3}}$ , yielding the same prefactor as above. The rotational potential is an antisymmetric matrix with the elements:

$A_{ij}(\mathbf {r} )=\int _{\mathbb {R} ^{d}}\left({\frac {\partial F_{i}}{\partial x_{j}}}(\mathbf {r} ')-{\frac {\partial F_{j}}{\partial x_{i}}}(\mathbf {r} ')\right)K(\mathbf {r} ,\mathbf {r} ')\mathrm {d} V'.$

Above the diagonal are $\textstyle {\binom {d}{2}}$  entries which occur again mirrored at the diagonal, but with a negative sign. In the three-dimensional case, the matrix elements just correspond to the components of the vector potential $\mathbf {A} =[A_{1},A_{2},A_{3}]=[A_{23},A_{31},A_{12}]$ . However, such a matrix potential can be written as a vector only in the three-dimensional case, because $\textstyle {\binom {d}{2}}=d$  is valid only for $d=3$ .

As in the three-dimensional case, the gradient field is defined as

$\mathbf {G} (\mathbf {r} )=-\nabla \Phi (\mathbf {r} ).$

The rotational field, on the other hand, is defined in the general case as the row divergence of the matrix:
$\mathbf {R} (\mathbf {r} )=\left[\sum \nolimits _{k}\partial _{r_{k}}A_{ik}(\mathbf {r} );{1\leq i\leq d}\right].$

In three-dimensional space, this is equivalent to the rotation of the vector potential.

### Tensor approach

In a $d$ -dimensional vector space with $d\neq 3$ , ${\textstyle -{\frac {1}{4\pi \left|\mathbf {r} -\mathbf {r} '\right|}}}$  can be replaced by the appropriate Green's function for the Laplacian, defined by

$\nabla ^{2}G(\mathbf {r} ,\mathbf {r} ')={\frac {\partial }{\partial r_{\mu }}}{\frac {\partial }{\partial r_{\mu }}}G(\mathbf {r} ,\mathbf {r} ')=\delta ^{d}(\mathbf {r} -\mathbf {r} ')$

where Einstein summation convention is used for the index $\mu$ . For example, ${\textstyle G(\mathbf {r} ,\mathbf {r} ')={\frac {1}{2\pi }}\ln \left|\mathbf {r} -\mathbf {r} '\right|}$  in 2D.

Following the same steps as above, we can write

$F_{\mu }(\mathbf {r} )=\int _{V}F_{\mu }(\mathbf {r} '){\frac {\partial }{\partial r_{\mu }}}{\frac {\partial }{\partial r_{\mu }}}G(\mathbf {r} ,\mathbf {r} ')\,\mathrm {d} ^{d}\mathbf {r} '=\delta _{\mu \nu }\delta _{\rho \sigma }\int _{V}F_{\nu }(\mathbf {r} '){\frac {\partial }{\partial r_{\rho }}}{\frac {\partial }{\partial r_{\sigma }}}G(\mathbf {r} ,\mathbf {r} ')\,\mathrm {d} ^{d}\mathbf {r} '$

where $\delta _{\mu \nu }$  is the Kronecker delta (and the summation convention is again used). In place of the definition of the vector Laplacian used above, we now make use of an identity for the Levi-Civita symbol $\varepsilon$ ,
$\varepsilon _{\alpha \mu \rho }\varepsilon _{\alpha \nu \sigma }=(d-2)!(\delta _{\mu \nu }\delta _{\rho \sigma }-\delta _{\mu \sigma }\delta _{\nu \rho })$

which is valid in $d\geq 2$  dimensions, where $\alpha$  is a $(d-2)$ -component multi-index. This gives
$F_{\mu }(\mathbf {r} )=\delta _{\mu \sigma }\delta _{\nu \rho }\int _{V}F_{\nu }(\mathbf {r} '){\frac {\partial }{\partial r_{\rho }}}{\frac {\partial }{\partial r_{\sigma }}}G(\mathbf {r} ,\mathbf {r} ')\,\mathrm {d} ^{d}\mathbf {r} '+{\frac {1}{(d-2)!}}\varepsilon _{\alpha \mu \rho }\varepsilon _{\alpha \nu \sigma }\int _{V}F_{\nu }(\mathbf {r} '){\frac {\partial }{\partial r_{\rho }}}{\frac {\partial }{\partial r_{\sigma }}}G(\mathbf {r} ,\mathbf {r} ')\,\mathrm {d} ^{d}\mathbf {r} '$

We can therefore write

$F_{\mu }(\mathbf {r} )=-{\frac {\partial }{\partial r_{\mu }}}\Phi (\mathbf {r} )+\varepsilon _{\mu \rho \alpha }{\frac {\partial }{\partial r_{\rho }}}A_{\alpha }(\mathbf {r} )$

where
{\begin{aligned}\Phi (\mathbf {r} )&=-\int _{V}F_{\nu }(\mathbf {r} '){\frac {\partial }{\partial r_{\nu }}}G(\mathbf {r} ,\mathbf {r} ')\,\mathrm {d} ^{d}\mathbf {r} '\\A_{\alpha }&={\frac {1}{(d-2)!}}\varepsilon _{\alpha \nu \sigma }\int _{V}F_{\nu }(\mathbf {r} '){\frac {\partial }{\partial r_{\sigma }}}G(\mathbf {r} ,\mathbf {r} ')\,\mathrm {d} ^{d}\mathbf {r} '\end{aligned}}

Note that the vector potential is replaced by a rank-$(d-2)$  tensor in $d$  dimensions.

For a further generalization to manifolds, see the discussion of Hodge decomposition below.

## Differential forms

The Hodge decomposition is closely related to the Helmholtz decomposition, generalizing from vector fields on R3 to differential forms on a Riemannian manifold M. Most formulations of the Hodge decomposition require M to be compact. Since this is not true of R3, the Hodge decomposition theorem is not strictly a generalization of the Helmholtz theorem. However, the compactness restriction in the usual formulation of the Hodge decomposition can be replaced by suitable decay assumptions at infinity on the differential forms involved, giving a proper generalization of the Helmholtz theorem.

## Extensions to fields not decaying at infinity

Most textbooks only deal with vector fields decaying faster then $|\mathbf {r} |^{-\delta }$  with $\delta >1$  at infinity. However, Otto Blumenthal showed in 1905 that an adapted integration kernel can be used to integrate fields decaying faster than $|\mathbf {r} |^{-\delta }$  with $\delta >0$ , which is substantially less strict. To achieve this, the kernel $K(\mathbf {r} ,\mathbf {r} ')$  in the convolution integrals has to be replaced by $K'(\mathbf {r} ,\mathbf {r} ')=K(\mathbf {r} ,\mathbf {r} ')-K(0,\mathbf {r} ')$ . With even more complex integration kernels, solutions can be found even for divergent functions that need not grow faster than polynomial.

For all analytic vector fields that need not go to zero even at infinity, methods based on partial integration and the Cauchy formula for repeated integration can be used to compute closed-form solutions of the rotation and scalar potentials, as in the case of multivariate polynomial, sine, cosine, and exponential functions.

## Uniqueness of the solution

In general, the Helmholtz decomposition is not uniquely defined. A harmonic function $H(\mathbf {r} )$  is a function that satisfies $\Delta H(\mathbf {r} )=0$ . By adding $H(\mathbf {r} )$  to the scalar potential $\Phi (\mathbf {r} )$ , a different Helmholtz decomposition can be obtained:

{\begin{aligned}\mathbf {G} '(\mathbf {r} )&=\nabla (\Phi (\mathbf {r} )+H(\mathbf {r} ))=\mathbf {G} (\mathbf {r} )+\nabla H(\mathbf {r} ),\\\mathbf {R} '(\mathbf {r} )&=\mathbf {R} (\mathbf {r} )-\nabla H(\mathbf {r} ).\end{aligned}}

For vector fields $\mathbf {F}$ , decaying at infinity, it is a plausible choice that scalar and rotation potentials also decay at infinity. Because $H(\mathbf {r} )=0$  is the only harmonic function with this property, which follows from Liouville's theorem, this guarantees the uniqueness of the gradient and rotation fields.

This uniqueness does not apply to the potentials: In the three-dimensional case, the scalar and vector potential jointly have four components, whereas the vector field has only three. The vector field is invariant to gauge transformations and the choice of appropriate potentials known as gauge fixing is the subject of gauge theory. Important examples from physics are the Lorenz gauge condition and the Coulomb gauge. An alternative is to use the poloidal–toroidal decomposition.

## Applications

### Electrodynamics

The Helmholtz theorem is of particular interest in electrodynamics, since it can be used to write Maxwell's equations in the potential image and solve them more easily. The Helmholtz decomposition can be used to prove that, given electric current density and charge density, the electric field and the magnetic flux density can be determined. They are unique if the densities vanish at infinity and one assumes the same for the potentials.

### Fluid dynamics

In fluid dynamics, the Helmholtz projection plays an important role, especially for the solvability theory of the Navier-Stokes equations. If the Helmholtz projection is applied to the linearized incompressible Navier-Stokes equations, the Stokes equation is obtained. This depends only on the velocity of the particles in the flow, but no longer on the static pressure, allowing the equation to be reduced to one unknown. However, both equations, the Stokes and linearized equations, are equivalent. The operator $P\Delta$  is called the Stokes operator.

### Dynamical systems theory

In the theory of dynamical systems, Helmholtz decomposition can be used to determine "quasipotentials" as well as to compute Lyapunov functions in some cases.

For some dynamical systems such as the Lorenz system (Edward N. Lorenz, 1963), a simplified model for atmospheric convection, a closed-form expression of the Helmholtz decomposition can be obtained:

${\dot {\mathbf {r} }}=\mathbf {F} (\mathbf {r} )={\big [}a(r_{2}-r_{1}),r_{1}(b-r_{3})-r_{2},r_{1}r_{2}-cr_{3}{\big ]}.$

The Helmholtz decomposition of $\mathbf {F} (\mathbf {r} )$ , with the scalar potential $\Phi (\mathbf {r} )={\tfrac {a}{2}}r_{1}^{2}+{\tfrac {1}{2}}r_{2}^{2}+{\tfrac {c}{2}}r_{3}^{2}$  is given as:

$\mathbf {G} (\mathbf {r} )={\big [}-ar_{1},-r_{2},-cr_{3}{\big ]},$

$\mathbf {R} (\mathbf {r} )={\big [}+ar_{2},br_{1}-r_{1}r_{3},r_{1}r_{2}{\big ]}.$

The quadratic scalar potential provides motion in the direction of the coordinate origin, which is responsible for the stable fix point for some parameter range. For other parameters, the rotation field ensures that a strange attractor is created, causing the model to exhibit a butterfly effect.

### Computer animation and robotics

The Helmholtz decomposition is also used in the field of computer engineering. This includes robotics, image reconstruction but also computer animation, where the decomposition is used for realistic visualization of fluids or vector fields.