Hooke's Law and Energy Lab

Objectives

  • Study the relationship between the spring force and the displacement of the spring away from it equilibrium position.
  • Determine the spring constant of a spring.
  • Verify the principle of conservation of mechanical energy within experimental error.
  • Verify the work-kinetic energy theorem within experimental error.

Physics Overview


Consider an ideal spring which has the properties that it obeys Hooke's Law (see below) and is massless, as shown in Figure 1. A block of mass \(m\) is attached to the spring and the mass-spring system rests on the table with the spring at its equilibrium length. Consider compressing the spring by pushing on the mass, and the spring is compressed by a distance \(\Delta x\) as shown in Figure 2. Let us imagine that the there is no friction between the block and the surface of the table. You will notice that if you hold the system stationary at this position, then you will need to supply a force to prevent the spring from pushing the attached mass out. If the system is stationary as shown in Figure 2 then the force you supply will be exactly matched by the force that the spring exerts.


a mass-spring system at equilibrium

Fig. 1: A mass-spring system at rest at the spring's equilibrium position. The mass \(m\) rests on a frictionless surface and the spring constant is \(k\).

a mass-spring system stretched

Fig. 2: The spring is compressed by a distance x to the left by applying a force. At the instant shown the spring exerts a force on the mass and mass will move to the right.

It also turns out that (for an ideal spring) the force that the spring exerts is proportional to the displacement of the spring away from its equilibrium length. Thus, this force can be written as,


\[ \vec{F}_s \propto \Delta \vec{x}. \label{eq:fsprop}\]


It turns out that the spring force is directed opposite to the displacement - hence you can see in Figure 2 the spring force is directed to the right when the displacement of the spring away from equilibrium is a vector pointing to the left. With this knowledge we can write Eq. \eqref{eq:fsprop} as an equality by inserting a constant of proportionality \(k\):


\[ \vec{F}_s = - k \Delta \vec{x}, \label{eq:hooke_s_law} \]


where \(k\) is called the spring constant. The stiffer the spring the larger the value of \(k\). Eq. \eqref{eq:hooke_s_law} is called Hooke's Law.


It can be readily seen that the relationship between the spring force and the displacement of the spring away from equilibrium is a linear relationship. You will be verifying this relationship in your lab today.


Conservation of Mechanical Energy


When you compressed the mass-spring system to the position shown in Figure 2 you did work on the system. Assuming that the system is stationary at this position, then the work that was done by you goes into increasing the potential energy of the mass-spring system. Now, the potential energy of the mass is unaltered, as it has not moved in the vertical direction, hence all the potential energy of the mass-spring system is given by the potential energy of the spring. Thus, when you did work to compress the spring, you transfered energy to the system and that energy is stored as potential energy in the compressed spring. The moment you let go of the mass, the system will move and it will convert this potential energy to kinetic energy of the mass.


When the system is dynamic, i.e., when the mass moves, in the absence of friction and other dissipative effects, the total mechanical energy of the system will remain conserved. In other words, for the mass-spring system the sum of the potential energy of the spring and the kinetic energy of the mass, at any given instant of time, will be constant. Therefore we can write,


\[ U + K = \textrm{const} \implies \frac{1}{2}kx^2 + \frac{1}{2}mv^2 = \textrm{const}. \label{eq:tot_energy} \]


Where we have used the definition of the potential energy stored in the spring, as well as the kinetic energy of the mass. In Eq. \eqref{eq:tot_energy} \(x\) represents displacement of the spring away from its equilibrium position, presumed to be \(0\), as shown in Figure 2. Therefore when \(v=0\) the kinetic energy is zero and the mass-spring system only has potential energy, and when the spring is at its equilibrium length, \(x=0\) and hence all of the energy of the system will be the kinetic energy of the mass. Thus, as the system moves energy will get converted from potential energy to kinetic energy and vice versa, however if you sum up the potential and kinetic energies at any given instant of time, you will find that the total mechanical energy is constant for the mass-spring system. You will be verifying Eq. \eqref{eq:tot_energy} in the lab today.


Work-kinetic energy theorem


Now consider the motion from the point of view of the block of mass \(m\) as shown in Figure 2. In the absence of friction and any dissipative effects the net force on the mass at any given instant is simply the spring force, and the latter is proportional to the displacement of the spring away from equilibrium. Hence we can immediately conclude that the net force on the mass is greatest in magnitude when the spring is displaced maximally from its equilibrium, and zero when the spring is momentarily at its equilibrium position during the ensuing motion of the mass-spring system. Therefore we can write that the change in kinetic energy of the mass must be equal to the work done on it by the net force, i.e., the spring force.


\[ W_\textrm{net} = \Delta K \implies \int_{x_1}^{x_2} \vec{F}_s \cdot \vec{dl} = K_2 - K_1, \label{eq:work_energy} \]


