MULTIVARIABLE CALCULUS • LINE INTEGRALS

Line Integrals: Vector Fields — Compute line integrals of vector fields (work)

Learn how to calculate the total work a force field does on an object moving along a curved path.

Historical Context & Motivation

In basic physics you learn that work equals force times distance, but that formula only applies when the force is constant and the path is a straight line. In the real world, forces change from point to point — think of wind blowing across a landscape or a gravitational field pulling a satellite along a curved orbit. Scientists needed a way to add up the tiny contributions of a changing force along an arbitrary path, and that need gave birth to the line integral of a vector field.

1687
Newton's Principia
Isaac Newton published his laws of motion and universal gravitation, establishing that forces can vary in both magnitude and direction across space — the concept of a force field.
1760s
Euler & Path-Based Integration
Leonhard Euler extended integral calculus to problems involving curves in space, laying the groundwork for integrating along paths rather than just along the x-axis.
1828
Green's Theorem
George Green connected line integrals around closed curves to double integrals over enclosed regions, revealing deep relationships between boundary and interior behavior.
1850s
Maxwell & Electromagnetism
James Clerk Maxwell used line integrals of electric and magnetic fields extensively, showing that work and circulation in vector fields are central to understanding nature.

The central question these mathematicians and physicists tackled was this: if a force changes at every point along a winding path, how do you compute the total work done? The answer is the line integral of a vector field — a tool that extends single-variable integration into the world of curves and multidimensional forces.

Core Principles & Definitions

Before you can compute a line integral over a vector field, you need to understand a few foundational ideas. Each one builds on concepts you already know from single-variable calculus and basic physics, but extends them into multiple dimensions.

1

Vector Field

A vector field assigns a vector (with magnitude and direction) to every point in space. For example, F(x, y) = ⟨P(x, y), Q(x, y)⟩ gives a force vector at each point (x, y).
2

Parametric Curve

A parametric curve describes a path through space using a parameter t: r(t) = ⟨x(t), y(t)⟩ for a ≤ t ≤ b. As t increases, the point traces out the curve.
3

Dot Product & Projection

The dot product F · dr measures how much of the force aligns with the direction of motion. Only the component of force along the path contributes to work.
4

Work as Accumulated Effort

Work is the total energy transferred by a force along a path. The line integral adds up infinitely many tiny work contributions dW = F · dr along the entire curve.
KEY TAKEAWAY
Imagine walking along a winding trail on a windy day. At each step, the wind pushes you — sometimes helping you forward, sometimes pushing sideways (doing nothing useful), and sometimes blowing against you. The line integral is like adding up only the "helpful push" at every single step: the component of wind in the direction you're walking. That running total is the total work the wind does on you over the entire trail.

Visual Explanation

The diagram below shows a vector field (the small arrows) and a curve C (the thick path) running through it. At several sample points along the curve, you can see how the force vector F is broken into a component along the path and a component perpendicular to the path. Only the tangential component contributes to the line integral.

At each sample point on curve C, the force vector F (cyan) is decomposed into a tangential component F‖ (green, dashed) that contributes to work and a normal component F⊥ (pink, dashed) that does not.

Notice how at the first sample point the force mostly opposes the direction of travel (the green tangential component is small), while at the second point the force aligns well with the curve's direction. The line integral sums the dot product F · dr at every infinitesimal step, capturing how these tangential contributions accumulate — positive when force aids motion, negative when it resists. That accumulated total is the work done by the vector field along C.

Mathematical Framework

The line integral of a vector field has a clean, elegant formula. Once you parametrize the curve, it reduces to an ordinary single-variable integral that you can evaluate with the techniques you already know.

LINE INTEGRAL OF A VECTOR FIELD (WORK)
W = ∫_C F · dr = ∫_a^b F(r(t)) · r′(t) dt
W = work done by the field along C; F = vector field; r(t) = parametrization of curve C for a ≤ t ≤ b; r′(t) = derivative of r(t), the tangent vector to C.

When the vector field is written in component form as F = ⟨P(x, y), Q(x, y)⟩ and the curve is parametrized by r(t) = ⟨x(t), y(t)⟩, the dot product expands neatly.

