Condition for a Vector Field to be Irrotational

A vector fieldis irrotational if

If a vector field is irrotational then for some function

is a continuous, twice differential function that assignes a unique value to every point is space, and is called the scalar potential. If a functionexists, thenis irrotational.

Example:

In this case