6.2 - Operations with Matrices

Equality

Two matrices are equal if and only if

Addition

Subtraction

Scalar Multiplication

A scalar is a number, not a matrix.

Zero Matrix

Matrix Multiplication

Am×n × Bn×p = Cm×p

See a complete example of matrix multiplication.

Matrix multiplication is not commutative

Do not simply multiply corresponding elements together

There is no matrix division

Identity Matrix

Identity matrix of size 2

I2 =   1 0  
  0 1  

Identity matrix of size 3

I3 =   1 0 0  
  0 1 0  
  0 0 1  

Properties of Matrices

Property Example
Commutativity of Addition A + B = B + A
Associativity of Addition A + ( B + C ) = ( A + B ) + C
Associativity of Scalar Multiplication (cd) A = c (dA)
Scalar Identity 1A = A(1) = A
Distributive c (A + B) = cA + cB
Distributive (c + d) A = cA + dA
Additive Identity A + O = O + A = A
Associativity of Multiplication A (BC) = (AB) C
Left Distributive A (B + C) = AB + AC
Right Distributive ( A + B ) C = AC + BC
Scalar Associativity / Commutativity c (AB) = (cA) B = A (cB) = (AB) c
Multiplicative Identity IA = AI = A

Properties of Real Numbers that aren't Properties of Matrices

Commutativity of Multiplication

Zero Product Property

Multiplicative Property of Equality

There is no matrix division

Evaluating a Function using a Matrix

Consider the function f(x) = x2 - 4x + 3 and the matrix A

A =   1 2  
  3 4  

The initial attempt to evaluate the f(A) would be to replace every x with an A to get f(A) = A2 - 4A + 3. There is one slight problem, however. The constant 3 is not a matrix, and you can't add matrices and scalars together. So, we multiply the constant by the Identity matrix.

f(A) = A2 - 4A + 3I.

Evaluate each term in the function and then add them together.

A2 =   1 2   *   1 2   =   7 10  
  3 4     3 4     15 22  
-4 A = -4   1 2   =   -4 -8  
  3 4     -12 -16  
3I = 3   1 0   =   3 0  
  0 1     0 3  
f(A) =   7 10   +   -4 -8   +   3 0   =   6 2  
  15 22     -12 -16     0 3     3 9  

Factoring Expressions

Some examples of factoring are shown. Simplify and solve like normal, but remember that matrix multiplication is not commutative and there is no matrix division.

2X + 3X = 5X

AX + BX = (A+B)X

XA + XB = X(A+B)

AX + 5X = (A+5I)X

AX+XB does not factor

Solving Equations

A system of linear equations can be written as AX=B where A is the coefficient matrix, X is a column vector containing the variables, and B is the right hand side. We'll learn how to solve this equation in the next section.

If there are more than one system of linear equations with the same coefficient matrix, then you can expand the B matrix to have more than one column. Put each right hand side into its own column.

Matrix Multiplication

Matrix multiplication involves summing a product. It is appropriate where you need to multiply things together and then add. As an example, multiplying the number of units by the per unit cost will give the total cost.

The units on the product are found by performing unit analysis on the matrices. The labels for the product are the labels of the rows of the first matrix and the labels of the columns of the second matrix.