10.6 Inverting a Matrix

We have seen that we can solve the system of equations described by $$\begin{pmatrix} 3&-4 \ 2&-1\end{pmatrix}\begin{pmatrix} x \ y\end{pmatrix} = \begin{pmatrix} 5 \ -10\end{pmatrix}$$ with Cramer’s rule. Rather than grinding through(打破砂锅问到底) Cramer’s rule, it sure would be nice to be able to divide by the matrix on the left. Unfortunately, division by a matrix is not defined. However, we can take another look solving equations with division by real numbers to get an idea how we might accomplish our goal. Consider the equation $$3x = 9.$$ To solve this equation we can “divide both sides by 3.” What we’re really doing when we “divide both sides by 3” is “multiplying both sides by 13.” More precisely, we are multiplying by the multiplicative inverse of 3, which eliminates the 3 on the left side. Multiplying both sides of 3x=9 by 13 gives $$\frac{1}{3} \cdot 3 x =\frac{1}{3}\cdot 9.$$ The 13 and 3 cancel, and we’re left with x=139=3.

Let’s see if we can accomplish something similar with matrices.

Problems

Problem 10.33

[!question]
Suppose that ABv=v for all vectors v. What matrix must AB equal?

Problem 10.34

[!question]
If AB equals the answer you found in ## Problem 10.33, then we say that A is the inverse of B and that B is invertible. We often denote the inverse of a matrix B as B1. Let M=(2367). Find M1.

Problem 10.35

[!question]
Does the matrix M=(35610) have an inverse? If it does, then find it. If it doesn’t, explain why not.

Problem 10.36

[!question]
If A is invertible, then how are det(A) and det(A1) related?

Problem 10.37

[!question]
Let A=(abcd). In this problem, we find the conditions under which A is invertible, and we find the inverse in terms of a, b, c, and d.

(a) Suppose A is invertible, and let A1=(pqrs). What matrix must A1A equal?

(b) Use your answer to (a) to find a system of equations in terms of p, q, a, b, c, and d. Solve the system for p and q in terms of the components of A.

(c) Find r and s in terms of the components of A.

(d) Under what conditions is it possible to find an inverse of A, and what is that inverse in terms of a, b, c, and d?

(e) Confirm your result from part (d) by multiplying A by the matrix you found in part (d) .

Problem 10.38

[!question]
(a) Find the inverse of (4357).

(b) Use your answer to part (a) to solve the system of equations 4x3y=2, 5x+7y=3.

(c) Find the inverse of (0.150.430).

(d) Use your answer to part (c) to solve the system of equations 0.1t+5u=3, 0.4t+30u=7.

Problem 10.39

[!question]
If A=(4321) and B=(5382), then find all matrices M such that AM=B.

Problem 10.40

[!question]
Earlier we saw that AB is not necessarily equal to BA. Must AA1 equal A1A?

Problem 10.414

[!question]
Suppose A and B are invertible. Prove that (AB)1=B1A1.

PROBLEMS

Problem 10.33

[!question]
Suppose the product ABv=v for all vectors v. What matrix must AB equal?

Solution for Problem 10.33:

In ## Problem 10.13, we discovered the identity matrix I, which is the unique matrix such that Iv=v for all vectors v. If ABv=v for all vectors v, then AB must be this matrix. That is, we must have AB=(1001). □

Problem 10.34

[!question]
If AB=I, then we say that A is the inverse of B and that B is invertible. We often denote the inverse of a matrix B as B1. Let M=(2367). Find M1.

Solution for Problem 10.34:

We seek the matrix such that$$\begin{pmatrix} a&b \ c&d\end{pmatrix}\begin{pmatrix} 2&3 \ 6&7\end{pmatrix} = \begin{pmatrix} 1&0 \ 0&1\end{pmatrix}.$$Expanding the product on the left, we have$$\begin{pmatrix} 2a+6b&3a +7b \ 2c+ 6d&3c+7d\end{pmatrix} = \begin{pmatrix} 1&0 \ 0&1\end{pmatrix}.$$From the entries in the first rows, we have 2a+6b=1 and 3a+7b=0. Solving this system gives a=74 and b=34. From the entries in the second rows, we have 2c+6d=0 and 3c+7d=1. Solving this system gives c=32 and d=12. Checking, we find that$$\begin{pmatrix} -7/4&3/4 \ 3/2&-1/2\end{pmatrix}\begin{pmatrix} 2&3 \ 6&7\end{pmatrix}= \begin{pmatrix} 1&0 \ 0&1\end{pmatrix},$$so M1=(7/43/43/21/2). □

Problem 10.35

[!question]
Does the matrix M=(35610) have an inverse? If it does, then find it. If it doesn’t, explain why not.

Solution for Problem 10.35:

