Tutorials › AP Calculus › Applications of Integration in Physics: Work
← All AP Calculus Tutorials
AP Calculus AB & BC Intermediate

Applications of Integration in Physics: Work

How definite integrals measure work when a force varies with position, including the key connection between force, distance, and accumulated energy.

What Work Has to Do with Integration

In physics, work measures the energy transferred when a force moves an object through a distance. When the force is constant and acts in the direction of motion, the calculation is simple:

But what happens when the force changes as the object moves? This occurs in many physical situations. A spring gets harder to stretch, a variable force moves an object along a track, or a force depends on position according to some function.

In those cases, you cannot simply multiply one force by the total distance. Instead, you divide the motion into tiny pieces, calculate the work done over each tiny displacement, and add all of those pieces together. That limiting sum is a definite integral.

The central idea is simple:

So a work problem is fundamentally an accumulation problem: the integral accumulates tiny amounts of work over an interval of position.

The Work Integral

Suppose an object moves along the x-axis from position to position , and the force acting on it is units of force.

Over a very small displacement , the force is approximately constant, so the small amount of work is:

Adding these tiny pieces over the entire interval gives:

This is the fundamental formula you should recognize for AP Calculus work problems:

If the force is measured in newtons and the displacement is measured in meters, the resulting work is measured in joules.

Reading a Force-Position Graph

There is an important geometric interpretation of the work integral. If is graphed against position , then the work from to is the signed area under the force-position curve.

This makes work closely resemble other AP Calculus accumulation problems. Instead of accumulating velocity to find displacement, you are accumulating force to find work.

Worked Examples

Example 1: Constant Force

A constant force of newtons moves an object from meters to meters. Find the work done.

Step 1: Identify the force and displacement:
Step 2: Use the constant-force formula:
Step 3: Calculate:
Result:
Example 2: Variable Force

An object moves along the x-axis from to meters. The force acting on the object is given by newtons. Find the work done.

Step 1: Use the work integral:
Step 2: Substitute the force function and bounds:
Step 3: Find an antiderivative:
Step 4: Evaluate:
Result:
Example 3: Force That Changes Direction

A force is given by newtons as an object moves from to meters. Find the net work done.

Step 1: Set up the integral:
Step 2: Find an antiderivative:
Step 3: Evaluate the definite integral:

The force is positive over part of the interval and negative over another part. The definite integral automatically subtracts the negative contribution from the positive contribution.

Result:
Example 4: Spring Force and Hooke's Law

A spring requires a force described by newtons to stretch it meters from its natural length. Find the work required to stretch the spring from to meters.

For a spring obeying Hooke's law, the force is proportional to displacement:

Step 1: Use the known force and displacement to determine .
Step 2: Set up the work integral:
Step 3: Integrate:
Step 4: Evaluate:
Result:

Work as an Accumulation Function

The work integral can also be viewed as an accumulation function. If an object starts at position , define the work required to move it to position as:

This means represents the total work accumulated as the object moves from the starting position to its current position.

By the Fundamental Theorem of Calculus:

So the derivative of accumulated work with respect to position is the force itself:

This is a powerful conceptual connection: force is the rate at which work changes with position.

Common Mistakes

Multiplying one force by the total distance when force varies

The formula works when the force is constant. If the force depends on position, use .

Using the wrong variable or bounds

The bounds must correspond to the variable used in the force function. If force is given as a function of position , integrate with respect to and use the initial and final positions as the bounds.

Ignoring negative work

A force opposite the direction of motion contributes negative work. Do not automatically replace the force with its absolute value. The definite integral is a signed accumulation.

Confusing net work with total work

If the force changes direction, the integral gives net work. Positive and negative contributions can partially cancel. If a problem asks for total work from separate forces, analyze each contribution carefully before combining them.

Practice Problems

Question 1

A constant force of newtons moves an object meters in the direction of the force. Find the work done.

Show answer
Question 2

A variable force is given by newtons. Find the work done as the object moves from to meters.

Show answer
Question 3

The force on an object is newtons for . Find the net work done as the object moves from to .

Show answer
Question 4 (Spring)

A spring requires a force of newtons to stretch it meters. Find the work required to stretch the spring from its natural length to meters.

Show answer

The AP Calculus Takeaway

Work problems are one of the clearest applications of the definite integral. The physics gives you a force that may vary with position, and calculus gives you the tool for accumulating that force over distance.

When you see a problem involving a force that varies with position, think:

  1. What is the force function?
  2. What positions define the motion?
  3. Set up the definite integral.
  4. Evaluate it to obtain the work.

The deeper AP Calculus idea is that integration accumulates a rate of change into a total quantity. In this application, the quantity being accumulated is work.

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon