attached to a spring of force constant k which is rigidly fixed on the wall on left side