Week 4 ·
CR Decomposition and Inverse Matrices
CR Decomposition
A matrix decomposition is breaking a matrix in several matrices, which usually each give us information about the decomposed matrix. CR decomposition is the first of many matrix decompositions you are going to encounter during the course.
Theorem 2.44 (CR decomposition)
Let A be an matrix of rank . Let be the submatrix of containing the independent columns. Then there exists exactly one matrix such that:
Let’s see why this is true.
- The column space of : C(A) = C(C) : Column space of . This is because we have all linearly independent columns of in .
- The first point means that we can write the columns of as a linear combination of the columns of C. This is because the columns of themselves are also in the column space of A!
- With this point of view, in at i-th column, we store how much of which column of we need to generate the i-th column of .
- We know by Lemma 1.22 that there is only one way of writing a vector as a linear combination of linearly independent vectors. Therefore is unique.
The column of tells us that we need times the column and times the column of C, in order to generate the column of A.
We know that and have the same column space. We will see that and have the same row space later. However to convince yourself that now, you can view the matrix multiplication as the linear combination of the rows of . We have
where the coefficients and are the first row of . You use the rows of to generate the rows of the matrix so intuitively we have .
Keep in mind: You can also use the decomposition to compress the matrices. has entries whereas you only have to store entries in the CR-decomposition.
How to calculate CR’ decomposition?
Even though we do did not see an automatized, algorithm based method to calculate the decomposition at this point in the course, you can still eyeball the decomposition in some cases. The column of tells you how you need to combine the columns of so that their linear combination gives the column of .
Inverse Matrices
Until now we have seen how to add matrices, how to multiply them, but not how to take back the multiplication by a matrix. If you see a matrix as a linear transformation, this taking back operation would correspond to undoing the effect of the linear transformation. Did your matrix stretch the space and doubled every distance in direction? Then the inverse would shrink the space in the same direction so that everything gets back to “normal”, or in other words everything gets back to the way as they were before you applied the first transformation.
Functions and Bijectivity
Think of . For us to be able to undo the operation, we have to have every possible output coming from exactly one possible input. As you know from other lectures, we call such functions bijective since they are both injective and surjective.
We can make some initial statements about the reversible transformations1:
- A transformation (function) is reversible if for every , there exists exactly one such that . ( Def. 2.46)
- The inverse is denoted with and called the inverse or the backward transformation. ( Def. 2.46)
- If is reversible, so is its inverse . The inverse of the inverse is the forward transformation itself ie. , with . ( Fact 2.47)
- The inverse of a reversible linear transformation is also a linear transformation. ( Lemma 2.48)
- The inverse of a reversible matrix transformation is also a matrix transformation ( Corollary 2.49)
Now we can convince us that a matrix has to be square in order to be undoable. This means in particular that the matrix transformation cannot be bijective if . Let’s see this for both cases (short and wide matrix) and (skinny and tall matrix).
To see this we can look at an example. You can find the formal proofs (Lemma 2.50 and Lemma 2.51) in the lecture notes.
Case (): If we have we have a short and wide matrix with the matrix transformation . We are trying to squeeze everything from some higher dimension to some lower dimension. Naturally some things must overlap. So if we try to revert this squeezing we can’t know what goes where. Here is an example with and . We are doing projection and transforming


Figure 1: Mapping from a 3D space (left) to its projection in plane (right).
Now if you are asked to take this operation back just by looking at the 2D image, you wouldn’t be able to do so. For example you can not know how many stories the building has or what color the side facades have. This operation is not injective and hence not bijective (not undoable).
Case (): If we have we have a skinny and tall matrix with the matrix transformation . We are trying to fill out a larger space of dimensions using inputs from a smaller dimension but we simply do not have enough input to fill the whole space. This will lead to some parts in the larger output space to have no input mapped to them. Therefore our operation will not be surjective and hence not bijective (not undoable). Here is an example with and .


