Refresher - Matrices - Basics-2

On a practical level, we can use a matrix to display data, such as comparing the price of gasoline in various cities.

Regular Super Premium
LA $3.00 $3.10 $3.20
GG $2.90 $3.00 $3.10
SD $3.10 $3.20 $3.30

 

Elements of a matrix could also be terms of a matrix equation:

[1331][xy]=[02]

This is another way to represent the system {x=3yy=3x+2

A matrix is a rectangular array of numbers, which are called elements. If a matrix has m rows and n columns, then the dimensions m by n are written m x n. In a square matrix, the number of rowsand columns are equal. Two matrices are equal if their corresponding elements are equal.

 

Formula Description

Addition

To add matrices of the same dimension, just add the corresponding elements.
Subtraction

To subtract matrices of the same dimension, just subtract the corresponding elements.

Identity Identity Matrix, /, is a square matrix with the leading diagonal elements assigned 1 and the other elements assigned 0. The examples are a 2x2 identity matrix and a 3x3 identity matrix.
Product of scale and matrix To find the product of a scalar and a matrix, just multiply each element by the scalar
Product of two matrices To find the product of two matrices, we must first determine if a product exists by looking at the dimensions. The product of a mxn matrix and a nxt matrix is a mxt matrix. In other words, the number of columns in the first matrix must match the number of rows in the second matrix in order for a product to exist.

 

Once we determine that multiplication is possible, we multiply the rows and columns.

Let A=[a1b1a2b2]andC=[c1d1c2d2]

Each element of the product of AC is the product of one row of matrix A and one column of matrix C. This is also the dot product of one row and one column.

AC=[a1c1+b1c2a1d1+b1d2a2c1+b2c2a2d1+b2d2] or [Row 1Col 1Row 1Col 2Row 2Col 1Row 2Col 2]

When multiplying matrices, it is important to realize that the order of the multiplicands is significant, in other words [A][B] is not necessarily equal to [B][A]. In other words, matrix multiplication is not commutative.

AB=[1234][1023]=[561112]
BA=[1023][1234]=[121116]
ABBA

For more on matrix operations, click here Links to an external site..

 

Some matrices have multiplicative inverses. If A=[a1b1a2b2], the inverse is denoted A-1. In order to be inverses, AA1=I,where I is the identity matrix.

For an applet that illustrates inverse operations, click here Links to an external site..