Tutorials › Calculus I › Work From Force-Distance Graphs

Work and Geometric Applications · Tutorial 1311 of 1495

Work From Force-Distance Graphs

Use signed areas under a force-position graph to calculate work, including when the force changes sign or the object moves toward decreasing position.

Advanced 10 min read

What You'll Learn

  • Interpret graph height as the force component along the positive position coordinate.
  • Relate work to signed area and the integral of force with respect to position.
  • Calculate area exactly for piecewise-linear force graphs.
  • Locate zero crossings and distinguish positive from negative work.
  • Account for reversed bounds when position decreases.
  • Check work calculations using integrals, signs, and units.

Reading Work From a Graph

A force-position graph can turn a work calculation into a geometric one. Instead of first finding a formula for the force and integrating it, we can use the graph’s shapes: triangles, rectangles, and trapezoids. The key is to interpret area with its sign. A region below the horizontal axis contributes negative work, not positive work.

There is also an important distinction between the graph’s vertical values and the direction in which an object moves. For motion along a position coordinate \(x\), the graph’s vertical values must represent the force component along the positive position coordinate. The displacement direction is accounted for by \(dx\) in the work integral. Thus, a positive graph value does not by itself guarantee positive work if the object moves toward decreasing \(x\).

Definition: If \(F_x(x)\) is the force component along the positive \(x\)-coordinate and an object moves from position \(x=a\) to position \(x=b\), the work done by this force is $$ W=\int_a^b F_x(x)\,dx, $$ provided the integral exists. If force is measured in newtons and position in metres, work is measured in joules, where \(1\text{ J}=1\text{ N}\cdot\text{m}\).

Signed Area and Work

On a graph with position \(x\) on the horizontal axis and force \(F_x(x)\) on the vertical axis, a region above the horizontal axis has positive signed area. It contributes positive work when the motion traverses that region in the direction of increasing \(x\). A region below the axis has negative signed area and contributes negative work for motion in the direction of increasing \(x\).

For a graph made of straight-line segments, divide the interval at every vertex and every point where the graph crosses the horizontal axis. On each resulting interval, the signed contribution can be calculated from familiar geometric areas. For a linear segment from \((x_1,F_1)\) to \((x_2,F_2)\), its signed trapezoid area is

$$ \frac{F_1+F_2}{2}(x_2-x_1). $$

This formula gives a signed value: \(F_1\) and \(F_2\) retain their signs. If the segment crosses the axis, the formula gives the net contribution on that segment. For a picture-based calculation where the positive and negative regions need to be identified separately, split the segment at its zero crossing.

Key takeaway: Work is the signed area under the force-position graph over the directed interval of motion. Adding the absolute areas of all regions generally gives a different quantity.

Why Signed Area Gives Work

The work integral comes from adding the work over many small displacements. Over a short displacement \(\Delta x\), if the force is approximately constant at \(F_x\), the work is approximately \(F_x\Delta x\). Summing these contributions over a partition gives an approximation to the total work. As the partition is made finer, the sum approaches the definite integral.

$$ \sum_{i=1}^{n} F_x(x_i^*)\,\Delta x_i \longrightarrow \int_a^b F_x(x)\,dx. $$

Each term in the sum is the signed area of a thin rectangle: its height is the force value and its signed width is the displacement. A force value below zero makes the term negative. If the motion is from larger \(x\) to smaller \(x\), the displacement increments are negative, as reflected by reversing the integration bounds. This explains why the graph’s force values should be read along the positive coordinate direction rather than redefined to match the direction of travel.

For a straight-line segment, the graph encloses a trapezoid. Its signed area equals the segment’s contribution to the integral. In fact, if force varies linearly from \(F_1\) to \(F_2\) over a position change \(\Delta x=x_2-x_1\), its average value on that segment is \((F_1+F_2)/2\). Multiplying this average force by \(\Delta x\) gives the trapezoid formula above. This is exact for a linear segment, not an approximation.

Worked Example: A Triangle Followed by a Rectangle

Worked Example: A Triangle Followed by a Rectangle

A force-position graph rises linearly from \(0\text{ N}\) at \(x=0\text{ m}\) to \(4\text{ N}\) at \(x=2\text{ m}\), then stays at \(4\text{ N}\) until \(x=5\text{ m}\). Find the work as the object moves from \(0\text{ m}\) to \(5\text{ m}\).

The first region is a triangle. Its base is \(2\text{ m}\) and its height is \(4\text{ N}\), so its signed area is

