logo back up home forward   further reading more topics »

Maths - Matrix Diagonalisation

The operation is called matrix diagonalisation and goes as follows for a symmetric matrix (like an intertia tensor), with your matrix denoted as A and 1 the unit matrix.

  1. Find the eigenvalues a by solving 0 = det{A - a 1) for a. The values of a are the principal moments of inertia.
  2. Find the eigenvectors v of A by solving A v = a v for v.
  3. Normalize the eigenvectors.
  4. Form the matrix C whose whose columns consist of the normalized
  5. D = C^T A C is the diagonal matrix of principal moments of inertia.

In principle, you can write down D directly after 1), however, completing 1) to 5) gives a check on your work.

Note: C^T is the transpose of C.

 

For this case where the only off diagonal terms are 12 and 21, you
know it only needs a rotation about axis 3 to diagonalize it. Use a
similarity transformation:
A'JA where A is the 3x3 rotation matrix about z.
Solve to find
j12 = 0 = j11cos^a -j22sin^2a solve for a
j22 = j22cos^2(a) - j11sin^2(a)
j11 = j11cos^2(a) - j22sin^2(a)
I dont know if that's easier.


metadata block
see also:
Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

cover Mathematics for 3D game Programming - Includes introduction to Vectors, Matrices, Transforms and Trigonometry. (But no euler angles or quaternions). Also includes ray tracing and some linear & rotational physics also collision detection (but not collision response).

Other Math Books

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to the software project, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

Matlab.

Can you help?

Please send me any improvements to here. I would appreciate ideas to make the pages more useful including error correction, ideas for new pages, improvements to wording. It helps if you quote the full URL of the page.

 

Terminology and Notation

Specific to this page here:

 

program

I am working on a project which uses these principles, if you would like to help me with this you are welcome to join in, here:

http://sourceforge.net/projects/mjbworld/

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2008 Martin John Baker - All rights reserved - privacy policy.