Tutorials › Calculus II › Spring Work and External Work

Work and Variable Forces · Tutorial 457 of 998

Spring Work and External Work

Learn how to calculate spring work and controlled external work, and determine the sign of each for different motions.

Intermediate 10 min read

What You'll Learn

  • Distinguish work done by a spring from work done by an external agent.
  • Use signed displacement from equilibrium to track spring force and motion.
  • Calculate spring work over any interval of positions.
  • Explain why slow, controlled motion makes external work the opposite of spring work.
  • Determine the work signs for stretching, compression, release, and return to equilibrium.
  • Recognize why using an endpoint spring force as a constant gives the wrong work.

Two Forces, Two Work Values

A spring can exert a force on an object while an external agent, such as a hand, also exerts a force on it. The work done by the spring and the work done by the external agent are different quantities. They can have opposite signs even though they describe the same motion.

For example, when a spring is stretched slowly from its equilibrium position, the external agent pulls in the direction of motion and does positive work. The spring pulls against the motion and does negative work. When the stretched spring is released and moves back toward equilibrium, those signs reverse: the spring does positive work, while an agent that restrains the spring does negative work.

To make these statements precise, let \(x\) denote the signed displacement from the spring’s equilibrium position, with positive \(x\) in the direction of stretching. Hooke’s law says that a spring with spring constant \(k>0\) exerts the force \(F_{\mathrm{s}}(x)=-kx\). Work over a displacement is found by integrating the force along the motion.

Key distinction: Spring work is calculated using the spring’s force. External work is calculated using the external agent’s force. The forces, and therefore their work values, must not be confused.

Work Done by the Spring

Suppose the spring moves from position \(x=a\) to position \(x=b\). In one dimension, the work done by a force \(F(x)\) over this displacement is \(\int_a^b F(x)\,dx\). Applying this definition to the spring force gives the spring’s work.

$$ W_{\mathrm{s}} = \int_a^b F_{\mathrm{s}}(x)\,dx = \int_a^b (-kx)\,dx = -\frac{1}{2}k(b^2-a^2). $$

The sign depends on the change in the square of the displacement. Moving farther from equilibrium increases \(x^2\), so the spring does negative work. Moving toward equilibrium decreases \(x^2\), so the spring does positive work. The formula applies whether the spring is stretched (\(x>0\)) or compressed (\(x<0\)).

Spring-work formula: If a spring with constant \(k\) moves from signed displacement \(a\) to signed displacement \(b\), then \(W_{\mathrm{s}}=-\frac12 k(b^2-a^2)\). The result is signed work, not necessarily a positive amount.

Work Done by a Slowly Applied External Force

Now suppose an external agent moves the spring slowly and in a controlled way. In the idealized slow-motion model, the agent adjusts its force so that it balances the spring force at each position. Thus \(F_{\mathrm{ext}}(x)=-F_{\mathrm{s}}(x)=kx\). This is the condition that allows the object to be moved without appreciable acceleration in the model.

Integrating the external force over the same displacement gives

$$ W_{\mathrm{ext}} = \int_a^b F_{\mathrm{ext}}(x)\,dx = \int_a^b kx\,dx = \frac{1}{2}k(b^2-a^2) = -W_{\mathrm{s}}. $$

The equality \(W_{\mathrm{ext}}=-W_{\mathrm{s}}\) requires the controlled-motion assumption: the external force balances the spring force throughout the displacement. It is not a claim that the work of every possible external force is always the negative of the spring’s work. If an object is accelerated, for example, the forces need not balance. The calculation here concerns slow, controlled stretching, compression, or return.

The quantity \(\frac12kx^2\) is the energy stored in the spring at displacement \(x\). The difference between its final and initial values is \(\frac12 k(b^2-a^2)\). In this controlled setting, the external agent’s work equals that change, while the spring’s work is its negative.

Why the Formulas Work

The derivation follows directly from the work definition and Hooke’s law. The spring force at each position is not constant: its magnitude depends on \(x\). Therefore, the work must account for the changing force over the whole interval, rather than multiplying one force value by the total displacement.

