Energy & oscillation
About this app
Spring-mass oscillator: harmonic motion x(t)=A·cos(ωt) with ω=√(k/m), period T=2π·√(m/k); an energy bar shows the conversion kinetic ↔ potential (sum constant).
The physics
A mass m on a spring with spring constant k oscillates harmonically when displaced and released. The displacement follows x(t) = A·cos(ωt) with angular frequency ω = √(k/m) and period T = 2π·√(m/k). A larger mass slows the oscillation, a stiffer spring speeds it up, and the amplitude A has no effect on the period. In terms of energy, the system swings between spring energy ½·k·x² and kinetic energy ½·m·v². Without damping the total stays constant: E_total = ½·k·A².
What you see
A mass oscillates on a spring about its equilibrium position. Next to it the graph x(t) = A·cos(ωt) is drawn, and an energy bar shows the potential and kinetic shares at every moment. At the turning points all the energy is stored in the spring; passing through equilibrium, it is all kinetic. The total energy stays the same throughout.
Things to try
Quadruple the mass and watch the period double. Then increase the spring constant: the oscillation speeds up. Finally change only the amplitude: the mass swings further but takes exactly as long, while the total energy in the bar grows with the square of A. Pause the motion to read the energy split at a particular point.
Frequently asked questions
- How do you calculate the period of a mass-spring system?
- The period is T = 2π·√(m/k), where m is the mass and k the spring constant. The angular frequency is ω = √(k/m) and the frequency f = 1/T. The formula holds for undamped oscillations with a spring that obeys Hooke’s law.
- Does the period depend on the amplitude?
- Not for an ideal mass-spring system. A larger amplitude means a larger restoring force and a higher speed, so the longer path is covered in the same time. This holds as long as the spring stays linear.
- How is energy converted during an oscillation?
- At the turning points the velocity is zero and all energy is stored in the stretched or compressed spring: ½·k·A². At equilibrium the spring is relaxed and the speed is greatest, so the energy is entirely kinetic. Without friction the sum of both stays constant.
- What can I set in the mass-spring app?
- You set mass m, spring constant k and amplitude A with sliders and can pause, resume and reset the motion. The app shows the oscillation, the graph x(t) and the energy balance. Damping is not modelled.
Subject: Engineering mechanics
More from Engineering mechanics
- Bending stress & moment of inertia
- Düsenjet bis v_max (3D)
- Truss analysis (method of joints)
- Equilibrium & support reactions
- Kinematics
- Kinetics & Newton's second law
- Forces & vector addition
- Force decomposition
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps