Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Linear mechanical systems

Newton’s laws

In this lecture, we consider mechanical systems with translational motion in one direction. The most important facts we will use are Newton’s laws. The fundamental physical object in this context is a particle, which carries a constant mass mm and has (vector) position x(t)\x(t).

Since we will be dealing extensively with functions of time (also called signals), we will use two notation conventions so that our equations do not look too cluttered.

We will now specialize Newton’s laws to rigid body motion in 1D. A rigid body is a large collection of particles that are constrained to keep the same relative position to one another. In 1D, we assume the body only translates in one direction (no rotation), and all external forces are applied in that direction. In this case, all points on the body have the same velocity x˙\dot x and acceleration x¨\ddot x, and the quantities x˙\dot x, x¨\ddot x, FiextF_i^\textsf{ext} may be treated as scalars since they only act in 1D. If the total mass of the body is mm, Newton’s second law simplifies to:

mx¨=iFiext\boxed{ m\,\ddot x = \sum_i F_i^\textsf{ext}}

In other words: In 1D, the mass of a body times its acceleration is equal to the sum of all external forces acting on the body. For a detailed derivation, see the appendix on Newton’s laws.

Fundamental components

Stiffness elements

A stiffness element is used to represent a spring-like interaction between two points. If you apply a force to compress or stretch the space between the two points, the stiffness element deforms accordingly, and acts as a lossless energy storage device. We represent stiffness elements as a zig-zag line, which depicts a spring.

Simple spring being stretched by both ends.

Figure 1:Simple spring being stretched by both ends.

In the diagram of Figure 1, we have:

We can also have one endpoint fixed, which we represent using a line with hash marks.

Simple spring being stretched by one end, with the other end fixed to a wall.

Figure 2:Simple spring being stretched by one end, with the other end fixed to a wall.

In this case, the left endpoint of the spring is fixed to the wall, so we do no need to label it, and Hooke’s law simply becomes F=kxF=kx.

Damping elements

A damping element is used to represent a dashpot-like (viscous) interaction between two points. If you apply a force to compress or stretch the space between the two points, the damping element deforms at a speed that depends on the force, and acts as an energy dissipation device. We represent damping elements as a cartoon-like piston, which depicts a dashpot.

Another damping element is viscous friction, which happens when there is a viscous fluid at the interface between two surfaces that causes the two surfaces to slide at a speed that depends on the tangential force applied. We represent this as a hatched region between the surfaces. The two damping elements are depicted below.

Left: Simple damper (dashpot) being stretched by both ends. Right: Viscous damping between two sliding surfaces.

Figure 3:Left: Simple damper (dashpot) being stretched by both ends. Right: Viscous damping between two sliding surfaces.

Both of the damping elements shown in Figure 3 have the same constitutive equation:

F=b(x˙2x˙1)F = b(\dot x_2 - \dot x_1)

Free body diagrams

To obtain equations of motion for an interconnected system involving masses, stiffness, and damping elements, we apply Newton’s second law once for each inertia (each mass) in the system. A simple way of keeping track of the various forces at play is to draw a free body diagram for each inertia.

When connecting elements together, we apply Newton’s third law. This means that our stiffness (or damping) elements can be interpreted in two different ways:

  1. When you apply a force FF to a spring, it deforms an amount xx, where F=kxF=kx.

  2. When you deform a spring an amount xx, it resists with a force FF, where F=kxF=kx.

So when we connect a spring to a mass, the force that the mass imparts on the spring will be equal and opposite to the force the spring imparts on the mass.

Example: spring-mass-damper

Consider the classical spring-mass-damper system shown in Figure 4.

Classic spring-mass-damper system. The wheels indicate that there is no friction.

Figure 4:Classic spring-mass-damper system. The wheels indicate that there is no friction.

There is a single inertia (the mass mm) connected to a wall by a spring and a damper. The wheels under the mass indicate that there is no friction. There is also an external force ff applied to the mass.

The spring and damper exert forces on the mass, so let’s draw a free body diagram of mass mm to account for all the forces:

Free body diagram for the spring-mass-damper system of .

Figure 6:Free body diagram for the spring-mass-damper system of Figure 4.