1
Write the force laws.
Hooke’s law gives \(F_{\mathrm{s}}(x)=-kx\). For slow, balanced motion, the external agent supplies \(F_{\mathrm{ext}}(x)=kx\).
2
Integrate over the displacement.
For motion from \(a\) to \(b\), integrate each force with respect to \(x\) from \(a\) to \(b\).
3
Evaluate and compare.
The spring integral is \(-\frac12k(b^2-a^2)\), and the external-force integral is \(+\frac12k(b^2-a^2)\). They are opposites under the stated balance condition.

This also explains why direction matters. Work is signed: it is positive when a force acts in the direction of displacement and negative when it acts against the displacement. For spring work, the integral handles both the force direction and the displacement direction.

Signs for the Main Spring Motions

The following sign patterns assume slow, controlled motion by an external agent. The agent balances the spring force, so its work has the opposite sign to the spring’s work.

MotionSpring workExternal work
Stretch from equilibrium to \(x>0\)NegativePositive
Compress from equilibrium to \(x<0\)NegativePositive
Release from a stretch and move toward \(x=0\)PositiveNegative
Return from a compression and move toward \(x=0\)PositiveNegative

For compression, the displacement is negative, and the spring force points in the positive direction. Their opposing directions make spring work negative as the spring is compressed. The external agent pushes in the negative direction, along the displacement, so its work is positive. On a slow return from compression, the spring force and displacement are both positive, so the spring does positive work.

Worked Examples

Worked Example: Slowly Stretching a Spring

A spring has \(k=200\ \mathrm{N/m}\). Find the spring work and external work when it is stretched slowly from equilibrium to \(x=0.15\ \mathrm{m}\).

Here \(a=0\ \mathrm{m}\) and \(b=0.15\ \mathrm{m}\). The spring work is

$$ \begin{aligned} W_{\mathrm{s}} &=-\frac12 k(b^2-a^2)\\ &=-\frac12(200\ \mathrm{N/m})\big((0.15\ \mathrm{m})^2-(0\ \mathrm{m})^2\big)\\ &=-100\ \mathrm{N/m}(0.0225\ \mathrm{m^2})\\ &=-2.25\ \mathrm{N\,m}\\ &=-2.25\ \mathrm{J}. \end{aligned} $$

The external agent balances the spring force throughout the slow stretch, so its work is the opposite:

$$ W_{\mathrm{ext}}=+2.25\ \mathrm{J}. $$

Check: \(W_{\mathrm{s}}+W_{\mathrm{ext}}=-2.25\ \mathrm{J}+2.25\ \mathrm{J}=0\), as required by the balanced-motion model. The signs also match the directions: the spring opposes the stretch, and the external force acts with it.

Worked Example: Compressing a Spring

Let \(k=300\ \mathrm{N/m}\). Find the spring work and the external work for a slow compression from equilibrium to \(x=-0.10\ \mathrm{m}\).

Use \(a=0\ \mathrm{m}\) and \(b=-0.10\ \mathrm{m}\). Then

$$ \begin{aligned} W_{\mathrm{s}} &=-\frac12(300\ \mathrm{N/m})\big((-0.10\ \mathrm{m})^2-(0\ \mathrm{m})^2\big)\\ &=-150\ \mathrm{N/m}(0.010\ \mathrm{m^2})\\ &=-1.50\ \mathrm{N\,m}\\ &=-1.50\ \mathrm{J}. \end{aligned} $$

The external work is the opposite under slow, balanced compression:

$$ W_{\mathrm{ext}}=+1.50\ \mathrm{J}. $$

Check the force directions at the compressed endpoint: \(F_{\mathrm{s}}=-kx=-300\ \mathrm{N/m}(-0.10\ \mathrm{m})=+30\ \mathrm{N}\), while the external force is \(-30\ \mathrm{N}\). During compression the displacement is negative. The spring force points against it, while the external force points with it, agreeing with the calculated signs.

Worked Example: Releasing a Stretched Spring