Suppose A=(abcd) is the inverse of M. Then we must have AM=I, or$$\begin{pmatrix} a&b \ c&d\end{pmatrix} \begin{pmatrix} 3&5 \ -6&-10\end{pmatrix} = \begin{pmatrix} 1&0 \ 0&1\end{pmatrix}.$$Expanding the product on the left gives$$\begin{pmatrix} 3a-6b&5a-10b \ 3c-6d&5c-10d\end{pmatrix} = \begin{pmatrix} 1&0 \ 0&1\end{pmatrix}.$$From the entries in the first rows, we have 3a6b=1 and 5a10b=0. The second equation gives a=2b, but substituting this into the first equation gives 6b6b=1. Uh-oh; this equation has no solution! Therefore, we cannot find a matrix A such that AM=I, which means that M does not have an inverse. □

Why doesn’t M have an inverse? Here’s a clue:

Problem 10.36

[!question]
If A is invertible, then how are det(A) and det(A1) related?

Solution for Problem 10.36:

We have A1A=I, so$$ \det(\textbf{A}^{-1}\textbf{A}) = \det(\textbf{I}) = (1)(1)-(0)(0) = 1. $$We also have det(A1A)=det(A1)det(A), so we must have det(A1)det(A)=1. □

Now we see why the matrix M=(35610) in ## Problem 10.35 has no inverse. Since$$\det(\textbf{M}) = (3)(-10)-(-6)(5) = 0,$$we know that there can be no matrix M1 such that det(M1)det(M)=1.

Problem 10.37

[!question]
Let A=(abcd). Under what conditions does A have an inverse? If A has an inverse, what is that inverse in terms of a, b, c, and d?

Solution for Problem 10.37:

Suppose A is invertible. We let A1=(pqrs), so we must have$$\begin{pmatrix} p&q \ r&s\end{pmatrix}\begin{pmatrix} a&b \ c&d\end{pmatrix} = \begin{pmatrix} 1&0 \ 0&1\end{pmatrix}.$$Expanding the product on the left gives$$\begin{pmatrix} pa+qc&pb + qd \ ra+sc&rb+sd\end{pmatrix} =\begin{pmatrix} 1&0 \ 0&1\end{pmatrix}.$$Equating the corresponding entries on the first rows gives the system pa+qc=1, pb+qd=0, and equating the corresponding entries on the second rows gives ra+sc=0, rb+sd=1. If |acbd|0, then applying Cramer’s rule to solve the system pa+qc=1, pb+qd=0 for p and q gives$$p = \frac{\begin{vmatrix} 1&c \ 0&d\end{vmatrix}}{\begin{vmatrix} a&c \ b&d\end{vmatrix}} = \frac{d}{\begin{vmatrix} a&c \ b&d\end{vmatrix}}\qquad \text{ and }\qquad q = \frac{\begin{vmatrix} a&1 \ b&0\end{vmatrix}}{\begin{vmatrix} a&c \ b&d\end{vmatrix}} =\frac{-b}{\begin{vmatrix} a&c \ b&d\end{vmatrix}}.$$Similarly, if |acbd|0, then we can apply Cramer’s rule to ra+sc=0, rb+sd=1 to give$$r = \frac{\begin{vmatrix} 0&c \ 1&d\end{vmatrix}}{\begin{vmatrix} a&c \ b&d\end{vmatrix}} = \frac{-c}{\begin{vmatrix} a&c \ b&d\end{vmatrix}} \qquad\text{ and } \qquad s = \frac{\begin{vmatrix} a&0 \ b&1\end{vmatrix}}{\begin{vmatrix} a&c \ b&d\end{vmatrix}} = \frac{a}{\begin{vmatrix} a&c \ b&d\end{vmatrix}}.$$Since |acbd|=adbc=det(A), the denominator in each of the results for p, q, r, and s equals det(A), and we have$$\textbf{A}^{-1} = \frac{1}{\det(\textbf{A})}\begin{pmatrix} d&-b \ -c&a\end{pmatrix}.$$

Checking, we find that $$\begin{align*}\textbf{A}^{-1}\textbf{A} &=\frac{1}{\det(\textbf{A})}\begin{pmatrix} d&-b \ -c&a\end{pmatrix}\begin{pmatrix} a&b \ c&d\end{pmatrix} \&=\frac{1}{\det(\textbf{A})}\begin{pmatrix} da-bc&db-bd \ -ca + ac&-cb + ad\end{pmatrix} \&=\frac{1}{\det(\textbf{A})}\begin{pmatrix} ad-bc&0 \ 0&ad-bc\end{pmatrix} \&= \begin{pmatrix} 1&0 \ 0&1\end{pmatrix},\end{align*}$$as expected.

