$$\require{cancel}$$

# 2.1.3: Simple Harmonic Motion Simulation


The following is a simulation of a mass on a spring. The graph shows the $$y$$ (vertical) location of the mass at different times. The force acting on the mass in this case is called a Hooke's Law force: $$F = -κy$$ where $$κ$$ is called the spring constant, in $$\text{N/m}$$ indicating the stiffness of the spring and $$y$$ is the location of the mass from some equilibrium position.

The points on the graph of the motion of the mass on a spring can be described by the mathematical function $$y(t)=A\cos (-2\pi ft+\phi )$$ where $$\cos$$ is the cosine function, $$f$$ is the frequency, $$A$$ is the amplitude (maximum displacement) and $$\phi$$ is the phase in radians. For any time, $$t$$, the displacement of the mass can be found by calculating $$y(t)=A\cos (-2\pi ft+\phi )$$ if the frequency and starting point (phase) are known.

## Simulation Questions:

1. Drag the mass to some initial location using the mouse. Click 'play' button (lower left) to see the motion and the graph of the mass location. Determine the period of oscillation from the graph by finding the difference in time between two peaks.
2. Now find the period from the times of two consecutive times when the mass is at the bottom of its oscillation. Is this the same period you got in the first question? Explain.
3. Try a different starting displacement and measure the period. Does changing the amplitude of the oscillation change the period?
4. Clicking on the graph shows the coordinates of the mouse in a yellow box at the lower left. Determine the period and frequency of this motion from the values on the graph (Hint: Frequency in $$\text{Hz}$$ is the inverse of period $$f=1/T$$.
5. Check the 'V' box to see graphs of both position and velocity. Where is the mass when the velocity is a maximum? Where is the mass when the velocity becomes zero?
6. Try different spring constant values, $$κ$$, between $$0.5\text{ N/m}$$ to $$5.0\text{ N/m}$$, resetting and releasing the mass at the same point each time. What is the relationship between spring constant and frequency?
7. For a given spring the frequency is determined by the mass hanging on it and the stiffness of the spring; $$f = (κ/m)^{1/2}/(2π)$$. Measure the frequency for the case of a spring constant, $$κ$$ equal to $$2.0$$. What must be the mass on the end of this spring? Verify that you get the same mass by measuring the frequency for several different spring constants (this is equivalent to hanging the same mass on several different springs).
8. According to the equation for frequency, what would happen to the period of oscillation of a spring-mass system if the mass is doubled?
9. Why is it more convenient to use a cosine function with a phase of zero for the description of the motion of the mass in this case? (Hint: Does the mass start with an amplitude of zero or a maximum amplitude?)

1. As we will see in Chapter 6, angular frequency is given by $$ω = 2πf$$. What is the angular frequency of the motion of the mass?
2. The points on the graph of the motion of the mass on a spring can be described by the mathematical function $$y(t)=A\cos (-\omega t+\phi )$$ where $$\cos$$ is the cosine function, $$ω$$ is the angular frequency and $$\phi$$ is the phase in radians. Using this equation and a calculator (in radian mode!), what is the location of the mass when $$t=0$$and $$\phi =0$$? What is the location of the mass when $$t=0$$ and $$\phi =\pi$$ (don't forget we are in radian mode)? Explain what the phase angle, $$\phi$$ tells you about the initial position ($$t=0$$) of the mass on the spring.
3. If $$y(t)=A\cos (-\omega t+\phi )$$ is the location of the mass on the spring and the time derivative (using calculus) of location is velocity, then the velocity of the mass is given by $$v(t)=-A\omega \sin (-\omega t+\phi )$$. Check the 'V' box and run a simulation with an initial amplitude of $$6.0\text{ m}$$ and a spring constant of $$2$$. From the graph find the angular frequency and calculate the speed amplitude $$v_{max} =A\omega$$. How does this number compare with the maximum value on the velocity graph, are they the same?
4. Find an expression for the acceleration of a mass on a spring, based on the position given by $$y(t)=A\cos (-\omega t+\phi )$$ and the fact that acceleration is the second derivative of position with respect to time (this requires calculus).

## Chapter Three Summary

Vibrating objects can be described by their period (in seconds) or the inverse, their frequency (in Hertz). The phase angle tells where in the cycle a measurement of time or space is starting. Anything that experiences a Hooke's law force (a force proportional to displacement) without being driven and without friction will undergo simple harmonic motion. Simple harmonic motion can be described mathematically by a sine or cosine function.

2.1.3: Simple Harmonic Motion Simulation is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by Kyle Forinash and Wolfgang Christian via source content that was edited to conform to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.