### Classical mechanics

# The mass-spring system – Part 3

Here we seek to solve the equations of a mass-spring system in order to figure out the positions of the mass at different times during its harmonic motion.

In part 2, we obtained an approximate equation that tells us the force the mass experiences due to the spring, at its different positions during its motion. We now use Newton’s famous equation to find the mass’ position at different times during its travel.

**What Newton says about the mass-spring**

After an approximation of small displacements, we had obtained the force equation for the mass-spring as,

(1)

Using Newton’s equation for force, , we may write the above equation as,

(2)

We now write the acceleration as a second derivative of position. This follows from the very definition of acceleration as being the rate of change of velocity, which in turn is a rate of change of position – equivalently, the acceleration is *the rate of change of the rate of change of the position*! Mathematically we write this as the second derivative of position with respect to time – , so equation (2) now reads,

Or,

Since is anyway a constant for the given mass-spring system (we have the same mass of the mass, m, and the same spring of springiness k, all through the analysis), we denote it by ,

(3)

There’s a reason we chose , in particular. It has been found experimentally that the quantity is simply the frequency with which the mass oscillates about its equilibrium point. So, is called the “angular frequency”of the mass-spring system.

Now Eq. (3) is a “second order ordinary differential equation”. Now, those are some fancy adjectives that simply tell you that the equation contains terms that are second derivatives of a function (here ), the derivatives being the *ordinary* ones (in contrast with “partial derivatives”). And so, solving this equation will give us the function – the position of the mass at different times during its simple harmonic motion – just what we have set out to find.

**Finding x(t)**

There are a number ways one can solve Eq. (3). Most methods require more than elementary knowledge of mathematics. To keep the math minimum, we choose the simplest of all methods – *solving by inspection*. In this method all you need to do is *gaze* at the equation and try to *guess* a possible solution!

Eq. (3) reveals an important property of the function – that, differentiating twice () will give us back the original function () with a negative sign (and a constant multiplied: , here). The simplest function with such a property that must first happen to you must be the sine or the cosine. Recall that differentiating sine once gives cosine, and one more differentiation gives back a negative sine (). And the same explanation follows for the cosine function too. Therefore, and fix the required property of the function that you get back after double differentiation (with a negative sign). But we’ve left out the constant . Differentiating x(t) twice must give us and not just . To fix this we consider the sine (or cosine) function with an “argument” , i.e., (or equivalently . Also, to make the solution more general, we may consider a constant multiplied with , so that . Now, if you doubt any of the points explained here, all you ought to do is replace in Eq. (3) by (or ), and see that the equation is satisfied.

Now, the final step to obtain the most general solution to the differential equation (3) is to realize that the equation is “linear” – it does not contain terms that have higher powers (squared, cubed, etc) of the function . For example, or , wouldn’t be linear.

One of the properties of linear equations is that if and are two solutions of the equation, is also a solution. In fact, any “linear combination” of the solutions is also a solution. In our case, we may interpret this as

(4)

being a solution of the differential equation (3). (Do check!)

As for the constants *A* and *B*, they can be found by knowing the position at which the mass began its simple harmonic motion (the distance from the equilibrium position through which you pulled (or *pushed*) the block and released), and the speed with which the block began the motion. This information is called the initial conditions and can be calculated by looking at the solution at the *beginning of time* – .

And we find (from Eq. (4)) that (because and ). So, *B* is simply the initial position of the mass, .

To find *A*, just differentiate Eq. (4) once and set t=0 again,

(5)

So, or . If you know where you released the mass () and with what initial speed (), you know *A* and *B*. Also note that Eq. (5) tells you the velocity of the mass at different times during the motion, as Eq. (4) tells you the position.

To make sure you aren’t lost in all these technical details, the very purpose of our endeavor, we repeat – in order to explain the motion of the mass-spring system quantitatively, we firstly found out an equation empirically, for the force of the spring on the mass; approximated the equation to make it look simple, by considering small displacements from the equilibrium position; and solved the resulting differential equation to obtain the position of the mass at different times – .

So, once you’ve pulled (or pushed) the mass away from its equilibrium point and released it, with the knowledge of where you released the mass (), and the initial speed resulting due to your deliberate push (or pull) while releasing, (), and of course the minimum knowledge of the set up – the mass of the mass (*m*) and the springiness of the spring (*k*), you can safely bet on the position of the mass at different times () during its motion.

Cover image by Rachel Knickmeyer