MV-05: Two-Degree-of-Freedom Systems – Modal Analysis Fundamentals

Summary
Introduction to multi-DOF systems. Covers coupled equations, matrix notation, natural frequencies, mode shapes, static vs dynamic coupling, principal coordinates, and semidefinite (unrestrained) systems.

So far, we have analyzed the world through Single-Degree-of-Freedom (SDOF) systems—modeling cars, buildings, and machines as single masses moving in one direction. While this approach provides valuable insights, reality is often more complex.

A lathe vibrates not just up and down, but also rocks back and forth. An automobile chassis bounces vertically and pitches angularly. To describe these motions, a single coordinate is insufficient—we need at least two independent coordinates. This leads us into the world of Two-Degree-of-Freedom (2-DOF) Systems.

This post, based on Chapter 5 of Rao’s Mechanical Vibrations, explores systems where two masses interact, introduces matrix notation for vibration analysis, and explains why your washing machine might walk across the floor only at specific spin speeds.

The Equations of Motion: Coupled and Complex

Consider a system with two masses, $m_1$ and $m_2$, connected by springs and dampers as shown below. To describe the motion completely, we need two independent coordinates: $x_1(t)$ and $x_2(t)$. This is a 2-DOF system.

Two-degree-of-freedom system schematic and matrix form
Left: Physical 2-DOF system with springs and dampers. Right: Transformation to compact matrix notation.

Applying Newton’s second law to each mass and carefully accounting for all spring and damper forces yields two equations:

$$ m_1\ddot{x}_1 + (c_1+c_2)\dot{x}_1 - c_2\dot{x}_2 + (k_1+k_2)x_1 - k_2x_2 = f_1 $$ $$ m_2\ddot{x}_2 - c_2\dot{x}_1 + c_2\dot{x}_2 - k_2x_1 + k_2x_2 = f_2 $$

Notice the problem: the equation for $m_1$ contains terms involving $x_2$ and $\dot{x}_2$ (the terms $-k_2x_2$ and $-c_2\dot{x}_2$). Similarly, the equation for $m_2$ contains $x_1$ and $\dot{x}_1$. The masses are dynamically coupled—you cannot solve one equation without knowing the solution to the other.

Matrix Notation

Writing out scalar equations quickly becomes unwieldy as the number of DOFs increases. Instead, we express the system in matrix form:

$$ [\mathbf{M}]\ddot{\mathbf{x}} + [\mathbf{C}]\dot{\mathbf{x}} + [\mathbf{K}]\mathbf{x} = \mathbf{F} $$

where:

  • $[\mathbf{M}]$ is the mass matrix (usually diagonal for lumped-mass systems)
  • $[\mathbf{C}]$ is the damping matrix (often symmetric)
  • $[\mathbf{K}]$ is the stiffness matrix (symmetric for conservative systems)
  • $\mathbf{x}$, $\mathbf{F}$ are displacement and force vectors

This compact notation scales naturally from 2-DOF to systems with hundreds or thousands of degrees of freedom—the mathematical foundation of finite element analysis (FEA).

Free Vibration: Two Natural Frequencies

With external forces removed ($\mathbf{F}=0$) and no damping, how does the system vibrate naturally?

Unlike an SDOF system with one natural frequency, a 2-DOF system has two natural frequencies ($\omega_1$ and $\omega_2$). To find them, we assume harmonic motion $\mathbf{x} = \boldsymbol{\phi}e^{i\omega t}$ and substitute into the equation of motion. This leads to an eigenvalue problem:

$$ ([\mathbf{K}] - \omega^2[\mathbf{M}])\boldsymbol{\phi} = \mathbf{0} $$

For non-trivial solutions, the determinant must vanish:

$$ \det([\mathbf{K}] - \omega^2[\mathbf{M}]) = 0 $$

This characteristic equation is a polynomial in $\omega^2$ with degree equal to the number of DOFs. For a 2-DOF system, it yields two natural frequencies.

Mode Shapes

Associated with each natural frequency is a mode shape (or eigenvector) $\boldsymbol{\phi}$ describing the relative motion of the masses. The mode shape tells us how the system vibrates at that frequency—not how much, but in what pattern.

Mode shapes of 2-DOF system showing in-phase and out-of-phase motion
Top: Time responses for each mode. Bottom left: Mode shape visualization. Bottom right: General response as superposition of modes.
ModeFrequencyMotionPhysical Interpretation
1st$\omega_1$ (lower)In-phaseMasses move together; middle spring barely compressed
2nd$\omega_2$ (higher)Out-of-phaseMasses move opposite; middle spring heavily stressed

The first mode has the lower frequency because less strain energy is stored in the springs—the masses move together, so the coupling spring between them experiences minimal deformation. The second mode has higher frequency because the coupling spring is alternately stretched and compressed, storing more energy.

Superposition Principle: The general free vibration response is a superposition of both modes:

$$ \mathbf{x}(t) = A_1\boldsymbol{\phi}_1\sin(\omega_1 t + \psi_1) + A_2\boldsymbol{\phi}_2\sin(\omega_2 t + \psi_2) $$

The amplitudes $A_1, A_2$ and phases $\psi_1, \psi_2$ are determined by initial conditions.

Coordinate Coupling: Static vs. Dynamic

Why are the equations coupled? The answer lies in our choice of coordinates.

