Simple Harmonic Motion Problems: Springs and Pendulums Worked
Solve simple harmonic motion problems for a spring-block system and a pendulum, with period, speed and energy worked out and checked, plus the small-angle limit.
Professor Eric Editorial · Nov 29, 2026 · 7 min read
In this article
- What are the key equations of simple harmonic motion?
- How do you solve a spring-block problem?
- What changes if the spring hangs vertically?
- How do you solve a pendulum problem?
- How can you spot the mistake?
- How do you read a graph of simple harmonic motion?
- Which courses use this?
- What assignments does it help with, and what help is allowed?
- SHM checklist
- Frequently asked questions
- Try it with new numbers
Simple harmonic motion shows up in springs, pendulums, circuits and atoms. Once you recognize the pattern, a force that pulls back in proportion to displacement, the same equations answer almost every question.
What are the key equations of simple harmonic motion?
For a mass m on a spring of constant k, the equation of motion is m d²x/dt² = −kx, which has solutions x = A cos(ωt + φ) with ω = √(k/m). Then:
T = 2π/ω, vmax = Aω, amax = Aω², E = ½kA²
and at any position, v = ω√(A² − x²). The period doesn't depend on amplitude. In algebra-based courses you're typically given these formulas. In calculus-based courses you derive them, differentiating x(t) to get v and a.
How do you solve a spring-block problem?
Assumptions: ideal spring, frictionless horizontal surface, and the block released from rest at the amplitude.
Angular frequency: ω = √(k/m) = √(40/0.50) = 8.94 rad/s. Period: T = 2π/ω = 0.702 s, so the frequency is 1.42 Hz. Maximum speed: vmax = Aω = 0.10 × 8.94 = 0.894 m/s. Maximum acceleration: amax = Aω² = 0.10 × 80 = 8.00 m/s². Total energy: E = ½kA² = ½ × 40 × 0.10² = 0.200 J.
Starting at x = +A at t = 0 gives x = A cos ωt. At t = 0.25 s, ωt = 2.24 rad and x = 0.10 × cos(2.24) = −0.0617 m, so the block is on the opposite side of equilibrium. Speed at x = 0.050 m: v = ω√(A² − x²) = 8.94 × √(0.0100 − 0.0025) = 0.775 m/s.
Check with energy: ½mv² = E − ½kx², so v = √(2(0.200 − 0.0250)/0.50) = 0.775 m/s. Also, vmax² = 0.80 and ½mvmax² = 0.200 J, equal to E.
What changes if the spring hangs vertically?
Gravity shifts the equilibrium but not the period. Hanging the 0.50 kg block stretches the spring by mg/k = 0.50 × 9.80/40 = 0.123 m. Oscillation about the new equilibrium still has T = 2π√(m/k) = 0.702 s. Measure displacement from the new equilibrium position and the equations above apply unchanged.
How do you solve a pendulum problem?
Assumptions: a point mass on a massless string, no air resistance, and small angles so that sin θ ≈ θ.
For small angles, ω = √(g/L) and T = 2π√(L/g) = 2π√(1.50/9.80) = 2.46 s, which is a frequency of 0.407 Hz. The period does not depend on the mass. The exact period for a 10° amplitude is about 2.463 s, using a numerical elliptic integral, so the small-angle value is low by only 0.19 percent. A common series check is T ≈ T₀(1 + θ₀²/16), which for θ₀ = 0.1745 rad gives a factor of 1.0019. At 30° the exact period is about 1.7 percent longer than T₀, so the approximation degrades as the angle grows.
A related fact: a pendulum with a 2.00 s period, a so-called seconds pendulum, has L = gT²/(4π²) = 0.993 m. On the Moon, with g = 1.62 m/s², the 1.50 m pendulum would have T = 6.05 s.
How can you spot the mistake?
Run three checks. The period of a spring grows with mass and shrinks with k, so if your answer moves the other way, you've inverted something. Maximum speed should equal √(k/m) × A, and the energy at the center should equal the energy at the ends. Finally, make sure ωt is in radians when you use a calculator for cos(ωt).
How do you read a graph of simple harmonic motion?
Graphs often carry the same information as the equations. On a position-time graph, the amplitude is the maximum height from the center line, and the period is the horizontal distance between two peaks. The slope of the curve at any time is the velocity, so the velocity is zero at the peaks and largest as the curve crosses the center line. The curvature gives the acceleration, which points toward the center and is largest at the peaks.
For the block above, the position graph starts at +0.10 m, crosses zero at T/4 = 0.176 s, reaches −0.10 m at T/2 = 0.351 s, and returns to +0.10 m at T = 0.702 s. The velocity graph is a negative sine wave with a maximum magnitude of 0.894 m/s, and the acceleration graph is an upside-down copy of the position graph with a peak of 8.00 m/s². Each of these follows from x = A cos ωt, v = −Aω sin ωt and a = −Aω² cos ωt.
A common exam question gives such a graph and asks for k or m. Read the period from the graph, find ω = 2π/T, then use k = mω² or m = k/ω². With T = 0.702 s and m = 0.50 kg, k = 0.50 × 8.94² = 40 N/m, which recovers the spring constant we started with.
Which courses use this?
Oscillations appear in high school and AP Physics 1 (Unit 7, Oscillations) and AP Physics C: Mechanics, algebra-based and calculus-based college physics, and every upper-division mechanics and quantum course. AP is a trademark of the College Board, which isn't affiliated with Professor Eric. The calculus-based treatment solves the differential equation, and upper-division courses add damping, driving and resonance.
What assignments does it help with, and what help is allowed?
Oscillation problems appear on problem sets and exams, and in spring and pendulum labs where you time oscillations. Use your own measured periods and masses. Never alter data to match T = 2π√(m/k). A small disagreement usually comes from the spring's own mass, timing error or large amplitude.
Follow your school's honor code and your instructor's rules on outside help, and submit only your own work. Appropriate help includes a model solution to a similar problem, feedback on your work, tutoring, and help with the structure of a lab report. We don't do graded online homework, quizzes, labs or exams. See our physics assignment help page.
SHM checklist
Your checklist
0 of 7 done
Frequently asked questions
Does the period of a spring depend on amplitude?
No. For an ideal spring, the period depends only on mass and the spring constant. A larger amplitude means a longer path but also a larger maximum speed, and the two effects cancel, so the period stays the same.
Does the period of a pendulum depend on mass?
No, in the small-angle approximation it depends only on length and g. The mass cancels because both the restoring force and the inertia are proportional to it.
What is the phase constant?
It sets where the motion starts. If the block is released at x = A at t = 0, then φ = 0 for a cosine solution.
Why does a vertical spring have the same period?
Gravity only shifts the equilibrium point. The restoring force about the new equilibrium is still −kx, so ω is unchanged.
Try it with new numbers
Change the spring constant or the pendulum length, predict how the period changes, then calculate it. For feedback on your approach, a tutoring session or a model solution to a similar problem can help.