I don't like this new tutorial. Take me back to the (very) old tutorial!

Resources

Note To follow this tutorial, you should know how to multiply matrices.

What is a matrix inverse?

%Q OK. Now we can add, subtract and multiply matrices. That leaves one more operation: division. Specifically, if $A$ and $B$ are, say, $n \times n$ matrices, what is $\frac{A}{B}?$
%A First ask yourself what division in the realm of real numbers actually means: it is really a form of multiplication: dividing $3$ by $7$ is the same as multiplying $3$ by $\frac{1}{7}$, the (multiplicative) inverse of $7.$ In other words,
$\frac{3}{7}$ \t $= 3\times\frac{1}{7}$ \\ \t $= 3\times7^{-1}.$
Thus, in the realm of real numbers, we could actually forget all about division and just multiply by the inverse whenever we wanted to divide.

%Q Why complicate things like this? Just tell us how to divide matrices and be done with it!
%A Patience! Writing down, say, $\frac{3}{7}$ instead of $3\cdot7^{-1}$, is fine (and also customary) for real numbers. But should $\frac{3}{7}$ really mean $3\cdot7^{-1}$ or should it mean $7^{-1}\cdot 3$? Of course, it doesn't really matter, as multiplcation of real numbers is commutative. But multiplication of matrices is not commutative:
    By $\frac{A}{B}$ should we mean $A^{-1}B$ or $BA^{-1}$?
It is because the notion of "$B$ divided by $A$" is inherently ambiguous that we never ever talk about division of matrices. Instead, we content ourselves with with using multiplicative inverses of matrices.

%Q Fine. So how do we calculate the inverse, $A^{-1},$ of a given matrix $A?$
%A Not so fast! Before we try to find the inverse of a matrix $A,$ we must first know exactly what we mean by the (multiplicative) inverse. The inverse of a number $a$ is the number, often written $a^{-1},$ with the property that
    $a^{-1}a = 1 \quad$ %and $\quad a^{-1}a = 1$
For example, the inverse of $76$ is the number $76^{-1} = \frac{1}{76}$, since $\frac{1}{76}\cdot 76 = 1$ and $76 \cdot \frac{1}{76} = 1.$ (By the way, not every number has an inverse: the number 0 does not–it is the only number with no multiplicative inverse, and we say that zero is "not invertible.")

Thus, the inverse of the matrix $A$ should be the matrix $A^{-1}$ with the property that
    $A^{-1}A = 1 \quad$ %and $\quad A^{-1}A = I \qquad \qquad$ The identity matrix $I$ plays the role of the number 1 in the realm of matrices.

Inverse of a matrix, Singular matrix

The* inverse of an $n \times n$ matrix $A$ is the $n \times n$ matrix $A^{-1}$ such that
    $A^{-1}A = 1 \quad$ %and $\quad A^{-1}A = I \qquad \qquad$
If $A$ has an inverse, it is called invertible. Otherwise, it is called singular. (Although $0$ is the only singular number, we will see below that there are lots of singular matrices.)

* %Note We say the inverse because it can easily be shown mathematically that a matrix cannot have more than one inverse. That is, the inverse is unique.
Examples

  1. The inverse of the $1 \times 1$ matrix [7] %is [\sfrac{1}{7}], %bc
      [7][\sfrac{1}{7}] $=$ [1] $= I\quad$ %and     [\sfrac{1}{7}][7] $=$ [1] $= I.\quad$
    Therefore,
      [7]^{-1} $=$ [\sfrac{1}{7}]     and also     [\sfrac{1}{7}]^{-1} $=$ [7].
  2. The inverse of the $n \times n$ identity matrix $I$ is $I$ itself, because
      $I\cdot I = I.$
    Therefore,
      $I^{-1} = I.$
  3. [5,-2;2,-1]^-1 $=$ [1,-2;2,-5] because
      [5,-2;2,-1][1,-2;2,-5] = [1,0;0,1] %and [1,-2;2,-5][5,-2;2,-1] = [1,0;0,1].
Fill in the missing entry.

Finding the inverse of a matrix

%Q How on earth do we find the inverse of a matrix?
%A If you used unknowns for all the entries of the inverse of a matrix, the condition that $AA^{-1} = I$ would give you a system of linear equations. Solving this system of equations corresponds to the following method for finding the inverse of any matrix: (See %4 for a detailed explanation).
Calculating the inverse of a matrix

