A **line integral** is an integral of a function taken over a curve. This can be done over both a scalar and vector field.

## Types of line integral

### Over a scalar field

Given the scalar function and the parametric curve , the line integral along the curve is given be the formula

Notice that if , this reduces to the formula for arc length. Line integrals can also similarly be taken in three dimensions.

### Over a vector field

If a line integral is taken over the vector function along the path , the formula is

If the reverse parametrization is used for a line integral over a scalar field, there is no difference in the final answer. However, if the same is done over a vector field, the answer will be the negative of the normal parametrization.

By the gradient theorem, the value of any line integral over a conservative vector field, or one equal to the gradient of a scalar function, will depend only on the endpoints of the path; as such, a line integral over a closed loop will be equal to zero.

Line integrals can also be taken in the form

in which case the vector field is being dotted with the normal, rather than tangent vector. This is a form of a flux integral.

### Over the complex plane

Line integrals over the complex plane, also known as **contour integrals**, are a fundamental tool in the complex analysis. Of particular importance are those over holomorphic and meromorphic functions, which behave very similarly to conservative vector fields (in that they exhibit path independence). Any closed integral over a meromorphic function will simply be equal to the sum of the residues of the poles inside the loop.

Given a path with endpoints over a function which is holomorphic over said path, the contour integral is