A metal mass hanging from a coiled spring swings back and forth in simple harmonic motion above a laboratory bench.

Classical Mechanics

What Is Simple Harmonic Motion? x = A cos(ωt) Explained

Pull a mass on a spring to one side and let go. It slides back toward the middle, overshoots, slows, stops, and comes back again. It repeats that trip for as long as nothing disturbs it. That steady back and forth motion has a name: simple harmonic motion. You meet it again and again in physics. A guitar string does it. A playground swing does it, more or less. A pendulum does it when the swing stays small. And the whole motion fits into one short equation, x = A cos(ωt), which tells you exactly where the moving object sits at any moment you choose.

This article takes that equation apart symbol by symbol, then shows you how to use it in real numbers. By the end you will be able to read x = A cos(ωt) like a sentence, find the period of a mass on a spring or a pendulum, and work out the fastest speed and the hardest push in the motion.

What simple harmonic motion actually is

A mass on a spring gives the cleanest picture. Picture a block that slides on a smooth table, tied to a spring fixed at one end. Push the block away from its resting spot and let go. The spring pulls it back.

The block picks up speed, flies past the resting spot, and the spring stretches the other way and drags it back. The block repeats the trip, and if the table is smooth enough and the spring behaves, every trip takes the same time and reaches the same distance on each side.

The resting spot has a name: the equilibrium position. It is the place where the spring is neither stretched nor squashed, so it pulls with zero force. Every measurement of position in simple harmonic motion starts from that spot. A displacement of 0.10 m means the block sits 0.10 m from equilibrium, not 0.10 m from the wall or from the end of the table.

Keep that in mind, because half the mistakes students make in this topic come from measuring from the wrong place.

The spring obeys Hooke’s law. The force it pulls with grows in proportion to how far the block sits from equilibrium, and it always points back toward equilibrium. In symbols, F = -kx.

Here F is the force, x is the displacement from equilibrium, and k is the spring constant, a number that says how stiff the spring is. The minus sign does the real work in that equation. It says the force points opposite to the displacement. Pull the block right and the force points left. Push it left and the force points right. A force that behaves like that is called a restoring force, because it always tries to restore the block to equilibrium.

Newton’s second law turns that force into an acceleration. Divide both sides by the mass and you get a = -kx/m.

The acceleration is also proportional to displacement and points the opposite way. Physicists tidy this up by writing a = -ω²x, where ω is a number called the angular frequency. That one line is the test for simple harmonic motion. If an object’s acceleration is proportional to its displacement from a fixed point and always points back toward that point, the object is in simple harmonic motion.

So where do you meet it outside the textbook? A mass on a spring is the classic case. A pendulum counts too, as long as the swing stays small, because the restoring force is close enough to proportional for small angles.

A guitar string vibrates in simple harmonic motion, which is why each plucked note sounds clean and steady instead of wobbling all over the place. A child on a swing is close to it for small swings, though a real swing has a push from the rider and friction in the chains, so it drifts away from the ideal.

The word simple earns its place. The motion repeats exactly, it follows one pure sine wave, and it runs at one fixed frequency. Real systems lose energy to friction and air resistance, so a real spring slows down and a real swing dies away. The ideal version ignores those losses.

You learn the shape of the motion first, then add the mess of the real world.

Reading x = A cos(ωt) symbol by symbol

The equation x = A cos(ωt) answers one question: where is the object, and when? Each symbol carries one piece of that answer, so take them one at a time.

The letter x is the displacement. It tells you how far the object sits from the equilibrium position at a chosen moment, measured in metres. It can be positive on one side and negative on the other. At the equilibrium position itself, x is zero.

The letter A is the amplitude. It is the biggest displacement the object ever reaches, the farthest it gets from equilibrium on either side. A mass pulled 0.10 m from equilibrium and released has an amplitude of 0.10 m, and it will swing between +0.10 m and -0.10 m. Amplitude is always a positive number, and it never changes during the motion in the ideal case.

The letter t is the time, in seconds, measured from the moment you start the clock. In most problems the clock starts at the moment of release.

The letter ω is the angular frequency, measured in radians per second. It tells you how fast the motion cycles round. A bigger ω means the mass whips back and forth faster. You will meet ω again in the period formulas below, so treat it as the single number that sets the pace of the motion.

That leaves the cosine. Why cosine and not sine? Because of how the motion starts. At t = 0, cos(0) is 1, so x = A. The equation describes a mass that starts at its maximum displacement, exactly where you let go of it, and is released from rest. The cosine starts at its peak and falls, and so does the mass.

If instead the mass started at equilibrium and was shoved sideways, the equation would use a sine, because sin(0) is 0. Same motion, different starting point.