COMPONENT FORM
∫_C F · dr = ∫_a^b [P(x(t), y(t)) · x′(t) + Q(x(t), y(t)) · y′(t)] dt
This expands the dot product: P is the x-component of F, Q is the y-component, x′(t) and y′(t) are the derivatives of the parametric coordinates.
DIFFERENTIAL NOTATION
∫_C P dx + Q dy
You'll often see the integral written this way. Here dx = x′(t) dt and dy = y′(t) dt, so it is exactly the same as the component form.
⚠️ Direction Matters!
Reversing the direction of travel along C flips the sign of the integral: ∫−C F · dr = −∫C F · dr. This makes physical sense — if you walk backwards through a headwind, it now pushes you forward, so the work changes sign.

Step-by-Step Procedure

Computing a line integral of a vector field follows a reliable sequence. The flowchart below maps out the process, and the table that follows gives you a checklist you can use every time.

Follow these five steps in order every time you evaluate a line integral of a vector field. The key decision point is Step 2: choosing a good parametrization.
Checklist for computing line integrals of vector fields
StepActionCommon Pitfall
1Write out F = ⟨P, Q⟩ and identify the curve C with its direction.Forgetting the direction of traversal (which end is start vs. finish).
2Parametrize C: r(t) = ⟨x(t), y(t)⟩, a ≤ t ≤ b.Choosing parameter bounds that don't match the desired portion of C.
3Differentiate to get r′(t) = ⟨x′(t), y′(t)⟩.Algebraic errors in differentiation, especially with trig.
4Substitute x(t), y(t) into P and Q, then compute the dot product.Forgetting to substitute — leaving x and y instead of expressions in t.
5Evaluate the definite integral ∫ from a to b.Dropping negative signs or misapplying trig identities.

Worked Example

Let's compute the work done by the vector field F(x, y) = ⟨xy, y²⟩ along the curve C that is the segment of the parabola y = x² from the point (0, 0) to (2, 4).

Line Integral: F = ⟨xy, y²⟩ along y = x² from (0,0) to (2,4)
1
Step 1 — Identify Given ValuesThe vector field is F(x, y) = ⟨P, Q⟩ = ⟨xy, y²⟩. The curve C is the parabola y = x² traversed from (0, 0) to (2, 4).
2
Step 2 — Parametrize the CurveA natural choice is to let x itself be the parameter: set t = x. Then x(t) = t and y(t) = t², with t going from 0 to 2.
r(t) = ⟨t, t²⟩, 0 ≤ t ≤ 2
3
Step 3 — Compute r′(t)Differentiate each component: x′(t) = 1 and y′(t) = 2t.
r′(t) = ⟨1, 2t⟩
4
Step 4 — Substitute into F and Take the Dot ProductReplace x with t and y with t² inside F: F(r(t)) = ⟨t · t², (t²)²⟩ = ⟨t³, t⁴⟩. Now compute the dot product: F(r(t)) · r′(t) = t³ · 1 + t⁴ · 2t = t³ + 2t⁵.
F · r′ = t³ + 2t⁵
5
Step 5 — Evaluate the Integral∫₀² (t³ + 2t⁵) dt = [t⁴/4 + 2t⁶/6]₀² = [t⁴/4 + t⁶/3]₀². Evaluate at t = 2: (16/4) + (64/3) = 4 + 64/3 = 12/3 + 64/3 = 76/3. Evaluate at t = 0: 0. So the integral equals 76/3.
W = 76/3 ≈ 25.33
💡 Interpretation
The result W = 76/3 means the vector field does approximately 25.33 units of positive work on an object traveling along this parabolic path. Because the answer is positive, the field generally pushes in the direction of motion.

Scalar Line Integrals vs. Vector Field Line Integrals

Students sometimes confuse line integrals of scalar fields with line integrals of vector fields. They look similar on paper but measure different things. The table below clarifies the key differences.