Figure 2: Mapping from a 2D plane (left) to its embedding in (right).
Now if you were asked to take this operation back for every point in you wouldn’t be able to do so. This transformation is essentially
and it is irreversible if you have in the 3D space. As you can see only the xy-plane can be mapped back but the marked point outside of the plane can not be mapped back to the input domain. This operation is not surjective and hence it is not undoable (not bijective).
Keep in mind that these examples are here for intuition. And as the lecture notes say, this intuition does not hold for all the functions. See the formal reasoning in the lecture notes.
Inverse of a Bijective Linear Transformation
Now we know that only linear transformations that can possibly be invertible are the linear transformations .
Now we formally state the equivalence we have seen in the previous subsection:
Lemma 2.52 (Reversible matrix transformations)
Let be an matrix. The following three statements are equivalent.
- is reversible.
- There is an matrix such that .
- The columns of are linearly independent.
Most importantly we know that the left inverse of an matrix is also its right inverse.
Lemma 2.53
Let be matrices such that . Then also .
The Inverse of a Matrix
Let’s formally define an invertible matrix:
Definition 2.54 (Invertible and singular matrix)
Let be an matrix. is called invertible if there is an matrix such that . (By Lemma 2.52 this is the case if and only if has linearly independent columns.) Otherwise, is called singular.
We have further alternative definitions of the invertible matrix:
Observation 2.55 (Alternative definitions of an invertible matrix)
Let be an matrix. is invertible if and only if there is an matrix satisfying one (and therefore all) of the following equivalent conditions.
- (This means that is invertible according to Definition 2.54.)
Moreover, there is exactly one such matrix .
Definition 2.56 (Inverse matrix)
Let be an matrix. is invertible if and only if there exists an matrix such that (or , or ). In this case, the matrix is unique and called the inverse of . We denote it by .
How to calculate the inverse?
Case .
Hence, the inverse exists unless .
Case .
The inverse for matrices exist, if and only if . This is equivalent to say that the inverse of the matrix exists, if and only if the columns of it are linearly independent. (Think about this!).
This formula might feel like it came out of nowhere, but these two examples above are only special cases of a general rule to calculate the inverse of a matrix. The formula utilizes some linear algebra tools we have not acquired yet, like determinants and cofactors, but don’t worry, we are going to get there.
Last but not least we list a few important properties of the inverse:
Lemmas 2.57–2.59
In the following, let and be invertible matrices.
- (Obs 2.57)
- (Lemma 2.58)
- (Lemma 2.59)
You can find proofs of this facts in the lecture notes but I recommend to think about the proofs before you read them.
Note: An important note to be aware of is that you can not slap on top of any matrix when you are doing calculations. You have to know that the matrix is invertible, before you write , because writing is already assuming the inverse exists.
As an example, you should be careful when writing
by Lemma 2.58 The lemma clearly states that this applies when and are both invertible. It might be the case that is invertible but or or both matrices are not invertible by themselves because they are not square matrices. So you should know or show that and are invertible, before you can apply this lemma.
Example:
Here and are not invertible since they are not square matrices, but is invertible.
Hints
- Solved In Class
- Solved In Class
- a) Use associativity b) be careful here is not necessarily invertible c) no hints
- No hints.
- a) use induction over k b) No hints. c) This is a one liner think clever d) you have already seen a type of matrix in the course, which can be a self inverse, find it. (you are of course free to come up with another one) e) If you can modify the one from the previous subtask, go for it.
- (Challenging) a) use formula b) You have to prove two directions. Drawing a sketch or writing down such a matrix might help. For the proof of one direction, the proof for Theorem 3.7. might inspire you. c) Assume for a contradiction that the inverse of a lower triangular matrix is not lower triangular. What is the issue here? Argue formally for the general case. d) No hints. You can still do this one without actually solving the first three subtasks.
Footnotes
-
The formal versions of these can be found in the corresponding definitions in the lecture notes ↩