Repository navigation
Matrix Division?
We've seen addition, subtraction, and multiplication of matrices. What about division? Is there such a thing? The short answer is no, there is not. The longer answer is in this lesson! We're going to learn about two things - matrix inverses and determinants - and then we'll come back to this idea of division.
Let's just get right to the definition:
Definition: If
As an example, consider:
We can simply multiply to verify that these are inverses of each other:
Definition: If
Note
Most, but not all, matrices are nonsingular (meaning, they have an inverse).
The following are true:
$\large \left(AB\right)^{-1}=B^{-1}A^{-1}$ $\large \left(A^{-1}\right)^{-1}=A$ $\large \left(kA\right)^{-1}=\frac{1}{k}A^{-1}$ $\large \left(A^T\right)^{-1}=\left(A^{-1}\right)^T$ - If
$\large A$ is orthogonal,$\large A^{-1}=A^T$ .
At this point, there are three natural questions to ask:
- How do we know if
$\large A$ is invertible? - How do we find
$\large A^{-1}$ ? - Why do we care?
We'll answer all three questions here! The first is related to the determinant of a matrix.
Every square matrix is associated with a number called a determinant. For larger matrices, computing a determinant can be difficult. But the computation is straightforward for
For a
The technique for finding the determinant of this
Note
Determinants of larger matrices can be found in the same way, but it's an awful process. For a
Fortunately, there is another way to compute determinants. We'll learn soon of an algorithm called Gaussian Elimination, and this provides a faster way to compute determinants of large matrices. We will not go into the details in this class, primarily because no one should be doing this by hand! We'll use a determinant command in Python for this.
Note
The actual, technical, mathematical definition of the determinant is pretty awful to work with. It is a sum over products of elements in different columns of the matrix. It looks like this, and we will never speak of it again (the
The following are true:
-
$\large A$ is nonsingular ($\large A^{-1}$ exists) if and only if$\large \text{det}(A)\ne 0$ (this means$\large A$ is singular if and only if$\large \text{det}(A)=0$ ). - If
$\large A$ has a row or column of zeros,$\large \text{det}(A)=0$ . - If two rows or columns of
$\large A$ are multiples of each other,$\large \text{det}(A)=0$ . -
$\large \text{det}(AB)=\text{det}(A)\text{det}(B)$ . -
$\large \text{det}(cA) = c^n\text{det}(A)$ (where$\large A$ is$\large n\times n$ ). -
$\large \text{det}\left(A^{-1}\right)=\frac{1}{\text{det}(A)}$ . -
$\large \text{det}\left(A^T\right)=\text{det}(A)$ . -
$\large \text{det}(I)=1$ .
Important
The first fact listed above is the single most important takeaway from this lesson! This is how we know if
The video below shows some examples of using the first few facts from this list:
We started this lesson with questions about matrix division. What does the matrix inverse have to do with division? What is division for? It's for solving equations like this:
We'd love to do that with matrices:
There is still no such thing as matrix division, but the inverse gives us something similar:
- Start with
$\large A\vec{x}=\vec{b}$ . - Multiply both sides of the equation by
$\large A^{-1}$ : we have$\large A^{-1}A\vec{x}=A^{-1}\vec{b}$ , which is just$\large \vec{x}=A^{-1}\vec{b}$ , the solution!
If
In this way, multiplication by
| Solution | Multiply both sides by |
Multiply both sides by |
| No Solution if |
|
|
Important
We see that an inverse can help us find solutions to
We now know how to tell if a square matrix
-
How do we compute
$\large A^{-1}$ ? There are three answers to this question:
- The first (and best) answer is: WE DON'T. We can count on one hand the number of times we've needed to explicitly compute
$\large A^{-1}$ by hand. It is a very useful object from a theoretical point of view, but it's almost never important to actually compute it out completely. - The second answer is: for
$\large 2\times 2$ matrices, there is a handy formula:
- The third answer is: The same process we will learn in our next lesson for finding solutions to
$\large A\vec{x}=\vec{b}$ can be modified to find$\large A^{-1}$ .
-
Why do we care about
$\large A^{-1}$ ? The matrix inverse is an important concept, even if we never really compute it. It carries structural ideas of solvability. We know$\large A\vec{x}=\vec{b}$ has a solution if$\large A$ has an inverse.
We've now been introduced to a few equivalent facts about square matrices. These are characteristics of "good" square matrices, and we will find other equivalencies during this class. Let's write down what we know so far, and we'll expand on it as we go.
The following are all equivalent facts about a square
-
$\large A$ is invertible. -
$\large \text{det}(A)\ne 0$ .
Definition: A square matrix
$\large A$ that meets the above criteria is called nonsingular. Otherwise, the matrix is called singular.
I can:
- Determine whether a square
$\large A$ is invertible or singular. - Compute determinants of
$\large 2\times 2$ or$\large 3 \times 3$ matrices. - Compute the inverse of a
$\large 2\times 2$ matrix. - Use the listed properties of inverses and determinants.
- Use the list of properties that are equivalent to
$\large A$ being invertible.