ArticleslgStudy

computer science

Mass matrix

Mass matrix is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Mass matrix rather than just read about it. In short: In analytical mechanics, the mass matrix is a symmetric matrix M that expresses the connection between the time derivative q ˙ {\displaystyle \mathbf {\dot {q}} } of the generalized coordinate vector q of a system and the kinetic energy T of that system, by the equation T = 1 2 q ˙ T M q ˙ {\displaystyle T={\frac {1}{2}}\mathbf {\dot {q}} ^{\textsf {T}}\mathbf {M} \mathbf {\dot {q}} } where q ˙ T {\displaystyle \mat…

Mass matrix — main illustration
Mass matrix — illustration

Key takeaways

  • Mass matrix belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Mass matrix to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Mass matrix from memory before moving on to harder problems.

Reference excerpt

In analytical mechanics, the mass matrix is a symmetric matrix M that expresses the connection between the time derivative q ˙ {\displaystyle \mathbf {\dot {q}} } of the generalized coordinate vector q of a system and the kinetic energy T of that system, by the equation

T = 1 2 q ˙ T M q ˙ {\displaystyle T={\frac {1}{2}}\mathbf {\dot {q}} ^{\textsf {T}}\mathbf {M} \mathbf {\dot {q}} }

where q ˙ T {\displaystyle \mathbf {\dot {q}} ^{\textsf {T}}} denotes the transpose of the vector q ˙ {\displaystyle \mathbf {\dot {q}} } . This equation is analogous to the formula for the kinetic energy of a particle with mass m and velocity v, namely

T = 1 2 m | v | 2 = 1 2 v ⋅ m v {\displaystyle T={\frac {1}{2}}m|\mathbf {v} |^{2}={\frac {1}{2}}\mathbf {v} \cdot m\mathbf {v} }

and can be derived from it, by expressing the position of each particle of the system in terms of q. In general, the mass matrix M depends on the state q, and therefore varies with time. Lagrangian mechanics yields an ordinary differential equation (actually, a system of coupled differential equations) that describes the evolution of a system in terms of an arbitrary vector of generalized coordinates that completely defines the position of every particle in the system. The kinetic energy formula above is one term of that equation, that represents the total kinetic energy of all the particles.

Examples

Two-body unidimensional system

For example, consider a system consisting of two point-like masses confined to a straight track. The state of that system can be described by a vector q of two generalized coordinates, namely the positions of the two particles along the track.

q = [ x 1 x 2 ] T {\displaystyle \mathbf {q} ={\begin{bmatrix}x_{1}&x_{2}\end{bmatrix}}^{\textsf {T}}}

Supposing the particles have masses m1, m2, the kinetic energy of the system is

T = ∑ i = 1 2 1 2 m i x i ˙ 2 {\displaystyle T=\sum _{i=1}^{2}{\frac {1}{2}}m_{i}{\dot {x_{i}}}^{2}}

This formula can also be written as

T = 1 2 q ˙ T M q ˙ {\displaystyle T={\frac {1}{2}}{\dot {\mathbf {q} }}^{\textsf {T}}\mathbf {M} {\dot {\mathbf {q} }}}

where

M = [ m 1 0 0 m 2 ] {\displaystyle \mathbf {M} ={\begin{bmatrix}m_{1}&0\\0&m_{2}\end{bmatrix}}}

N-body system More generally, consider a system of N particles labelled by an index i = 1, 2, …, N, where the position of particle number i is defined by ni free Cartesian coordinates (where ni = 1, 2, 3). Let q be the column vector comprising all those coordinates. The mass matrix M is the diagonal block matrix where in each block the diagonal elements are the mass of the corresponding particle:

… excerpt ends here. Continue reading the full article.

Illustrations

Mass matrix: Rotating dumbbell.
Rotating dumbbell.

Worked examples

Example 1 — a first encounter with Mass matrix

Start with the simplest possible case. Write down what Mass matrix claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Mass matrix before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Mass matrix ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Mass matrix

In research
Mass matrix appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Mass matrix in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Mass matrix is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational science, so understanding it makes those chapters shorter.
In everyday life
Look for Mass matrix outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Mass matrix in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Mass matrix means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Mass matrix out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Mass matrix in simple terms?

In analytical mechanics, the mass matrix is a symmetric matrix M that expresses the connection between the time derivative q ˙ {\displaystyle \mathbf {\dot {q}} } of the generalized coordinate vector q of a system and the kinetic energy T of that system, by the equation T = 1 2 q ˙ T M q ˙ {\displa…

Why does Mass matrix matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Mass matrix?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Mass matrix.

Tags

  • Computational science

Keep exploring