# Work of spring

## Homework Statement

A spring has a relaxed length of 5 cm and a stiffness of 50 N/m. How much work must you do to change its length from 10 cm to 14 cm?

## Homework Equations

W= -U = F(delta R) = (Ks)(s)

## The Attempt at a Solution

-attempted solving this problem using the formula above
-got a value of 0.08 J
-value is apparently incorrect
-not quite sure where I went wrong

Doc Al
Mentor
The spring force is not constant, so you can't just use W = Fx. You'll have to integrate the force over the distance.

Alternatively, you can use the formula for the potential energy stored in a stretched spring.

so is the formula (0.5) K s^2 ?

K=stiffness = 50
s= 14-10 = 4

is this an accurate calculation?

Doc Al
Mentor
The formula is correct but your use of it is not. In the formula, s stands for the amount of stretch beyond the unstretched length.

When the spring has length 10, how much is it stretched?
When the spring has length 14, how much is it stretched?

Compare the energy at each of those positions.

oh ok... I think I understand

so essentially, I should use that formula separately to find work at 10cm (s=5) and 14cm(s=9)

and then find the difference of the too work values?

Doc Al
Mentor
That's correct.