In SHM restoring force is F=−kx, where k is force constant, x is displacement and a is amplitude of motion, then total energy depends upon
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.)