Work of a Spring: Does Compression/Stretching Always Result in Negative Work?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 10K views
rwx1606
Messages
31
Reaction score
0

Homework Statement


Is the work done BY a spring always negative when you compress or stretch it?


Homework Equations


W=-1/2kx^2


The Attempt at a Solution


I know that the spring force always acts opposite of displacement when compressing or stretch. So when you compress or stretch the spring, the work the spring does should be -1/2kx^2. I'm having a hard time convincing myself mathematically though. So you compress the spring from x initial=0 m to a x final equal to some -4 m. The spring force according to this convention, F=-kx becomes a positive kx because the displacement is negative. When I integrate the force, do I put a a positive sign now, so in this case I would integrate the spring force from -4m to 0m? Also I know work is the Magnitude of the force times the Magnitude of the displacement for a constant force. Does this hold in varying forces such as the spring force?
 
Physics news on Phys.org
Hi rwx1606,

rwx1606 said:

Homework Statement


Is the work done BY a spring always negative when you compress or stretch it?


Homework Equations


W=-1/2kx^2


The Attempt at a Solution


I know that the spring force always acts opposite of displacement when compressing or stretch. So when you compress or stretch the spring, the work the spring does should be -1/2kx^2.

This is true if the spring starts with x=0. So if the spring is initially unstretched (and uncompressed), then if it is stretched or compressed the work done by the spring is negative like you have.

But if you talk about the the spring going from x=4 to x=2, for example, the work done by the spring force would be positive.

I'm having a hard time convincing myself mathematically though. So you compress the spring from x initial=0 m to a x final equal to some -4 m. The spring force according to this convention, F=-kx becomes a positive kx because the displacement is negative.

The force is positive, but F is still F=-k x.

When I integrate the force, do I put a a positive sign now, so in this case I would integrate the spring force from -4m to 0m? Also I know work is the Magnitude of the force times the Magnitude of the displacement for a constant force. Does this hold in varying forces such as the spring force?

No, you integrate to find the work done by the spring force. (If you try just multiplying the magnitudes, you'll find that you are missing a numerical factor.)