1. Ball on a Spring (Classical)

This is article 1 in the sequence entitled Fields and Particles: with Math

Fig. 1: A ball on a spring has an equilibrium position (blue line). If it is displaced to either side of that position (green arrow), the spring exerts a force F (red arrow) that pushes it back toward the equilibrium position. The farther it is displaced, the stronger is the force. The consequences of such a “restoring force” (that acts as though trying to restore equilibrium) are that the ball, if placed at the equilibrium position, will remain there, and that if the ball is displaced and then allowed to move freely, it will oscillate around the equilibrium position.

If you want to understand particle physics, there’s basically one thing to remember from freshman physics, or even high school physics — and that’s how a spring works. Basically, anything that bounces, vibrates, rings, wiggles, rolls back and forth, or goes boing-boing-boing is, at heart, an example of a spring.

Let’s imagine we attach a ball to the end of a spring. The motion of a spring, and the equations behind that motion, are simple. What we’ll do is this: First, let’s recall the basic workings of a spring. Then we’ll look at the motion of the ball once it starts bouncing around — oscillation. And finally, for those who’d like to see it (it can be skipped for now if you want), we’ll review the equations that lead to that motion.

The Harmonic Oscillator (i.e. Ball on a Spring)

The ball on a spring has an equilibrium position; this is the location where if you place the ball there and let go of it, the spring will not push the ball in either direction, and the ball will remain stationary. This is the blue line in Figure 1. If you pull the ball away from its equilibrium position (green arrows in Figure 1), the spring will pull the ball back toward its equilibrium position with a force F (red arrow). The further you pull the ball, the harder the spring pulls back (at least as long as you don’t pull so hard that the spring breaks or becomes so compressed that it is crushed.)

Oscillatory Motion (i.e. Bouncing!)

Let’s call the direction in which the ball can move “the z direction”, and let’s define the z axis so that z=z0 is the equilibrium position for the ball on the spring. Now suppose you pull the ball away from its equilibrium position, holding it so that it isn’t moving, at the position z = z0 + A; and then, at a chosen moment in time (which we’ll call t=0) you let go. The ball will start to bounce back and forth; see Figure 2. The size of the bounce — the amplitude of the oscillation — is simply A. It can be as big or small as you like; you chose how far to pull the ball away from equilibrium before you let it go. But how often the back-and-forth bounce occurs — the frequency of oscillation ν — is not something you control. It turns out to be the same no matter what A is; it is determined only by properties of the ball and of the spring, not by what you chose to do. See Figure 2.

For scientific research it’s crucial to put these observations into a math formula. The location z of the ball as a function of the time t, which we write as the function z(t), takes the form

z(t) = z0 + A cos [ 2 π ν t ]

where as usual cos is short for cosine, π is the number “pi” that shows up in circular geometry, z0 is the ball’s equilibrium position, and A and ν (“nu”) are the amplitude and frequency of oscillation. The cosine function is an oscillating function, so this formula represents oscillatory motion with amplitude A and frequency ν. Examples of oscillatory motion for a ball on a spring, with different values of the initial displacement (and resulting amplitude) A, are shown in Figure 2, which also illustrates that for a given ball and spring, the frequency ν doesn’t depend on the amplitude A.

Fine print: Both the amplitude and frequency are positive (or zero). If you chose A to be negative, then the amplitude is -A; in short the amplitude is really |A|, the absolute value of A.

Fig. 2: The motion of a ball on a spring (click to see the animation.) Each ball shown represents the same ball and spring, displaced initially by a different amount. This leads to motion in which the ball oscillates around the equilibrium position (zero on the vertical axis) with an amplitude A proportional to the initial displacement, and with a frequency that is always the same no matter how large is the amplitude. Daily experience suggests the amplitude can be chosen as large or small as desired; quantum mechanics says otherwise. (M. Strassler 2012; All Rights Reserved)

What’s hugely important to remember about amplitude and frequency for the ball and spring (in classical [i.e.pre-quantum] physics.)

You can choose whatever amplitude A you like;

However, the spring and the ball determine ν, and the only way you can change the frequency ν is to replace the spring with a different one, or the ball with a different one.

The period of each oscillation (how long it takes for the ball to swing back and forth exactly once) we’ll call T, and the period is just the inverse of the frequency: T = 1/ν. If the period is 5 seconds, then the frequency is once-every-5-seconds, or 1/5 per second (often called 1/5 Hertz [Hz for short]).

More fine print: for any realistic ball-spring system you’ll encounter in daily life, friction will cause A to gradually become smaller, and eventually A will decrease to zero and the motion will stop. The formulas for the motion including the effects of friction aren’t that much more difficult to write down, but we won’t need them here. So I’ll assume friction is always small, so that A decreases very slowly, and we can just use the simple formulas that ignore friction. However, there’s one really important thing to know: friction decreases A, but (unless it is very strong) has no effect on ν, and on T! The frequency of oscillation remains the same even as the amplitude decreases. This is why the note produced by a guitar string after you pluck it does not change, even as the sound it produces becomes softer and dies away.

One more thing: there’s a nice formula for the energy stored in an oscillating spring. It is proportional to the square of the amplitude and the square of the frequency:

E = 2 π2 ν2 A2 M

This energy is partly the ball’s motion-energy (“kinetic”) and partly relationship-energy (“potential”) stored in the spring, and as the ball swings back and forth, the partition of the total energy into these two types of energy changes back and forth. But the total energy E is constant during the motion. (Fine Print: There’s also the mass-energy of the ball, M c2, but we’re not keeping track of that because that energy is present whether or not the spring is moving.)

This same oscillatory motion formula applies to pretty much everything that wiggles or bounces, as long as the wiggles aren’t too big: a ball rolling at the bottom of a bowl; a car bouncing on bad shock absorbers; a vibrating violin string or guitar string after it is plucked; a xylophone key after it is struck; and so on.

The Equation of Oscillatory Motion (i.e. Bouncing Math)

Now let’s remember the basic formulas that allow us to understand why the ball on the spring has oscillatory motion. (You can skip this section at first reading; but at some point you may need it, especially if you want to understand how the Higgs field works.)

As we said at the beginning (Figure 1), the ball on the spring has an equilibrium position, which we can called z = z0. Suppose that at any given moment (either because we’ve pulled on the ball, or because it is bouncing on its own) it is found at some other position z. Then if z > z0, i.e. if the displacement from equilibrium z – z0 is positive, then the spring will exert a force that is pointed in the negative z direction so as to pull the ball back toward the equilibrium point. Conversely, if z < z0, i.e. if the displacement from equilibrium z – z0 is negative, then the spring will exert a force that is pointed in the positive z direction, again so as to pull the ball back toward the equilibrium point. And the further the ball is away from the equilibrium position, the harder the spring pulls. The force F that the spring exerts is related to the displacement from equilibrium by

F = – K (z – z0)

where K is a positive quantity that depends on the specific spring, and is called the spring constant.

Note that this formula has the right properties:

If the ball is at the equilibrium point, F = 0; the spring exerts no force, so if the ball is motionless at the equilibrium point, it will remain there (in equilibrium).

If the displacement is positive, the force is negative.

If the displacement is negative, the force is positive.

The larger the displacement, the larger the force.

Next we appeal to Newton’s second law of motion, which tells us that under a force F, a ball of mass M will move with acceleration a, where F = M a. Plugging this into the previous formula gives us

M a = – K (z – z0)

or

a = – K/M (z – z0)

This is almost the equation we need to derive the oscillatory motion. We just need to remind ourselves about the relationship between a and z. To do that it is useful to remember the relationship between a and the velocity v, and between v and z. That relationship is one of change with time:

the velocity is the change in time of the position, v = dz/dt

the acceleration is the change in time of the velocity, a = dv/dt

[If you haven’t had calculus, the expression dz/dt looks strange; but it’s just a way of representing the words to the left of it, so focus on the words.] Putting these together

a = d(dz/dt)/dt = d2z/dt2

the acceleration is the change in time of the change in time of the position.

We can then rewrite our formula as the equation of motion

d2z/dt2 = – K/M (z – z0) (*)

where z is shorthand for z(t). And now we can check that oscillatory motion z(t)= z0 + A cos[ 2 π ν t ] is a solution to this equation of motion. All we need to do is first calculate the particle’s velocity as the change in time of its position:

d/dt (z0 + A cos[ 2 π ν t ]) = – (2 π ν) A sin[ 2 π ν t ]

(dz0/dt = 0 since the equilibrium position z0 isn’t changing with time, and d/dt(cos wt) = -w sin wt [the change in time of a cosine of a number w times t is equal to w times minus the sine of w times t]); and then we calculate the particle’s acceleration as the change in time of its velocity

d/dt [– (2 π ν) A sin[ 2 π ν t ] ] = – (2 π ν)2 A cos[ 2 π ν t ]

(because d/dt(sin wt) = w cos wt [the change in time of a sine of a number w times t is w times the cosine of w times t].) Thus

d2z/dt2 = – (2 π ν)2 A cos[ 2 π ν t ] = – (2 π ν)2 (z – z0)

