A block of mass m is attached rigidly with a light spring of force constant k. The other end of the spring is fixed to a wall. If block is displaced by a distance x, find the work done on the block by the spring for this range. (The spring force is given by F=−kx , where k is spring constant and x is displacement of the block.)
Since F=−kx, therefore force varies with displacement. This force has tendency to bring the block to its equilibrium point hence it is opposite to the displacement. For infinitesimal displacement (dx) this force is supposed to be constant. Therefore work done by this force for the displacement dx is given by
dW=→F.−→dx=−kxdx
⇒W=∫dW=−∫xokxdx⇒w=−12kx2