Fiveable

Calculus IV Unit 18 Review

QR code for Calculus IV practice questions

18.2 Line integrals of vector fields

18.2 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
Calculus IV
Unit & Topic Study Guides

Vector Fields and Line Integrals

Defining and Visualizing Vector Fields

A vector field assigns a vector to each point in a subset of space. In 2D, you might write F(x,y)=(P(x,y),Q(x,y))\mathbf{F}(x, y) = (P(x,y),\, Q(x,y)); in 3D, F(x,y,z)=(P,Q,R)\mathbf{F}(x,y,z) = (P, Q, R). Vector fields model physical phenomena like fluid flow, electromagnetic fields, and gravitational fields.

Two common ways to visualize them:

  • Arrow plots show the direction and magnitude of vectors at sampled points. Longer arrows mean larger magnitude.
  • Streamlines are curves that are tangent to the vector field at every point, tracing out the flow pattern. A particle released into the field would follow a streamline.

The Line Integral of a Vector Field

The central object here is the line integral of a vector field F\mathbf{F} along a curve CC, written:

CFdr\int_C \mathbf{F} \cdot d\mathbf{r}

This measures the accumulated component of F\mathbf{F} along the direction of travel. Physically, if F\mathbf{F} is a force, this integral gives the work done by the force on an object moving along CC.

To compute it, parametrize the curve as r(t)\mathbf{r}(t) for atba \le t \le b, then:

CFdr=abF(r(t))r(t)dt\int_C \mathbf{F} \cdot d\mathbf{r} = \int_a^b \mathbf{F}(\mathbf{r}(t)) \cdot \mathbf{r}'(t)\, dt

The dot product at each point picks out how much of F\mathbf{F} points along the curve's tangent direction. Where F\mathbf{F} is perpendicular to the curve, the contribution is zero.

Circulation and Flux

Circulation measures the tendency of a vector field to push along a closed curve CC:

Circulation=CFdr\text{Circulation} = \oint_C \mathbf{F} \cdot d\mathbf{r}

  • Positive circulation indicates net counterclockwise rotation; negative indicates clockwise.
  • If circulation is zero around every closed curve, the field has no rotational tendency.

Flux across a curve (in 2D) or through a surface (in 3D) measures how much of the field passes through:

  • In 2D, flux across a closed curve CC is CFnds\oint_C \mathbf{F} \cdot \mathbf{n}\, ds, where n\mathbf{n} is the outward unit normal.
  • Positive flux means net outward flow; negative means net inward flow.

These two quantities capture complementary information: circulation is about flow along a curve, while flux is about flow across it.

Defining and Visualizing Vector Fields, how to plot streamlines , when i know u and v components of velocity(numpy 2d arrays), using a ...

Path Independence and Conservative Fields

A vector field is path independent if the line integral CFdr\int_C \mathbf{F} \cdot d\mathbf{r} between any two points depends only on the endpoints, not on which curve connects them. This is a strong condition with a direct physical meaning: the work done by F\mathbf{F} moving an object from point AA to point BB is the same no matter what route you take.

A vector field with this property is called conservative. Conservative fields have a potential function ϕ\phi such that F=ϕ\mathbf{F} = \nabla \phi. The potential function acts like a stored-energy landscape: the field always points "downhill" on that landscape, and the work between two points is just the difference in potential values.

Conservative Vector Fields

Properties and Conditions

Conservative vector fields satisfy two equivalent properties:

  • Path independence: CFdr\int_C \mathbf{F} \cdot d\mathbf{r} depends only on the endpoints of CC.
  • Zero circulation on closed loops: CFdr=0\oint_C \mathbf{F} \cdot d\mathbf{r} = 0 for every closed curve CC in the domain.

These are genuinely equivalent: if every closed-loop integral is zero, you can show any two paths between the same endpoints give the same integral (subtract them to form a closed loop).

For a vector field F(x,y,z)=(P,Q,R)\mathbf{F}(x, y, z) = (P, Q, R) with continuous first partial derivatives, the component test checks whether F\mathbf{F} could be conservative:

  • Py=Qx\frac{\partial P}{\partial y} = \frac{\partial Q}{\partial x}
  • Pz=Rx\frac{\partial P}{\partial z} = \frac{\partial R}{\partial x}
  • Qz=Ry\frac{\partial Q}{\partial z} = \frac{\partial R}{\partial y}