To determine whether the inverse $A^{-1}$ of an $n \times n$ matrix $A$ exists, and to calculate it if it does exist, follow this procedure:
  1. Write down the $n\times 2n$ matrix [A,|,I] (this is the matrix $A$ on the left with the $n \times n$ identity matrix set next to it on the right; see the example below).
  2. Row-reduce the matrix [A,|,I].
  3. If the reduced matrix is [I,|,B], meaning it has the identity matrix in the left part, then $A$ is invertible and $B$ is its inverse: $B=A^{-1}.$

    If the reduced form does not have $I$ in the left part, then $A$ is singular.
Thus, in particular, a square matrix has an inverse precisely when its row reduced form is the identity matrix.
Example

%Let $A=$ [1,2;-3,-4].
    Step 1. Write down the $n\times 2n$ matrix [A,|,I]:
    [\color{red}{A},|,\color{blue}{I}] $=$ [\color{red}{1},\color{red}{2},\color{blue}{1},\color{blue}{0};\color{red}{-3},\color{red}{-4},\color{blue}{0},\color{blue}{1}]
    $A$ $I$
    Step 2. Row-reduce the matrix [A,|,I]. (To review how to row-reduce a matrix, go to this tutorial.)
    [1,2,1,0;-3,-4,0,1] →
    Row-reduce
    [\color{blue}{1},\color{blue}{0},\color{red}{-2},\color{red}{-1};\color{blue}{0},\color{blue}{1},\color{red}{\sfrac{3}{2}},\color{red}{\sfrac{1}{2}}]
    $I$ $B$
    Because the reduced matrix has the identity matrix in the left part, $A$ is invertible and its inverse is the matrix $B$ on the right part:
      $A^{-1}=$[-2,-1;\sfrac{3}{2},\sfrac{1}{2}]
%Let $A = $%10. Determine whether or not $A$ is invertible, and its inverse if it is, as follows:

Step 1. Write down the $n\times 2n$ matrix [A,|,I]:   (Use the tab key to go from one cell to the next.)
Step 2. What matrix do you obtain if you completely row-reduce the above matrix? (It is good practice to reduce the matrix by hand, as in the %7. If you are feeling lazy and want to use technology, use the %9.)
It follows that
%Let $B = $%11. Determine whether or not $B$ is invertible, and its inverse if it is, as follows:

Step 1. Write down the $n\times 2n$ matrix [B,|,I]:   (Use the tab key to go from one cell to the next.)
Step 2. What matrix do you obtain if you completely row-reduce the above matrix? (It is good practice to reduce the matrix by hand, as in the %7. If you are feeling lazy and want to use technology, use the %9.)
It follows that

Want more practice?

Using matrix inverses to solve systems of linear equations

Look at the following system of linear equations:
$-x + y$ \t $=4$ \\ $-4x + y + z$ \t $=-1$ \\ $-2y + z$ \t $=0$
To solve the system, we would normally write out and row-reduce the augmented matrix for the system. However, there is another way to solve certain systems of equations like this one: Take $A$ to be the matrix of coefficients of the left-hand sides:
    $A = $[-1,1,0;-4,1,1;0,-2,1],
take $X$ to be the column matrix of unknowns: $X = $[x;y;z], and take $B$ to be the column matrix of right-hand sides: $B = $[4;-1;0]. Then the product
    $AX=$[-1,1,0;-4,1,1;0,-2,1][x;y;z]$=$[-x+y;-4x+y+z;-2y+z]
is the column matrix of left-hand sides. So, to say that the left-hand sides are equal to the right-hand sides is the same as saying that
    $AX = B,$
and this is called the matrix form of the system of equations.

Now, notice that we can just solve this matrix equation for $X$ by "dividing both sides by $A,$ by which we mean multiplying both sides by the inverse of $A$ (assuming it exists):
    $A^{-1}AX = A^{-1}B \qquad \Rightarrow \qquad IX = A^{-1}B \qquad \Rightarrow \qquad X = A^{-1}B,$
and we have solved for $X$! In this example, $A^{-1}$ can be calculated to be [3,-1,1;4,-1,1;8,-2,3] () and so
    $X = A^{-1}B = $[3,-1,1;4,-1,1;8,-2,3][4;-1;0] = [13;17;34].
Thus the solution is $x = 13,\ y = 17,\ z = 34.$

Note This process works only if the matrix $A$ of coefficients is invertible, and gives a unique solution in that case as demonstrated. If the matrix is not invertible, then this method does not work, and to find the general solution, if any, you will need to reduce the augmented matrix as in %7.

Consider the following system of equations:

Now try the exercises in %4, some the %8, or move ahead to the next tutorial by pressing "Next tutorial" on the sidebar.

Last Updated: January, 2017
Copyright © 2017

 

Preceding tutorial
Game version
Next tutorial 
All tutorials
Main page
Everything for calc
Everything for finite math
Everything
Español