Fiveable

5๏ธโƒฃMultivariable Calculus Unit 5 Review

QR code for Multivariable Calculus practice questions

5.1 Vector Fields and Line Integrals

5.1 Vector Fields and Line Integrals

Written by the Fiveable Content Team โ€ข Last updated August 2025
Written by the Fiveable Content Team โ€ข Last updated August 2025

Vector Fields

Vector fields in multiple dimensions

A vector field takes each point in a region of space and assigns it a vector. You can think of it as a rule that says: "at this location, the vector points this direction with this magnitude." Physical examples include wind velocity across a weather map, the gravitational pull around a planet, or the electric field surrounding a charge.

A two-dimensional vector field is written as:

F(x,y)=P(x,y)โ€‰i+Q(x,y)โ€‰j\mathbf{F}(x, y) = P(x,y)\,\mathbf{i} + Q(x,y)\,\mathbf{j}

A three-dimensional vector field adds a third component:

F(x,y,z)=P(x,y,z)โ€‰i+Q(x,y,z)โ€‰j+R(x,y,z)โ€‰k\mathbf{F}(x, y, z) = P(x,y,z)\,\mathbf{i} + Q(x,y,z)\,\mathbf{j} + R(x,y,z)\,\mathbf{k}

Here PP, QQ, and RR are ordinary scalar functions that give the vector's component in each coordinate direction. To visualize a vector field, you draw arrows at sample points: each arrow's direction and length represent the vector at that point.

A few things to keep in mind:

  • We typically require the component functions to be continuous (and often differentiable) so the field behaves predictably without sudden jumps.
  • The arrows in a plot can vary wildly in length. Many plotting tools scale them down so the picture stays readable, so don't assume equal-looking arrows mean equal magnitudes.
  • These fields show up constantly in physics and engineering: electromagnetic fields, fluid flow velocity, gravitational fields, and more.
Vector fields in multiple dimensions, Vector field - Wikipedia

Line Integrals

Vector fields in multiple dimensions, HartleyMath - Vector Fields

Line integrals along curves

A line integral measures the accumulated effect of a field along a curve. Instead of integrating over an interval on the number line, you're integrating along a path through space.

There are two flavors to distinguish:

  • Scalar line integral: โˆซCf(x,y,z)โ€‰ds\int_C f(x,y,z)\, ds integrates a scalar function with respect to arc length. This gives something like total mass along a wire with varying density.
  • Vector line integral: โˆซCFโ‹…dr\int_C \mathbf{F} \cdot d\mathbf{r} integrates a vector field along a curve. This measures how much the field "pushes along" the path, which is exactly what work is.

To compute either type, follow these steps:

  1. Parameterize the curve. Write r(t)=x(t)โ€‰i+y(t)โ€‰j+z(t)โ€‰k\mathbf{r}(t) = x(t)\,\mathbf{i} + y(t)\,\mathbf{j} + z(t)\,\mathbf{k} for tโˆˆ[a,b]t \in [a, b].
  2. Compute rโ€ฒ(t)\mathbf{r}'(t). This gives the tangent vector to the curve.
  3. Substitute into the integrand. For a vector line integral, form F(r(t))โ‹…rโ€ฒ(t)\mathbf{F}(\mathbf{r}(t)) \cdot \mathbf{r}'(t). For a scalar line integral, form f(r(t))โ€‰โˆฅrโ€ฒ(t)โˆฅf(\mathbf{r}(t))\,\|\mathbf{r}'(t)\|.
  4. Evaluate the single-variable integral โˆซab(โ‹ฏโ€‰)โ€‰dt\int_a^b (\cdots)\, dt.

Two important properties:

  • The value of a line integral doesn't depend on which parameterization you choose for the same oriented curve. You could use tโˆˆ[0,1]t \in [0,1] or tโˆˆ[0,2ฯ€]t \in [0,2\pi] and get the same answer.
  • Orientation matters. Reversing the direction of traversal flips the sign of a vector line integral. (Scalar line integrals are unaffected by orientation since dsds is always positive.)

Fundamental theorem of line integrals

This theorem is the line-integral analog of the Fundamental Theorem of Calculus. If F=โˆ‡f\mathbf{F} = \nabla f for some scalar function ff (called a potential function), then:

โˆซCโˆ‡fโ‹…dr=f(r(b))โˆ’f(r(a))\int_C \nabla f \cdot d\mathbf{r} = f(\mathbf{r}(b)) - f(\mathbf{r}(a))

The integral depends only on the values of ff at the endpoints, not on the path taken between them. This is what path independence means, and it's the defining feature of a conservative vector field.

To find a potential function for a conservative field F=โŸจP,Q,RโŸฉ\mathbf{F} = \langle P, Q, R \rangle:

  1. Integrate PP with respect to xx to get f(x,y,z)f(x,y,z), including an unknown function g(y,z)g(y,z) in place of the constant.
  2. Differentiate your result with respect to yy and set it equal to QQ. Solve for g(y,z)g(y,z), which may still contain an unknown function of zz.
  3. Differentiate with respect to zz and set equal to RR to pin down any remaining unknowns.

How do you know whether a field is conservative in the first place? Use the curl test:

  • In 2D: F=โŸจP,QโŸฉ\mathbf{F} = \langle P, Q \rangle is conservative if โˆ‚Pโˆ‚y=โˆ‚Qโˆ‚x\frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x} on a simply connected domain.
  • In 3D: F\mathbf{F} is conservative if โˆ‡ร—F=0\nabla \times \mathbf{F} = \mathbf{0} on a simply connected domain.

The simply connected condition matters. On a domain with holes, the curl test can pass even for non-conservative fields. The classic example is F=โŸจโˆ’yx2+y2,โ€‰xx2+y2โŸฉ\mathbf{F} = \left\langle \frac{-y}{x^2+y^2},\, \frac{x}{x^2+y^2} \right\rangle, which has zero curl but is not conservative on R2โˆ–{(0,0)}\mathbb{R}^2 \setminus \{(0,0)\}.

Work in force fields

Work is the physical quantity that line integrals were practically made for. When a force F\mathbf{F} acts on an object moving along a curve CC, the work done is:

W=โˆซCFโ‹…drW = \int_C \mathbf{F} \cdot d\mathbf{r}

This dot product picks out the component of force along the direction of motion at each point, then sums it up over the entire path.

  • Positive work means the force generally pushes in the direction of motion (energy is added to the object).
  • Negative work means the force generally opposes the motion (energy is removed from the object).

For conservative force fields (like gravity, ignoring air resistance), work depends only on endpoints. This is directly tied to conservation of energy: the work done equals the change in potential energy, regardless of the path.

For non-conservative force fields (like friction or air resistance), the work does depend on the path taken. A longer, more winding path through a friction force will dissipate more energy than a short, direct one. In these cases, you can't use the Fundamental Theorem and must compute the line integral directly via parameterization.