You might recall learning about inverses from previous courses (maybe Math 31A):
Function inverses
We say a function f and g are inverses if f(g(x))=x and g(f(x))=x
Morally, inverses f and g "undo" each other. A little bit of work shows that this defintion is equivalent to another defintion of inveribility:
Invertibility
A function f:X→Y is invertible if for every y in Y there is exactly one x in X such that f(x)=y.
If f is invertible, then the function f−1:Y→X given by f−1(y)=x where f(x)=y is the inverse of f.
Find inverse of the functions (if they exist):
f:R→R,f(x)=x+2
f:R→R,f(x)=7x
f:R→R,f(x)=3x+1
f:R→R,f(x)=x2
Solution: The inverses should be straightforward to compute. The only thing to be careful about is that f(x)=x2 has no inverse when defined from R to R. You might think that g(x)=x would be its inverse, but we notice that f(−1)=1=f(1). When we take the square root of 1, we don't know if we should go back to 1 or −1.
In the lanauge of matrices (as functions where composition is matrix product) we have the following equivalent defintions of invertibility:
Invertibility of matrices
Let A be a m×n matrix. We can think of A as a map from Rn→Rm. The following are equivalent:
There exists a matrix A−1 such that AA−1x=x and A−1Ax=x. Equivalently AA−1 and A−1A are the identity matrix in their respective spaces.
For every y in Rm, there exists a unique x in Rn such that Ax=y.
Size of invertible matrices
In the previous definitions, A is not necessarily square. It turns out that a non-square matrix cannot be invertible, so let's just assume square matrices from here on out.
So how do we actually determine invertibility and compute inverses?
It's not hard to show that A is invertible if and only if rref(A)x=b has a unique solution for all b since systems with A are equivalent systems with rref(A). It is also not hard to see that the latter occurs if and only if rref(A)=In.
This gives us another equivalent definition of invertibility:
Inveritibility via RREF
An n×n matrix A is invertible if and only if rref(A)=In, equivalently, rank(A)=n.
Now to answer the question of computing the inverse, suppose A did have an inverse A−1. Then we know that Ax=ei has a unique solution bi for any i. Then we would have A−1ei=bi, or rather A−1=[b1⋯bn] Thus if A has an inverse, then we have rref[Aei]=[Inbi]
for each i. Thus we can compute the inverse via Gaussian elimination: [AIn]RREF[InA−1]
Then we have an easy way to determine invertibility and the inverse using Gaussian elimination:
Determining invertibility and computing inverses
If we set up the matrix [AIn]
and perform Gaussian Elimination to reduce this to RREF, we will get new augmented matrix [rref(A)B]
If rref(A)=In, then A is invertible with inverse B. Otherwise, A is not invertible.
Computing inverse
Determine all values of k such that A=1111241kk2 is invertible and find its inverse when invertible.
Solution: We have 1111241kk2100010001R2←R2−R1R3←R3−R11001131k−1k2−11−1−1010001
Then we have 1001131k−1k2−11−1−1010001R3←R3−3R21001101k−1k2−3k+21−1201−3001
Note that rref(A) will have 3 pivots exactly when k=1,2. Then routine computation can find the inverse from here.
Next, we look at a somewhat surprising equivalent defintiion of invertibility:
Invertibility via homogenous solutions
Show that A is invertible if and only if Ax=0 has a unique solution.
Solution: If A is invertible, then by definition, Ax=0 will have a unique solution, namely x=0. Conversely, if Ax=0 has a unique solution, then note that rref[A0]=[rref(A)0].
Thus Ax=0 and rref(A)x=0 have the same solution set, which implies that rref(A)x=0 has a unique solution. If rref(A) has less than n pivots then we can easily construct a nonzero solution to rref(A)x=0. Thus, rref(A)=In, so A is invertible.
So we have a bunch of equivalent definitions of invertibility. There are a few more:
More equivalent definitions of invertibility.
The following are equivalent to A being invertible:
det(A)=0 (We will see why in next week, when we do determinants)
A is "injective" (this is the uniqueness part in the previous definition; this also somehow implies that n≤m for m×n matrices, which is to say that the input space is "smaller".)
A is "surjective" (this is existence part of the previous definition; this implies m≤n for m×n matrices, which is to say that the output space is "smaller".)
Note that injectivity and surjectivity force the matrix to be square.
Inverse of products
Let A and B be invertible n×n matrices. Is AB invertible and if so what is its inverse?
Solution: Intuitively, we have that AB is applying B first and then A, so in order to invert this, we undo A first and then undo B. So we should expect (AB)−1=B−1A−1. Indeed, we can check that this satisfies the compositional definition of inverses: ABB−1A−1=AInA−1=AA−1=In
and B−1A−1AB=B−1InB=B−1B=In