As you already know, multiplying matrices is a much more difficult task than multiplying numbers. But in this topic, you will learn about the concept of inverse matrix, which can help you drastically simplify these calculations in some cases.
Since now, you'll know its most important application: find the unique solution of a square system of linear equations. Actually, when the solution is unique, the inverse is the perfect tool to calculate it explicitly.
Developing the definition
When you multiply any number by , you get the same number. And nearly every number (except zero) has a partner such that which is known as the multiplicative inverse of . Thanks to this fact, you can solve a lot of equations. But how can you do this with matrices? To have the same flexibility, you should be able to "cancel" matrices in equations. In other words, you need to multiply inverses for them.
As a first step, the identity matrix will play the role of the number because you already know that . The next step is clear, because to "neutralize" a square matrix you need another matrix such that . But as you know, the product is not commutative, so should also satisfy that . With this, how to define the inverse of a matrix is clear:
Let be a square matrix of size . An inverse for is a square matrix of size such that:
When a matrix has an inverse, it's called invertible or non-singular.
Just like in numbers, matrix doesn't have an inverse since for any matrix . But is it the only matrix that doesn't have an inverse? No! A lot of matrices don't have an inverse, and it's quite easy to see why. Just think of a matrix that has a row full of zeros, say the -th row. No matter which matrix you take, the -th row of will always be . Therefore can never be !
Another natural question would be if only one matrix can be the inverse of . That is, if , can there exist another matrix such that ? Fortunately, the answer is no. The inverse, when it exists, is unique. And you can easily check it:
As a final note, even if there exists a matrix such that you should also verify that . However, later you will discover that it is not necessary to do the second revision. It is enough that any of the two is fulfilled for both to do so.
Let's get our hands dirty with some matrices.
Checking out the inverse
The definition doesn't tell you much about how to find the inverse of a matrix . If you had a candidate , you'd have to check both that and . Let's look at an example with some matrices and . In this case:
Since , you can be sure that . Now consider a new candidate :
Although , you also must check that , so let's get straight:
With this, you can be completely sure that .
A quick trick to rule out that two matrices are inverses of each other is the following. Calculate any entry on the diagonal of its product. If it is not , then they are not inverses of each other. Alternatively, it is also true when any of the entries off the diagonal of the product is different from .
After all, what is the benefit of knowing the inverse of a matrix? Time to have a look into a useful application.
Systems of linear equations
Systems of equations are very common. Sometimes they are very large and it is difficult to deal with so many equations. But thanks to the inverse, we can solve them in the blink of an eye! So the initial problem is reduced to calculating the inverse, which, as you will see in the future, is not that simple.
Take a system of linear equations where is a square matrix of size and both and are vectors in . If were invertible, then you could premultiply both sides by to get:
Therefore, the unique solution of the system is really simple, it's just
If in the square system the matrix is invertible, then there is a unique solution given by:
The most surprising thing about this is that the value of doesn't matter. Notice also that this technique works for any square system. regardless of its size!
Proof - uniqueness of the solution
You know that is a solution.Suppose that there is another possible solution . That is, .Now, notice that , so . From this fact, it follows that:
So, .
Getting more and more bulky
Time to see an example! A linear system is just an equation involving numbers, like . You can easily solve it getting . But the really interesting systems are those with greater dimensions.
Let's use the matrix from the example in the previous section . Take, for example .
Since you already know that , the unique solution of the system is:But what if ? You guessed it! The method works exactly the same:
Now, you can see a more bulky example. The inverse of the matrix is . If you take , then the solution of the system is just:
But how to calculate the inverse of some matrix ? This can be really difficult and require some new tools. You'll learn more about it in the next topic!
Conclusion
It is better that you summarize what you just learned. Take a square matrix of size .
- is invertible if there is a square matrix of size such that .
- When is invertible, its inverse is unique, and it's denoted by .
- The system has a unique solution when is invertible, and, in this case, the unique solution is .