There is a general form that covers every starting point: x = A cos(ωt + φ). The extra symbol φ is called the phase constant, and it shifts the cosine sideways to match whatever the object was doing when the clock started. You will not need φ for the worked examples in this article, but you should know it exists, because exam questions sometimes hand you a starting condition that is neither a turning point nor the equilibrium position.

One more picture helps the cosine make sense. Take a point moving round a circle at a steady speed and watch its shadow fall on a diameter of the circle. The shadow moves back and forth along that diameter in simple harmonic motion.

The angle the point has swept round the circle is ωt, and the shadow’s position is the cosine of that angle times the radius. That is why ω carries the word angular. It is the rate at which the angle grows, and the cosine turns that angle into a position on a straight line.

Period, frequency and angular frequency

Three numbers describe how fast the motion repeats, and students mix them up more than any other part of this topic. Get them straight now and half the exam questions answer themselves.

The period, T, is the time for one complete swing, out and back, measured in seconds. The frequency, f, is how many complete swings happen each second, measured in hertz (Hz). They are inverses of each other: f = 1/T and T = 1/f. A period of 0.50 s means a frequency of 2.0 Hz.

Two swings a second, half a second each.

The angular frequency, ω, is the same idea counted in radians instead of cycles. One complete swing is one full trip round the circle in the shadow picture, which is 2π radians. So ω = 2πf, and since f = 1/T, ω = 2π/T as well.

That factor of 2π is the whole difference between ω and f. Forget it and every number that follows comes out wrong by a factor of about six.

QuantitySymbolUnitHow it links to the others
PeriodTseconds (s)T = 1/f = 2π/ω
Frequencyfhertz (Hz)f = 1/T = ω/2π
Angular frequencyωradians per second (rad/s)ω = 2πf = 2π/T
AmplitudeAmetres (m)Maximum displacement from equilibrium

For a mass on a spring, ω comes straight from the mass and the spring: ω = √(k/m). A stiffer spring (bigger k) makes ω bigger and the motion faster. A heavier mass (bigger m) makes ω smaller and the motion slower.

The period follows from ω: T = 2π√(m/k). Notice what is missing from that formula. The amplitude is not in it. A mass on a spring takes the same time for each swing whether you pull it 0.05 m or 0.20 m. A bigger pull means a faster trip, not a longer one, because the spring also pulls harder over the longer distance. The two effects cancel exactly.

A simple pendulum works the same way at small angles. Its angular frequency is ω = √(g/L), where g is the acceleration due to gravity, 9.8 m/s², and L is the length of the string. Its period is T = 2π√(L/g). A longer pendulum swings more slowly. A pendulum on the Moon, where g is smaller, would swing more slowly than the same pendulum on Earth.

And just like the spring, the period does not depend on how far you pull the bob, as long as the angle stays small. Pull a pendulum 5 degrees or 10 degrees and the period stays the same, which is why pendulum clocks keep steady time.

That last point deserves a warning. The pendulum formula only holds for small angles, roughly under 10 degrees. Swing a pendulum through a wide arc and the restoring force stops being proportional to the displacement, the motion stops being simple harmonic, and the period starts to grow with the amplitude.

Exam questions test this. If a question says “small oscillations” or “small angles”, the formula applies. If it does not, be suspicious.

Velocity and acceleration in simple harmonic motion

Position is only the start. The velocity and acceleration follow from the same equation, and they tell you where the motion is fastest, where it is still, and where the forces are biggest.

Differentiate the displacement and you get the velocity: v = -Aω sin(ωt). Differentiate again and you get the acceleration: a = -Aω² cos(ωt). That second one hides a familiar face. Since x = A cos(ωt), the acceleration is a = -ω²x, which is the defining condition of simple harmonic motion from the first section.

The maths closes the loop. The equation you started with obeys the rule that defines the motion.

The fastest speed in the whole motion is v_max = ωA, and it happens at the equilibrium position, where x = 0. That makes sense if you think about the forces. The spring has been pulling the mass toward equilibrium for the whole trip in, speeding it up the entire way, so the mass arrives at the middle going as fast as it ever will. The moment it passes equilibrium the spring starts pulling the other way and slows it down.

The biggest acceleration is a_max = ω²A, and it happens at the turning points, where x = +A or x = -A. That is where the spring is stretched or squashed the most, so it pulls the hardest, and the mass feels the biggest acceleration. At the turning points the speed is zero for an instant, because the mass has to stop before it can turn round and come back. Speed zero and acceleration at its biggest, at the same place.

Students often expect the biggest speed and the biggest acceleration to happen together. In simple harmonic motion they happen at opposite places.

