27A: Oscillations: Introduction, Mass on a Spring
( \newcommand{\kernel}{\mathrm{null}\,}\)
If a simple harmonic oscillation problem does not involve the time, you should probably be using conservation of energy to solve it. A common “tactical error” in problems involving oscillations is to manipulate the equations giving the position and velocity as a function of time, x=x maxcos(2πft) and v=−v maxsin(2πft) rather than applying the principle of conservation of energy. This turns an easy five-minute problem into a difficult fifteen-minute problem.
When something goes back and forth we say it vibrates or oscillates. In many cases oscillations involve an object whose position as a function of time is well characterized by the sine or cosine function of the product of a constant and elapsed time. Such motion is referred to as sinusoidal oscillation. It is also referred to as simple harmonic motion.
Math Aside: The Cosine Function
By now, you have had a great deal of experience with the cosine function of an angle as the ratio of the adjacent to the hypotenuse of a right triangle. This definition covers angles from 0 radians to π2 radians (0∘ to 90∘). In applying the cosine function to simple harmonic motion, we use the extended definition which covers all angles. The extended definition of the cosine of the angle θ is that the cosine of an angle is the x component of a unit vector, the tail of which is on the origin of an x-y coordinate system; a unit vector that originally pointed in the +x direction but has since been rotated counterclockwise from our viewpoint, through the angle θ, about the origin.
Here we show that the extended definition is consistent with the “adjacent over hypotenuse” definition, for angles between 0 radians and π2 radians. For such angles, we have:
in which, u, being the magnitude of a unit vector, is of course equal to 1, the pure number 1 with no units. Now, according to the ordinary definition of the cosine of θ as the adjacent over the hypotenuse:
cos θ= uxu
Solving this for ux we see that
ux=ucosθ
Recalling that u=1, this means that
ux= cosθ
Recalling that our extended definition of cosθ is, that it is the x component of the unit vector ˆu when ˆu makes an angle θ with the x-axis, this last equation is just saying that, for the case at hand ( θ between 0 and π2 ) our extended definition of cosθ is equivalent to our ordinary definition.
At angles between π2 and 3π2 radians ( 90∘ and 270∘ ) we see that ux takes on negative values (when the x component vector is pointing in the negative x direction, the x component value is, by definition, negative). According to our extended definition, cosθ takes on negative values at such angles as well.
With our extended definition, valid for any angle θ, a graph of the cosθ vs. θ appears as:
Some Calculus Relations Involving the Cosine
The derivative of the cosine of θ, with respect to θ:
ddθcosθ = −sinθ
The derivative of the sine of θ, with respect to θ:
ddθsinθ = cosθ
Some Jargon Involving The Sine And Cosine Functions
When you express, define, or evaluate the function of something, that something is called the argument of the function. For instance, suppose the function is the square root function and the expression in question is √3x. The expression is the square root of 3x, so, in x that expression, 3x is the argument of the square root function. Now when you take the cosine of something, that something is called the argument of the cosine, but in the case of the sine and cosine functions, we give it another name as well, namely, the phase. So, when you write cosθ, the variable θ is the argument of the cosine function, but it is also referred to as the phase of the cosine function.In order for an expression involving the cosine function to be at all meaningful, the phase of the cosine must have units of angle (for instance, radians or degrees).
A Block Attached to the End of a Spring
Consider a block of mass m on a frictionless horizontal surface. The block is attached, by means of an ideal massless horizontal spring having force constant k, to a wall. A person has pulled the block out, directly away from the wall, and released it from rest. The block oscillates back and forth (toward and away from the wall), on the end of the spring. We would like to find equations that give the block’s position, velocity, and acceleration as functions of time. We start by applying Newton’s 2nd Law to the block. Before drawing the free body diagram we draw a sketch to help identify our one-dimensional coordinate system. We will call the horizontal position of the point at which the spring is attached, the position x of the block. The origin of our coordinate system will be the position at which the spring is neither stretched nor compressed. When the position x is positive, the spring is stretched and exerts a force, on the block, in the −x direction. When the position of x is negative, the spring is compressed and exerts a force, on the block, in the +x direction.
Now we draw the free body diagram of the block:
and apply Newton’s 2nd Law:
a→=1m∑F→
a=1m(−kx)
a=−kmx
This equation, relating the acceleration of the block to its position x, can be considered to be an equation relating the position of the block to time if we substitute for a using:
a = dvdt
and
v = dxdt
so
a=ddt dxdt
which is usually written
a= d2xdt2
and read “d squared x by dt squared” or “the second derivative of x with respect to t.”
Substituting this expression for a into a=−kmx (the result we derived from Newton’s 2nd Law above) yields
d2xdt2=−kmx
We know in advance that the position of the block depends on time. That is to say, x is a function of time. This equation, equation ???, tells us that if you take the second derivative of x with respect to time you get x itself, times a negative constant (−k/m).
We can find the an expression for x in terms of t that solves ??? by the method of “guess and check.” Grossly, we’re looking for a function whose second derivative is essentially the negative of itself. Two functions meet this criterion, the sine and the cosine. Either will work. We arbitrarily choose to use the cosine function. We include some constants in our trial solution (our guess) to be determined during the “check” part of our procedure. Here’s our trial solution:
x=xmaxcos(2π radTt)
Here’s how we have arrived at this trial solution: Having established that x, depends on the cosine of a multiple of the time variable, we let the units be our guide. We need the time t to be part of the argument of the cosine, but we can’t take the cosine of something unless that something has units of angle. The constant 2π radT, with the constant T having units of time (we’ll use seconds), makes it so that the argument of the cosine has units of radians. It is, however, more than just the units that motivates us to choose the ratio 2π radT as the constant. To make the argument of the cosine have units of radians, all we need is a constant with units of radians per second. So why write it as 2π radT? Here’s the explanation: The block goes back and forth. That is, it repeats its motion over and over again as time goes by. Starting with the block at its maximum distance from the wall, the block moves toward the wall, reaches its closest point of approach to the wall and then comes back out to its maximum distance from the wall. At that point, it’s right back where it started from. We define the constant value of time T to be the amount of time that it takes for one iteration of the motion.
Now consider the cosine function. We chose it because its second derivative is the negative of itself, but it is looking better and better as a function that gives the position of the block as a function of time because it too repeats itself as its phase (the argument of the cosine) continually increases. Suppose the phase starts out as 0 at time 0. The cosine of 0 radians is 1, the biggest the cosine ever gets. We can make this correspond to the block being at its maximum distance from the wall. As the phase increases, the cosine gets smaller, then goes negative, eventually reaching the value -1 when the phase is π radians. This could correspond to the block being closest to the wall. Then, as the phase continues to increase, the cosine increases until, when the phase is 2π, the cosine is back up to 1 corresponding to the block being right back where it started from. From here, as the phase of the cosine continues to increase from 2π to 4π, the cosine again takes on all the values that it took on from 0 to 2π. The same thing happens again as the phase increases from 4π to 6π, from 8π to 10π, etc.
Getting back to that constant 2π radT that we “guessed” should be in the phase of the cosine in our trial solution for x(t):
x=xmaxcos(2π radTt)
With T being defined as the time it takes for the block to go back and forth once, look what happens to the phase of the cosine as the stopwatch reading continually increases. Starting from 0, as t increases from 0 to T, the phase of the cosine, 2π radTt, increases from 0 to 2π radians. So, just as the block, from time 0 to time T, goes though one cycle of its motion, the cosine, from time 0 to time T, goes through one cycle of its pattern. As the stopwatch reading increases from T to 2T, the phase of the cosine increases from 2π rad to 4π rad. The block undergoes the second cycle of its motion and the cosine function used to determine the position of the block goes through the second cycle of its pattern. The idea holds true for any time t —as the stopwatch reading continues to increase, the cosine function keeps repeating its cycle in exact synchronization with the block, as it must if its value is to accurately represent the position of the block as a function of time. Again, it is no coincidence. We chose the constant 2π radT in the phase of the cosine so that things would work out this way.
A few words on jargon are in order before we move on. The time T that it takes for the block to complete one full cycle of its motion is referred to as the period of the oscillations of the block. Now how about that other constant, the “xmax” in our educated guess x=xmaxcos(2π radTt)? Again, the units were our guide. When you take the cosine of an angle, you get a pure number, a value with no units. So, we need the xmax there to give our function units of distance (we’ll use meters). We can further relate xmax to the motion of the block. The biggest the cosine of the phase can ever get is 1, thus, the biggest xmax times the cosine of the phase can ever get is xmax. So, in the expression x=xmaxcos(2π radTt), with x being the position of the block at any time t, xmax must be the maximum position of the block, the position of the block, relative to its equilibrium position, when it is as far from the wall as it ever gets.
Okay, we’ve given a lot of reasons why x=xmaxcos(2π radTt) should well describe the motion of the block, but unless it is consistent with Newton’s 2nd Law, that is, unless it satisfies equation ???:
dxdt2=−kmx
which we derived from Newton’s 2nd Law, it is no good. So, let’s plug it into equation ??? and see if it works. First, let’s take the second derivative d2xdt2 of our trial solution with respect to t (so we can plug it and x itself directly into equation ???):
Given
x=xmaxcos(2π radTt),
the first derivative is
dxdt=xmax [−sin(2πradTt)]2πradT
dxdt= −2πradTxmaxsin(2πradTt)
The second derivative is then
d2xdt2= −2πradTxmaxcos(2πradTt)2πradTt
d2xdt2= −(2πradT)2xmaxcos(2πradTt)
Now we are ready to substitute this and x itself, x=xmax cos(2π radTt), into the differential equation d2xdt2=−kmx (equation ???) stemming from Newton’s 2nd Law of Motion. The substitution yields:
−(2πradT)2xmaxcos(2πradTt)=−kmxmaxcos(2πradTt)
which we copy here for your convenience.
−(2π radT)2xmaxcos(2πradTt)=−kmxmaxcos(2πradTt)
The two sides are the same, by inspection, except that where (2π radT)2 appears on the left, we have km on the right. Thus, substituting our guess, x=xmaxcos(2π radTt), into the differential equation that we are trying to solve, d2xdt2=−kmx (equation ???) leads to an identity if and only if (2π radT)2=km. This means that the period T is determined by the characteristics of the spring and the block, more specifically by the force constant (the “stiffness factor”) k of the spring, and the mass (the inertia) of the block. Let’s solve for T in terms of these quantities. From (2π radT)2=km we find:
2π radT=√km
T=2πrad√mk
T=2π√mk
where we have taken advantage of the fact that a radian is, by definition, 1 m/m by simply deleting the “rad” from our result.
The presence of the m in the numerator means that the greater the mass, the longer the period. That makes sense: we would expect the block to be more “sluggish” when it has more mass. On the other hand, the presence of the k in the denominator means that the stiffer the spring, the shorter the period. This makes sense too in that we would expect a stiff spring to result in quicker oscillations. Note the absence of xmax in the result for the period T. Many folks would expect that the bigger the oscillations, the longer it would take the block to complete each oscillation, but the absence of xmax in our result for T shows that it just isn’t so. The period T does not depend on the size of the oscillations.
So, our end result is that a block of mass m, on a frictionless horizontal surface, a block that is attached to a wall by an ideal massless horizontal spring, and released, at time t=0, from rest, from a position x=xmax, a distance xmax from its equilibrium position; will oscillate about the equilibrium position with a period T=2π√mk. Furthermore, the block’s position as a function of time will be given by
x=xmax cos(2π radTt)
From this expression for x(t) we can derive an expression for the velocity v(t) as follows:
v=dxdt
v=ddt[xmaxcos(2πradTt)]
x=xmax[−sin(2πradTt)]2π radT
x=−xmax2πradTsin(2πradTt)
And from this expression for v (t) we can get the acceleration a (t) as follows:
a=dvdt
a=ddt[−xmax2πradTsin(2πradTt)]
a=−xmax 2πradT[cos(2π raddTt)]2πradT
a=−xmax=(2π radT)2cos(2π radTt)
Note that this latter result is consistent with the relation a=−kmx between a and x that we derived from Newton’s 2nd Law near the start of this chapter. Recognizing that the xmax cos(2π radTt) is x and that the (2π radT)2 is km, it is clear that equation ??? is the same thing as
a=−kmx
Frequency
The period T has been defined to be the time that it takes for one complete oscillation. In SI units we can think of it as the number of seconds per oscillation. The reciprocal of T is thus the number of oscillations per second. This is the rate at which oscillations occur. We give it a name, frequency, and a symbol, f.
f=1T
The units work out to be 1s which we can think of as oscillationss as the oscillation, much like the radian is a marker rather than a true unit. A special name has been assigned to the SI unit of frequency, 1oscillationss is defined to be 1 hertz, abbreviated 1 Hz. You can think of 1 Hz as either 1oscillationss or simply 11s.
In terms of frequency, rather than period, we can use f=1T to express all our previous results in terms of f rather than t.
f=12π√km
x=xmaxcos(2π rad f t)
v=−2πfxmaxsin(2π rad f t)
a=−(2πf)2cos(2π rad ft)
By inspection of the expressions for the velocity and acceleration above we see that the greatest possible value for the velocity is 2πfxmax and the greatest possible value for the acceleration is (2πf)2xmax. Defining
vmax= xmax(2πf)
and
amax=xmax(2πf)2
and, omitting the units “rad” from the phase (thus burdening the user with remembering that the units of the phase are radians while making the expressions a bit more concise) we have:
x=xmaxcos(2πf t)
v=−vmax sin(2πf t)
a=−amaxcos(2πf t)
The Simple Harmonic Equation
When the motion of an object is sinusoidal as in x=xmax cos(2πf t), we refer to the motion as simple harmonic motion. In the case of a block on a spring we found that
a=−|constant| x
where the |constant| was km and was shown to be equal to (2π f)2. Written as
d2xdt2=−(2π f)2x
the equation is a completely general equation, not specific to a block on a spring. Indeed, any time you find that, for any system, the second derivative of the position variable, with respect to time, is equal to a negative constant times the position variable itself, you are dealing with a case of simple harmonic motion, and you can equate the absolute value of the constant to (2π f)2.