$$ \frac{1}{2}(2\text{ m})(4\text{ N})=4\text{ J}. $$

The second region is a rectangle of width \(5-2=3\text{ m}\) and height \(4\text{ N}\). Its area is

$$ (3\text{ m})(4\text{ N})=12\text{ J}. $$

Both regions lie above the axis, so both contributions are positive. The total work is

$$ W=4\text{ J}+12\text{ J}=16\text{ J}. $$

Check by integration. On \(0\le x\le2\), the line has slope \(4/2=2\text{ N/m}\), so \(F_x(x)=2x\). On \(2\le x\le5\), \(F_x(x)=4\). Therefore

$$ \int_0^2 2x\,dx+\int_2^5 4\,dx = \left[x^2\right]_0^2+\left[4x\right]_2^5 = (4-0)+(20-8) = 16\text{ J}. $$

The integral agrees with the geometric calculation, including the units \(\text{N}\cdot\text{m}=\text{J}\).

When the Graph Crosses the Axis

A force can change sign during a displacement. The point where the graph crosses the horizontal axis is where the force component is zero. Locate that point before calculating the regions. Areas above and below the axis must then be added with opposite signs.

Worked Example: A Linear Force That Changes Sign

Between \(x=0\text{ m}\) and \(x=2\text{ m}\), the force decreases linearly from \(3\text{ N}\) to \(-1\text{ N}\). Find the work for motion from \(0\text{ m}\) to \(2\text{ m}\).

The slope is

$$ \frac{-1-3}{2-0}=-2\text{ N/m}. $$

Since the force is \(3\text{ N}\) at \(x=0\), its equation is \(F_x(x)=3-2x\). The zero crossing satisfies \(3-2x=0\), so \(x=1.5\text{ m}\).

From \(0\) to \(1.5\text{ m}\), the graph forms a positive triangle with height \(3\text{ N}\):

$$ W_+=\frac{1}{2}(1.5\text{ m})(3\text{ N})=2.25\text{ J}. $$

From \(1.5\) to \(2\text{ m}\), the graph forms a negative triangle with depth \(1\text{ N}\):

$$ W_-=-\frac{1}{2}(0.5\text{ m})(1\text{ N})=-0.25\text{ J}. $$

Thus the net work is

$$ W=W_++W_-=2.25\text{ J}-0.25\text{ J}=2.00\text{ J}. $$

Check directly with the integral:

$$ \int_0^2(3-2x)\,dx = \left[3x-x^2\right]_0^2 = (6-4)-(0-0) = 2\text{ J}. $$

The result is positive because the positive triangular contribution is larger than the negative one. The check confirms the signed-area calculation.

Piecewise-Linear Graphs: A Reliable Procedure

For a graph made of connected straight-line segments, the main challenge is organizing the regions without losing a sign or interval. A systematic procedure is:

1
Set the directed interval.
Record the starting and ending positions. The integral runs from the starting position to the ending position.
2
Mark vertices and zero crossings.
These points divide the graph into simple regions and identify where the sign of force changes.
3
Calculate each signed area.
Use triangle, rectangle, or trapezoid formulas, assigning a negative sign below the axis.
4
Add the contributions and check.
Compare with the integral of the corresponding line equations when available, and verify that the units are joules.

Alternatively, on a linear segment with endpoint forces \(F_i\) and \(F_{i+1}\), use the signed trapezoid contribution \(\frac{F_i+F_{i+1}}{2}(x_{i+1}-x_i)\). If the segment crosses the axis, splitting it into two triangles makes the separate positive and negative contributions explicit.

Worked Example: Several Segments and Two Sign Changes

A piecewise-linear graph passes through \((0,-2)\), \((2,2)\), \((4,2)\), and \((6,-2)\), where position is in metres and force is in newtons. Find the work from \(x=0\text{ m}\) to \(x=6\text{ m}\).

On the first segment, the force rises from \(-2\text{ N}\) to \(2\text{ N}\) over \(2\text{ m}\). It crosses zero halfway, at \(x=1\text{ m}\). The negative triangle contributes

$$ -\frac{1}{2}(1\text{ m})(2\text{ N})=-1\text{ J}, $$

and the positive triangle from \(1\) to \(2\text{ m}\) contributes

$$ \frac{1}{2}(1\text{ m})(2\text{ N})=1\text{ J}. $$

The net contribution of the first segment is \(-1+1=0\text{ J}\).

