Example course and quiz · Prépa / university · Physics, year 1
The simple harmonic oscillator: the course and its quiz
A first-year physics chapter from prépa or university (mass on a spring, the differential equation, energy, the pendulum and the LC circuit) and its quiz: 20 questions with formulas, a graph to read and 5 course pages with interactive diagrams.
The course — Physics, year 1 (prépa / university) — Chapter 3: The simple harmonic oscillator
The mass-spring system
A mass $m$ slides without friction on a horizontal surface. It is attached to a spring of stiffness $k$ (in $\mathrm{N\cdot m^{-1}}$) and natural length $\ell_0$, whose other end is fixed. The mass is located by its position $x$ measured from the equilibrium position $O$, where the spring has its natural length.
Hooke's law: the spring exerts the force $\vec{F} = -k\,x\,\vec{u}_x$. It is a restoring force: always directed towards $O$ and proportional to the displacement. The weight and the normal force cancel out.
The harmonic oscillator equation
Newton's second law along $(Ox)$ gives $m\ddot{x} = -kx$, that is $\ddot{x} + \omega_0^2\,x = 0$ with $\omega_0 = \sqrt{\dfrac{k}{m}}$, the natural angular frequency (in $\mathrm{rad\cdot s^{-1}}$).
The solutions are sinusoidal: $x(t) = A\cos(\omega_0 t + \varphi)$, or equivalently $x(t) = a\cos(\omega_0 t) + b\sin(\omega_0 t)$. $A$ is the amplitude and $\varphi$ the initial phase.
The natural period is $T_0 = \dfrac{2\pi}{\omega_0} = 2\pi\sqrt{\dfrac{m}{k}}$ and the natural frequency $f_0 = \dfrac{1}{T_0}$. They do not depend on the amplitude: the oscillations are isochronous.
Initial conditions
The constants come from the position and velocity at $t = 0$. With $x(0) = x_0$ and $\dot{x}(0) = v_0$: $a = x_0$ and $b = \dfrac{v_0}{\omega_0}$.
The amplitude is then $A = \sqrt{x_0^2 + \left(\dfrac{v_0}{\omega_0}\right)^2}$. A mass released from rest at $x_0$ oscillates as $x(t) = x_0\cos(\omega_0 t)$.
Energy
Kinetic energy $E_k = \tfrac{1}{2}m\dot{x}^2$, elastic potential energy $E_p = \tfrac{1}{2}kx^2$. Without friction, the mechanical energy is conserved: $E_m = E_k + E_p = \tfrac{1}{2}kA^2$.
The two forms swap twice per period: $E_p$ is largest at the ends $x = \pm A$, where the velocity is zero; $E_k$ is largest when the mass passes through $O$, where its speed is $v_{\max} = A\,\omega_0$.
Other harmonic oscillators
Simple pendulum of length $\ell$: $\ddot{\theta} + \dfrac{g}{\ell}\sin\theta = 0$. For small angles, $\sin\theta \approx \theta$ and we get a harmonic oscillator of period $T_0 = 2\pi\sqrt{\dfrac{\ell}{g}}$, which does not depend on the mass.
LC circuit: the capacitor's charge satisfies $\ddot{q} + \dfrac{1}{LC}\,q = 0$, so $\omega_0 = \dfrac{1}{\sqrt{LC}}$. In reality, friction or resistance damps the oscillations: the harmonic model holds over short times.
The quiz
Course page
The mass-spring system
A mass $m$ slides without friction, attached to a spring of stiffness $k$. Its position $x$ is measured from equilibrium $O$. Hooke's law: $\vec{F} = -k\,x\,\vec{u}_x$, a restoring force. Step through it.
Question 1 · The model
The mass is displaced by $x$ from equilibrium. What force does the spring exert on it (along $\vec{u}_x$)?
- $F = -kx^2$
- $F = -\dfrac{k}{x}$
- $F = -kx$
- $F = kx$
Show the answer
$F = -kx$
Explanation: Hooke's law: the force is proportional to the displacement and opposite to it, $F = -kx$. The minus sign makes it a restoring force, always directed towards $O$.
Question 2 · The model
In SI units, the stiffness $k$ of a spring is measured in ___.
Show the answer
N/m
Explanation: $k = \dfrac{|F|}{|x|}$ is a force divided by a length: newtons per metre, $\mathrm{N\cdot m^{-1}}$.
Question 3 · The model
Applying Newton's second law to the mass, which equation do you get?
- $\dot{x} + \dfrac{k}{m}\,x = 0$
- $\ddot{x} + \dfrac{k}{m}\,x = 0$
- $\ddot{x} - \dfrac{k}{m}\,x = 0$
- $\ddot{x} + \dfrac{m}{k}\,x = 0$
Show the answer
$\ddot{x} + \dfrac{k}{m}\,x = 0$
Explanation: $m\ddot{x} = -kx$; divide by $m$: $\ddot{x} + \dfrac{k}{m}x = 0$. With a minus sign the solutions would be exponentials (no oscillation); and the equation is about the acceleration $\ddot{x}$, not the velocity.
Course page
The equation and its solutions
$\ddot{x} + \omega_0^2 x = 0$ with $\omega_0 = \sqrt{k/m}$. Solutions: $x(t) = A\cos(\omega_0 t + \varphi)$, with period $T_0 = \dfrac{2\pi}{\omega_0} = 2\pi\sqrt{\dfrac{m}{k}}$. Flip the switch to see the velocity.
Question 4 · Equation and solution
A mass $m = 0.50\ \mathrm{kg}$ is attached to a spring of stiffness $k = 50\ \mathrm{N\cdot m^{-1}}$. What is the natural angular frequency $\omega_0$ (in $\mathrm{rad\cdot s^{-1}}$)?
Show the answer
10 rad/s
Explanation: $\omega_0 = \sqrt{\dfrac{k}{m}} = \sqrt{\dfrac{50}{0.50}} = \sqrt{100} = 10\ \mathrm{rad\cdot s^{-1}}$.
Question 5 · Equation and solution
With $m = 0.50\ \mathrm{kg}$ and $k = 200\ \mathrm{N\cdot m^{-1}}$, what is the natural period $T_0$ (in seconds, to 0.01)?
Show the answer
0.31 s
Explanation: $\omega_0 = \sqrt{200/0.50} = 20\ \mathrm{rad\cdot s^{-1}}$, so $T_0 = \dfrac{2\pi}{\omega_0} = \dfrac{2\pi}{20} \approx 0.31\ \mathrm{s}$.
Question 6 · Equation and solution
The mass is replaced by one four times heavier, on the same spring. What happens to the period $T_0$?
- It is multiplied by 4
- It is divided by 2
- It doesn't change
- It is multiplied by 2
Show the answer
It is multiplied by 2
Explanation: $T_0 = 2\pi\sqrt{m/k}$ grows like $\sqrt{m}$: $\sqrt{4} = 2$, the period doubles. A heavier oscillator is slower.
Question 7 · Equation and solution
Which statements are true for the harmonic oscillator? (several answers)
- The mechanical energy decreases over time
- The period does not depend on the amplitude
- $x(t)$ is a sinusoidal function of time
- Doubling the stiffness $k$ doubles the period
Show the answer
The period does not depend on the amplitude · $x(t)$ is a sinusoidal function of time
Explanation: Isochronism: $T_0 = 2\pi\sqrt{m/k}$ does not involve $A$. Doubling $k$ divides the period by $\sqrt{2}$. Without friction, the mechanical energy is constant.
Question 8 · Equation and solution
The period of a harmonic oscillator does not depend on the amplitude: its oscillations are said to be ___.
Show the answer
isochronous
Explanation: Isochronous means "taking the same time". Large or small, the oscillations last $T_0 = 2\pi\sqrt{m/k}$.
Question 9 · Equation and solution
This graph shows the position $x(t)$ of an oscillator. Read its period $T_0$ (in seconds).
Show the answer
0.4 s
Explanation: The curve is back at its maximum ($x = 3\ \mathrm{cm}$) at $t = 0.4\ \mathrm{s}$: $T_0 = 0.4\ \mathrm{s}$. You can also measure the time between two crossings of 0 in the same direction.
Question 10 · Equation and solution
On the same graph, at which point is the speed $|v|$ of the mass greatest?
- A
- B
- C
- D
Show the answer
B
Explanation: The velocity is the slope of $x(t)$. At A and C (the ends, $x = \pm 3\ \mathrm{cm}$) the tangent is horizontal: $v = 0$. At B the mass passes through equilibrium and the slope is steepest: $|v| = A\omega_0$. D is in between.
Course page
Initial conditions
The constants come from $x(0) = x_0$ and $\dot{x}(0) = v_0$: $x(t) = x_0\cos(\omega_0 t) + \dfrac{v_0}{\omega_0}\sin(\omega_0 t)$, with amplitude $A = \sqrt{x_0^2 + (v_0/\omega_0)^2}$.
Question 11 · Equation and solution
At $t = 0$, $x_0 = 3.0\ \mathrm{cm}$ and $v_0 = 0.40\ \mathrm{m\cdot s^{-1}}$, with $\omega_0 = 10\ \mathrm{rad\cdot s^{-1}}$. What is the amplitude $A$ (in cm)?
Show the answer
5 cm
Explanation: $\dfrac{v_0}{\omega_0} = \dfrac{0.40}{10} = 0.040\ \mathrm{m} = 4.0\ \mathrm{cm}$, so $A = \sqrt{3.0^2 + 4.0^2} = 5.0\ \mathrm{cm}$.
Question 12 · Equation and solution
Match each quantity with its expression.
To match: $\omega_0$ · $T_0$ · $f_0$ · $E_m$ / (1/(2π))·√(k/m) · √(k/m) · ½·k·A² · 2π·√(m/k)
Show the answer
$\omega_0$ → √(k/m) · $T_0$ → 2π·√(m/k) · $f_0$ → (1/(2π))·√(k/m) · $E_m$ → ½·k·A²
Explanation: $T_0 = \dfrac{2\pi}{\omega_0}$ and $f_0 = \dfrac{1}{T_0} = \dfrac{\omega_0}{2\pi}$: starting from $\omega_0$ is enough. $E_m = \tfrac{1}{2}kA^2$ is the potential energy at the end, where $E_k = 0$.
Question 13 · Equation and solution
Put the steps of solving a mass-spring problem in order.
To sort: Apply Newton's second law along $(Ox)$ · Find $a$ and $b$ from the initial conditions · List the forces on the mass · Write the equation $\ddot{x} + \omega_0^2 x = 0$ · Write the general solution $x(t) = a\cos(\omega_0 t) + b\sin(\omega_0 t)$
Show the answer
- List the forces on the mass
- Apply Newton's second law along $(Ox)$
- Write the equation $\ddot{x} + \omega_0^2 x = 0$
- Write the general solution $x(t) = a\cos(\omega_0 t) + b\sin(\omega_0 t)$
- Find $a$ and $b$ from the initial conditions
Explanation: Forces, Newton's law, differential equation, general solution, then the constants: the initial conditions come last.
Course page
The oscillator's energy
$E_k = \tfrac{1}{2}m\dot{x}^2$ and $E_p = \tfrac{1}{2}kx^2$ swap while their sum stays constant: $E_m = \tfrac{1}{2}kA^2$. Step from the end to the centre.
Question 14 · Energy
Where is the kinetic energy of the mass largest?
- Halfway, $x = A/2$
- It is the same everywhere
- When it passes through equilibrium, $x = 0$
- At the ends, $x = \pm A$
Show the answer
When it passes through equilibrium, $x = 0$
Explanation: $E_k = E_m - \tfrac{1}{2}kx^2$ is largest when $x = 0$. At the ends the mass stops: $E_k = 0$.
Question 15 · Energy
An oscillator of amplitude $A = 5.0\ \mathrm{cm}$ has angular frequency $\omega_0 = 10\ \mathrm{rad\cdot s^{-1}}$. What is its maximum speed (in $\mathrm{m\cdot s^{-1}}$)?
Show the answer
0.5 m/s
Explanation: $v_{\max} = A\,\omega_0 = 0.050 \times 10 = 0.50\ \mathrm{m\cdot s^{-1}}$. Remember to convert centimetres to metres.
Question 16 · Energy
Sort these situations: is the potential or the kinetic energy at its largest?
To sort: $|v| = A\,\omega_0$ · $x = -A$ · $x = +A$ · $x = 0$ · The mass is momentarily at rest · The spring is at its natural length
Show the answer
$E_p$ largest: $x = +A$, $x = -A$, The mass is momentarily at rest · $E_k$ largest: $x = 0$, $|v| = A\,\omega_0$, The spring is at its natural length
Explanation: $E_p = \tfrac{1}{2}kx^2$ is largest when $|x| = A$, where the mass stops. Passing through $O$ (natural length, $x = 0$), all the energy is kinetic and $|v| = A\omega_0$.
Question 17 · Energy
Starting from $x(t) = A\cos(\omega_0 t + \varphi)$, show that the mechanical energy is constant.
Show the answer
Differentiate: $v = \dot{x} = -A\omega_0\sin(\omega_0 t + \varphi)$. So $E_k = \tfrac{1}{2}mA^2\omega_0^2\sin^2(\omega_0 t + \varphi) = \tfrac{1}{2}kA^2\sin^2(\omega_0 t + \varphi)$ because $m\omega_0^2 = k$, and $E_p = \tfrac{1}{2}kA^2\cos^2(\omega_0 t + \varphi)$. Since $\sin^2 + \cos^2 = 1$, $E_m = E_k + E_p = \tfrac{1}{2}kA^2$, which does not depend on time.
Key points: $v(t) = -A\omega_0\sin(\omega_0 t + \varphi)$ · $m\omega_0^2 = k$, so $E_k = \tfrac{1}{2}kA^2\sin^2(\ldots)$ · $E_p = \tfrac{1}{2}kA^2\cos^2(\ldots)$ and $\sin^2 + \cos^2 = 1$
Explanation: The key step is $m\omega_0^2 = k$: it puts $E_k$ and $E_p$ in the same form $\tfrac{1}{2}kA^2 \times (\ldots)$.
Course page
Pendulum and LC circuit
For small angles, $\sin\theta \approx \theta$: the simple pendulum satisfies $\ddot{\theta} + \dfrac{g}{\ell}\theta = 0$, with period $T_0 = 2\pi\sqrt{\ell/g}$. The LC circuit satisfies $\ddot{q} + \dfrac{q}{LC} = 0$, so $\omega_0 = \dfrac{1}{\sqrt{LC}}$.
Question 18 · Other oscillators
What is the period of the small oscillations of a simple pendulum of length $\ell$?
- $\dfrac{1}{2\pi}\sqrt{\dfrac{\ell}{g}}$
- $2\pi\sqrt{\dfrac{\ell}{g}}$
- $2\pi\sqrt{\dfrac{g}{\ell}}$
- $2\pi\sqrt{\dfrac{m}{g}}$
Show the answer
$2\pi\sqrt{\dfrac{\ell}{g}}$
Explanation: The equation $\ddot{\theta} + \dfrac{g}{\ell}\theta = 0$ gives $\omega_0 = \sqrt{g/\ell}$ and $T_0 = \dfrac{2\pi}{\omega_0} = 2\pi\sqrt{\ell/g}$. The mass plays no part.
Question 19 · Other oscillators
A simple pendulum has length $\ell = 1.0\ \mathrm{m}$, with $g = 9.81\ \mathrm{m\cdot s^{-2}}$. What is the period of its small oscillations (in s, to 0.1)?
Show the answer
2 s
Explanation: $T_0 = 2\pi\sqrt{\dfrac{1.0}{9.81}} \approx 2\pi \times 0.319 \approx 2.0\ \mathrm{s}$: a one-metre pendulum swings from one side to the other in about one second.
Question 20 · Other oscillators
An ideal LC circuit satisfies $\ddot{q} + \dfrac{1}{LC}\,q = 0$. What is its natural angular frequency?
- $\omega_0 = \sqrt{LC}$
- $\omega_0 = \dfrac{1}{LC}$
- $\omega_0 = \sqrt{\dfrac{L}{C}}$
- $\omega_0 = \dfrac{1}{\sqrt{LC}}$
Show the answer
$\omega_0 = \dfrac{1}{\sqrt{LC}}$
Explanation: Comparing with $\ddot{x} + \omega_0^2 x = 0$: $\omega_0^2 = \dfrac{1}{LC}$, so $\omega_0 = \dfrac{1}{\sqrt{LC}}$. The inductor plays the part of the mass, $1/C$ that of the stiffness.
The same quiz, from your own course
GradeGym turns your course PDF into a quiz like this one, with course pages, explanations and reviews of your mistakes at the right time. Create a free account to try it with your course.
More examples
- Cellular respirationUniversity · Biology, year 1 · A first-year biology chapter (glycolysis, the Krebs cycle, the electron transport chain, fermentation) and its quiz: 22 questions of every kind and 5 course pages with interactive diagrams.
- Arithmetic and geometric sequencesHigh school · Maths, last two years · A high-school maths chapter (recursive sequences, arithmetic and geometric sequences, sums of terms, limits, compound interest) and its quiz: 15 questions with formulas, a graph to read and 5 course pages with interactive diagrams.
- The Cold War (1947–1991)High school · History, final year · A final-year history chapter (two blocs, Berlin, Cuba, détente, the end of the USSR) and its quiz: 19 questions, an interactive timeline and 5 course pages.
- English: present perfect or past simple?Languages · English B1 · A B1 English grammar sheet (form, for and since, signal words) and its quiz: 18 questions, gaps to fill, words to put in order and 5 course pages.
- Analysis theorems to learnFinal year, prépa, university year 1 · Maths · Six first-year theorems (intermediate value, extreme value, Rolle, mean value, monotone convergence, Bolzano–Weierstrass) to learn step by step: hypotheses one by one, a counterexample for each, the proof to put in order and an exercise to apply it.