Our work above shows that we can find an inverse of any 2×2 matrix with a nonzero determinant. We say that such a matrix is invertible. Our solution also tells us that if A is invertible, then its inverse is unique. That is, if A is invertible, there is only one matrix A1 such that A1A=I. □

[! Danger] Important:
Let A=(abcd). If det(A)=0, then A does not have an inverse. Otherwise, we have$$\textbf{A}^{-1} = \frac{1}{\det(\textbf{A})} \begin{pmatrix} d&-b \ -c&a\end{pmatrix}.$$

Problem 10.38

[!question]
(a) Find the inverse of (4357).

(b) Use your answer to part (a) to solve the system of equations 4x3y=2, 5x+7y=3.

(c) Find the inverse of (0.150.430).

(d) Use your answer to part (c) to solve the system of equations 0.1t+5u=3, 0.4t+30u=7.

Solution for Problem 10.38:

(a) The determinant of the matrix is (4)(7)(3)(5)=43, so the inverse of the matrix is$$\frac{1}{43}\begin{pmatrix} 7&3 \ -5&4\end{pmatrix} = \begin{pmatrix} \frac{7}{43}&\frac{3}{43} $1ex] -\frac{5}{43}&\frac{4}{43}\end{pmatrix}.$

(b) We can write the system of equations as (4357)(xy)=(23). Multiplying both sides of this equation by the inverse we found in part (a) , we have $$\begin{pmatrix} \frac{7}{43}&\frac{3}{43} $$1ex] -\frac{5}{43}&\frac{4}{43}\end{pmatrix} \begin{pmatrix} 4&-3 \ 5&7\end{pmatrix} \begin{pmatrix} x \ y\end{pmatrix} =\begin{pmatrix} \frac{7}{43}&\frac{3}{43} $$1ex] -\frac{5}{43}&\frac{4}{43}\end{pmatrix}\begin{pmatrix} -2 \ -3\end{pmatrix} =\begin{pmatrix} -\frac{23}{43} $1ex] -\frac{2}{43}\end{pmatrix}.$ The product of a matrix and its inverse is the identity, so we have $$\begin{pmatrix} x \ y\end{pmatrix} = \begin{pmatrix} -\frac{23}{43} $1ex] -\frac{2}{43}\end{pmatrix}$.

(c) The determinant of the matrix is (0.1)(30)(5)(0.4)=1, so the inverse of the matrix is$$\frac{1}{-1}\begin{pmatrix} 30&-5 \ 0.4&-0.1\end{pmatrix} = \begin{pmatrix} -30&5 \ -0.4&0.1\end{pmatrix}.$$

(d) We write the system as (0.150.430)(tu)=(37). Multiplying both sides by the inverse we found in part (c) , we have $$\begin{align*}\begin{pmatrix} -30&5 \ -0.4&0.1\end{pmatrix}\begin{pmatrix} -0.1&5 \ -0.4&30\end{pmatrix}\begin{pmatrix} t \ u\end{pmatrix}&= \begin{pmatrix} -30&5 \ -0.4&0.1\end{pmatrix}\begin{pmatrix} -3 \ 7\end{pmatrix} \&= \begin{pmatrix} 125 \ 1.9\end{pmatrix}.\end{align*}$$As before, the product of a matrix and its inverse is the identity, so we have (tu)=(1251.9)$.

Problem 10.39

[!question]
If A=(4321) and B=(5382), then find all matrices M such that AM=B.

Solution for Problem 10.39: We can’t divide by A, but because its determinant is nonzero, we can multiply by its inverse. The determinant of the matrix is 10, so$$ \textbf{A}^{-1}=\dfrac{1}{10}\begin{pmatrix} 1&3 \ -2&4\end{pmatrix} = \begin{pmatrix} 0.1&0.3 \ -0.2&0.4\end{pmatrix}. $$What’s wrong with this next step:

[! note] Bogus Solution:
Multiplying both sides of the given equation by A1 gives us$$\textbf{I} \textbf{M} = \textbf{B}\textbf{A}^{-1}.$$

The problem here is that we started with AM=B and multiplied AM on the left by A1 to get IM, but we multiplied B on the right by A1. While we can go from t=s to rt=sr with real numbers, we can’t go from T=S to RT=SR with matrices, since matrix multiplication is not commutative.

We multiply both sides of the equation AM=B on the left by A1 to produce A1AM=A1B. The left side then becomes IM, which equals M, so we have$$\textbf{M} =\textbf{A}^{-1}\textbf{B}= \begin{pmatrix} 0.1&0.3 \ -0.2&0.4\end{pmatrix} \begin{pmatrix} -5&3 \ -8&2\end{pmatrix} =\begin{pmatrix} -2.9&0.9 \ -2.2&0.2\end{pmatrix}.$$So, we see that there is a unique solution to the equation AM=B. Moreover, our solution shows us that whenever A is invertible, there is a unique solution for M to the equation AM=B, which is M=A1B. □

