Fiveable

5️⃣Multivariable Calculus Unit 6 Review

QR code for Multivariable Calculus practice questions

6.1 Line Integrals of Vector Fields

6.1 Line Integrals of Vector Fields

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025

Line Integrals of Vector Fields

Line integrals of vector fields measure the work done by a force as an object moves along a path. They connect the geometry of a curve with the behavior of a vector field along that curve, and they form the foundation for Green's Theorem and the bigger results coming later in this unit.

Line Integrals of Vector Fields

Line integrals of vector fields, Line Integrals · Calculus

Line integrals of vector fields

The line integral of a vector field F\mathbf{F} along a curve CC is written as CFdr\int_C \mathbf{F} \cdot d\mathbf{r}. Physically, this computes the total work done by the force field on an object traveling along CC. The dot product at each point picks out only the component of the force that acts along the direction of motion.

To evaluate this integral, you parametrize the curve. That means you describe the path as a vector function of a single parameter tt (often representing time):

  • 2D: r(t)=(x(t),y(t))\mathbf{r}(t) = (x(t),\, y(t)), with t[a,b]t \in [a, b]
  • 3D: r(t)=(x(t),y(t),z(t))\mathbf{r}(t) = (x(t),\, y(t),\, z(t)), with t[a,b]t \in [a, b]

Steps to compute a line integral:

  1. Parametrize the curve CC with r(t)\mathbf{r}(t) over [a,b][a, b].
  2. Compute r(t)\mathbf{r}'(t), the derivative of your parametrization.
  3. Substitute r(t)\mathbf{r}(t) into F\mathbf{F} so that everything is in terms of tt.
  4. Take the dot product F(r(t))r(t)\mathbf{F}(\mathbf{r}(t)) \cdot \mathbf{r}'(t).
  5. Integrate the result from aa to bb.

Written out for a 2D field F=(P,Q)\mathbf{F} = (P, Q):

CFdr=ab[P(x(t),y(t))x(t)+Q(x(t),y(t))y(t)]dt\int_C \mathbf{F} \cdot d\mathbf{r} = \int_a^b \left[ P(x(t), y(t))\, x'(t) + Q(x(t), y(t))\, y'(t) \right] dt

The 3D version adds the zz-component:

CFdr=ab[Px(t)+Qy(t)+Rz(t)]dt\int_C \mathbf{F} \cdot d\mathbf{r} = \int_a^b \left[ P\, x'(t) + Q\, y'(t) + R\, z'(t) \right] dt

where P,Q,RP, Q, R are each evaluated at (x(t),y(t),z(t))(x(t), y(t), z(t)).

Line integrals of vector fields, Line Integrals · Calculus

Fundamental theorem for line integrals

If F\mathbf{F} is a conservative vector field, meaning there exists a scalar function ff such that F=f\mathbf{F} = \nabla f, then the line integral depends only on the endpoints of the path, not on the path itself. The function ff is called the potential function.

The theorem states:

CFdr=f(r(b))f(r(a))\int_C \mathbf{F} \cdot d\mathbf{r} = f(\mathbf{r}(b)) - f(\mathbf{r}(a))

This is the multivariable analogue of the Fundamental Theorem of Calculus. Instead of integrating and then evaluating an antiderivative at two numbers, you evaluate a potential function at two points in space.

How to apply it:

  1. Confirm that F\mathbf{F} is conservative (see the tests below).
  2. Find the potential function ff such that f=F\nabla f = \mathbf{F}.
  3. Evaluate ff at the endpoint r(b)\mathbf{r}(b) and the start point r(a)\mathbf{r}(a).
  4. Subtract: f(r(b))f(r(a))f(\mathbf{r}(b)) - f(\mathbf{r}(a)).

One immediate consequence: the line integral of a conservative field over any closed curve is zero, because the start and end points are the same.

Conservative vector fields vs line integrals

Not every vector field is conservative. Here are the standard tests to check:

  • Component test (2D): For F=(P,Q)\mathbf{F} = (P, Q), check whether Py=Qx\frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x} throughout the domain. If equality holds on a simply connected region (no holes), the field is conservative.
  • Curl test (3D): Compute ×F\nabla \times \mathbf{F}. If the curl is 0\mathbf{0} everywhere on a simply connected domain, the field is conservative.
  • Closed path test: If CFdr=0\oint_C \mathbf{F} \cdot d\mathbf{r} = 0 for every closed curve in the domain, the field is conservative. In practice, you rarely check every closed curve, but finding one closed path with a nonzero integral immediately proves the field is not conservative.
  • Multiple path test: Compute the line integral between two fixed points along two different paths. If the results differ, the field is not conservative.

The simply connected condition matters. A field can pass the component or curl test at every point yet still fail to be conservative if the domain has a hole. The classic example is the field F=(yx2+y2,xx2+y2)\mathbf{F} = \left(\frac{-y}{x^2+y^2},\, \frac{x}{x^2+y^2}\right), which has Py=Qx\frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x} everywhere it's defined, but its domain excludes the origin, creating a hole.

Potential functions for conservative fields

Once you've confirmed a field is conservative, you need to find ff. The most common approach is the partial derivative method:

  1. Start from fx=P\frac{\partial f}{\partial x} = P. Integrate with respect to xx to get f=Pdx+g(y,z)f = \int P\, dx + g(y, z), where g(y,z)g(y, z) is an unknown function (it plays the role of the "constant" of integration, but it can depend on the other variables).
  2. Differentiate your result with respect to yy and set it equal to QQ. This lets you solve for g(y,z)g'(y, z) or narrow down gg.
  3. If you're in 3D, differentiate with respect to zz and set equal to RR to pin down any remaining unknown.
  4. Combine everything into a single expression for ff.

Alternative: the line integral method. Pick a convenient reference point r0\mathbf{r}_0 (the origin works well) and compute:

f(r)=r0rFdrf(\mathbf{r}) = \int_{\mathbf{r}_0}^{\mathbf{r}} \mathbf{F} \cdot d\mathbf{r}

Since the field is conservative, you can choose any path you like. A common trick is to integrate along axis-aligned segments (first along xx, then yy, then zz), which keeps the computation clean.

Both methods give the same potential function, up to an additive constant. Use whichever feels more natural for the problem at hand.