xaktly | Physics | Mechanics

Hooke's law


The force produced by a spring


Hooke's law says that the force produced by a spring is proportional to the displacement (linear amount of stretching or compressing) of that spring:

$$F = -kx$$

where $k$ is called the force constant or spring constant of the spring. Each spring has its own force constant.

The diagram defines all of the important dimensions and terms for a coil spring. For each mass hung on it (the mass could be zero), a spring has some natural length, at which it is neither compressed (shortened) or extended (lengthened). At that point, the upward force produced by the spring is exactly balancing the gravitational force on the mass and spring (remember that the spring itself has mass).

We define the coordinate $x$ so that it is negative when the spring is compressed, zero at the natural length and positive when the spring is extended. The minus sign in $F = -kx$ is there by convention; we think of $F$ as the restoring force. When the spring is compressed, a positive force is required to extend it, and when it is extended, a negative force is required to shorten it, or restore it to its natural length.

If the spring is strong or stiff, $k$ will be large, and $k$ will be small for a weak spring.

Hooke's law is applicable not only to coil springs like the one shown here, but also to the bending of metal and some other materials, the stretching of wires like guitar strings, the stretching of rubber bands, and the stretching and compressing of chemical bonds.

Hooke's law is a linear relationship


Because Hooke's law is linear, we expect that if we double the mass hanging on a spring, the length of the spring will double. The graph below shows an ideal Hooke's law graph for a spring. The slope of the line is -k. The force, called the restoring force, is positive when x is negative (spring is compressed) and negative when x is positive (spring is extended).

In general, for any spring, Hooke's law is only good over a small range of motions. We know from experience that it's quite possible to extend a spring so far that it becomes damaged and really isn't the same any more.


Calculate the force constant of a spring

by making several measurements


Imagine that we have a spring and a way to measure force, like a scale (which is often just another spring, but one that is well-calibrated). Imagine that nine measurements of the spring force are measured at various spring lengths, including the natural length. Here's the data:

The units of length are centimeters and force is measured in Newtons (1 N = 1 Kg·m·s-2).

Negative values of $x$ indicate compression of the spring and positive values are extension. Notice that at $x$ = 0, where the spring is neither compressed nor extended, it exerts no force.

We'd like to calculate the force constant, $k$, using Hooke's law, $F = -kx$. We could calculate nine different force constants and average them, but a better way is to plot the data.

Notice that if we plot $F$ vs. $x$ (that is, $F$ on the y-axis and $x$ on the x-axis), the slope will be $-k$ because $F = -kx$ is a linear equation. Here's the graph:



This is a nice way to visualize the data. Notice that there is some "noise." That's normal; no measurement is without some degree of random error. We have to expect it. We can also see from the graph that there is a clear relationship between Force and spring length because the data is well-correlated.

The best way to calculate the slope in this case is to perform a linear least-squares fit, which can be done on a calculator or spreadsheet. On a spreadsheet it's often called a linear trend line. Doing that with this data yields $k = 0.17 N/cm$.


Example 1

A certain coil spring requires a force of 4.5 N in order to compress it from a length of 40 cm to 35 cm. Calculate the spring constant, k.

Solution: We can write Hooke's law in terms of absolute values:

$$|F| = k|\Delta x|$$

That way we don't have to be concerned with signs. We know that by convention a compression is a negative change in the spring length $x$, and, because $k$ is negative the force of extension of the spring will be positive.

Now $|\Delta x| = 5$ cm, so we have

$$4.5 \; N = k (5 \; cm)$$

Dividing by 5 cm gives us $k = 0.9 N/cm$, or $90 \, N/m$. Force constants are often reported in SI units, Newtons per meter (N/m or N·m-1)

X

SI units

SI stands for Système international (of units). In 1960, the SI system of units was published as a guide to the preferred units to use for a variety of quantities. Here are some common SI units

lengthmeter(m)
massKilogram(Kg)
timesecond(s)
forceNewtonN
energyJouleJ

Example 2 – parallel springs

Two springs are attached to a block as shown. Calculate the force required to compress both by 10 cm.



Solution: In this case, the overall spring constant k is just the sum of the individual spring constants:

$$k = k_1 + k_2$$

So $k = 120 \; N/m + 80 \; N/m = 200 \; N/m$.

Now it's a straightforward calculation of the force using Hooke's law and the displacement, $|\Delta x| = 10$ cm.

$$F = k|\Delta x| = 200 \; N/m(0.01 \; m) = 2 \; N$$

The force required to compress or extend multiple springs is just the sum of the forces to compress/extend each spring individually. In this arrangement, the springs are said to work in parallel.

Example 3 – springs in series

A mass is attached to two springs as shown. The spring on the right is compressed 20cm from its natural length. Calculate the force required to move the mass 10 cm to the left, at constant velocity.



Solution: In this situation, the spring on the left needs to be compressed, and because the spring on the right is compressed, it will provide some of the force needed to move the mass. We aren't accelerating the mass, so we don't have to exert a net force just to move it.

The force required to compress the spring on the left is

$$F_1 = -(k_1 \; N) (-0.01 \; m) = 1.2 \; N$$

The force toward the left produced by the spring on the right is