A spring with \(k=250\ \mathrm{N/m}\) is moved slowly from \(x=0.12\ \mathrm{m}\) back to equilibrium. Find the work done by the spring and by the restraining external agent.

Now \(a=0.12\ \mathrm{m}\) and \(b=0\ \mathrm{m}\). Therefore,

$$ \begin{aligned} W_{\mathrm{s}} &=-\frac12(250\ \mathrm{N/m})\big((0\ \mathrm{m})^2-(0.12\ \mathrm{m})^2\big)\\ &=-125\ \mathrm{N/m}(-0.0144\ \mathrm{m^2})\\ &=+1.80\ \mathrm{N\,m}\\ &=+1.80\ \mathrm{J}. \end{aligned} $$

The external agent restrains the spring and moves it slowly, so \(W_{\mathrm{ext}}=-1.80\ \mathrm{J}\). Check: \(W_{\mathrm{s}}+W_{\mathrm{ext}}=1.80\ \mathrm{J}-1.80\ \mathrm{J}=0\). The spring force points toward equilibrium, along the return displacement, which confirms that spring work is positive.

A Common Mistake: Treating the Endpoint Force as Constant

Work for a variable force is not generally the endpoint force multiplied by the total displacement. Consider compressing a spring with \(k=400\ \mathrm{N/m}\) from equilibrium to \(x=-0.10\ \mathrm{m}\). At the endpoint, the spring force is \(F_{\mathrm{s}}=-kx=+40\ \mathrm{N}\). Using that endpoint force as if it acted throughout the compression produces this incorrect calculation:

$$ W_{\mathrm{s}}\ \text{(incorrect)} = (+40\ \mathrm{N})(-0.10\ \mathrm{m}) = -4\ \mathrm{J}. $$

The multiplication is dimensionally a work value, but the assumption is wrong: the spring force is not constantly \(+40\ \mathrm{N}\) over the interval. It varies from \(0\ \mathrm{N}\) to \(+40\ \mathrm{N}\). The correct calculation integrates that changing force:

$$ \begin{aligned} W_{\mathrm{s}} &=\int_0^{-0.10\ \mathrm{m}}(-400\ \mathrm{N/m})x\,dx\\ &=-200\ \mathrm{N/m}\big((-0.10\ \mathrm{m})^2-(0\ \mathrm{m})^2\big)\\ &=-200\ \mathrm{N/m}(0.010\ \mathrm{m^2})\\ &=-2.0\ \mathrm{J}. \end{aligned} $$

The result is half the magnitude of the incorrect endpoint-force estimate because the force increases linearly from zero to its endpoint value. The integral, rather than a constant-force multiplication, is the appropriate method for this variable force.

Why the Distinction Matters

Asking “How much work is done?” is incomplete unless the force doing the work is identified. During a slow stretch, the external agent supplies energy to the spring, while the spring does negative work on the moving object. During a slow return, the spring does positive work, while the restraining agent does negative work. The same displacement interval can therefore be described by two different work values with opposite signs.

For any slow, controlled move from \(a\) to \(b\), calculate the spring work from the spring force and then take its negative for the external work. Keep the signed values of \(a\) and \(b\), use metres for displacement and \(\mathrm{N/m}\) for \(k\), and check that \((\mathrm{N/m})(\mathrm{m^2})=\mathrm{N\,m}=\mathrm{J}\). These steps keep the direction, physical agent, and units clear.

Check Your Understanding

For each question, assume the spring is moved slowly and the external agent balances its force throughout the motion.

  1. A spring is stretched from \(x=0\) to \(x=0.08\ \mathrm{m}\). Is the spring’s work positive or negative? Is the external work positive or negative?
  2. A spring is compressed from \(x=0\) to \(x=-0.06\ \mathrm{m}\). Which force does positive work?
  3. For motion from \(x=0.10\ \mathrm{m}\) to \(x=0.04\ \mathrm{m}\), is the spring moving toward or away from equilibrium, and what is the sign of its work?
  4. Why can the spring force at the endpoint not usually be multiplied by the full displacement to find work?
  5. For controlled motion from \(x=a\) to \(x=b\), state the relationship between the external work and spring work.