where in the last step I used the formula z(t)= z0 +A cos[ 2 π ν t ] for oscillatory motion. This final equation is the same as our equation of motion [ d2z/dt2 = – K/M (z – z0) ] provided that – (2 π ν)2 = K/M, i.e., as long as the frequency of oscillation is

ν = √ K/M / 2π

So we have indeed found that our equation of motion implies the spring will oscillate with the above frequency, that this frequency does not depend on A — it depends only on properties of the spring (K) and the ball (M) — and that there is a solution to the equation no matter what A is. Thus we are free to choose A to be any size, determined by however far we pull the ball away from the equilibrium point before we release it.

Next Up: The Quantum Ball on a Spring

That’s the ball on the spring in classical [i.e., pre-quantum] physics. Quantum mechanics changes many things, but the most important is this: we are still free to choose A, but A cannot be of an arbitrary size. Instead, it can only take special values, proportional to the square root of an integer.

Share this:

Like this:

20 responses to “1. Ball on a Spring (Classical)”

Even though I’ve already seen the things it starts with somewhere else, I’ll follow it just because such articles are so much fun to read and reconsider certain things from time to time (explained by someone else) does never hurt 🙂

The “boing boing boing” at the beginning for example made me LOL 😀 and both, such funny statements as well as the very clear explanations of things in all of the educational articles on this site, strongly reminds of the Lenny Susskind funny as hell, instructive, and enjoyable online lectures I have seen (all of them!) …

I am looking forward to this series of articles! I just tried to ingest Penrose’s _Road to Reality_, which, I think, is going in a similar direction. Despite having most of the requisite mathematical background, I still found it impenetrable in spots (though enlightening in others). I’ve read many of your posts, and your enlightening-to-impenetrable ratio is *much* better.

is slightly misleading (although maybe that’s ok for this). It’s true that friction doesn’t cause the frequency to change with time (so the note doesn’t change as the guitar string damps out), but friction does change v and T from their values in the undamped case (so increasing the damping on a guitar string will change the note). Admittedly this is a technical point.

Grade VII science class – age 12 – teacher asks: ”If I hang one of these on a coil spring and it stretches one inch, how far will it stretch if I hang two?”
Me: ”I don’t know. It depends.”
I was made to look like a fool for being unable to verbalize that we needed to first determine the linearity of the spring constant.
40+yrs haven’t completely erased the resentment.

There is something wrong with your picture. The way you drew it, it looks impossible to have an equilibrium at the blue line, the spring is still extended. Maybe you need to change the orientation of the picture so that the ball moves downward due to gravity.

Springs can be stressed by either compression or extension. There are some springs, for example, a slinky, where the equilibrium point is where the spring is completely compressed. This may be what you are thinking of. But there are other springs, such as bed springs or a pogo stick, where the spring will be extended when in equilibrium.

Hello Professor
I may be off base here but I was wondering if A(distance from the equilibrium) is related to Energy by A = the square root of (E/2 π2 ν2 M), then energy must be continuous in order to choose an arbitrary A? I thought Energy was not continuous and only came in discrete values? Does this not suggest that it is not possible to choose an arbitrary A and only values of A that correspond to those values for A that corresponds to a multiple of some discrete energy?
.

Matt
I am having trouble with this part of your math: All we need to do is first calculate the particle’s velocity as the change in time of its position:

d/dt (z₀ + A cos[ 2 π ν t ]) = – (2 π ν) A sin[ 2 π ν t ]

If z is short hand for z(t) and z(t)=z₀+Acos[2πvt] then shouldn’t the particles velocity be written as dz(t)/dt, which becomes, dz₀+[2πvt]/dt? It appears to me that the numerator and denominator are reversed and that there is a missing term for time, t. Please forgive me if I am missing something here. And thank you for bearing with me as I attempt to deepen my understanding. Or this all may just be a misunderstanding caused by the way the equations look on the page, which make it appears as if (z₀ + A cos[ 2 π ν t ]) is in the numerator. If that is the case I am sorry to have bothered you.

Very great post. I simply stumbled upon your blog and wanted to mention that I’ve really loved
browsing your blog posts. After all I will be subscribing on your feed and I
hope you write once more very soon!

I am a science graduate, in fact MSc. But I graduated in 1955. Did not work on the field, but I never lost my love for it. Now I am retired, and had other changes in my life. Decided to follow up on what happened during my lost time. It is not easy, but your article is like fresh air. Simple, easy to follow and to understand. You have no idea how much it means to me, and how thankful I am.Well, I briefly explain. I lost my husband (dyed) a few months ago. I lived for him, and I need to fill the vacuum. That is why want to follow up on news in the world of physics.But your simplicity and very logical step by step presentation is hard to come by. Thank you very, very much.
Magda Selmeci. MSc.