At the equilibrium position the picture flips. The acceleration is zero there, because the spring is neither stretched nor squashed and pulls with zero force. The speed is at its biggest there.

So the two extremes trade places: at the centre you get maximum speed and zero acceleration, and at the edges you get zero speed and maximum acceleration. If you can hold that pair of facts in your head, most questions about velocity and acceleration in simple harmonic motion fall into place.

One more check worth doing on every problem: the signs. The velocity equation carries a minus sign because the mass moves back toward equilibrium just after release, in the negative x direction. The acceleration is always opposite in sign to the displacement, which is exactly what a = -ω²x says. If your numbers ever give an acceleration pointing away from equilibrium, you have slipped a sign somewhere.

Worked example 1: a mass on a spring

A 0.50 kg mass on a spring of spring constant 200 N/m is pulled 0.10 m from equilibrium and released from rest. Find the angular frequency, the period, and the displacement at t = 0.25 s.

Step 1: find the angular frequency. The formula for a mass on a spring is ω = √(k/m). Put the numbers in: ω = √(200/0.50) = √400 = 20 rad/s. The mass cycles at 20 radians per second.

Step 2: find the period. The period follows from the angular frequency: T = 2π/ω = 2π/20 = 0.314 s, which rounds to 0.31 s. Each full swing takes just under a third of a second. The frequency is f = 1/T = 1/0.314 = 3.2 Hz, so the mass makes about three complete swings every second.

Step 3: find the displacement at t = 0.25 s. Use x = A cos(ωt). The amplitude is A = 0.10 m, because that is how far the mass was pulled before release. First work out the angle: ωt = 20 × 0.25 = 5.0 radians. Then x = 0.10 × cos(5.0).

The cosine of 5.0 radians is about 0.28, so x = 0.10 × 0.28 = 0.028 m. At t = 0.25 s the mass sits 0.028 m from equilibrium, on the positive side, on its way back toward the starting point. It has nearly finished a full swing, since 0.25 s is about four fifths of the 0.31 s period, and it is closing in on the turning point where it started.

Check the answer against what you expect. The displacement has to sit between -0.10 m and +0.10 m, because the mass can never get further from equilibrium than the amplitude. A value of 0.028 m passes that test.

Also check the units. Radians are dimensionless, so ωt is a plain number, and the cosine of a plain number is a plain number, so x comes out in metres, as it should.

Worked example 2: maximum speed and acceleration

Use the same mass-spring system: m = 0.50 kg, k = 200 N/m, A = 0.10 m, and ω = 20 rad/s from the first example. Find the maximum speed and the maximum acceleration, and say where each one happens. Then, as a second part, find the period of a simple pendulum of length 1.0 m.

Step 1: the maximum speed. The formula is v_max = ωA. Put the numbers in: v_max = 20 × 0.10 = 2.0 m/s.

The mass moves fastest as it passes through the equilibrium position, where x = 0. That is the only place in the motion where the speed reaches 2.0 m/s, once on the way out and once on the way back in each swing.

Step 2: the maximum acceleration. The formula is a_max = ω²A. First square the angular frequency: ω² = 20² = 400. Then a_max = 400 × 0.10 = 40 m/s².

The mass feels this acceleration at the turning points, where x = +0.10 m and x = -0.10 m, and the spring is at its most stretched or most squashed. For comparison, 40 m/s² is about four times the acceleration due to gravity, so the spring is pushing that mass around with real force.

Step 3: check the acceleration another way. The defining condition says a = -ω²x. At the turning point x = +0.10 m, a = -400 × 0.10 = -40 m/s².

The minus sign says the acceleration points back toward equilibrium, which is right: at the far right end of the swing, the spring pulls left. At the other turning point, x = -0.10 m, a = -400 × (-0.10) = +40 m/s², pointing right, back toward equilibrium. The two checks agree, so the numbers are consistent.

Step 4: the pendulum. A simple pendulum of length L = 1.0 m has a period T = 2π√(L/g). Put the numbers in with g = 9.8 m/s²: T = 2π√(1.0/9.8) = 2π × 0.319 = 2.0 s.

One full swing of a one metre pendulum takes about two seconds, a second each way. That is why a one metre pendulum was once used as the basis for a seconds pendulum in old clocks, with each half swing marking one second. The same ideas, amplitude, angular frequency, period, maximum speed, all apply to the pendulum, even though the numbers come from a different formula. Simple harmonic motion is one pattern wearing different clothes.

Common mistakes