This is equivalent to requiring ×F=0\nabla \times \mathbf{F} = \mathbf{0} (the curl is zero). But there's a catch: the domain must be simply connected (no holes). On a domain with holes, a field can pass the component test yet still fail to be conservative. The classic example is the angle field around the origin in 2D.

Defining and Visualizing Vector Fields, Spatio-temporal data handling and visualization in GRASS GIS

Potential Functions and Gradients

If F=(P,Q,R)\mathbf{F} = (P, Q, R) is conservative, there exists a scalar function ϕ(x,y,z)\phi(x,y,z) with:

F=ϕ=(ϕx,ϕy,ϕz)\mathbf{F} = \nabla \phi = \left(\frac{\partial \phi}{\partial x},\, \frac{\partial \phi}{\partial y},\, \frac{\partial \phi}{\partial z}\right)

The Fundamental Theorem for Line Integrals then gives you a powerful shortcut:

CFdr=ϕ(endpoint)ϕ(start point)\int_C \mathbf{F} \cdot d\mathbf{r} = \phi(\text{endpoint}) - \phi(\text{start point})

No parametrization needed. Just evaluate ϕ\phi at two points and subtract.

Finding the potential function step by step:

  1. Integrate PP with respect to xx: ϕ(x,y,z)=Pdx+g(y,z)\phi(x,y,z) = \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 gy\frac{\partial g}{\partial y}.
  3. Integrate to update g(y,z)=h(y)+k(z)g(y,z) = h(y) + k(z), where k(z)k(z) is still unknown.
  4. Differentiate with respect to zz and set equal to RR to find k(z)k(z).
  5. Combine everything. The potential is determined up to an additive constant.

Applications and Examples

Gravitational and electrostatic fields are the classic conservative fields. The gravitational field F=GMmr3r\mathbf{F} = -\frac{GMm}{r^3}\mathbf{r} has potential function ϕ=GMmr\phi = -\frac{GMm}{r}, and the work done moving a mass between two points depends only on the change in gravitational potential energy.

Non-conservative fields, like friction or magnetic forces on moving charges, do not have potential functions. For these fields, the work done genuinely depends on the path, and closed-loop integrals can be nonzero.

Green's Theorem

Statement and Formulation

Green's theorem connects a line integral around a closed curve to a double integral over the region it encloses. It's a 2D result that converts between two types of computation, letting you pick whichever is easier.

For a vector field F(x,y)=(P(x,y),Q(x,y))\mathbf{F}(x,y) = (P(x,y),\, Q(x,y)) where PP and QQ have continuous partial derivatives on an open region containing DD and its boundary CC:

C(Pdx+Qdy)=D(QxPy)dA\oint_C (P\, dx + Q\, dy) = \iint_D \left(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\right) dA

The curve CC must be positively oriented (counterclockwise) and simple (no self-intersections). The left side is the circulation of F\mathbf{F} around CC. The right side integrates the scalar curl QxPy\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} over the enclosed region.

Notice that if F\mathbf{F} is conservative, the scalar curl is zero everywhere, so the double integral is zero, confirming that circulation around any closed curve vanishes.

Applications and Examples

Green's theorem is useful in several ways:

  • Simplifying line integrals: When the boundary curve CC is complicated but the region DD has a simple shape, convert to a double integral.
  • Computing areas: Choosing PP and QQ so that QxPy=1\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} = 1 turns the double integral into the area of DD. A common choice is P=y/2P = -y/2, Q=x/2Q = x/2, giving Area=12C(xdyydx)\text{Area} = \frac{1}{2}\oint_C (x\, dy - y\, dx).

Example: Find the circulation of F(x,y)=(xy,x2)\mathbf{F}(x,y) = (xy,\, x^2) around the unit circle.

  1. Compute the scalar curl: x(x2)y(xy)=2xx=x\frac{\partial}{\partial x}(x^2) - \frac{\partial}{\partial y}(xy) = 2x - x = x.

  2. Apply Green's theorem: CFdr=DxdA\oint_C \mathbf{F} \cdot d\mathbf{r} = \iint_D x\, dA.

  3. Over the unit disk, xx is an odd function in xx and the region is symmetric about the yy-axis, so the integral is 00.

Green's theorem is a special case of the more general Stokes' theorem, which relates the surface integral of ×F\nabla \times \mathbf{F} over a surface to the line integral of F\mathbf{F} around the surface's boundary. In 2D with a flat region, Stokes' theorem reduces exactly to Green's theorem.