logo back up home forward   further reading more topics »

Maths - Matrix algebra

A matrix is a rectangular array of elements which are operated on as a single object. The elements are often numbers but could be any mathematical object provided that it can be added and multiplied with acceptable properties, for example, we could have a matrix whose elements are complex numbers.

Relationship to other mathematical quantities

We could think of matrix in other ways, for instance:

Vectors are strongly related to matrices, they can be considered as a one directional matrix, or conversely, we could construct a matrix from a vector (drawn as a column) whose elements are themselves vectors (drawn as a row) :

6 1 7 5
8 4 4 2
2 0 6 9
1 3 0 3

Strictly I don't think a matrix is a vector of vectors? Because the dot product converts from a vector to a scalar. With matrix multiplication each element is the dot product of a row from one matrix and the column from the other matrix (see matrix arithmetic) Perhaps it would work if the second matrix to be multiplied were transposed first? Can anyone help me work this through.

Regardless of whether we consider vectors as a special case of matrices, or matrices as vectors of vectors, or if we consider vectors and matrices as different types, using vectors and matrices together is very important. A matrix is a way to transform one vector into another vector (and a whole set of vectors into another set of vectors). This allows us to express a linear transform as a single equation:

Vout 0
Vout 1
Vout 2
Vout 3
=
m00 m01 m02 m03
m10 m11 m12 m13
m20 m21 m22 m23
m30 m31 m32 m33
Vin 0
Vin 1
Vin 2
Vin 3

Another possibility is that matrices can have matrices as elements, provided that the elements are all of the same dimension, when this is the case it can be replaced by one big matrix. For instance, if we have an m x n matrix and each of its elements is a p x q matrix, then we could replace it with a single (m*p) x (n*q) matrix.

For more information about linear transforms using matrices:

As already mentioned arithmetic is done treating matrices as a unit, the way that this arithmetic is done is explained here:

There are also other functions that can be done on matrices as explained here:

Matrix Calculus

See here for details


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 us uk de jp fr ca Matrix Computations

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.

cover LEGO Mindstorms NXT - Allows you to build a robot and program it from a PC or Mac. Contains an Intelligent Brick with 32-bit microprocessor, memory and FLASH, 3 Interactive Servo motors with built-in rotation sensors, sound sensor, ultrasonic sensor, touch sensor, light sensor, USB 2.0 and Bluetooth support. Icon-based drag-and-drop program "building" environment.

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.

I need to expand to cover the following topics:

  • Unit matrix
  • Symmetric and skew-symmetric
  • Adjoint and Reciprocol
  • Orthogonal and unitary
  • Scale
  • Translation
  • Orthogonal
  • Rigid
  • Congruent
  • Affine
  • multiply by scalar
  • multiply by vector

if [I][a] = [a] does [a][I] = [a] ?

if [b][b]-1=[I] does [b]-1[b] =[I] ?

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.