The formulas in this topic are short, which makes the mistakes easy to spot once you know where to look. Here are the ones that cost students the most marks.

  • Confusing angular frequency ω with ordinary frequency f. They differ by a factor of 2π. If a question gives a frequency of 3.0 Hz, the angular frequency is ω = 2π × 3.0 = 19 rad/s, not 3.0 rad/s. Always check which one the question gives you and which one the formula needs.
  • Measuring displacement from the wrong point. Displacement in simple harmonic motion is always measured from the equilibrium position. A mass pulled 0.10 m from equilibrium has x = 0.10 m at release. Measuring from the wall or from the unstretched end of the spring gives a different number and a wrong answer.
  • Thinking the period depends on the amplitude. For ideal simple harmonic motion it does not. Pull a mass on a spring twice as far and the period stays the same, because the spring pulls twice as hard. The period formulas T = 2π√(m/k) and T = 2π√(L/g) contain no amplitude for a reason.
  • Mixing up sine and cosine. Cosine fits a mass released from rest at maximum displacement. Sine fits a mass that starts at equilibrium and is set moving. The two forms describe the same motion with a different starting point, so pick the one that matches the starting condition in the question.
  • Using the pendulum period formula at large angles. T = 2π√(L/g) holds for small angles only. Swing a pendulum through 40 degrees and the motion is no longer simple harmonic, and the formula no longer applies.
  • Using degrees instead of radians for ωt. The angle ωt must be in radians. A calculator set to degrees will give a wrong cosine and a wrong displacement. Before you press the cosine button, check the mode. This one mistake has ruined more worked examples than any other on this page.

The formulas worth remembering

Six formulas carry this whole topic of simple harmonic motion. The displacement equation x = A cos(ωt) tells you where the object is. The angular frequency ties the pace together: ω = 2π/T = 2πf. The period of a mass on a spring is T = 2π√(m/k), and the period of a simple pendulum is T = 2π√(L/g). The fastest speed is v_max = ωA at the equilibrium position, and the biggest acceleration is a_max = ω²A at the turning points. Behind them all sits the defining rule, a = -ω²x: acceleration proportional to displacement, always pointing home.

Learn what each symbol means, keep the displacement measured from equilibrium, keep ωt in radians, and the numbers will behave. The best way to lock it in is to work the two examples above with different numbers, a heavier mass, a stiffer spring, a longer pendulum, and watch the same formulas give you the answers.

Frequently Asked Questions

What is simple harmonic motion in simple words?

Simple harmonic motion is a steady back and forth movement about a fixed equilibrium position, where a restoring force always pulls the object back toward the middle. The force is proportional to how far the object is displaced, F = -kx, so the acceleration obeys a = -ω²x. A mass on a spring, a pendulum swinging at small angles, and a vibrating guitar string all show this pattern.

What does x = A cos(ωt) mean in simple harmonic motion?

The equation x = A cos(ωt) gives the displacement x of an object in simple harmonic motion at any time t. A is the amplitude, the greatest distance from equilibrium, and ω is the angular frequency in radians per second. At t = 0, cos(0) is 1, so x = A, meaning the object starts at maximum displacement and is released from rest. As time passes, the cosine traces the motion back and forth between +A and -A.

What is the difference between angular frequency and frequency in simple harmonic motion?

Frequency f counts how many complete swings happen each second, measured in hertz, while angular frequency ω counts the same motion in radians per second. One complete swing is 2π radians, so they are linked by ω = 2πf and ω = 2π/T. That factor of 2π is the whole difference. If a question gives f = 3.0 Hz, the angular frequency is ω = 2π × 3.0, about 19 rad/s, not 3.0 rad/s.

Does the period of simple harmonic motion depend on amplitude?

No, the period of ideal simple harmonic motion does not depend on amplitude. For a mass on a spring the period is T = 2π√(m/k), which contains the mass and the spring constant but no amplitude. Pull the mass twice as far and the spring pulls twice as hard, so the mass travels faster over the longer distance and each swing still takes the same time. The same holds for a pendulum at small angles, where T = 2π√(L/g).

What is the formula for the period of simple harmonic motion for a mass on a spring?

For a mass on a spring, the period is T = 2π√(m/k), where m is the mass in kilograms and k is the spring constant in newtons per metre. The angular frequency is ω = √(k/m), and the period follows from T = 2π/ω. A stiffer spring gives a shorter period and a heavier mass gives a longer period. A 0.50 kg mass on a 200 N/m spring has ω = 20 rad/s and a period of about 0.31 s.

How do you find maximum speed in simple harmonic motion?

You find the maximum speed with v_max = ωA, where ω is the angular frequency in radians per second and A is the amplitude in metres. It happens at the equilibrium position, where x = 0, because the spring has been speeding it up all the way in. For example, with ω = 20 rad/s and A = 0.10 m, v_max = 20 × 0.10 = 2.0 m/s. At the turning points the speed is zero.

Similar Posts