Hookes law: Calculate the work done by compressing a spring

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
x86
Gold Member
Messages
256
Reaction score
18

Homework Statement


Hookes law: Calculate the work done by compressing a spring by x distance


Homework Equations


W = Fd
Ee = 1/2 k x^2
F = kx


The Attempt at a Solution



I've found two solutions, but only one is correct. I'm confused why it's the second one.

First formula I derived:
W = Fd
F = kx
d = x

Therefore W = kx^2

However, you can also use the elastic potential energy equation which is a modified version of the equation I made which is

W = 1/2 k x^2 - 0

So, why is it the second equation and not the first one? The way I see it, they sort of both are valid. What is wrong with the first one? Work is force * distance, and that's exactly what I'm doing.
 
Physics news on Phys.org
The spring force is a function of x, so W = Fd is not valid. You will have to do an integral.