Files
hugo/content/zettels/mass_matrix.md
T
tdehaeze 785feb7f26
Deploy / deploy (push) Successful in 5s
Update content - 2026-11-03
2026-11-03 09:25:45 +01:00

3.3 KiB

+++ title = "Mass Matrix" author = ["Dehaeze Thomas"] draft = false +++

Tags :

Mass matrix of a rigid body at its center of mass

The 6x6 mass matrix of a rigid body relates the forces/torques applied to the body to its translational/rotational accelerations. Expressed at a point \(P\) and in a given frame, it is:

\begin{equation} \bm{M}_P = \begin{bmatrix} m \bm{I}_3 & -m [\bm{r}_c]_\times \\ m [\bm{r}_c]_\times & \bm{I}_P \end{bmatrix} \end{equation}

with \(\bm{r}_c\) the position of the CoM relative to \(P\), and \([\bm{r}_c]_\times\) the skew-symmetric matrix of \(\bm{r}_c\).

Translation: always diagonal at the CoM

  • The translational block is \(m \bm{I}_3\) (mass is a scalar), so the three translations are decoupled from each other.
  • The translation/rotation coupling block is \(m [\bm{r}_c]_\times\), which vanishes if and only if \(P\) is the CoM.
  • Therefore, at the CoM, the mass matrix is block-diagonal:

\begin{equation} \bm{M}_{\text{CoM}} = \begin{bmatrix} m \bm{I}_3 & \bm{0} \\ \bm{0} & \bm{I}_c \end{bmatrix} \end{equation}

Rotation: diagonal only in the principal frame

The rotational block is the inertia tensor at the CoM:

\begin{equation} \bm{I}_c = \begin{bmatrix} I_{xx} & -I_{xy} & -I_{xz} \\ -I_{xy} & I_{yy} & -I_{yz} \\ -I_{xz} & -I_{yz} & I_{zz} \end{bmatrix} \end{equation}

  • It is symmetric positive (semi-)definite, but in general not diagonal, even when evaluated at the CoM. The products of inertia \(I_{xy}, I_{xz}, I_{yz}\) couple the rotations.
  • Example: a thin rod of mass \(m\) and length \(L\), centered on the CoM and tilted by \(\theta\) from the x axis in the x-y plane. \(I_{xx} = \tfrac{mL^2}{12}\sin^2\theta\), \(I_{yy} = \tfrac{mL^2}{12}\cos^2\theta\), \(I_{xy} = -\tfrac{mL^2}{12}\sin\theta\cos\theta \neq 0\) unless \(\theta = 0, 90^\circ\). A torque about x then produces an angular acceleration about both x and y.
  • Since \(\bm{I}_c\) is real and symmetric, a rotation \(\bm{R}\) always exists (spectral theorem) such that:

\begin{equation} \bm{R}^T \bm{I}_c \bm{R} = \text{diag}(I_1, I_2, I_3) \end{equation}

The columns of \(\bm{R}\) are the principal axes (eigenvectors) and \(I_i\) the principal moments of inertia (eigenvalues). Axes are unique when the eigenvalues are distinct; for a symmetric top (two equal) or a sphere (all equal), there is freedom in the choice.

  [R, D] = eig(I_c);                        % I_c symmetric -> R orthogonal
  if det(R) < 0, R(:,3) = -R(:,3); end      % proper rotation
  I_principal = R' * I_c * R;               % = D (diagonal)

Resulting dynamics

In the principal frame at the CoM, for small motion about rest and no stiffness:

\begin{equation} m \ddot{x} = f_x,\quad m \ddot{y} = f_y,\quad m \ddot{z} = f_z,\quad I_1 \ddot{\theta}_x = t_x,\quad I_2 \ddot{\theta}_y = t_y,\quad I_3 \ddot{\theta}_z = t_z \end{equation}

i.e. six decoupled double integrators: \(\bm{G}(s) = \text{diag}\left(\tfrac{1}{ms^2}, \tfrac{1}{ms^2}, \tfrac{1}{ms^2}, \tfrac{1}{I_1 s^2}, \tfrac{1}{I_2 s^2}, \tfrac{1}{I_3 s^2}\right)\).