Static (Elastic) Coupling occurs when the stiffness matrix $[\mathbf{K}]$ is non-diagonal. Physically, this means that displacing one mass creates a restoring force on the other—they are connected through elastic elements. Consider a lathe mounted on flexible supports: if you push down on one end, the other end tilts up because the springs are interconnected.

Dynamic (Inertia) Coupling occurs when the mass matrix $[\mathbf{M}]$ is non-diagonal. This happens when coordinates are defined relative to a reference point that doesn’t coincide with the center of mass. For example, in a car, vertical acceleration of the chassis naturally induces rotation (pitch) because the mass is distributed along the length.

Coupling TypeMatrix AffectedPhysical CauseExample
Static (Elastic)$[\mathbf{K}]$ non-diagonalDisplacement of one mass creates force on anotherLathe on elastic mounts
Dynamic (Inertia)$[\mathbf{M}]$ non-diagonalAcceleration couples through mass distributionCar bounce ↔ pitch motion
Static coupling, dynamic coupling, and principal coordinates
Left: Static coupling (springs connect masses). Middle: Dynamic coupling (bounce and pitch via CG). Right: Principal coordinates decouple the system.

Principal Coordinates

Can we eliminate coupling entirely? Yes—through principal coordinates (also called natural or normal coordinates).

The key insight is that mode shapes are orthogonal with respect to both mass and stiffness matrices. By transforming coordinates using the modal matrix:

$$ \mathbf{x} = [\boldsymbol{\Phi}]\mathbf{q} $$

where $[\boldsymbol{\Phi}]$ contains the mode shapes as columns, both $[\mathbf{M}]$ and $[\mathbf{K}]$ become diagonal. The coupled 2-DOF system splits into two independent SDOF equations—each describing motion in a single mode.

Semidefinite Systems: When Frequency is Zero

Not all systems are rigidly attached to a fixed frame. Consider two train cars connected by a spring, rolling freely on a track. There’s no wall, no anchor—just two masses and a coupling between them.

For such unrestrained (or semidefinite) systems, the stiffness matrix $[\mathbf{K}]$ is singular, meaning its determinant is zero. This has a profound consequence: one of the natural frequencies is zero.

Semidefinite system: two train cars with rigid body and elastic modes
Left: Two train cars connected by a coupling spring. Right: The two modes—rigid body translation (ω₁ = 0) and elastic oscillation (ω₂ ≠ 0).

Physical Interpretation

ModeFrequencyMotionWhat’s Happening
Rigid Body$\omega_1 = 0$Both masses translate togetherNo relative motion → no spring force → no restoring force → no oscillation
Elastic$\omega_2 \neq 0$Masses oscillate against each otherSpring stretched/compressed → restoring force → vibration

The rigid body mode represents pure translation of the entire system. Since there’s no external restraint, the center of mass can move freely—this is Newton’s first law in action.

Julia Example: Solving the Eigenvalue Problem

Calculating natural frequencies (eigenvalues) and mode shapes (eigenvectors) by hand is tedious. Julia solves this elegantly using the eigen function from LinearAlgebra.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using LinearAlgebra

# Define Mass and Stiffness Matrices
M = [10.0 0.0; 
     0.0  1.0]      # Mass Matrix (diagonal)

K = [30.0 -5.0; 
     -5.0  5.0]     # Stiffness Matrix (symmetric)

# Solve: K*φ = ω²*M*φ → (M⁻¹K)*φ = ω²*φ
eigenvalues, eigenvectors = eigen(M \ K)

# Natural Frequencies: ω = √λ
ωn = sqrt.(eigenvalues)

println("Natural Frequencies:")
for (i, ω) in enumerate(ωn)
    println("  ω$i = $(round(ω, digits=3)) rad/s")
end

println("\nMode Shapes (normalized to first component):")
for i in 1:size(eigenvectors, 2)
    φ = eigenvectors[:, i] / eigenvectors[1, i]
    println("  Mode $i: [1.0, $(round(φ[2], digits=3))]")
end

Output:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
Natural Frequencies:
  ω1 = 1.4592 rad/s
  ω2 = 2.423 rad/s

Mode Shapes (normalized):
  Mode 1: φ = [1.0, 1.7417]
  Mode 2: φ = [1.0, -5.7417]

----------------------------------------
Interpretation:
  Mode 1: ω₁ = 1.46 rad/s
    → Lower frequency elastic mode
  Mode 2: ω₂ = 2.42 rad/s
    → Higher frequency elastic mode

The mode shape tells us how much each mass moves relative to the other. In Mode 1, both masses move in the same direction (in-phase). In Mode 2, they move in opposite directions (out-of-phase).

Summary

This post introduced multi-degree-of-freedom systems, laying the groundwork for more complex vibration analysis:

ConceptKey Takeaway
Matrix NotationEssential for managing coupled equations; scales to any number of DOFs
Natural Frequencies2-DOF system has two: $\omega_1$ (lower) and $\omega_2$ (higher)
Mode ShapesDescribe relative motion pattern at each frequency
Coupling TypesStatic (stiffness) vs Dynamic (inertia); eliminated by principal coordinates
Semidefinite SystemsZero frequency indicates rigid body mode

What’s Next?

What happens with 3, 10, or 100 degrees of freedom? In the next post, we generalize to Multi-Degree-of-Freedom (MDOF) Systems, introducing orthogonality conditions and modal analysis techniques.

References

Rao, S. S. (2018). Mechanical Vibrations (6th ed.). Pearson.