7.3: Work Done by a General Force

Physics: A Foundation for Scientists and Engineers · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    Read aloud

    How

    Speed: 1×
    Light up
    Highlight

    Symbols: Mulberry Symbols, © 2018–2026 Steve Lee, CC BY-SA 4.0 (licence, the set), the site's own copies.

    From LibreTexts, under CC BY 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    7.3: Work Done by a General Force

    Equation (7.2) assumes the force is constant. Many forces are not. The most important example is a spring: the more you stretch it, the harder it pulls back. Within its elastic range, the force a spring exerts is described by Hooke’s law,

    Key Equation: Hooke’s law

    \[F_s = -kx, \tag{7.5}\]

    where \(x\) is the displacement of the spring’s end from its relaxed position and \(k\) is the spring constant (in \(\,\mathrm{N/m}\)). A stiff spring has a large \(k\). The minus sign indicates that the spring force always opposes the stretch or compression: pull the end in \(+x\) and the spring pulls back in \(-x\); push it in \(-x\) and the spring pushes back in \(+x\). Because this force changes as the object moves, we cannot use \(W = Fd\).

    The work integral

    When the force varies with position, we divide the displacement into pieces so small that the force is nearly constant over each, compute the work \(F\,dx\) done on each piece, and add them up. That is, we integrate:

    Key Equation: Work done by a variable force

    \[W = \int_{x_i}^{x_f} F(x)\,dx. \tag{7.6}\]

    A graph of spring force versus stretch, a straight line through the origin of slope k.
    Figure 7.4. For a spring, the force needed to stretch it rises linearly with stretch, \(F = kx\). The work done is the shaded triangular area under the line: base \(x\), height \(kx\), so area \(\tfrac{1}{2}(x)(kx) = \tfrac{1}{2}kx^2\).
    Figure descriptionA graph of spring force versus stretch, a straight line through the origin of slope k. The area under the line from zero to x is shaded as a triangle of base x and height k x, giving work equal to one half k x squared.

    Geometrically, the work is the area under the force-versus-position graph (Figure 7.4), with area below the axis counted as negative. For a constant force the “area” is a rectangle, \(F\,(x_f - x_i)\), and equation (7.6) reduces to \(W = Fd\).

    The same idea works for motion along any path, curved or straight, in two or three dimensions. Over each tiny displacement \(d\vec{r}\) the force does work \(\vec{F}\cdot d\vec{r}\), and the total is the sum of all of them, \(W = \int \vec{F}\cdot d\vec{r}\). In this book we will need the general form only occasionally; equation (7.6), for motion along a line, is the one to know.

    Example 7.7: Work done by expanding gas on a bullet

    A \(100\,\mathrm{g}\) bullet is fired down a rifle barrel \(0.600\,\mathrm{m}\) long. With the origin at the bullet’s starting point, the expanding gas exerts a force (in newtons, \(x\) in meters)

    \[F(x) = 15000 + 10000x - 25000x^2.\]

    Find the work the gas does on the bullet over the length of the barrel. By how much does it change the bullet’s energy?

    Solution

    Step 1: Set up the integral. The force varies with position, so \(W = Fd\) does not apply; we integrate the force from \(x = 0\) to \(x = 0.600\,\mathrm{m}\) (equation (7.6)):

    \[W = \int_0^{0.600}\!\!\left(15000 + 10000x - 25000x^2\right)dx.\]

    Step 2: Integrate term by term. The integral of a sum is the sum of the integrals, and each term follows the power rule, \(\int x^n\,dx = x^{n+1}/(n+1)\): raise the power by one and divide by the new power. The constant \(15000\) is \(15000x^0\), so it becomes \(15000x\); the \(10000x\) term becomes \(10000\,x^2/2 = 5000x^2\); and the \(-25000x^2\) term becomes \(-25000\,x^3/3\):

    \[W = \Big[\,15000x + 5000x^2 - \tfrac{25000}{3}x^3\,\Big]_0^{0.600}.\]

    Step 3: Evaluate at the limits. Substitute the upper limit and subtract the value at the lower limit. At \(x = 0\) every term is zero, so only the upper limit contributes. Work out the powers first: \((0.600)^2 = 0.360\) and \((0.600)^3 = 0.216\). Then

    \[W = 15000(0.600) + 5000(0.360) - \tfrac{25000}{3}(0.216) = 9000 + 1800 - 1800 = \boxed{9.00\times 10^{3}\,\mathrm{J}}.\]

    (For the last term, \(25000 \times 0.216 = 5400\), and \(5400/3 = 1800\).) The second and third terms happen to cancel exactly here: the force’s early rise and later fall contribute equal and opposite amounts relative to the constant \(15000\,\mathrm{N}\), so the gas does the same work a steady \(15000\,\mathrm{N}\) push would have done over \(0.600\,\mathrm{m}\).

    Energy change. Treating the gas as the only force that does appreciable work on the bullet (gravity is perpendicular to a level barrel, and friction in the barrel is small by comparison), the bullet’s energy increases by \(9.00\,\mathrm{kJ}\). Notice that the bullet’s mass was not needed. It will matter in Chapter 8, when we find out how fast an object carrying this much energy of motion must be moving.

    Work done by a spring

    Applying equation (7.6) to a spring calls for care with signs, and this is worth slowing down for. There are always two forces to think about: the force the spring exerts on whatever is attached to it, \(F_s = -kx\), and the force you (or whatever is stretching it) exert on the spring, which, if the stretching is done slowly, is equal and opposite, \(F = +kx\).

    Work done by you. As you stretch the spring from its relaxed length to a stretch \(x\), your force \(+kx\) points along the motion, and you do positive work:

    \[W_{\rm you} = \int_0^{x} kx'\,dx' = \tfrac{1}{2}kx^2. \tag{7.7}\]

    (The primed variable \(x'\) is just a placeholder that runs over the interval, so that the upper limit \(x\) is not confused with the variable of integration.) Compressing the spring a distance \(x\) takes the same work, since only \(x^2\) appears.

    Work done by the spring. The spring’s own force is the negative of yours, so over the same stretch it does \(-\tfrac{1}{2}kx^2\). More generally, as the end of the spring moves from \(x_i\) to \(x_f\),

    \[W_s = \int_{x_i}^{x_f} (-kx)\,dx = -\Big[\tfrac{1}{2}kx^2\Big]_{x_i}^{x_f},\]

    which gives

    Key Equation: Work done by a spring

    \[W_s = \tfrac{1}{2}kx_i^2 - \tfrac{1}{2}kx_f^2. \tag{7.8}\]

    Read the signs carefully. If the spring ends up more stretched or compressed than it started (\(|x_f| > |x_i|\)), it does negative work on the object attached to it: it resists being deformed. If it ends up closer to its relaxed length, it does positive work: it pushes or pulls the object back toward \(x = 0\), adding energy as it goes. And, like gravity, the spring’s work depends only on where the end starts and finishes, not on how it got there.

    The work grows as the square of the stretch: stretching a spring twice as far takes four times the work. In Chapter 8 we will see that this work, like the work done lifting an object, is not lost; it is stored in the spring.

    Checkpoint 7.3

    A spring is compressed \(0.10\,\mathrm{m}\). In which direction does the spring force point, and what is the sign of the work the spring does on the hand compressing it? Now the hand releases the spring and it pushes back to its relaxed length: what is the sign of the work the spring does on the hand over that second stage?

    Answer

    Example 7.8: Drawing a bow

    An archer pulls a bowstring back \(0.400\,\mathrm{m}\) by exerting a force that increases uniformly from zero to \(230\,\mathrm{N}\). (a) What is the equivalent spring constant of the bow? (b) How much work does the archer do in drawing the bow?

    Solution

    (a) Because the force rises uniformly with displacement, the bow behaves like a spring, \(F = kx\). At full draw, \(F = 230\,\mathrm{N}\) when \(x = 0.400\,\mathrm{m}\). Divide both sides of \(F = kx\) by \(x\):

    \[k = \frac{F}{x} = \frac{230\,\mathrm{N}}{0.400\,\mathrm{m}} = 575\,\mathrm{N/m}.\]

    (b) The work is \(\tfrac{1}{2}kx^2\) (equation (7.7)). Square the displacement first, then multiply:

    \[W = \tfrac{1}{2}kx^2 = \tfrac{1}{2}(575\,\mathrm{N/m})(0.400\,\mathrm{m})^2 = \tfrac{1}{2}(575\,\mathrm{N/m})(0.160\,\mathrm{m^2}) = \boxed{46.0\,\mathrm{J}}.\]

    The units combine as \((\,\mathrm{N/m})(\,\mathrm{m^2}) = \,\mathrm{N\cdot m} = \,\mathrm{J}\).

    Check. The work is also the area under the force–displacement line in Figure 7.4: a triangle with base \(0.400\,\mathrm{m}\) and height \(230\,\mathrm{N}\), so \(W = \tfrac{1}{2}(0.400)(230) = 46.0\,\mathrm{J}\). This route does not even need \(k\). It also shows why the answer is half of \((230\,\mathrm{N})(0.400\,\mathrm{m})\): the archer’s force is \(230\,\mathrm{N}\) only at full draw, and averages half that over the pull.

    Example 7.9: Lowering a mass onto a spring

    A \(1.5\,\mathrm{kg}\) mass is hooked onto the end of a vertical spring (\(k = 120\,\mathrm{N/m}\)) hanging from the ceiling. Starting from the spring’s relaxed length, you support the mass with your hand and lower it slowly until it hangs at rest on its own. (a) How far does the spring stretch? Find the work done on the mass by (b) gravity, (c) the spring, and (d) your hand. (e) What is the net work?

    Solution

    (a) When the mass hangs at rest by itself, only two forces act on it: the spring pulling up with \(kd\) and gravity pulling down with \(mg\). Equilibrium requires \(kd = mg\), so

    \[d = \frac{mg}{k} = \frac{(1.5)(9.8)\,\mathrm{N}}{120\,\mathrm{N/m}} = \frac{14.7\,\mathrm{N}}{120\,\mathrm{N/m}} = \boxed{0.1225\,\mathrm{m}}.\]

    (b) The mass moves down \(d\), so \(\Delta y = -d\) and \(W_g = -mg\,\Delta y = mgd = (14.7)(0.1225) = \boxed{1.80\,\mathrm{J}}\).

    (c) The spring goes from \(x_i = 0\) to \(x_f = d\), so by equation (7.8)

    \[W_s = 0 - \tfrac{1}{2}kd^2 = -\tfrac{1}{2}(120)(0.1225)^2 = \boxed{-0.900\,\mathrm{J}}.\]

    (d) Lowering slowly means the mass is essentially in equilibrium the whole way down, so at each position your hand supplies whatever upward force is needed to balance the rest: \(F_{\rm hand} = mg - kx\). This force varies, so integrate. It points up while the mass moves down, so its work is negative:

    \[W_{\rm hand} = -\int_0^{d}(mg - kx)\,dx = -\left(mgd - \tfrac{1}{2}kd^2\right) = -(1.80 - 0.900) = \boxed{-0.900\,\mathrm{J}}.\]

    (e) \(W_{\rm net} = 1.80 - 0.900 - 0.900 = \boxed{0}\), as it must be: the mass starts and ends at rest, held in equilibrium throughout, so its energy does not change.

    The result splits evenly in an interesting way. Of the \(1.80\,\mathrm{J}\) that gravity supplied, the spring took half and your hand took the other half. Had you let go at the top instead of lowering the mass gently, your hand would have done no work at all, and the \(0.900\,\mathrm{J}\) it would otherwise have absorbed would have nowhere to go but into motion. The mass would overshoot and bounce, a situation Chapter 8 is designed to handle.

    Answers to Checkpoints

    Checkpoint 7.3. A compressed spring pushes outward, toward its relaxed length, that is, against the hand. While the hand compresses it, the hand moves inward against that outward force, so the spring does negative work on the hand (the hand does positive work on the spring). In equation (7.8), \(x_i = 0\) and \(|x_f| = 0.10\,\mathrm{m}\), so \(W_s < 0\). During the release the hand moves outward in the same direction as the spring’s push, so the spring does positive work on the hand; now \(|x_i| = 0.10\,\mathrm{m}\) and \(x_f = 0\), and \(W_s > 0\).


    This page titled 7.3: Work Done by a General Force was last modified on Thu, 12 Nov 2026 04:26:46 GMT and is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Michael Ragsdale.