Skip to main content

Simple harmonic motion in HSC Mathematics Extension 2: the defining equation, displacement and velocity functions, amplitude, period and the velocity-displacement relation

Syllabus dot point

“Derive and apply the equations of simple harmonic motion, relating acceleration, velocity, displacement, amplitude and period for an oscillating particle”

HSCMaths Extension 2Applications of Calculus to Mechanics…15 min read

Quick answer

Simple harmonic motion is defined by x¨=−n2x\ddot{x} = -n^2 x, where acceleration is proportional to displacement xx from the centre and directed back towards it. The general displacement is x=acos⁡(nt+α)x = a\cos(nt + \alpha), with amplitude aa and period T=2πnT = \dfrac{2\pi}{n}. The velocity-displacement relation is v2=n2(a2−x2)v^2 = n^2(a^2 - x^2), so speed is greatest at the centre and zero at the extremes.

Jump to a section
  1. What this dot point is asking
  2. The defining equation
  3. Displacement as a function of time
  4. Velocity as a function of time
  5. The velocity-displacement relation
  6. Motion not centred at the origin
  7. Choosing sine or cosine
  8. Connecting to the velocity-displacement relation
  9. How exam questions ask about simple harmonic motion
  10. Exam-style questions

What this dot point is asking

NESA wants you to model simple harmonic motion (SHM), the oscillation of a particle whose acceleration is proportional to its displacement and directed towards a fixed centre. You must use the defining equation, write displacement and velocity as functions of time, and find amplitude, period and the velocity-displacement relation.

The defining equation

A particle moves in simple harmonic motion if its acceleration satisfies

x¨=−n2x,\ddot{x} = -n^2 x,

