AP Physics C: Mechanics · Unit 3 lecture · Part 3 of 9 · 10 min

3.2 Work by a variable forceWhen the force changes: areas and integrals

Mr. Thompkins
This is the Physics C signature move for this unit. Most real forces change as things move: springs, bumpers, rubber bands, gravity far from Earth. You can't multiply "the force" by the distance, because there isn't one force. But you can integrate.

In one dimension, with the force along the x-axis, the work from $x_1$ to $x_2$ is

$$W = \int_{x_1}^{x_2} F(x)\,dx$$

which is the area under the force-versus-position graph. Area above the axis is positive work, area below is negative. If you have a graph made of straight pieces, add up triangles and rectangles. If you have a formula, integrate it.

?Wait, how do I evaluate a definite integral?
Find an antiderivative and subtract: $\int_a^b f(x)\,dx = F(b) - F(a)$. With the reverse power rule, $\int (3x^2 + 2x)\,dx = x^3 + x^2$, so from 1 to 3 m it's $(27 + 9) - (1 + 1) = 34\ \text{J}$. Always evaluate at both limits: dropping the lower limit is a classic lost point.
012345678-5-4-3-2-1012345678910x (m)F (N)8 J24 J8 J$-2$ J
A force that grows, holds steady, then reverses. The areas add to 8 + 24 + 8 − 2 = 38 J of work from 0 to 8 m.
Work from a force graph
The graph shows the net force on a 2.0 kg cart that starts from rest at $x = 0$. Find (a) the work done from 0 to 8.0 m, (b) the cart's speed at $x = 5.0\ \text{m}$ and at $x = 8.0\ \text{m}$, and (c) where its speed is greatest.
  1. (a) Areas: triangle 0 to 2 m, $\frac12(2)(8) = 8\ \text{J}$; rectangle 2 to 5 m, $(3)(8) = 24\ \text{J}$; triangle 5 to 7 m, $\frac12(2)(8) = 8\ \text{J}$; triangle 7 to 8 m, $\frac12(1)(-4) = -2\ \text{J}$. Total 38 J.
    Why?
    Split the area where the graph changes shape or crosses zero. The last piece is below the axis, so it is negative work.
  2. (b) At 5.0 m: $W = 32\ \text{J} = \frac12(2.0)v^2$, so $v = 5.7\ \text{m/s}$. At 8.0 m: $38 = \frac12(2.0)v^2$, so $v = 6.2\ \text{m/s}$.
    Why?
    It starts from rest, so the net work so far equals its kinetic energy.
  3. (c) The speed grows as long as the force is positive and shrinks once it turns negative, so it peaks where $F = 0$: $x = 7.0\ \text{m}$, with $K = 40\ \text{J}$ and $v = 6.3\ \text{m/s}$.
    Why?
    Maximum speed means dK/dx = F = 0. The same idea comes back on U(x) graphs.

Answer: (a) 38 J (b) 5.7 m/s and 6.2 m/s (c) at x = 7.0 m, about 6.3 m/s

Stuck? Get a hint
  1. Split the area at x = 2, 5 and 7 m.
  2. Work from rest equals K, so v = √(2W/m).
  3. Speed is greatest where the force changes sign.

The spring, the most famous variable force

A spring exerts $F_s = -kx$. As you stretch it from $x_1$ to $x_2$, the spring does work $W_s = \int_{x_1}^{x_2}(-kx)\,dx = -\frac12 k(x_2^2 - x_1^2)$. It's negative because the spring pulls back while you stretch it. If you stretch it slowly (no change in K), your hand does the opposite: $W_{you} = +\frac12 k(x_2^2 - x_1^2)$.

00.050.10.150.20.250.30153045607590stretch x (m)your force (N)7.9 JF = kx
Stretching a 300 N/m spring slowly from 0.10 m to 0.25 m. Your work is the green trapezoid: ½(300)(0.25² − 0.10²) = 7.9 J.
Pause and think
Stretching a spring from 0 to 0.10 m takes some work $W$. How much more work does it take to stretch it from 0.10 m to 0.20 m?
I thought about it. Show me
Three times as much, $3W$. The work from 0 is proportional to $x^2$: to 0.10 m it's $W$, to 0.20 m it's $4W$, so the second 0.10 m costs $4W - W = 3W$. The spring pushes back harder the farther it's stretched.
?Wait, why can't I just do force times distance for a spring?
Because the force isn't one number. It grows from $kx_1$ to $kx_2$ along the way. Multiplying the final force by the distance treats the whole stretch as if it happened at the biggest force, and overcounts. For a straight-line force graph the correct answer is the average force times the distance, which is exactly the trapezoid area.
Check yourself
A force $F(x) = 2x + 1$ (N, with $x$ in m) acts along the x-axis. How much work does it do as an object moves from $x = 0$ to $x = 3.0\ \text{m}$?
  1. A7 J
  2. B12 J
  3. C21 J
  4. D9 J
Show the answer

B. $W = \int_0^3 (2x + 1)\,dx = \left[x^2 + x\right]_0^3 = 9 + 3 = 12\ \text{J}$. Choice C is the final force, 7 N, times 3 m, which treats a changing force as constant. Choice A is just $F(3)$, which isn't work at all.

Exam tip from Mr. T

When a free-response question gives you $F(x)$, write $W = \int_{x_1}^{x_2}F\,dx$ with the limits on the first line, then the antiderivative, then the numbers. If it gives a graph, say "work equals the area under the curve" and show the shapes you added.

  • $W = \int_{x_1}^{x_2} F(x)\,dx$: the signed area under F(x).
  • Never multiply the final force by the distance when the force changes.
  • Spring: $W_{spring} = -\frac12 k(x_2^2 - x_1^2)$; stretching slowly, you do the positive version.
  • From rest, the net work so far is the kinetic energy.