Course contentsShow
← Mathematics
Lesson 1693 of 3,12137. Applications of IntegrationFree lesson

Work Done by a Variable Force

Set up and evaluate integrals to compute work when force varies with position along a path.

Work Done by a Variable Force

You'll learn how to calculate work when the force applied changes along the path of motion using integration.

The Core Idea

When you push an object with a constant force over a distance, work is simple: multiply force times distance. But what if the force changes as you move? For example, compressing a spring gets harder the more you compress it, or gravitational force weakens as you move away from Earth.

When force varies with position, we can't just multiply. Instead, we slice the path into infinitesimally small segments where the force is approximately constant, calculate the tiny bit of work on each segment, then add them all up—which is exactly what integration does.

The Setup

If a variable force F(x) acts on an object moving along a straight line from position x = a to x = b, the work done is:

W = ∫[a to b] F(x) dx

Think of it this way: on a tiny interval of width dx, the force is nearly constant at F(x), so the small work is dW = F(x)·dx. Integrating sums all these infinitesimal contributions.

Example

A spring follows Hooke's Law: F(x) = kx (force proportional to displacement). To compress it from its natural length (x = 0) to x = 0.5 meters with k = 100 N/m:

W = ∫[0 to 0.5] 100x dx = 100 · [x²/2] from 0 to 0.5
  = 50(0.5²) = 50(0.25) = 12.5 joules

Key Takeaway: Work done by a variable force F(x) from x = a to x = b is computed by the integral W = ∫[a to b] F(x) dx, which sums the infinitesimal work contributions over the entire path.