where, \(K_1\) and \(K_2\) are the kinetic energies of the mass at positions \(x_1\) and \(x_2\), respectively. You will be verifying Eq. \eqref{eq:work_energy} in the lab today.


If you would like to get a quick video refresher about a mass-spring system, see the following video.


Apparatus

For carrying out the experiment you will need the following equipment:

  • iOLab Device and corresponding USB Dongle.
  • A computer with iOLab data logging software installed.
  • iOLab accesory kit.
  • Phy 200 iOLab kit.

Give it a go!

give it a go

Procedure

The lab that you will be doing today consists of two parts; Part I and Part II. The procedures for these two parts are given below.


Part - I (Determine the mass of the iOLab Device):


The video below shows how to attach the small spring from the iOLab kit to the force sensor.



The video below shows how to do the experiment for determining the mass of the iOLab device. Note that the small spring is attached to the force sensor.



This is the procedure to be followed for determining the mass of the iOLab device with the small spring attached:


  1. First attach the small spring from the iOLab kit to the force sensor as shown in the video above.
  2. Turn on the device and and open the data collection software on your computer after plugging in the USB dongle. On the software select the accelerometer and the force sensor.
  3. Place the iOLab device on the table, with the \(y-\)axis pointing downwards (see video above). Press record on the data collection software.
  4. After a few seconds lift the device up by holding the screw. Keep the device lifted for about \(10~\)s.
  5. Place the device back on the table and stop recording the data after a few seconds.

In the data analysis section you will learn how to analyse the data you have collected to determine the mass of the iOLab device with the small spring attached.


Part - II (The experiment for the lab):


The video below shows you what you will be doing in the lab today. Take care not to make the small spring buckle when you compress it.



This is the procedure to be followed for doing the experiment for the Hooke's Law and Energy Lab:


  1. First attach the small spring from the iOLab kit to the force sensor as shown in the video above.
  2. Place a flat surface next to the small spring as shown in the video above. It could be a hardbound textbook or your phone or ipod, etc.
  3. Turn on the device and and open the data collection software on your computer after plugging in the USB dongle. On the software select the accelerometer, the force sensor as well as the wheel sensors.
  4. Place the iOLab device on the table, with the wheels down (see video above). Press record on the data collection software.
  5. After a few seconds gently compress the spring and hold for a few seconds while continuously recording data. Make sure when you compress the spring that it does not buckle.
  6. Now release the iOLab device, the compressed spring should uncoil and the iOLab device should roll away from the initial position as shown in the video above. Once the device comes to a full stop, you can stop recording data.

You should now have all the data you need to start analysing the data which is outlined in the following section.


Data Analysis


Detemining the spring constant


After collecting the data be sure to export the data as csv files to your computer. You should have three separate csv files; the accelerometer, the force sensor and wheel sensor data.


First, on the iOLab data collection software, zoom in on the force sensor, wheel position and wheel velocity data, as shown in Figure 3. Notice the highlighted portion of the data - this part of the data is when you are gently compressing the spring. Try to select a region where the force sensor data is linearly increasing. Try not to select the end-regions, but select an ample portion of the data in the middle of this increase, as shown in Figure 3. Carefully note down the beginning and end points of the time interval selected.


screenshot of the data when compressing the small spring.

Fig. 3: Screenshot showing an example of the data collected; force sensor, wheel position and wheel velocity, as functions of time. Notice that you only need a portion of the data when the spring force is increasing linearly with time. Select a portion of this data being careful to avoid the end parts of the time interval. Also note down the beginning and end points of this time interval.

Next we will be working with the csv files to determine the spring constant. See the following video about how to carry out the analysis to determine the spring constant of the small spring.



Detemining the mass of the device


In the iOLab software open up the data you have collected in Part I for determining the mass of the iOLab device. First, determine the average value of the acceleration due to gravity when the device was resting on the table (see Figure 4 below). Carefully note down this average value of the acceleration. Next, determine the average value recorded by the force sensor when you lifted up the device; avoid the end regions of the interval, find the average somewhere in the middle of this region (see Figure 5 below). Carefully note down this average value of the force.. Divide the average force by the average acceleration to get the mass of the device. Carefully note down the value of the mass of the device you have determined.


average value of acceleration for mass determination

Fig. 4: Find the average value of the acceleration when the iOLab was resting on the table as indicated in the red box in the figure.

average value of force for mass determination

Fig. 5: Find the average value of the force when the iOLab was lifted up as indicated in the red box in the figure.

Verifying Conservation of Mechanical Energy


In this part of the data analysis we will be looking at the portion of the data when the spring returns to equilibrium pushing the iOLab device forward. On the iOLab data collection software load the data from the experiment and select only the force sensor, the wheel position and the wheel velocity data. Once you have done so, carefully examine the force sensor data to identify the region where the spring returns to its natural length from its compressed state. This will be the portion of the data when the spring force decreases linearly. Zoom in on the three data sets so that it looks similar to the snapshot shown in Figure 6 below.