$$F_2 = -(k_2 \; N)(0.01 \; m) = -0.8 \; N$$

Now the net force required to make the move is the sum of these two forces,

$$F_1 + F_2 = 1.2 \; N - 0.8 \; N = 0.4 \; N$$

Example 4 – springs in series

Two springs, with spring constants k1 = 200 N/m and k2 = 100 N/m are attached as shown. Calculate the amount of force required to compress the springs by 10 cm.



Solution: This situation is a little tricky. Obviously, we'll compress the spring with the lower $k$ a little more than the one on the left, but by how much?

It turns out that springs in series can be treated like parallel resistors in an electric circuit. The combined spring constant is the reciprocal of the sum of reciprocal force constants:

$$k_tot = \left( \frac{1}{k_1} + \frac{1}{k_2} \right)^{-1}$$

So the force constant of this combined spring is

$$k_tot = \left( \frac{1}{100} + \frac{1}{200} \right)^{-1}$$

We find a common denominator by multiplying 1/100 by 2/2 to get

$$k_tot = \left( \frac{3}{300} \right)^{-1} = 66.57 \; N/m$$

Now that makes some sense, if you think about it. The spring combination is weaker than the weakest spring because when they're coupled together and compressed, the stronger spring still can give a little bit when the pair is compressed.

Now to find the force we just use Hooke's law:

$$ \begin{align} F &= -kx \\ &= -(66.67 \; N/m)(-0.010 \; m) \\ &= 0.667 \; N \end{align}$$

When n springs are arranged in series (one after another), the spring constant for the arrangement is

$$k_{tot} = \left( \frac{1}{k_1} + \frac{1}{k_2} + \dots + \frac{1}{k_n} \right)^{-1}$$


The potential energy of a spring


Springs store potential energy. When compressed or extended, a spring stores elastic potential energy that can be converted to kinetic energy and work.

The potential energy of a spring is

$$PE = \frac{1}{2} kx^2$$

If you know a little bit of calculus you can see in the section below how we derive that formula. The graph shows PE plotted vs. $x$ for both negative and positive values of $x$ (compression and extension). Study it for a bit. Notice that as the spring is further compressed or extended, the amount of potential energy it stores increases as the square of the distance.

Check out the animation below, too. The horizontal line marks the natural length of the spring/mass combination, the point at which PE = 0.

When the spring is compressed (x < 0), the PE grows. It's the same when the spring is extended.

When the spring changes direction at its most compressed point, it begins to exchange PE for kinetic energy (KE), until it reaches its natural length, at which PE = 0 and KE is equal to the maximum PE gained in compression. It's the same for extension. Follow the cycle a few times to make sure you get it.



A little calculus (optional)

The potential energy (PE) of a spring is equal to the work done against a force from a point $x_o$ to a point $x$. The PE is the integral of force between $x_o$ and $x$:

$$PE = -\int_{x_o}^x \, F \cdot dx$$

If we integrate the Hooke's law force,

$$-\int \, F\cdot \, dx = k \int \, x \, dx$$

(I'm just doing the indefinite integral) we get:

$$PE = \frac{1}{2} kx^2 + C$$

When $x = 0$ in our Hooke's law coordinate system, $PE = 0$, therefore the constant of integration, $C = 0$.

So we have the potential energy of a spring:

$$PE = \frac{1}{2} kx^2$$

Now, of course, the force is the steepness of the potential energy curve, or its slope – its first derivative:

$$F = -\frac{d}{dx} \, PE$$

The derivative of the Hooke's law potential energy gives us back Hooke's law:

$$F = -kx$$

The negative signs here arise from our sign convention on pushing on and pulling against a compressed or extended spring.


The harmonic oscillator


Finally, a note about the harmonic oscillator. If you back up and look at the animation above, you're looking at a harmonic oscillator, a device that oscillates from one state to another (in this case a spring from a certain compressed state to a certain extended state).

Every harmonic oscillator has a neutral position, at which we can set the potential energy to zero, and at which the kinetic energy is its maximum. The kinetic energy is converted into maximal potential energy at the turning points – the fully extended and compressed positions.

Without friction or other resistance, a harmonic oscillator will continue oscillating forever. The graph of position vs. time for such an oscillator might look like this:

The graph shows that the spring oscillates between a length of $+x$ to a length of $-x$ over time. The motion is periodic, tracing a repeating curve that looks like a sine wave (That is, in fact, what's plotted in the graph).

In reality, no oscillator can go on like that forever. There is always some friction or opposing force which we usually refer to as a damping force.

With a damping force, the curve looks like the one below, and the system is referred to as a damped oscillator.

The harmonic oscillator model can be applied to several physical situations to give us insights into the motion, including

springs

pendulums

vibrations of molecular bonds

I'll dive more deeply into harmonic oscillators in another section (planned).


Creative Commons License   optimized for firefox

xaktly.com by Dr. Jeff Cruzan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. © 2012-2019, Jeff Cruzan. All text and images on this website not specifically attributed to another source were created by me and I reserve all rights as to their use. Any opinions expressed on this website are entirely mine, and do not necessarily reflect the views of any of my employers. Please feel free to send any questions or comments to jeff.cruzan@verizon.net.