The spring force fsf_s and damper force fdf_d are drawn pointing in the direction we expect them to act when x>0x>0. A displacement to the right (x>0x>0) will cause the spring to exert a force on the mass towards the left (resisting the motion). As we will see later, it doesn’t matter which way you draw these arrows, as long as you adjust your constitutive equation accordingly!

We can now write all the relevant equations:

fs=kx(constitutive equation for spring)fd=bx˙(constitutive equation for damper)mx¨=ffsfd(Newton’s second law)\begin{aligned} f_s &= k x & &\textsf{(constitutive equation for spring)} \\ f_d &= b \dot x & &\textsf{(constitutive equation for damper)} \\ m \ddot x &= f - f_s - f_d & &\textsf{(Newton's second law)} \end{aligned}

Eliminating fsf_s and fdf_d by substituting the two constitutive equations into Newton’s law and rearranging the equation, we obtain our final equation of motion:

mx¨+bx˙+kx=f\boxed{m\ddot x + b \dot x + k x = f}

Sign conventions

The directions of the arrows in the free body diagram are a convention. The arrow says “this is the direction we’ll be calling positive”. This does not mean the force must act in this direction! If it acts in the opposite direction, it will simply have a negative value.

What happens if we use a different convention in the spring-mass-damper system? Let’s draw our FBD differently this time, by switching the direction of the spring force.

Alternative free body diagram for the spring-mass-damper system of .

Figure 7:Alternative free body diagram for the spring-mass-damper system of Figure 4.

The relevant equations now become:

fs=kx(constitutive equation for spring)fd=bx˙(constitutive equation for damper)mx¨=f+fsfd(Newton’s second law)\begin{aligned} f_s &= -k x & &\textsf{(constitutive equation for spring)} \\ f_d &= b \dot x & &\textsf{(constitutive equation for damper)} \\ m \ddot x &= f + f_s - f_d & &\textsf{(Newton's second law)} \end{aligned}

The spring equation changes because when we have a positive displacement (x>0x>0), the spring force should oppose the motion (fs<0f_s<0). Newton’s second law also changes because fsf_s is now aligned with xx. The two effects cancel out, and we obtain the same equation of motion as before, (5).

More examples

For the rest of this lecture, we will cover several different examples. Each uses a similar workflow to the spring-mass-damper system of Figure 4, but with increasing complexity.

Example: springs in parallel

Consider two springs connected in parallel to a mass.

Left: two springs connected in parallel to a mass. Right: corresponding free body diagram.

Figure 8:Left: two springs connected in parallel to a mass. Right: corresponding free body diagram.

The relevant equations for this system are:

fs1=k1x(constitutive equation for first spring)fs2=k2x(constitutive equation for second spring)mx¨=ffs1fs2(Newton’s second law)\begin{aligned} f_{s1} &= k_1 x & &\textsf{(constitutive equation for first spring)} \\ f_{s2} &= k_2 x & & \textsf{(constitutive equation for second spring)} \\ m \ddot x &= f - f_{s1} - f_{s2} & &\textsf{(Newton's second law)} \end{aligned}

Eliminating fs1f_{s1} and fs2f_{s2} by substitution, we obtain our equation of motion:

mx¨+(k1+k2)x=f\boxed{m \ddot x + (k_1 + k_2) x = f}

Example: springs in series

Now consider two springs connected in series to a mass.

Two springs connected in series to a mass.

Figure 9:Two springs connected in series to a mass.

The difficulty here is that if we draw a free body diagram for mass mm only, we will not have enough information to solve the problem. This is because the displacement of the seconds spring is xzx-z, so our equation of motion will depend on both xx and zz.

The trick to solving this problem is to imagine a fictitious mass m0m_0 located between the two springs. Let’s now make free body diagrams for both masses:

Free body diagrams for the system of .

Figure 10:Free body diagrams for the system of Figure 9.

The relevant equations for this system are now:

fs1=k1z(constitutive equation for first spring)fs2=k2(xz)(constitutive equation for second spring)m0z¨=fs2fs1(Newton’s second law for m0)mx¨=ffs2(Newton’s second law for m)\begin{aligned} f_{s1} &= k_1 z && \textsf{(constitutive equation for first spring)} \\ f_{s2} &= k_2 (x-z) && \textsf{(constitutive equation for second spring)} \\ m_0 \ddot z &= f_{s2} - f_{s1} && \textsf{(Newton's second law for $m_0$)}\\ m \ddot x &= f - f_{s2} && \textsf{(Newton's second law for $m$)} \end{aligned}

Eliminating fs1f_{s1} and fs2f_{s2} by substituting into last two equations, we obtain

m0z¨+k1zk2(xz)=0mx¨+k2(xz)=f\begin{aligned} m_0 \ddot z + k_1 z - k_2(x-z) &= 0 \\ m \ddot x + k_2(x-z) &= f \end{aligned}

Setting m0=0m_0=0 in the first equation, the differential equation becomes an algebraic equation (no derivatives). We can solve for xx and obtain:

k1zk2(xz)=0    (k1+k2)z=k2x    z=k2k1+k2xk_1 z - k_2(x-z) = 0 \quad \implies \quad (k_1+k_2)z = k_2 x \quad \implies \quad z = \tfrac{k_2}{k_1+k_2}x

Plugging this back into (10) and simplifying, we obtain our equation of motion:

mx¨+(k1k2k1+k2)x=f\boxed{m \ddot x + \left( \frac{k_1k_2}{k_1+k_2} \right) x = f}

Test your knowledge

Solution to Exercise 1 #

Begin by drawing the free body diagrams for both masses.

Free body diagrams for the masses in the system of .

Figure 12:Free body diagrams for the masses in the system of Figure 11.

The force fdf_d corresponds to the viscous friction force, which acts equal and opposite on the two masses. The spring forces fs1f_{s1} and fs2f_{s2} were drawn so as to oppose the directions of x1x_1 and x2x_2, but again, this is just a convention and has no effect on the final answer. Now, we can write our system of equations.

fs1=k1x1(first spring)fs2=k2x2(second spring)fd=b(x˙1x˙2)(viscous damping)m1x¨1=Fafs1fd(first mass)m2x¨2=fs2+fd(second mass)\begin{aligned} f_{s1} &= k_1 x_1 && \textsf{(first spring)}\\ f_{s2} &= k_2 x_2 && \textsf{(second spring)}\\ f_d &= b(\dot x_1-\dot x_2) && \textsf{(viscous damping)}\\ m_1 \ddot x_1 &= -F_a -f_{s1} -f_d&& \textsf{(first mass)}\\ m_2 \ddot x_2 &= -f_{s2}+f_d && \textsf{(second mass)}\\ \end{aligned}

The trickiest part is getting the signs right on the viscous damping. One way to do this is to imagine displacing one mass while holding everything else fixed.

  • Look at m1m_1. Imagine holding m2m_2 fixed (x2=0x_2=0) and moving m1m_1 in the positive-x1x_1 direction. We would expect the friction force to oppose the motion, so fd=bx˙1f_d = b \dot x_1, since the fdf_d acting on m1m_1 is already opposing the direction of x1x_1.

  • Now look at m2m_2. Imagine holding m1m_1 fixed (x1=0x_1=0) and moving m2m_2 in the positive-x2x_2 direction. We would expect the friction force to oppose the motion, so fd=bx˙2f_d = -b \dot x_2, since the fdf_d acting on m2m_2 is in the same direction as x2x_2.

When neither mass is held fixed, the system obeys superpostion; we can just add the two friction forces together and obtain fd=b(x˙1x˙2)f_d = b(\dot x_1-\dot x_2).

Returning to Eq. (13), we can substitute the first three equations into the last two equations to eliminate fs1f_{s1}, fs2f_{s2}, and fdf_d, and we obtain:

m1x¨1+b(x˙1x˙2)+k1x1=Fam2x¨2b(x˙1x˙2)+k2x2=0\boxed{\begin{aligned} m_1 \ddot x_1 + b(\dot x_1 - \dot x_2) + k_1 x_1 &= -F_a \\ m_2 \ddot x_2 - b(\dot x_1 - \dot x_2) + k_2 x_2 &= 0 \end{aligned}}