Problem 10.40

[!question]
Earlier we saw that AB is not necessarily equal to BA. Must AA1 equal A1A?

Solution for Problem 10.40: We have defined A1 as the matrix such that A1A=I, so to check if AA1=A1A, we need only compute AA1. Letting A=(abcd), we have $$\begin{align*}\textbf{A}\textbf{A}^{-1} &=\begin{pmatrix} a&b \ c&d\end{pmatrix}\left(\frac{1}{\det({\textbf{A}})} \begin{pmatrix} d&-b \ -c&a\end{pmatrix}\right) \&=\frac{1}{\det(\textbf{A})} \begin{pmatrix} a&b \ c&d\end{pmatrix}\begin{pmatrix} d&-b \ -c&a\end{pmatrix} \&=\frac{1}{\det(\textbf{A})} \begin{pmatrix} ad-bc&0 \ 0&ad-bc\end{pmatrix} \&= \textbf{I}.\end{align*}$$Therefore, AA1=A1A=I. □

We therefore see that if A is invertible, then the inverse of A1 is A.

[! Danger] Important:
If A is invertible, then we have AA1=A1A=I.

Problem 10.41

[!question]
Suppose A and B are invertible. Prove that (AB)1=B1A1.

Solution for Problem 10.41: If M is the inverse of AB, then we must have M(AB)=I. So, we test M=B1A1, and using the associative property, we find $$\begin{align*}(\textbf{B}^{-1}\textbf{A}^{-1})(\textbf{A}\textbf{B})&= \textbf{B}^{-1}(\textbf{A}^{-1}(\textbf{A}\textbf{B})) \&= \textbf{B}^{-1}((\textbf{A}^{-1}\textbf{A})\textbf{B}) \&= \textbf{B}^{-1}\textbf{I}\textbf{B} \&= \textbf{B}^{-1}\textbf{B} \&= \textbf{I}.\end{align*}$$Therefore, the inverse of AB is B1A1. □

Exercises

10 .6.1:

[!question]
What is the inverse of I?

10 .6.2:

[!question]
For each of the following matrices, find the inverse or show that the matrix does not have an inverse.
(a) (6824)

(b) (210.90.5)

(c) (403086)

10 .6.3:

[!question]
Suppose we are given matrix A and vector v.

(a) If A is nonsingular, must there be a vector w such that Aw=v?

(b) If A is singular, can we conclude that there is no vector such that Aw=v?

10 .6.4:

[!question]
All of the entries of M and M1 are integers. Find all possible values of det(M).

10 .6.5:

[!question]
In ## Problem 10.41, we showed that if A and B are invertible, then (AB)1=B1A1. If A and B are invertible, then must we have (A+B)1=B1+A1?

10 .6.6:

[!question]
In ## Problem 10.18, we found that multiplying (xy) by the matrix (abba) corresponds to multiplying the complex number x+yi by a+bi. Find the matrix M such that multiplying (xy) by M corresponds to dividing x+yi by a+bi (assuming a and b are not both 0).

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x

Fatal error: Uncaught Error: Call to undefined function WP_Rocket\Dependencies\RocketLazyload\wpm_apply_filters_typed() in /www/wwwroot/scimagine.cc/wp-content/plugins/wp-rocket/inc/Dependencies/RocketLazyload/Image.php:562 Stack trace: #0 /www/wwwroot/scimagine.cc/wp-content/plugins/wp-rocket/inc/Dependencies/RocketLazyload/Image.php(50): WP_Rocket\Dependencies\RocketLazyload\Image->noscriptEnabled() #1 /www/wwwroot/scimagine.cc/wp-content/plugins/wp-rocket/inc/Engine/Media/Lazyload/Subscriber.php(343): WP_Rocket\Dependencies\RocketLazyload\Image->lazyloadImages() #2 /www/wwwroot/scimagine.cc/wp-includes/class-wp-hook.php(324): WP_Rocket\Engine\Media\Lazyload\Subscriber->lazyload() #3 /www/wwwroot/scimagine.cc/wp-includes/plugin.php(205): WP_Hook->apply_filters() #4 /www/wwwroot/scimagine.cc/wp-content/plugins/wp-rocket/inc/Engine/Optimization/Buffer/Optimization.php(100): apply_filters() #5 [internal function]: WP_Rocket\Engine\Optimization\Buffer\Optimization->maybe_process_buffer() #6 /www/wwwroot/scimagine.cc/wp-incl in /www/wwwroot/scimagine.cc/wp-content/plugins/wp-rocket/inc/Dependencies/RocketLazyload/Image.php on line 562