snapshot of the data when the spring expands

Fig. 6: Find the portion of the data from the force sensor when the spring expands, thus pushing the iOLab device forwards. This will be the linearly decreasing portion of the data as depicted here in the red box.

Carefully note down the initial and final wheel positions (\(x_1\) and \(x_2\)) and wheel velocities (\(v_1\) and \(v_2\)) of this interval. A CLUE FOR SELECTING THE INTERVAL PROPERLY: the initial wheel velocity should be \(v_1=0\), and the final wheel position of the interval should be \(x_2=0\) i.e., when the spring has returned to its equilibrium length.


Once you have noted down the values of \(x_1, x_2, v_1\) and \(v_2\), calculate the change in the potential energy of the spring, as well as the change in kinetic energy of the mass according to,


\[ \Delta U = \frac{1}{2}k(x_2^2-x_1^2) \label{eq:deltaU} \]


and


\[ \Delta K = \frac{1}{2}m(v_2^2-v_1^2). \label{eq:deltaK} \]


Where \(m\) is the mass of the device and \(k\) is the spring constant, as determined above. How do the values for the change in the potential energy and the change in the kinetic energy compare?


Verifying the Work-Kinetic Energy Theorem


In this part of the data analysis you will be looking at the work done by friction on the iOLab device to slow it down to a dead stop. Open the iOLab data logging software and load the data from the run if it isn't already loaded. Select the accelerometer, wheel position and wheel velocity data. Apply a smoothing filter on the acceleration data, try not to use a smoothing filter higher than say "\(7\)" or "\(8\)". A smoothing filter of number \(n\) essentially averages the data around any point by considering \(n\) nearest neighbours around that point. Once you have smoothed the data zoom in on the part of the data when the iOLab device is in motion; i.e., it starts moving the moment you let it go and it stops moving a short time later as a result of friction dissipating energy from the system. The zoomed in data should look similar to that shown in Figure 7.


snapshot of the data friction slows down the device to a dead stop

Fig. 7: Find the portion of the data when friction slows down the device to a dead stop. Apply a smoothing filter of "\(7\)" or "\(8\)" to the acceleration data. Zoom in on acceleration and wheel velocity graphs so that the motion of the iOLab data under the influence of friction is clearly seen as shown here. Notice that the velocity of the iOLab reaches a maximum immediately after the spring regains its equilibrium length and thereafter friction slows it down to a dead stop.

Note down the average value of the acceleration due to friction. Also note down the maximum velocity (\(v_m\)) of the iOLab device, i.e., the velocity of the iOLab device just as the spring reaches equilibrium length. The final velocity should be zero. You can determine the work done by friction, which is the net work done on the iOLab device according to


\[ W_{\textrm{net}} = m a_{_\textrm{avg}} d, \label{eq:wnet} \]


where \(m\) is the mass of the device and \(a_{_\textrm{avg}}\) is the average value of the acceleration due to friction determined above. \(d\) is the distance over which the friction acts; essentially the area under the Wheel-velocity graph as shown in Figure 7. Note that this work done should turn out to be negative as the acceleration is negative, i.e., a deceleration.


Next determine the change in the kinetic energy of the iOLab device. This is given by


\[ \Delta K = - \frac{1}{2} m v_m^2, \label{eq:delta_k2} \]


where again \(m\) is the mass of the device and \(v_m\) is the maximum velocity of the iOLab device as determined above. How does the net work done by friction compare with the change in kinetic energy of the device?


Report Considerations

Make sure you include the following in your lab report:

  • A plot of Force vs wheel position showing the equation of the trendline, i.e., the experimentally determined value of the spring constant (refer to the video above).
  • Two (2) snapshots showing your determination of the mass of the device (similar to Figures 4 and 5 above).
  • A snapshot of your data for the verification of conservation of energy (similar to Figure 6 above).
  • A snapshot of your data for the verification of work-kinetic energy theorem (similar to Figure 7 above).
Questions to answer in the discussion section.
  • Does the spring obey Hooke's law? What can you say about the sources of error in your experiment for determining the spring constant?
  • Is mechanical energy conserved in this experiment, when the spring pushes on the iOLab device, making it move? In other words, how do your experimentally obtained values for the change in the spring potential energy and the change in the device's kinetic energy compare as determined according to Eqs. \eqref{eq:deltaU} and \eqref{eq:deltaK}?
  • Is the work-kinetic energy theorem valid for this experiment? In other words is the work done by friction equal to the change in the kinetic energy of the iOLab device, obataied according to Eqs. \eqref{eq:wnet} and \eqref{eq:delta_k2}?