Physics, Springs / motion: How do you write the expression for the displacement of mass as a function of time?
Remember that the motion of an object on a spring is in simple harmonic motion, and simple harmonic motion (or SHM) is a form of periodic motion. Any equation that is periodic in nature consists of sines and cosines. In this case, the function of the displacement against time is: A*sin(w*t + phi), where A is the amplitude of the periodic motion, w is the angular velocity of the motion, which is the same value as sqrt(k/m), where m is the mass of the object and k is the spring constant. phi is the angular displacement of the object from the origin at t = 0. For more information, check out the link before.