We already know that a block on a spring oscillates back and forth as a cosine wave with angular frequency ω=mk, and now we want to see why Hooke's Law F=−kx forces the motion to be a wave in the first place.
Why Springs Make Waves
Setting Newton's Second Law F=ma equal to the spring force F=−kx and writing acceleration as the second time derivative of position gives the differential equation of simple harmonic motion:
dt2d2x=−mkx
To solve this equation, we need a function x(t) whose second derivative gives back the negative of itself multiplied by mk. Both cos(ωt) and sin(ωt) give back the negative of themselves after two derivatives, and each derivative pulls out one factor of ω by the Chain Rule:
Matching the acceleration −ω2x from the wave to −mkx from Newton's Second Law gives us the angular frequency and period:
ω2T=mk⟹ω=mk,=ω2π=2πkm
1
Fitting the Starting Position and Velocity
Because both cos(ωt) and sin(ωt) solve the differential equation, we can combine them to match any starting position x0 and starting velocity v0 at t=0, or write the motion as a single shifted cosine wave x(t)=Acos(ωt+ϕ).
Let's find both forms of x(t) for a 1 kg block on a spring with stiffness k=4 N/m that starts at x0=−0.3 m (left of Home) moving rightward at v0=+0.8 m/s.
Fitting the Starting Position and Velocity
At t=0, the two-piece form separates the starting position and the starting velocity because cos(0)=1 and sin(0)=0:
Find the angular frequency from k and mDivide the spring stiffness by the mass and take the square root.
ω=mk=1 kg4 N/m=2 rad/s
Substitute x0 and ωv0 into the two-piece formPut the starting position in front of cos(2t) and the starting velocity divided by ω in front of sin(2t).
Combine the two components with the Pythagorean theorem to find AUse Acosϕ=−0.3 m and Asinϕ=−ωv0=−0.4 m to get the amplitude.
A=(−0.3 m)2+(−0.4 m)2=0.09+0.16 m=0.5 m
Find ϕ and shift by π into Quadrant IIISince cosϕ<0(x0<0) and sinϕ<0(v0>0), the phase angle is in Quadrant III, π radians across from the calculator's Quadrant I inverse-tangent value.
Write the single-wave position functionCombine the amplitude, angular frequency, and Quadrant III phase constant into a single cosine wave.
x(t)=0.5cos(2t−2.21)
So the block oscillates between −0.5 m and +0.5 m, starting to the left of Home at −0.3 m and moving rightward toward Home at +0.8 m/s.
On the unit circle, the starting-position wave x0cos(ωt) and starting-velocity wave ωv0sin(ωt) add together to form Acos(ωt+ϕ). Whenever the block starts to the left of Home (x0<0), the calculator's arctan(−ωx0v0) angle points π radians across the circle, where both the starting position and starting velocity have the wrong sign.
Where the block starts and how you push it set the cosine and sine waves, and starting left of Home sends the calculator's inverse-tangent angle halfway around the circle with the opposite starting position and slope.
2
Getting the Differential Equation from Energy
When a system has linked moving parts or geometry that makes forces hard to track, we can find the differential equation of motion straight from the total mechanical energy E.
The Differential Equation from Energy
Because total mechanical energy is constant when there is no friction, its time derivative dtdE is zero. Differentiating v2 and x2 with respect to time t pulls out dtdv and dtdx by the Chain Rule:
dtd(21mv2+21kx2)⟹mvdtdv+kxdtdx=0=0
Since dtdx=v and dtdv=dt2d2x, factoring out v and dividing by it while the block is moving gives back the same differential equation:
v(mdt2d2x+kx)⟹dt2d2x=0=−mkx
3
Constant Forces Only Shift Home
Now let's see what happens to the differential equation when a second, constant force, like gravity on a vertical hanging spring, pulls on the block the entire time.
Constant Forces Only Shift Home
Measuring position y from the spring's unstretched end puts an extra constant term −mg into Newton's Second Law. If instead we measure displacement x from the resting equilibrium spot yeq where −kyeq−mg=0, the acceleration stays the same (dt2d2y=dt2d2x because yeq is constant) and the weight cancels out:
Dividing by m gives dt2d2x=−mkx with the same angular frequency ω=mk.
4
Small Oscillations Around Any Equilibrium
Many oscillating systems, like bonded atoms in a crystal or a marble rolling in a bowl, have a curved restoring force F(x) or an uneven potential energy valley U(x) instead of a linear spring. Let's find the oscillation frequency when a particle is nudged a small distance from Home, and apply it to a particle of mass m under the nonlinear force F(x)=−8x+3x2 (with F in newtons and x in meters).
Small Oscillations Around Any Equilibrium
At a stable equilibrium xeq ("Home"), the net force is zero and the potential energy valley is at a minimum (dxdU=0). For small displacements x measured from xeq, the curved force graph stays close to its tangent line, acting like a spring whose effective spring constant keff is the negative slope of F(x) (or the second derivative of U(x)) at Home:
Verify that x=0 is HomeCheck that the net force F(x)=−8x+3x2 is zero at x=0.
F(0)=−8(0)+3(0)2=0
Find the effective spring constant keff from the tangent slope at HomeDifferentiate F(x) with respect to x and evaluate −dxdF at xeq=0.
dxdF⟹keff=−8+6x=−dxdFx=0=−(−8+6(0))=8 N/m
Write the small-oscillation differential equation and angular frequencyReplace F(x) with −keffx=−8x in Newton's Second Law and take the square root of the coefficient of −x.
dt2d2x⟹ω=−m8x=m8
So for small displacements near x=0 where 3x2 is tiny compared to −8x, the particle oscillates with angular frequency ω=m8 just like a mass on an 8 N/m spring.
In this potential energy valley U(x), the curved restoring force F(x) stays close to its tangent line −keffx when the particle is released close to Home, so x(t) stays close to a cosine wave with ω=mkeff. Releasing the particle far from Home takes it into the region where F(x) bends away from the tangent line, and the oscillation becomes uneven.
Near the bottom of any smooth potential valley, the curved restoring force stays close to its tangent line and the motion stays close to a pure cosine wave.
Key concepts
Every simple harmonic motion problem comes down to writing the equation of motion in the form dt2d2x=−ω2x where x is measured from Home(xeq, where the net force is zero or U(x) has a minimum), reading off ω as the square root of the coefficient in front of −x, and matching the start at t=0.
When a linear spring force F=−kx is already measured from Home
divide by m directly to get dt2d2x=−mkx and ω=mk. No energy derivative or tangent-line approximation is needed.
When a constant force also acts
(such as mdt2d2y=−ky−mg), never include the constant force in ω. Find Home where the forces balance (−kyeq−mg=0) and shift to x=y−yeq; the constant force cancels out and ω=mk is unchanged.
When total mechanical energy is given
(such as E=21(3m)v2+21kx2=constant), take the time derivative dtdE=0 using the Chain Rule (3mvdtdv+kxdtdx=0) and divide out v=dtdx to get dt2d2x=−3mkx.
When the force F(x) is nonlinear or U(x) is an uneven valley
(such as F(x)=−8x+3x2), simple harmonic motion only applies to small oscillations near xeq (if the displacement is large, the 3x2 term bends the force away from a straight line). Use the tangent line at xeq to find the effective stiffness keff=−dxdFxeq=dx2d2Uxeq and use ω=mkeff.
Fitting t=0
Use the two-piece form x(t)=x0cos(ωt)+ωv0sin(ωt) to plug in x0 and v0 directly (like −0.3cos(2t)+0.4sin(2t)). Use A=x02+(ωv0)2 and tanϕ=−ωx0v0 when you need the single wave Acos(ωt+ϕ), remembering to add or subtract π whenever x0<0.
5
Practice
1
A 0.50 kg glider on a frictionless air track is attached to a spring with stiffness k=18 N/m. At t=0, the glider is at x0=+0.20 m and is given a push away from Home (x=0) with initial velocity v0=+1.2 m/s. (a) Write the differential equation for the glider's position x(t), and verify by taking two time derivatives that x(t)=C1cos(ωt)+C2sin(ωt) satisfies it when ω=6.0 rad/s. (b) Find C1 and C2 and write x(t) in the two-piece cosine-plus-sine form.
Set mdt2d2x=−kx and solve for dt2d2x. When you differentiate cos(ωt) and sin(ωt) twice, what factor does the Chain Rule pull out each time? Then evaluate x(0) and v(0) to find C1 and C2.
(a) From Newton's Second Law F=ma and Hooke's Law F=−kx, the acceleration is:
a=−mkx=−(0.50 kg18 N/m)x=−(36 s−2)x
Writing acceleration as the second derivative of position gives the differential equation:
dt2d2x=−36x
Taking the first time derivative of x(t)=C1cos(ωt)+C2sin(ωt) with the Chain Rule gives the velocity:
v(t)=dtdx=−ωC1sin(ωt)+ωC2cos(ωt)
Taking the time derivative a second time gives the acceleration:
(Watch out: a common mistake is plugging v0=+1.2 m/s straight into C2 without dividing by ω=6.0 rad/s, which would give x(t)=(0.20 m)cos(6.0t)+(1.2 m)sin(6.0t). Remember that differentiating sin(ωt) pulls out a factor of ω, so the sine coefficient must be ωv0 to have units of meters.)
Substituting C1 and C2 gives:
x(t)=(0.20 m)cos(6.0t)+(0.20 m)sin(6.0t)
2
A 2.0 kg block attached to a horizontal spring (k=50 N/m) is at x0=−0.12 m at t=0 and is moving away from Home toward the left at v0=−0.80 m/s. (a) Find the angular frequency ω and the amplitude A of the motion. (b) A student calculates the phase constant as ϕ=arctan(−ωx0v0)=arctan(−5.0×−0.12−0.80)=arctan(−34)=−0.93 rad. Explain why this angle disagrees with the block's motion at t=0, find the correct phase constant ϕ in the interval (−π,π], and write x(t)=Acos(ωt+ϕ).
At t=0, how do x0 and v0 relate to Acosϕ and Asinϕ? Use those two pieces with the Pythagorean theorem for A, and check their signs on the unit circle to see which quadrant ϕ belongs in.
(Watch out: don't set A=∣x0∣=0.12 m, because the block is still moving at t=0 and travels further left before turning around.)
By the Pythagorean theorem, the amplitude is:
A=(−0.12 m)2+(0.16 m)2=0.0144+0.0256 m=0.20 m
(b) Because cosϕ=Ax0<0 and sinϕ=−ωAv0>0, the true phase angle lies in Quadrant II. (Watch out for the minus sign in v(0)=−ωAsinϕ: a negative initial velocity v0=−0.80 m/s makes sinϕ positive, not negative; forgetting that minus sign puts ϕ in Quadrant III at −2.21 rad.) The calculator's inverse-tangent function only returns angles in Quadrants I and IV, so −0.93 rad lies in Quadrant IV (cosϕ>0,sinϕ<0). That describes a block starting at x0=+0.12 m and moving rightward at v0=+0.80 m/s, the exact opposite of our block. Adding π radians shifts the angle across the unit circle into Quadrant II:
ϕ=−0.93 rad+π=+2.21 rad
Writing out the single-wave form gives:
x(t)=(0.20 m)cos(5.0t+2.21)
3
A 0.40 kg cart on a frictionless horizontal track is attached to a spring of stiffness k=16 N/m whose unstretched end is at y=0. A small fan mounted on the cart blows steadily, exerting a constant force Ffan=+2.4 N in the +y direction while the cart moves. (a) Write Newton's Second Law for the cart in terms of y, and find the equilibrium position yeq ("Home") where the net force is zero. (b) Define the displacement from Home as x=y−yeq. Substitute y=yeq+x into your equation from part (a) to show that x(t) obeys the simple harmonic differential equation, and find the period T. (c) While the cart is resting motionless at yeq, the fan is suddenly switched off at t=0. Write the cart's position y(t) for t≥0.
(a) Include both the spring force −ky and the constant fan force +Ffan in F=ma, then set a=0 at y=yeq. (c) Once the fan turns off, where is the new Home, and what are the cart's position and velocity at t=0?
(a) With the spring force −ky and the constant fan force +Ffan, Newton's Second Law gives:
mdt2d2y⟹dt2d2y=−ky+Ffan=−(0.4016)y+0.402.4=−40y+6.0 (in SI units)
(Watch out: don't add the constant acceleration mFfan=6.0 m/s2 into ω2 to get ω=46=6.78 rad/s. The constant fan force cancels out against −kyeq and does not affect ω.) Reading off ω from the coefficient of −x gives:
(c) Switching off the fan moves Home back to y=0.(Watch out: don't keep the old equilibrium yeq=+0.15 m and write y(t)=0.15+0.15cos(6.32t). With the fan off, the cart oscillates symmetrically about y=0.) At t=0, the cart starts at y0=+0.15 m from rest (v0=0) with the same angular frequency ω=6.32 rad/s, so:
y(t)=(0.15 m)cos(6.32t)
4
In a mechanical sensor, a block of mass m moves along the x-axis while linked by frictionless gears to a flywheel. Because the flywheel spins whenever the block moves, the total mechanical energy of the system is E=21(3m)v2+21kx2=constant, where v=dtdx is the block's velocity and k is the spring stiffness. (a) Differentiate E with respect to time t using the Chain Rule, explain how each derivative term arises, and factor out v to obtain the differential equation for x(t). (b) Find the angular frequency ω and period T in terms of m and k, and state how linking the flywheel changes the period compared with the block oscillating alone.
Both v and x change with time t. When you take dtd of v2 and x2, what inside derivatives does the Chain Rule multiply by?
(a) Since total mechanical energy E is constant, dtdE=0. Applying the Chain Rule to 21(3m)v2 brings down the 2 to cancel the 21 and multiplies by the inside derivative dtdv, giving 3mvdtdv. Applying the Chain Rule to 21kx2 brings down the 2 to cancel the 21 and multiplies by the inside derivative dtdx, giving kxdtdx.(Watch out: forgetting the Chain Rule inside derivatives dtdv and dtdx gives the algebraic equation 3mv+kx=0 instead of a differential equation.) Setting the sum to zero gives:
3mvdtdv+kxdtdx=0
Because dtdx=v, we can factor out v:
v(3mdtdv+kx)=0
Dividing out v for the moving block and replacing dtdv with dt2d2x yields:
dt2d2x=−3mkx
(b) Matching the coefficient of −x to ω2 gives:
ωT=3mk,=ω2π=2πk3m
(Watch out: don't say the period triples, because the factor of 3m is inside the square root.) Because the extra kinetic energy of the flywheel gives the system an effective mass of 3m, linking the flywheel increases the period by a factor of 3.
5
A 0.20 kg bead slides along the positive x-axis (x>0) on a frictionless wire under the nonlinear force F(x)=12−3x2, where F is in newtons and x is in meters. (a) Find the equilibrium position xeq>0 ("Home") and check the sign of F(x) on either side of xeq to verify that the force pushes the bead back toward Home. (b) Find the effective spring constant keff at xeq and calculate the angular frequency ω and period T for small oscillations around xeq.
(a) Home is where F(xeq)=0. (b) How is keff related to the derivative of F(x) evaluated at x=xeq?
(a) Setting the force equal to zero at equilibrium gives:
F(xeq)⟹xeq2⟹xeq=12−3xeq2=0=4=2.0 m(x>0)
Nudging the bead slightly to the right of Home (x>2.0 m) makes 3x2>12, so F(x)<0 (pointing left, back toward 2.0 m). Nudging it slightly to the left (x<2.0 m) makes 3x2<12, so F(x)>0 (pointing right, back toward 2.0 m). Thus xeq=2.0 m is a stable restoring equilibrium.
(b) Differentiating F(x) with respect to x and evaluating at xeq=2.0 m gives:
(Watch out: don't evaluate dxdF at x=0 to get keff=0, and don't just read the coefficient 3 in front of −3x2 as keff=3 N/m, which would give ω=3.87 rad/s and T=1.62 s. You must evaluate the tangent slope at Home, xeq=2.0 m.)
For small oscillations around xeq=2.0 m, the angular frequency and period are:
An atom of mass m in a crystal moves along the positive x-axis (x>0) in the uneven potential energy valley U(x)=U0(xa+2a2x2), where U0 and a are positive constants. (a) Find the equilibrium position xeq at the bottom of the valley. (b) Find the effective spring constant keff for small vibrations around xeq and determine the angular frequency ω in terms of U0,m, and a.
(a) What is the slope dxdU at the bottom of a potential energy valley? Rewrite xa as ax−1 before differentiating. (b) Differentiate U(x) a second time and evaluate at x=xeq to get keff.
(a) At the bottom of the potential energy valley, the slope dxdU is zero so the force F=−dxdU is zero:
dxdU=U0(−x2a+a2x)=0
Setting x=xeq gives:
a2xeq⟹xeq3⟹xeq=xeq2a=a3=a
(b) Differentiating U(x) a second time gives the second derivative of the valley:
dx2d2U=U0(x32a+a21)
(Watch out: when differentiating −ax−2, bringing down −2 gives +2ax−3=x32a; dropping the factor of 2 gives x3a+a21, which leads to the wrong stiffness keff=a22U0 and ω=a1m2U0.)
Evaluating the second derivative at xeq=a gives the effective spring constant:
keff=dx2d2Ux=a=U0(a32a+a21)=a23U0
For small vibrations around xeq=a, the angular frequency is: