Scientia sine finibus

AP Physics C: Mechanics / Unit 7, Oscillations / Topic 7.4

Energy of Simple Harmonic Oscillators

The potential energy as an integral of the force, the constant total energy, and the speed at any position without the time.

What you should be able to do

Describe the energy of a simple harmonic oscillator.

This page covers that learning objective.

The conservation of energy gives the speed of the block at a given position in one step. The functions of time require several steps for the same result. Topic 7.3 obtained the speed at a given position from the functions for \(x\) and \(v\). This page obtains the same result from the conservation of energy, and the two results agree.

This page derives the potential energy of a spring. The potential energy is the work that is done against the spring force, and this work is an integral. In this course you calculate the integral, and you do not only memorize the result. The other results on this page follow from the statement that the total energy is constant.

1. The Potential Energy of a Spring Is the Integral of the Force

The potential energy is defined by the work that is done against a conservative force. Stretch the spring from 0 to \(x\) with an applied force that is equal in magnitude to the spring force at each position. The work that you do is the integral of \(kx’\) from 0 to \(x\).

\(U_s = -\int_0^x F_s\,dx’ = \int_0^x kx’\,dx’ = \tfrac{1}{2}kx^2\)the elastic potential energy, from the integral rather than from memory

The same integral is the area under the graph of the force against the displacement. For an ideal spring, this graph is a straight line with a slope of \(k\). The area from 0 to \(x\) is a triangle with a base of \(x\) and a height of \(kx\), and its area is \(\tfrac{1}{2}kx^2\). The integral and the area of the triangle are the same calculation.

The derivative of the potential energy gives the force. This is the general relationship between a potential energy and its force.

Worked, line by line

U_s = ∫ from 0 to x of kx dxthe work done against the spring force
U_s = ½kx²the antiderivative, evaluated at the limits
F_x = −dU/dxthe general relation between the two
d/dx(½kx²) = kxdifferentiate the stored energy
F_x = −kxwhich is the spring force again
the two are inversesintegrate the force, differentiate the energy

Because of the negative sign, the force is in the direction in which the potential energy decreases.

The displacement is squared, so the energy increases faster than the stretch. When the displacement is doubled, the stored energy is 4 times as large.

Worked, line by line

U_s = ½kx²the displacement enters squared
U_s = ½(32)(0.080)²at a stretch of 0.080 m
U_s = 0.102 Jjoules
U_s = ½(32)(0.160)²at twice that stretch
U_s = 0.410 Jjoules
0.410 / 0.102 = 4four times as much for twice the stretch

A spring that does not satisfy \(F=-kx\) also has a potential energy, and it is found with the same integral. A force \(F=-bx^3\) gives \(U=\tfrac{1}{4}bx^4\). This system is not a simple harmonic oscillator, because the restoring force is not proportional to the displacement.

Remember this. Write the potential energy as the integral of the force. A question about a nonlinear spring is answered with the same integral. The result \(\tfrac{1}{2}kx^2\) does not apply to a nonlinear spring.

The simulation below shows the graph of the spring force against the displacement. The area under the line is shaded from 0 to a displacement that you choose. The readout shows the area and the value of \(\tfrac{1}{2}kx^2\).

Test thisShade the area to about 0.10 m, and compare the area with \(\tfrac{1}{2}kx^2\). Then shade the area to 0.20 m, and compare again. Record the change in the stored energy when the displacement is doubled.

Report what happened1. What were the two areas?
2. Was each area equal to \(\tfrac{1}{2}kx^2\)?
3. By what factor did the stored energy increase when the displacement was doubled?
4. Use the integral to explain this factor.

Now without the simulationA spring obeys \(F_s=-bx^3\). Its potential energy as a function of displacement is

Topic questions

1 A spring is stretched 0.12 m and stores 0.13 J. The energy it stores when stretched 0.36 m is

2 The relationship between a one dimensional conservative force and its potential energy is

2. The Total Energy Is Constant and Equal to One Half k A Squared

The spring force is the only force that does work on the block along the track, and the spring force is conservative. The mechanical energy therefore does not change. At a general position, the kinetic energy and the potential energy change in opposite directions, and their sum stays constant.

\(E = K + U_s = \tfrac{1}{2}mv^2 + \tfrac{1}{2}kx^2 = \text{constant}\)the statement the whole page rests on

Calculate the constant at the end of the motion, where the block is momentarily at rest. At the end, \(v=0\) and \(x=\pm A\). All of the energy is in the spring, so the total energy is \(\tfrac{1}{2}kA^2\). The calculation is easiest at this instant, and the result is correct at any other instant.

\(E = \tfrac{1}{2}kA^2\)the total, written from the end of the travel

The same constant applies at the equilibrium position, where \(x=0\) and the speed is \(v_{\max}\).

Worked, line by line

E = ½kA²the total, written at the end of the motion
x = 0: U_s = 0at the equilibrium position the spring holds nothing
½mv_max² = ½kA²so the whole total is kinetic there
v_max² = (k/m)A²multiply both sides by two over m
v_max = A√(k / m)take the root
v_max = Aωthe same result the position function gives

Topic 7.3 obtained this greatest speed with a derivative. The conservation of energy gives it without calculus and without the time.

Example: the oscillator in this unit has \(k=32\) N/m, \(m=0.50\) kg, and \(A=0.080\) m.

Worked, line by line

E = ½(32)(0.080)²substitute the spring and the amplitude
E = 0.102 Jjoules, constant through the motion
v_max = √(2E / m)solve the kinetic energy for the speed
v_max = √(2(0.102) / 0.50)substitute the energy and the mass
v_max = 0.640 m/smeters each second
Aω = (0.080)(8.00) = 0.640the same number, from Topic 7.3

Remember this. The amplitude and the spring constant determine the total energy. The mass is not in \(E=\tfrac{1}{2}kA^2\). The mass is used only when you calculate a speed from the energy.

The simulation below shows the kinetic energy, the potential energy, and their sum as three bars. The bars change while the block moves.

Test thisStart the motion, and observe the three bars. Pause at an end of the motion, and read all three values. Then pause at the equilibrium position, and read all three values again. Then change the amplitude, and read the total energy.

Report what happened1. What were the three values at the end of the motion?
2. What were the three values at the equilibrium position?
3. What happened to the bar for the total energy during the motion?
4. By what factor did the total energy change when the amplitude was doubled? Explain the reason.

Now without the simulationA block on a spring has total energy \(E\) with amplitude \(A\). The amplitude is tripled with the same spring and the same block. The new total energy and the new greatest speed are

Topic questions

3 A 0.50 kg block on a 32 N/m spring oscillates with an amplitude of 0.080 m. Its total mechanical energy is closest to

4 Two blocks of different mass oscillate on identical springs with the same amplitude. Compared with the lighter one, the heavier one has

3. Energy Gives the Speed at Any Position Without the Time

Set the total energy at a general position equal to the total energy at the end of the motion, and solve for the speed. The time is not in this calculation. Use this method when a question gives a position.

\(\tfrac{1}{2}mv^2 + \tfrac{1}{2}kx^2 = \tfrac{1}{2}kA^2 \;\Rightarrow\; v = \pm\sqrt{\tfrac{k}{m}(A^2-x^2)} = \pm\omega\sqrt{A^2-x^2}\)the same result Topic 7.3 reached by eliminating the time

At the equilibrium position, \(x=0\) and the speed is \(A\omega\). At the ends, \(x=\pm A\) and the speed is zero. Between these positions, the speed decreases slowly near the equilibrium position and quickly near the ends, because of the square root.

At one half of the amplitude, the speed is not one half of the greatest speed. At \(x=A/2\), the potential energy is one quarter of the total energy, because the displacement is squared. Three quarters of the energy is kinetic, so the speed is \(\sqrt{3}/2=0.866\) of the greatest speed. For this oscillator, the speed at \(x=A/2\) is 0.554 m/s, and the greatest speed is 0.640 m/s.

The two energies are equal at one position on each side of the equilibrium position.

Worked, line by line

½kx² = ½Eask where the spring holds half the total
½E = ¼kA²because the total is one half kA squared
x² = A² / 2the spring constant cancels
x = A / √2 = 0.707Aone position on each side of the middle
x = (0.707)(0.080)for this oscillator
x = 0.0566 mmeters, and K equals U there

At this position, each energy is 0.0512 J.

Remember this. A question that gives a position and asks for a speed is an energy question. A question that gives a time and asks for a position requires the function of time. Decide which of the two methods the question requires before you start the calculation.

The simulation below shows the graph of the velocity against the position, with sliders for the amplitude and the stiffness. The curve is the ellipse that \(v=\pm\omega\sqrt{A^2-x^2}\) describes.

Test thisRead the speed at \(x=0\), at \(x=A/2\), and at \(x=A\). Then find the position at which the speed is one half of its greatest value.

Report what happened1. What fraction of the greatest speed did you find at \(x=A/2\)?
2. At what fraction of the amplitude was the speed one half of its greatest value?
3. Explain why the first fraction is larger than one half.

Now without the simulationA block oscillates with amplitude \(A\). At which position is its kinetic energy equal to its potential energy?

Topic questions

5 A 0.50 kg block on a 32 N/m spring has an amplitude of 0.080 m. Its speed at \(x=0.060\) m is closest to

6 At the instant a block is at \(x=A/2\), the fraction of the total energy that is potential is

4. The Energy Graphs Against Position and Against Time

On the graph of the two energies against position, the potential energy is \(\tfrac{1}{2}kx^2\). Its graph is a parabola with its lowest point at the equilibrium position. The kinetic energy is \(E-\tfrac{1}{2}kx^2\). Its graph is the same parabola, and it opens downward. The total energy is a horizontal line at \(E\).

The two curves cross at \(x=\pm A/\sqrt{2}\), where each energy is one half of the total energy. The potential energy is equal to the total energy at the ends. The kinetic energy is equal to the total energy at the equilibrium position.

On the graph of the same two energies against time, the period is different. The position and the velocity repeat one time in each cycle. The energies depend on the squares of these quantities. The square of a function that is symmetric about zero repeats two times as often as the function. Each energy graph therefore reaches its greatest value two times in one period of the position graph.

\(U_s = \tfrac{1}{2}kA^2\cos^2(\omega t), \qquad K = \tfrac{1}{2}kA^2\sin^2(\omega t)\)released from rest at \(+A\), so each repeats twice a cycle and the two are offset by \(T/4\), half of their own period

The average of each energy over one complete cycle is the same, because the average of \(\cos^2\) and the average of \(\sin^2\) are both one half. The average of each energy is \(E/2\), which is 0.0512 J for this oscillator. The sum of the two averages is the total energy.

\(\langle K\rangle = \langle U_s\rangle = \tfrac{1}{2}E = \tfrac{1}{4}kA^2\)the time averages over a full cycle

Remember this. A graph of an energy against position is a parabola. A graph of an energy against time repeats two times in each cycle. Read the label on the horizontal axis before you decide which of the two graphs a question shows.

Find the average kinetic energy of this oscillator over one cycle, with k equal to 32 N/m, A equal to 0.080 m and ω equal to 8.00 rad/s.

Worked, line by line

K = ½mω²A² sin²(ωt)from the velocity function, squared
average of sin² = ½over a whole cycle
average K = ¼mω²A²half of the greatest kinetic energy
E = ½kA² = 0.102joules, the constant total
average K = ½E = 0.051joules, and the average U is the same
K and U repeat at 2ωtwice the frequency of the position itself

The simulation below shows the two energies against position and against time in two panels. You can compare the parabola with the curve that has two maxima in each cycle, for the same motion.

Below the graphs, the same oscillator is shown in two panels at one instant. The left panel is a free body diagram of the block, and the right panel is an energy bar chart. Move the position slider, or use the two buttons to move the block to the maximum displacement and to the equilibrium position. The second free response question on the AP exam asks for these two representations and for an explanation of how they agree.

Test thisStart the motion, and observe both panels. Find the position where the two curves cross on the position panel, and read the position. Then count the maxima of each energy in one period on the time panel.

Report what happened1. At what fraction of the amplitude did the two curves cross on the position panel?
2. How many maxima did each energy have in one period of the motion?
3. Explain why this number is not one.

Now without the simulationA block oscillates with period \(T\). The period of its kinetic energy as a function of time is

Topic questions

7 Averaged over a whole cycle, the kinetic energy of a simple harmonic oscillator of total energy \(E\) is

8 On a graph of potential energy against position for an ideal spring, the curve is

Next

Topic 7.5 replaces the block on a spring with a rigid body. A rigid body that swings about a pivot satisfies \(I\,d^2\theta/dt^2=-mgd\sin\theta\), which gives \(T=2\pi\sqrt{I/mgd}\). The simple pendulum is the special case in which all of the mass is at one distance from the pivot.