Applications of Matrix Mathematics
Applications of Matrix Mathematics
We see the results of matrix mathematics in every computer-generated image that has
a reflection, or distortion effects such as light passing through rippling water.
Before computer graphics, the science of optics used matrix mathematics to account for
reflection and for refraction.
The field of probability and statistics may use matrix representations. A probability
vector lists the probabilities of different outcomes of one trial. A stochastic matrix is a
square matrix whose rows are probability vectors. Computers run Markov simulations
based on stochastic matrices in order to model events ranging from gambling through
weather forecasting to quantum mechanics.
Matrix mathematics simplifies linear algebra, at least in providing a more compact way
to deal with groups of equations in linear algebra.
An example of a square matrix with variables, rather than numbers, is . This is a
square matrix because the number of rows equals the number of columns.
We can only add matrices of the same dimensions, because we add the corresponding
elements. .
Matrix multiplication is another matter entirely. Let’s multiply matrices MP=R. M is an
mXn matrix; P is nXp; and the result R will have dimension mXp. Note that the number
of columns of the left-hand matrix, M, must equal the number of rows of the right hand
matrix, P. For example:
matrix reflects an object in the vertical Y axis. In a video game, this would render
the upside-down mirror image of a castle reflected in a lake.
If the video game has curved reflecting surfaces, such as a shiny silver goblet, the linear
transformation matrix would be more complicated, to stretch or shrink the reflection.
Suppose we have two square nXn matrices, A and B, such that AB=I n. Then we call B
the inverse matrix of A, and show it as A-1. The first practical point is that the inverse
matrix A-1 reverses the changes made by the original linear transformation matrix A.
The Determinant
Another important task in matrix arithmetic is to calculate the determinant of a 2X2
square matrix. For matrix M= , the determinant is |M| = a*d – b*c.
On the other hand, if we apply M as the linear transformation of a unit square U into U M,
then the determinant |M| is the area of that transformed square. In a sense, the
determinant is the size, or “norm”, of a square matrix.