Comparison of scalar and vector line integrals
FeatureScalar Line Integral ∫_C f dsVector Field Line Integral ∫_C F · dr
IntegrandA scalar function f(x, y) — a number at each point.A vector field F(x, y) — a vector at each point.
What it measuresAccumulated value (e.g., total mass of a wire with variable density).Work done by the vector field along the curve.
Direction dependent?No — reversing C gives the same result.Yes — reversing C flips the sign.
Differential elementds = |r′(t)| dt (arc-length element).dr = r′(t) dt (vector differential).
Typical formula∫_a^b f(r(t)) |r′(t)| dt∫_a^b F(r(t)) · r′(t) dt
KEY TAKEAWAY
Think of the scalar line integral as asking "how much stuff is along this wire?" — it doesn't care which way you walk. The vector field line integral asks "how much does this force help or hinder me?" — the answer absolutely depends on your direction of travel. The dot product with dr is what makes the vector version direction-sensitive.

Connection to Conservative Fields & Potential Functions

Line integrals of vector fields open the door to deeper ideas in multivariable calculus. One of the most powerful is the concept of a conservative vector field — a field where the work integral depends only on the starting and ending points, not on the particular path taken between them.

From basic line integrals to advanced vector calculus
ConceptWhat You've Learned (This Lesson)What Comes Next
Evaluation methodParametrize the curve, dot F with r′(t), integrate.For conservative fields, use the Fundamental Theorem: f(B) − f(A), where f is the potential function.
Path dependenceIn general, changing the path changes the integral's value.Conservative fields are path-independent — any path from A to B gives the same work.
Closed curves∮_C F · dr can be nonzero for general fields.For conservative fields, ∮_C F · dr = 0. Green's Theorem relates this to curl.
Key theoremDefinition of the line integral ∫_C F · dr.Green's Theorem, Stokes' Theorem, Divergence Theorem — powerful generalizations.

As you move forward in multivariable calculus, you'll learn to test whether a field is conservative (by checking if ∂P/∂y = ∂Q/∂x), and if it is, you can evaluate the line integral by finding a potential function and simply plugging in the endpoints — no parametrization needed. These ideas connect directly to Green's Theorem and eventually to Stokes' Theorem in three dimensions, which generalize everything you've learned here to surfaces and volumes.

Practice Problems

PROBLEM 1CONCEPTUAL
Suppose a force vector F is always perpendicular to the direction of motion along a curve C. What is the value of ∫C F · dr? Explain your reasoning.
PROBLEM 2BASIC CALCULATION
Compute ∫C F · dr where F(x, y) = ⟨2x, 3y⟩ and C is the straight line from (0, 0) to (1, 2), parametrized by r(t) = ⟨t, 2t⟩ for 0 ≤ t ≤ 1.
PROBLEM 3INTERMEDIATE
Evaluate ∫C F · dr where F(x, y) = ⟨y, −x⟩ and C is the upper half of the unit circle from (1, 0) to (−1, 0), traversed counterclockwise. Use the parametrization r(t) = ⟨cos t, sin t⟩ for 0 ≤ t ≤ π.
PROBLEM 4APPLIED
A force field modeling wind is given by F(x, y) = ⟨−y, x⟩ (in Newtons). A drone flies along the path r(t) = ⟨3cos t, 3sin t⟩ for 0 ≤ t ≤ π/2 (a quarter-circle of radius 3 from (3, 0) to (0, 3)). How much work (in joules) does the wind do on the drone?
PROBLEM 5CRITICAL THINKING
Let F(x, y) = ⟨2xy, x²⟩. Compute ∫C₁ F · dr along the straight line from (0, 0) to (1, 1), and then ∫C₂ F · dr along the parabola y = x² from (0, 0) to (1, 1). Are the results the same? What does this suggest about F?

Lesson Summary

The line integral of a vector field computes the total work a force field performs on an object moving along a curve. You parametrize the curve as r(t), compute the tangent vector r′(t), substitute into the vector field F, take the dot product, and evaluate the resulting single-variable integral ∫ₐᵇ F(r(t)) · r′(t) dt.

Key facts to remember: the integral is direction-dependent (reversing C flips the sign), the dot product isolates only the component of force along the path, and when the field is conservative the integral depends only on endpoints, not the path itself. These ideas form the foundation for Green's Theorem and the broader theorems of vector calculus.

Varsity Tutors • Multivariable Calculus • Line Integrals: Vector Fields — Compute line integrals of vector fields (work)