The middle segment is a rectangle at \(2\text{ N}\) from \(x=2\) to \(x=4\). Its work is

$$ (4-2)\text{ m}\,(2\text{ N})=4\text{ J}. $$

The final segment falls from \(2\text{ N}\) to \(-2\text{ N}\) over \(2\text{ m}\), crossing zero at \(x=5\text{ m}\). Its positive triangle contributes \(1\text{ J}\), and its negative triangle contributes \(-1\text{ J}\), so this segment contributes \(0\text{ J}\).

Adding all signed contributions gives

$$ W=0\text{ J}+4\text{ J}+0\text{ J}=4\text{ J}. $$

Check using piecewise equations. The first line is \(F_x(x)=2x-2\) on \(0\le x\le2\), the middle force is \(2\) on \(2\le x\le4\), and the final line is \(10-2x\) on \(4\le x\le6\). Hence

$$ \begin{aligned} W &=\int_0^2(2x-2)\,dx+\int_2^4 2\,dx+\int_4^6(10-2x)\,dx\\ &=\left[x^2-2x\right]_0^2+\left[2x\right]_2^4+\left[10x-x^2\right]_4^6\\ &=(0-0)+(8-4)+\big((60-36)-(40-16)\big)\\ &=0+4+0=4\text{ J}. \end{aligned} $$

This agrees with the graph. The first and last segments each have equal positive and negative triangular areas, while the middle rectangle supplies all the net work.

Motion Toward Decreasing Position

The signed area rule must be applied together with the direction of the integration limits. If \(F_x\) is positive but the object moves from a larger position to a smaller one, then \(dx\) is negative overall and the work is negative. Do not change the sign of the graph’s force values just because the object moves left.

Worked Example: Positive Force During Decreasing Position

A constant force component \(F_x=5\text{ N}\) acts while an object moves from \(x=1\text{ m}\) to \(x=0\text{ m}\). Calculate the work.

The graph has height \(5\text{ N}\), and the directed change in position is \(0-1=-1\text{ m}\). Therefore

$$ W=\int_1^0 5\,dx = \left[5x\right]_1^0 = 5(0)-5(1) = -5\text{ J}. $$

Equivalently, reversing the bounds changes the sign:

$$ \int_1^0 5\,dx=-\int_0^1 5\,dx=-(5\text{ N})(1\text{ m})=-5\text{ J}. $$

The force graph remains above the axis because the force component along positive \(x\) is \(+5\text{ N}\). The negative work comes from the motion toward decreasing \(x\), not from changing the graph’s force value. Both calculations give \(-5\text{ J}\).

Common Pitfalls

A frequent error is to add the ordinary, nonnegative areas of every region and call the result work. For example, in the sign-changing example, the two geometric areas are \(2.25\text{ J}\) and \(0.25\text{ J}\). Adding them gives \(2.50\text{ J}\), but that is not the net work. The negative region must be subtracted:

$$ 2.25\text{ J}+(-0.25\text{ J})=2.00\text{ J}, \qquad 2.25\text{ J}+0.25\text{ J}=2.50\text{ J}\ \text{(incorrect for net work)}. $$

Another error is to assume that a positive force graph always means positive work. That is true for motion over the same interval in the increasing-\(x\) direction, but not when the limits are reversed. Keep the force component tied to the positive coordinate, preserve the direction in the limits, and assign signs to areas consistently.

Finally, check dimensions. A graph’s area has units of force times position, such as \(\text{N}\cdot\text{m}\), which equals joules. If the calculation gives only newtons or only metres, a width, height, or unit conversion has been omitted.

Check Your Understanding

Use signed areas and directed bounds in each question.

  1. A force rises linearly from \(0\text{ N}\) at \(x=0\text{ m}\) to \(6\text{ N}\) at \(x=3\text{ m}\). What work is done from \(0\) to \(3\text{ m}\)?
  2. A graph has a positive triangular area of \(8\text{ J}\) and a negative triangular area of magnitude \(3\text{ J}\). What is the net work?
  3. A constant force component of \(-4\text{ N}\) acts as position increases from \(x=1\text{ m}\) to \(x=5\text{ m}\). What is the work?
  4. Why must a straight-line segment that crosses the horizontal axis be split when identifying its positive and negative contributions?
  5. A constant force component of \(7\text{ N}\) acts as an object moves from \(x=3\text{ m}\) to \(x=1\text{ m}\). What is the work, and why is it negative?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): 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