where xx is displacement from a fixed centre and n>0n > 0 is a positive constant. The minus sign is doing all the work. It says the acceleration always points opposite to the displacement: whenever the particle is on the positive side of the centre it is being pushed back negatively, and whenever it is on the negative side it is being pushed back positively. The force is a restoring force, proportional to how far the particle has strayed, so the further out it goes the harder it is pulled back. That single property, a restoring acceleration proportional to displacement, is the entire definition of SHM, and it is exactly the equation a spring (Hooke's law) or a small-angle pendulum produces. Drop the minus sign and the solution is exponential, not oscillatory; that is the textbook contrast worth carrying.

Key fact

A particle is in SHM exactly when x¨=−n2(x−c)\ddot{x} = -n^2(x - c) for some centre cc and constant n>0n > 0. From that one equation everything follows: the period is T=2πnT = \dfrac{2\pi}{n} (depends only on nn, never on the amplitude), the displacement is x=c+acos⁡(nt+α)x = c + a\cos(nt + \alpha), and the speed at any position is given by v2=n2(a2−(x−c)2)v^2 = n^2\big(a^2 - (x - c)^2\big). Your first move in every SHM question is to read n2n^2 off the coefficient and cc off the bracket.

Displacement as a function of time

The general solution of x¨=−n2x\ddot{x} = -n^2 x is

x=acos⁡(nt+α),x = a\cos(nt + \alpha),

where aa is the amplitude (maximum displacement) and α\alpha is a phase constant fixed by initial conditions. Equivalently it can be written x=Acos⁡nt+Bsin⁡ntx = A\cos nt + B\sin nt. The motion repeats every time ntnt increases by 2π2\pi, so the period is

T=2πn.T = \frac{2\pi}{n}.

The frequency (oscillations per unit time) is 1T=n2π\dfrac{1}{T} = \dfrac{n}{2\pi}. A subtle point that earns marks: the period is independent of the amplitude. A particle swinging through a wide arc takes exactly as long per cycle as one barely moving, because a larger amplitude brings a proportionally larger restoring acceleration. This is the property that makes SHM useful for timekeeping.

Building the displacement curve, stage by stage

The figures below build the displacement-time graph one feature at a time, in the order the quantities appear in a question: first the geometry of the oscillation, then the curve, then the things you measure off it.

Stage 1, the centre and the amplitude band. Every SHM is organised around a centre (here x=0x = 0) and two extremes a distance aa either side. The particle never leaves the band between x=ax = a and x=−ax = -a; it swings back and forth across the centre forever. Fixing these three lines first stops the usual error of letting the curve drift.

Stage 1: the centre and the amplitude bandA horizontal time axis through the centre of motion at displacement zero, with two dashed lines at displacement plus a and minus a marking the extremes the particle oscillates between. t x x = a (extreme) x = -a (extreme) x = 0 (centre) 1 Stage 1: the motion stays inside the band, swinging about the centre x = 0.

Stage 2, draw the displacement curve. Solving x¨=−n2x\ddot{x} = -n^2 x with the particle starting at the extreme x=ax = a gives x=acos⁡ntx = a\cos nt, the cosine curve below. It begins at the top of the band, falls through the centre, reaches the bottom extreme, and returns, smoothly and forever. Choosing the cosine here matches the common starting condition "released from rest at the extreme"; a different start just shifts the curve sideways by the phase α\alpha.

Stage 2: the displacement-time curveThe displacement x equals a cosine n t is a cosine curve starting at the upper extreme x equals a at time zero, dropping through the centre to the lower extreme, and back, repeating each period. t x x = a x = -a x = a cos nt 2 Stage 2: starting at the extreme x = a, the displacement traces a cosine.

Stage 3, read off amplitude and period. The two numbers every SHM question wants are now visible on the curve. The amplitude aa is the height from the centre to a peak; the period T=2πnT = \dfrac{2\pi}{n} is the horizontal gap between successive peaks (one full cycle). These are what you extract or are given, and what the standard formulas connect.

Stage 3: amplitude and periodThe same cosine curve, now with the amplitude a marked as the height from the centre to a peak and the period T marked as the horizontal distance between successive peaks. t x T a centre x = 0 3 Stage 3: amplitude a is the peak height; period T = 2 pi / n spans one full cycle.

Stage 4, where speed is zero and where it is greatest. The velocity is the slope of this curve. At the extremes (the peaks and troughs) the curve is momentarily flat, so the velocity is zero: the particle stops to turn around. At the centre crossings the curve is steepest, so the speed is greatest, equal to anan. This is the single most counter-intuitive fact in the topic and a favourite trap: maximum speed is at the centre, not at the extremes.

Stage 4: speed around the cycleOn the finished displacement curve, the turning points at the extremes are where the velocity is zero, and the steep crossings of the centre line are where the speed reaches its maximum a n. The slope of the curve is the velocity. t x v = 0 v = 0 speed max = an v 4 Stage 4: slope is the velocity, zero at the extremes, steepest (speed an) at the centre.

Velocity as a function of time

Differentiating x=acos⁡(nt+α)x = a\cos(nt + \alpha) gives

v=x˙=−ansin⁡(nt+α).v = \dot{x} = -an\sin(nt + \alpha).

The speed reaches its maximum anan when sin⁡(nt+α)=±1\sin(nt + \alpha) = \pm 1, which occurs as the particle passes through the centre x=0x = 0. The velocity is zero at the extremes x=±ax = \pm a, where the particle momentarily stops before reversing. Differentiating once more returns x¨=−an2cos⁡(nt+α)=−n2x\ddot{x} = -an^2\cos(nt + \alpha) = -n^2 x, which is a quick way to confirm a proposed x(t)x(t) really is SHM and to recover nn.

The velocity-displacement relation

It is often more useful to relate speed directly to position, without time. Using x¨=ddx(12v2)\ddot{x} = \dfrac{d}{dx}\left(\tfrac{1}{2}v^2\right) and integrating ddx(12v2)=−n2x\dfrac{d}{dx}\left(\tfrac{1}{2}v^2\right) = -n^2 x gives 12v2=−12n2x2+c\tfrac{1}{2}v^2 = -\tfrac{1}{2}n^2 x^2 + c. Applying v=0v = 0 at x=ax = a fixes the constant, yielding

v2=n2(a2−x2).v^2 = n^2(a^2 - x^2).

This confirms maximum speed v=anv = an at the centre x=0x = 0 and zero speed at x=±ax = \pm a. Plotted as vv against xx (the phase plane), the relation is an ellipse: the particle circulates around it once per period, fastest where the ellipse is tallest (the centre) and stationary where it crosses the xx-axis (the extremes).

The velocity-displacement relationA plot of velocity v against displacement x is an ellipse: v squared equals n squared times the quantity a squared minus x squared. Speed is greatest a n at the centre x equals zero and zero at the extremes x equals plus or minus a. x v v = an (max speed) v = -an -a a v² = n²(a² - x²)

Motion not centred at the origin

Many exam problems oscillate about a centre cc other than the origin, with defining equation x¨=−n2(x−c)\ddot{x} = -n^2(x - c). The treatment is identical once you measure displacement from the centre: the period is still T=2πnT = \frac{2\pi}{n}, the particle oscillates between c−ac - a and c+ac + a, and the velocity-displacement relation becomes v2=n2(a2−(x−c)2)v^2 = n^2(a^2 - (x - c)^2). Reading the defining equation to extract n2n^2 from the coefficient and cc from the bracket is the first marked step in almost every SHM question, so do it carefully and state both values explicitly.

Choosing sine or cosine

The general solution can be written as x=c+acos⁡(nt+α)x = c + a\cos(nt + \alpha) or equivalently x=c+Acos⁡nt+Bsin⁡ntx = c + A\cos nt + B\sin nt. Use the cosine-with-phase form when you are given a starting position and direction, and find the phase α\alpha from the initial conditions, taking care to pick the value of α\alpha consistent with the sign of the initial velocity. The two-term form is convenient when the initial conditions are given as x(0)x(0) and x˙(0)\dot{x}(0) separately, since A=x(0)−cA = x(0) - c and BB follows from the velocity. Both describe the same motion; choose whichever matches the data in the question.

Connecting to the velocity-displacement relation

The relation v2=n2(a2−x2)v^2 = n^2(a^2 - x^2) is derived by writing acceleration as ddx(12v2)\frac{d}{dx}\left(\frac{1}{2}v^2\right) and integrating, which is exactly the technique from the velocity-and-acceleration-functions dot point applied to the SHM equation. This is worth remembering because many questions ask for speed at a given position without reference to time, and the velocity-displacement relation answers them in one step, with no need to find the phase constant.

A common exam use runs the relation backwards: you are told the speed at one position and asked for the amplitude. Because v2=n2(a2−x2)v^2 = n^2(a^2 - x^2) contains aa, substituting a known (x,v)(x, v) pair lets you solve for a2a^2, then aa, then the two extremes c±ac \pm a. This is faster and safer than going via the displacement equation and a phase angle, so reach for it whenever time is not mentioned.

How exam questions ask about simple harmonic motion

The phrasing tells you which tool to pick up:

  • "A particle moves so that x¨=−k(x−c)\ddot{x} = -k(x - c). Find the period / centre." Read n2=kn^2 = k (so n=kn = \sqrt{k}) and centre cc straight off, then T=2πnT = \frac{2\pi}{n}. This is the one-mark opener in almost every SHM question.
  • "Show that the motion is simple harmonic." Differentiate the given x(t)x(t) twice and show x¨=−n2(x−c)\ddot{x} = -n^2(x - c), naming nn and cc. Producing the defining equation is the whole task.
  • "Find the speed / velocity as it passes through ... / at x=…x = \ldots" No time is mentioned, so use v2=n2(a2−(x−c)2)v^2 = n^2\big(a^2 - (x - c)^2\big) in one line. Take the correct square root for the direction asked.
  • "Find the amplitude" given a speed at a point. Substitute the (x,v)(x, v) pair into the velocity-displacement relation and solve for aa; then the extremes are c±ac \pm a.
  • "Find the first time the particle is at x=…x = \ldots / reaches the centre." Now you do need time: write x=c+acos⁡(nt+α)x = c + a\cos(nt + \alpha), fix α\alpha from the initial position and the sign of the initial velocity, then solve for tt, choosing the smallest positive root.
  • "What distance does it travel in one period / in nn seconds?" In one full period a particle covers 4a4a (two extremes and back). Do not confuse distance travelled with displacement, which returns to its start each period.
  • "Between which values of xx does it oscillate?" The extremes c−ac - a and c+ac + a; find aa first, usually from a given speed at a given point.
A particle moves so that x¨=−9x\ddot{x} = -9x, with amplitude 44. Find the period and the maximum speed

Find the period and maximum speed for x¨=−9x\ddot{x} = -9x with amplitude 44

The defining equation has the standard SHM form, so we read off the angular frequency directly, then use it to find the period and maximum speed.

Identify the angular frequency nn: Comparing x¨=−9x\ddot{x} = -9x with the standard form x¨=−n2x\ddot{x} = -n^2 x, we can read off n2=9n^2 = 9, giving n=3n = 3. The angular frequency nn controls how quickly the particle oscillates.

Find the period: The period is the time for one complete oscillation, determined by nn alone:

T=2πn=2π3.T = \frac{2\pi}{n} = \frac{2\pi}{3}.

Find the maximum speed: The maximum speed occurs when the particle passes through the centre x=0x = 0, where all potential energy has converted to kinetic energy. The maximum speed is the product of the amplitude and angular frequency:

vmax⁡=an=4×3=12.v_{\max} = an = 4 \times 3 = 12.

Verify using the velocity-displacement relation: The velocity-displacement relation is v2=n2(a2−x2)=9(16−x2)v^2 = n^2(a^2 - x^2) = 9(16 - x^2). At the centre x=0x = 0: v2=144v^2 = 144, giving v=12v = 12. At the extreme x=4x = 4: v2=9(16−16)=0v^2 = 9(16 - 16) = 0, confirming the particle is momentarily at rest there. Both results agree with the formulas above.

Final answer: period =2π3= \dfrac{2\pi}{3}; maximum speed =12= 12.

A motion off-centre: x¨=−4(x−3)\ddot{x} = -4(x - 3), with the particle at x=5.5x = 5.5 moving towards the origin at the start and speed 88 as it passes x=0x = 0

This is the harder, off-centre type that needs both the velocity-displacement relation and the displacement equation. We extract nn and cc, find the amplitude from the given speed, then fix the phase to find a time.

Read off nn and the centre cc
Comparing x¨=−4(x−3)\ddot{x} = -4(x - 3) with x¨=−n2(x−c)\ddot{x} = -n^2(x - c) gives n2=4n^2 = 4, so n=2n = 2, and centre c=3c = 3. The period is T=2π2=πT = \frac{2\pi}{2} = \pi.
Find the amplitude from the speed at the origin
Use v2=n2(a2−(x−c)2)=4(a2−(x−3)2)v^2 = n^2\big(a^2 - (x - c)^2\big) = 4\big(a^2 - (x - 3)^2\big). At x=0x = 0 the speed is 88, so 64=4(a2−9)64 = 4(a^2 - 9), giving a2−9=16a^2 - 9 = 16, hence a2=25a^2 = 25 and a=5a = 5. The particle oscillates between c−a=−2c - a = -2 and c+a=8c + a = 8.
Write the displacement equation and fix the phase
Write x=3+5cos⁡(2t+α)x = 3 + 5\cos(2t + \alpha). At t=0t = 0, x=5.5x = 5.5, so cos⁡α=5.5−35=0.5\cos\alpha = \frac{5.5 - 3}{5} = 0.5, giving α=±π3\alpha = \pm\frac{\pi}{3}. The particle is moving towards the origin, so xx is decreasing and x˙(0)=−10sin⁡α<0\dot{x}(0) = -10\sin\alpha < 0, which needs sin⁡α>0\sin\alpha > 0. Therefore α=π3\alpha = \frac{\pi}{3}.
Solve for the first time at the origin and check
Set x=0x = 0: cos⁡(2t+π3)=0−35=−0.6\cos\big(2t + \frac{\pi}{3}\big) = \frac{0 - 3}{5} = -0.6. The first solution is 2t+π3=arccos⁡(−0.6)≈2.2142t + \frac{\pi}{3} = \arccos(-0.6) \approx 2.214, so 2t≈2.214−1.047=1.1672t \approx 2.214 - 1.047 = 1.167 and t≈0.58t \approx 0.58 seconds. Check: this tt lies inside the first period π≈3.14\pi \approx 3.14, and the particle was indeed heading towards the origin from x=5.5x = 5.5, so the first crossing is genuine.
Final answer
n=2n = 2, centre x=3x = 3, amplitude 55, oscillating between −2-2 and 88; first at the origin after about 0.580.58 s.
Exam technique

Open every SHM question by writing nn, the centre cc and (once you have it) the amplitude aa in the margin; almost all the marks hang off these three numbers. If no time is asked for, stay in the velocity-displacement relation v2=n2(a2−(x−c)2)v^2 = n^2\big(a^2 - (x - c)^2\big) and never compute a phase. Only switch to x=c+acos⁡(nt+α)x = c + a\cos(nt + \alpha) when a time is required, and then fix α\alpha using both the starting position and the sign of the starting velocity, not the position alone. Quote the period as 2πn\frac{2\pi}{n} with units, and for a distance-travelled question remember one period covers 4a4a.

Common traps
Reading nn as the period
In x¨=−n2x\ddot{x} = -n^2 x, the constant is nn, and the period is 2πn\frac{2\pi}{n}. Mixing these up is the most common SHM error.
Forgetting the minus sign in the defining equation
Without the minus sign the motion grows without bound; it is the restoring direction that produces oscillation.
Using x¨=−n2x\ddot{x} = -n^2 x but solving as if velocity were constant
Acceleration here varies with position; use x¨=ddx(12v2)\ddot{x} = \frac{d}{dx}(\frac12 v^2) to get the velocity-displacement relation.
Taking maximum speed at the extremes
Speed is greatest at the centre x=0x = 0 and zero at x=±ax = \pm a, the opposite of where many students expect.

Exam-style questions

Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

HSC 2023-style2 marks
A particle moves in simple harmonic motion described by x¨=−9(x−4)\ddot{x} = -9(x - 4). Find the period and the central point of motion.
Show worked answer →

Compare with the standard SHM equation x¨=−n2(x−c)\ddot{x} = -n^2(x - c), where cc is the centre of motion and nn is the angular frequency.

Here −n2=−9-n^2 = -9, so n2=9n^2 = 9 and n=3n = 3. The bracket (x−4)(x - 4) shows the centre is c=4c = 4.

Period: T=2πn=2π3T = \frac{2\pi}{n} = \frac{2\pi}{3} seconds.

So the period is 2π3\frac{2\pi}{3} and the central point of motion is x=4x = 4.

Mark notes: 1 mark for the period 2π3\frac{2\pi}{3} (from n=3n = 3), 1 mark for the centre of motion x=4x = 4.

HSC 2024-style3 marks
A particle moves in simple harmonic motion described by x¨=−4(x+1)\ddot{x} = -4(x + 1). When the particle passes through the origin, its speed is 44 m/s. What distance does the particle travel during a full period?
Show worked answer →

From x¨=−4(x+1)\ddot{x} = -4(x + 1), the form x¨=−n2(x−c)\ddot{x} = -n^2(x - c) gives n2=4n^2 = 4 (so n=2n = 2) and centre c=−1c = -1.

The velocity-displacement relation is v2=n2(A2−(x−c)2)v^2 = n^2(A^2 - (x - c)^2), where AA is the amplitude. Here v2=4(A2−(x+1)2)v^2 = 4(A^2 - (x + 1)^2).

At the origin x=0x = 0 the speed is 44, so 16=4(A2−1)16 = 4(A^2 - 1), giving A2=5A^2 = 5 and A=5A = \sqrt{5}.

In one full period the particle travels from one extreme to the other and back, covering 44 amplitudes:

distance =4A=45= 4A = 4\sqrt{5} metres.

Mark notes: 1 mark for identifying n=2n = 2 and centre c=−1c = -1, 1 mark for using v2=n2(A2−(x−c)2)v^2 = n^2(A^2 - (x - c)^2) to find A=5A = \sqrt{5}, 1 mark for the distance 4A=454A = 4\sqrt{5} metres.

HSC 2021-style4 marks
An object moves in simple harmonic motion along the xx-axis with x¨=−4(x−3)\ddot{x} = -4(x - 3), xx in metres after tt seconds. Initially the object is 5.55.5 metres to the right of the origin and moving towards the origin. It has a speed of 88 m/s as it passes through the origin. (i) Between which two values of xx is the particle oscillating? (ii) Find the first value of tt for which x=0x = 0, correct to 2 decimal places.
Show worked answer →

From x¨=−4(x−3)\ddot{x} = -4(x - 3): n2=4n^2 = 4 so n=2n = 2, and the centre is c=3c = 3.

Part (i). Use v2=n2(A2−(x−c)2)=4(A2−(x−3)2)v^2 = n^2(A^2 - (x - c)^2) = 4(A^2 - (x - 3)^2). At the origin x=0x = 0 the speed is 88: 64=4(A2−9)64 = 4(A^2 - 9), so A2=25A^2 = 25 and A=5A = 5. The particle oscillates between c−A=−2c - A = -2 and c+A=8c + A = 8, so between x=−2x = -2 and x=8x = 8.

Part (ii). Write x=c+Acos⁡(nt+ϕ)=3+5cos⁡(2t+ϕ)x = c + A\cos(nt + \phi) = 3 + 5\cos(2t + \phi). At t=0t = 0, x=5.5x = 5.5: cos⁡ϕ=2.55=0.5\cos\phi = \frac{2.5}{5} = 0.5, so ϕ=π3\phi = \frac{\pi}{3} or −π3-\frac{\pi}{3}. Since the object is moving towards the origin (xx decreasing), x˙(0)=−10sin⁡ϕ<0\dot{x}(0) = -10\sin\phi < 0, so sin⁡ϕ>0\sin\phi > 0 and ϕ=π3\phi = \frac{\pi}{3}.

Thus x=3+5cos⁡ ⁣(2t+π3)x = 3 + 5\cos\!\left(2t + \frac{\pi}{3}\right). Setting x=0x = 0: cos⁡ ⁣(2t+π3)=−0.6\cos\!\left(2t + \frac{\pi}{3}\right) = -0.6, so 2t+π3=arccos⁡(−0.6)≈2.21432t + \frac{\pi}{3} = \arccos(-0.6) \approx 2.2143. Then 2t≈2.2143−1.0472=1.16712t \approx 2.2143 - 1.0472 = 1.1671, so t≈0.58t \approx 0.58 seconds (to 2 decimal places).

Mark notes: 1 mark for n=2n = 2 and centre 33, 1 mark for A=5A = 5 giving the range −2-2 to 88; then 1 mark for the displacement equation with ϕ=π3\phi = \frac{\pi}{3}, 1 mark for t≈0.58t \approx 0.58.

Practise this

Sources & how we know this

ExamExplained