Inverses¶
Given a linear map \(f : V \to W\) it is a natural question whether the process of applying \(f\) can be undone. For example, if \(f\) encodes a counter-clockwise rotation in the plane by \(60^\circ\), it can be undone by rotating clockwise by \(60^\circ\). On the other hand, the linear map
cannot be undone, since there is no way of recovering \((x,y)\) only from \(x\).
Definition and Lemma 4.63
Let \(f : V \to W\) be a linear map. Then the following statements are equivalent (i.e., one holds precisely if the other holds):
-
\(f\) is bijective (Definition 4.20),
-
There is a linear map \(g : W \to V\) such that
(By definition of the composition (see also §Chapter A) this means \(g(f(v)) = v\) for all \(v \in V\) and \(f \circ g = {\mathrm {id}}_{W}\) (i.e., \(f(g(w)) = w\) for all \(w \in W\).)
If this is the case, we call \(f\) an isomorphism. In this event, the following statements hold:
-
Such a map \(g\) is unique. It is also called the inverse of \(f\) and is denoted by \(f^{-1}: W \to V\).
-
\(\dim V = \dim W\).
Proof. We only prove the direction 1. \(\Rightarrow\) 2.. By assumption \(f\) is bijective, i.e., the preimage \(f^{-1}(w)\) consists of precisely one element, say \(f^{-1}(w) = \{ v \}\). (That is, only for that vector do we have that \(f(v) = w\).) We define a map \(g: W \to V\) by \(g(w) := v\).
To compute \(g(f(v))\) we observe that \(f^{-1}(f(v)) = \{ v\}\), since \(v\) is the only element of \(V\) that is mapped to \(f(v)\). Thus \(g(f(v))=v\).
To compute \(f(g(w))\), say that \(f^{-1}(w) = \{v\}\). This means in particular that \(f(v) = w\). Then \(g(w) = v\) and therefore \(f(g(w)) = w\).
We show that \(g\) is linear. Let \(w, w' \in W\) be given. Let \(v, v' \in V\) be the unique elements such that \(f(v) = w\), \(f(v')=w'\). By definition, this means \(g(w)=v\), \(g(w') = v'\). Then \(w+w' = f(v+v')\), since \(f\) is linear. Thus \(g(w+w')=v+v'=g(w)+g(w')\). In a similar way, one shows \(g(aw)=ag(w)\) for \(a \in {\bf R}\).
If \(g': W \to V\) is another map with \(f(g'(w))=w\), as above, then
Since \(f\) is injective, this implies \(g'(w)=g(w)\). This shows that \(g\) is unique.
The last statement holds by Corollary 4.283.. ◻
Definition and unicity of inverses¶
Definition 4.64
Let \(A\) be an \(n \times n\)-matrix. Another \(n \times n\)-matrix \(B\) is called an inverse of \(A\) if
If such a matrix \(B\) exists, \(A\) is called invertible.
Example 4.65
\(A = \left ( \begin{array}{cc} 0 & 1 \\ 1 & 1 \end{array} \right )\) is invertible, since \(B = \left ( \begin{array}{cc} -1 & 1 \\ 1 & 0 \end{array} \right )\) is an inverse of \(A\):
Not every matrix has an inverse. An \(1 \times 1\)-matrix \(A\), which is just a single real number \(a\) is invertible precisely if \(a \ne 0\). In this case the \(1 \times 1\)-matrix with entry \(\frac 1a\) is an inverse. For larger matrices, it is not enough to be different from zero in order to be invertible, as the following example shows.
Example 4.66
The matrix
is not invertible. We prove this by taking an arbitrary \(2 \times 2\)-matrix \(B = \left ( \begin{array}{cc} a & b \\ c & d \end{array} \right )\) and computing
Thus the condition \(AB = {\mathrm {id}} = \left ( \begin{array}{cc} 1 & 0 \\ 0 & 1 \end{array} \right )\) amounts to four equations:
Indeed, multiplying the first equation by 2 gives \(2a+4c=2\), and inserting the third equation gives a contradiction:
Hence there is no such matrix \(B\), so that \(A\) is not invertible. We can observe that both the two rows of \(A\) are linearly dependent, and also that the two columns of \(A\) are linearly dependent. We will later prove that either of these two conditions are equivalent to \(A\) not being invertible (Corollary 4.94).
Example 4.67
We revisit the reflection, rescaling, rotation and shearing matrices (Example 4.13 onwards) and compute their inverses:
| Geometrical description | Matrix \(A\) | Inverse matrix \(A^{-1}\) |
|---|---|---|
| Reflection at \(x\)-axis | \(\left ( \begin{array}{cc} 1 & 0 \\ 0 & -1 \end{array} \right )\) | \(\left ( \begin{array}{cc} 1 & 0 \\ 0 & -1 \end{array} \right )\) |
| Reflection at \(y\)-axis | \(\left ( \begin{array}{cc} -1 & 0 \\ 0 & 1 \end{array} \right )\) | \(\left ( \begin{array}{cc} -1 & 0 \\ 0 & 1 \end{array} \right )\) |
| Rescaling | \(\left ( \begin{array}{cc} r & 0 \\ 0 & s \end{array} \right )\) | \(\left ( \begin{array}{cc} r^{-1} & 0 \\ 0 & s^{-1} \end{array} \right )\) (if \(r, s \ne 0\); |
| if \(r = 0\) or \(s = 0\) then \(A\) is not invertible) | ||
| Rotation | \(\left ( \begin{array}{cc} \cos r & -\sin r \\ \sin r & \cos r \end{array} \right )\) | \(\left ( \begin{array}{cc} \cos (-r) & -\sin (-r) \\ \sin (-r) & \cos (-r) \end{array} \right ) = \left ( \begin{array}{cc} \cos r & \sin r \\ -\sin r & \cos r \end{array} \right )\) |
| Shearing | \(\left ( \begin{array}{cc} 1 & r \\ 0 & 1 \end{array} \right )\) | \(\left ( \begin{array}{cc} 1 & -r \\ 0 & 1 \end{array} \right )\) (for any \(r \in {\bf R}\)) |
Lemma 4.68
Let \(A\) be an invertible matrix. Then there is precisely one inverse matrix, i.e., if \(B\) and \(C\) are two inverses (which means \(AB=BA={\mathrm {id}}\) and \(AC=CA={\mathrm {id}}\)), then \(B=C\). One therefore speaks of the inverse (as opposed to an inverse), and writes \(A^{-1}\) for the inverse.
Proof. Using the associativity of matrix multiplication (marked !), we get the following chain of equalities
Thus \(B = C\) as claimed. ◻
Linear systems associated to invertible matrices¶
Inverses of matrices are useful to solve linear systems. This is the content of the following theorem:
Theorem 4.69
Let \(A\) be an invertible \(n \times n\)-matrix. We consider the linear system
where \(x = \left ( \begin{array}{c} x_1 \\ \vdots \\ x_n \end{array} \right )\) is a vector consisting of \(n\) unknowns and \(b = \left ( \begin{array}{c} b_1 \\ \vdots \\ b_n \end{array} \right )\) is a vector. This linear system has a unique solution, which is given by
i.e., the product of the inverse of \(A\) with the vector \(b\).
Remark 4.70
By Observation 4.11, if \(A = (a_{ij})\), then the equation \(Ax = b\) is a shorthand for the linear system
Proof. We first check that \(A^{-1}b\) is indeed a solution to the equation \(Ax = b\):
At the equation marked ! we have used the associativity of matrix multiplication (where the third matrix is \(b\), which is just a column vector, i.e., an \(n \times 1\)-matrix).
We now check that \(A^{-1} b\) is the only solution. Suppose then that some vector \(y\) is a solution to the system, i.e., \(A y = b\). We will show \(y = A^{-1} b\) by proving
Again using the properties of matrix multiplication (Lemma 4.60), we have \(A z = A (A^{-1} b - y) = A A^{-1} b - A y = b - b = 0\). Multiplying this with the matrix \(A^{-1}\), we obtain our claim:
◻
Structural properties of taking the inverse¶
Below, it is necessary to have a few properties of the operation “take the inverse of an (invertible) matrix” at our disposal. In the following theorem, all matrices are square matrices of the same size. In the right column, we illustrate what they mean for \(1 \times 1\)-matrices, as a means to remember them. Recall that a \(1 \times 1\)-matrix \((a)\) is invertible if and only if \(a \ne 0\), and its inverse \((a)^{-1}\) is the matrix \((a^{-1})\). (Here, as usual, the reciprocal \(a^{-1}\) of a non-zero real number \(a\) is defined as \(a^{-1} := \frac 1 a\).)
Theorem 4.71
The following holds:
| Statement for general (square) matrices | For \(1 \times 1\)-matrices |
|---|---|
| \({\mathrm {id}}\) is invertible: \({\mathrm {id}}^{-1} = {\mathrm {id}}\) | \(\frac 1 1 = 1\) |
| If \(A\) is invertible, then \(A^{-1}\) is also invertible: |
(4.72)
| \(\frac 1 {\frac 1 a} = a\) | | If \(A\) and \(B\) are invertible, then \(AB\) is invertible:
(4.73)
| \(\frac 1 {ab} = \frac 1 b \frac 1 a\). | | If \(A_1, \dots, A_k\) are invertible, then their product \(A_1 A_2 \dots A_k\) is also invertible:
(4.74)
| \(\frac 1 {a_1 \cdot \dots \cdot a_k} = \frac 1 {a_k} \cdot \dots \cdot \frac 1 {a_1}\) |
Proof. We prove to illustrate the technique. We compute
Using the same arguments, one checks \((B^{-1}A^{-1})(AB) = {\mathrm {id}}\). Thus, by Definition 4.64, \(B^{-1}A^{-1}\) is the inverse of \(AB\). ◻
Remark 4.75
Among the above formulas, is the most noteworthy one: note that the order of \(A\) and \(B\) has been changed! (Recall from Warning 4.55 that the order of multiplication is important. Only for \(1 \times 1\)-matrices, i.e., real numbers the order of multiplication is irrelevant, so that \(\frac 1 {ab} = \frac 1 b \frac 1 a = \frac 1 a \frac 1 b\) etc.)
Invertible matrices and elementary operations¶
Lemma 4.76
Any elementary matrix (Definition 4.62) is invertible:
Proof. To illustrate this, we check this for the last one, where for simplicity of notation we just treat the case of \(2 \times 2\)-matrices. I.e., we prove
To do this, we compute the product
Similarly (or, actually, symmetrically)
◻
Lemma 4.77
If \(A\) is an \(m \times n\)-matrix and \(B\) is obtained from \(A\) by means of elementary row operations:
then
for an invertible \(m \times m\)-matrix \(U\). (In particular, if \(A \leadsto {\mathrm {id}}\), then \({\mathrm {id}} = U A\).)
Proof. If \(A \leadsto B\) in a single step, this is a combination of Lemma 4.76 and Proposition 4.61: in this case \(U\) is the elementary, and in particular invertible, matrix corresponding to the elementary operation that has been performed.
In general, say \(A =: A_0 \leadsto A_1 \leadsto A_2 \leadsto \dots \leadsto A_n = B\), then \(A_1 = U_1 A\), \(A_2 = U_2 A_1\) etc., so that
where we have used the associativity of matrix multiplication. Being the product of elementary, and in particular invertible matrices, \(U\) is then also invertible (Theorem 4.71). ◻
We finally prove Theorem 2.18. You can check that there is no vicious circle!
Corollary 4.78
Let
(4.79)
be a linear system. Apply any sequence of elementary row operations to \(A\) and to \(b\), getting a matrix \(A'\) and a vector \(b'\). Then the system
(4.80)
is equivalent to , i.e., the solution sets of the two systems are the same.
Proof. By Lemma 4.77, there is an invertible matrix \(U\) such that \(A' = UA\) and \(b' = Ub\). If \(Ax = b\), then also
Conversely, if \(A'x = b'\), then (crucially using that \(U\) is invertible)
◻
Invertibility criteria¶
We can now establish a criterion that determines whether a given matrix \(A\) is invertible (and that computes the inverse in case it is). This can then be used in practice to apply Theorem 4.69.
Recall that three statements “X”, “Y”, “Z” are equivalent if any of them implies the others. For example the statements (where \(r\) is a real number)
-
\(r + 1 \ge 1\)
-
\(r \ge 0\)
-
\(r - 4 \ge -4\)
are equivalent. By contrast, the three statements
-
\(r + 1 \ge 1\)
-
\(r \ge 0\)
-
\(r^2 \ge 0\)
are not equivalent, since the third does not imply, say, the second: for \(r = -1\), the third statement holds, but the second does not. A convenient way to show that three statements are equivalent is to show “X” \(\Rightarrow\) “Y”, then “Y” \(\Rightarrow\) “Z”, and then “Z” \(\Rightarrow\) “X”. Of course, this also works similarly for more than three statements.
Theorem 4.81 (Related exercises: Exercise 5.8, Exercise 6.5, Exercise 4.35, Exercise 4.38, Exercise 4.43, Exercise 4.19)
The following conditions on a square matrix \(A \in {\mathrm {Mat}}_{n \times n}\) are equivalent:
-
\(A\) is invertible.
-
For any \(b \in {\bf R}^n\) (regarded as a column vector with \(n\) rows), the equation \(Ax = b\) (for \(x \in {\bf R}^n\) being a column vector consisting of \(n\) unknowns \(x_1, \dots, x_n\)) has exactly one solution.
-
For any \(b \in {\bf R}^n\), the equation \(Ax = b\) has at most one solution.
-
The system \(Ax = 0\) (0 being the zero row vector consisting of \(n\) zeros) has only the trivial solution \(x = 0\) (cf. Remark 2.14).
-
Using the Gaussian algorithm (Method 2.29), \(A\) can be transformed to the identity matrix \({\mathrm {id}}_n\).
-
\(A\) is a product of (appropriate) elementary matrices.
-
There is a matrix \(B \in {\mathrm {Mat}}_{n \times n}\) such that \(AB = {\mathrm {id}}\).
If these conditions are satisfied, the inverse of \(A\) can be computed as follows: write the identity \(n \times n\)-matrix to the right of \(A\) (this gives a \(n \times (2n)\)-matrix):
(The bar in the middle is just there for visual purposes, it has no deeper meaning.) Apply Gaussian elimination in order to bring the matrix \(B\) to reduced row echelon form, which according to the above gives a matrix of the form
Then \(E = A^{-1}\), i.e., \(E\) is the inverse of \(A\).
Proof. 1. \(\Rightarrow\) 2.: This is just the content of Theorem 4.69.
The implications 2. \(\Rightarrow\) 3. and 3. \(\Rightarrow\) 4. are clear.
4. \(\Rightarrow\) 5.: we can bring \(A\) into reduced row-echelon form, say, \(A \leadsto R\). We need to show that \(R = {\mathrm {id}}\). If this is not the case, then \(R\) contains a zero row (since \(R\) is a square matrix). Method 2.31 then tells us that the system \(Rx = 0\) has (at least) one free parameter, and therefore the system has not only the zero vector as a solution. The original system \(Ax = 0\), which by Corollary 4.78 has the same solutions as \(Rx = 0\), then also has a non-trivial solution. This is a contradiction to our assumption that \(R\) is not the identity matrix.
5. \(\Rightarrow\) 6.: by Lemma 4.77, we have \(UA={\mathrm {id}}\) for \(U\) being a product of elementary matrices, say \(U = U_1 \dots U_n\). Then, using , we have
and this is also a product of elementary matrices.
6. \(\Rightarrow\) 7.: if \(A = U_1 \dots U_n\) for some elementary matrices, then
7. \(\Rightarrow\) 1.: suppose \(B\) is such that \(AB={\mathrm {id}}\). We observe that then the only vector \(x \in {\bf R}^n\) such that \(B x = 0\) is the zero vector:
Applying the implication 4. \(\Rightarrow\) 7. (which was already proved) to \(B\), we obtain a matrix \(C\) such that \(BC = {\mathrm {id}}\). Therefore
This means that \(BA = {\mathrm {id}}\).
This finishes the proof that all the given statements are equivalent. The statement about the computation of \(A^{-1}\) holds since the row operations that bring \(A \leadsto {\mathrm {id}}\) also bring the augmented matrix \((A \ | \ {\mathrm {id}})\) to \((UA \ | \ U{\mathrm {id}}) = ({\mathrm {id}} \ | U)\). ◻
Example 4.82 (Related exercises: Exercise 5.8)
We apply this to \(A = \left ( \begin{array}{ccc} 1 & 0 & -1 \\ 3 & 1 & -3 \\ 1 & 2 & -2 \end{array} \right )\):
We subtract the first row 3, resp. 2 times from the other ones, which gives
We subtract 2 times the second row from the third:
We bring the matrix into row echelon form by multiplying the last row with \(-1\), which yields
Finally, to bring it into reduced row-echelon form, we add the third row to the first, which gives
Thus, according to Theorem 4.81, \(A\) is indeed invertible, and its inverse is
Corollary 4.83
If \(A\) is a square matrix such that for some other square matrix \(B\) we have \(AB = {\mathrm {id}}\), then we also have \(BA = {\mathrm {id}}\).
Proof. We use the theorem to see that \(A\) is invertible, and then
And we have seen in above that \(A^{-1} A = {\mathrm {id}}\). ◻