The effective mass of the spring in a spring–mass system when using a heavy spring (non-ideal) of uniform
linear density is \frac{1}{3} of the mass of the spring and is independent of the direction of the spring–mass system (i.e., horizontal, vertical, and oblique systems all have the same effective mass). This is because external acceleration does not affect the period of motion around the
equilibrium point. The effective mass of the spring can be determined by finding its kinetic energy. For a differential mass element of the spring \mathrm{d}m at a position s (dummy variable) moving with a speed u(s), its kinetic energy is: \mathrm{d}K = \tfrac{1}{2}\mathrm{d}m\, u^2 In order to find the spring's total kinetic energy, it requires adding all the mass elements' kinetic energy, and requires the following
integral: K =\int\limits_\mathrm{spring}\frac{1}{2}u^2\;\mathrm{d}m If one assumes a homogeneous stretching, the spring's mass distribution is uniform, \mathrm{d}m=\frac{m}{y}\mathrm{d}s, where y is the length of the spring at the time of measuring the speed. Hence, \begin{align} K &= \int_0^y\frac{1}{2}u^2\left(\frac{m}{y}\right)\mathrm{d}s \\ &= \frac{1}{2}\frac{m}{y}\int_0^y u^2\mathrm{d}s \end{align} The velocity of each mass element of the spring is directly proportional to length from the position where it is attached (if near to the block then more velocity, and if near to the ceiling then less velocity), i.e. u(s)=\frac{s}{y}v, from which it follows: \begin{align} K &= \frac{1}{2}\frac{m}{y}\int_0^y\left(\frac{s}{y}v\right)^2\mathrm{d}s \\ &= \frac{1}{2}\frac{m}{y^3}v^2\int_0^y s^2\,\mathrm{d}s \\ &= \frac{1}{2}\frac{m}{y^3}v^2\left[\frac{s^3}{3}\right]_0^y \\ &= \frac{1}{2}\frac{m}{3}v^2 \end{align} Comparing to the expected original
kinetic energy formula \frac{1}{2}mv^2, the effective mass of spring in this case is \frac{m}{3}. This result is known as ''Rayleigh's value'', after
Lord Rayleigh. To find the gravitational potential energy of the spring, one follows a similar procedure: \begin{align} U &= \int\limits_\mathrm{spring} \mathrm{d}m \, g s = \int_0^y \frac{m}{y} g s \;\mathrm{d}s \\[1ex] &= mg\,\frac{1}{y} \int_0^y s \;\mathrm{d}s = mg\,\frac{1}{y} \left[\frac{s^2}{2}\right]_0^y \\[1ex] &= \frac{m}{2}gy \end{align} Using this result, the total energy of system can be written in terms of the displacement y from the spring's unstretched position (taking the upwards direction as positive, ignoring constant potential terms and setting the origin of potential energy at y=0): \begin{align} E &= \tfrac{1}{2} \tfrac{m}{3} v^2 + \tfrac{1}{2}M v^2 + \tfrac{1}{2} k y^2 +\tfrac{1}{2}m g y + M g y \\[1ex] &= \tfrac{1}{2} \left(M + \tfrac{m}{3}\right) v^2 + \tfrac{1}{2} k y^2 +\left(M + \tfrac{m}{2}\right)g y \end{align} Note that g here is the acceleration of gravity along the spring. By differentiation of the equation with respect to time, the equation of motion is: \left( M+\frac{m}{3}\right)\ a = -ky -\left(M+\frac{m}{2}\right)g The equilibrium point y_\mathrm{eq} can be found by letting the acceleration be zero: y_\mathrm{eq} = -\frac{\left(M+\frac{m}{2}\right)g}{k} Defining \bar{y} = y - y_\mathrm{eq}, the equation of motion becomes: \left( M+\frac{m}{3} \right) \ a = -k\bar{y} = -k(y - y_\mathrm{eq}) This is the equation for a simple harmonic oscillator with
angular frequency: \omega= \sqrt{\frac{k}{M + \frac{m}{3}}\,} Thus, it has a smaller angular frequency than in the
ideal spring. Also, its period is given by: T= 2\pi \sqrt{\frac{M + \frac{m}{3}}{k}\,} Which is bigger than the ideal spring. Both formulae reduce to the ideal case in the limit \frac{m}{M} \to 0. So the effective mass of the spring added to the mass of the load gives us the "effective total mass" of the system that must be used in the standard formula 2\pi\sqrt{\frac{m}{k}} to determine the period of oscillation. Finally, the solution to the
initial value problem: \left\{ \begin{matrix} \ddot{y} & = & -\omega^2(y-y_\mathrm{eq}) \\ \dot{y}(0) & = & \dot{y}_0 \\ y(0) & = & y_0 \end{matrix}\right. Is given by: y(t) = (y_0-y_\text{eq})\cos(\omega t) + \frac{\dot{y}_0}{\omega}\sin(\omega t) + y_\text{eq} Which is a simple harmonic motion. ==General case ==