Download Use Inverse Matrices to Solve Linear Systems

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Use Inverse Matrices to
Solve Linear Systems
Chapter 3.8
Square Matrix
β€’ Although a matrix may have any number of rows and columns, square
matrices have properties that we can use to solve systems of equations
β€’ A square matrix is one of the form 𝑛 × π‘›, where n is a positive whole
number
β€’ That is, the number of rows equals the number of columns
β€’ Like the real numbers, square matrices have a special matrix called the
identity matrix
β€’ In the same way that, for the real numbers, 1 β‹… π‘Ž = π‘Ž, if I is an identity
matrix and A is a square matrix of the same dimensions, 𝐼𝐴 = 𝐴
Square Matrix
β€’ Each size of square matrix has its own identity matrix
β€’ For 2 × 2 matrices, the identity matrix is
1 0
0 1
β€’ For 3 × 3 matrices, the identity matrix is
1 0 0
0 1 0
0 0 1
β€’ For any other square matrix, the identity matrix has 1’s in the left-toright diagonal and 0’s everywhere else
Square Matrix
1
Multiply 0
4
3
2
2
βˆ’1
1 0
5 β‹… 0 1
0 0
1
0
0 =
1
1 β‹… 1 + 3 β‹… 0 + βˆ’1 β‹… 0 1 β‹… 0 + 3 β‹… 1 + βˆ’1 β‹… 0
0β‹…1+2β‹…0+5β‹…0
0β‹…0+2β‹…1+5β‹…0
4β‹…1+2β‹…0+1β‹…0
4β‹…0+2β‹…1+1β‹…0
1 β‹… 0 + 3 β‹… 0 + βˆ’1 β‹… 1
0β‹…0+2β‹…0+5β‹…1 =
4β‹…0+2β‹…0+1β‹…1
1 + 0 + 0 0 + 3 + 0 0 + 0 + (βˆ’1)
1
0+0+0 0+2+0
0+0+5 = 0
4+0+0 0+2+0
0 + 0 + _1
4
3 βˆ’1
2 5
2 1
Inverse Matrix
β€’ Recall that, among the real numbers, for every non-zero number a
1
1
there is another number so that π‘Ž β‹… = 1
π‘Ž
π‘Ž
β€’ Suppose that A and B represent 𝑛 × π‘› matrices and that I is the 𝑛 × π‘›
identity matrix
β€’ If 𝐴𝐡 = 𝐼, then B is the inverse of A (or A is the inverse of B)
Example
3 8
βˆ’5 8
β€’ Suppose that 𝐴 =
and 𝐡 =
2 5
2 βˆ’3
β€’ The product 𝐴𝐡 is
3 8 βˆ’5 8
3 β‹… βˆ’5 + 8 β‹… 2 3 β‹… 8 + 8 β‹… βˆ’3
β€’
β‹…
=
=
2 5
2 βˆ’3
2 β‹… βˆ’5 + 5 β‹… 2 2 β‹… 8 + 5 β‹… βˆ’3
1 0
βˆ’15 + 16 24 βˆ’ 24
β€’
=
βˆ’10 + 10 16 βˆ’ 15
0 1
β€’ The result is the 2 × 2 identity matrix, so that 𝐴 is the inverse of 𝐡
β€’ We write the inverse of a matrix A as π΄βˆ’1 , so 𝐡 = π΄βˆ’1
Inverse Matrix
β€’ Recall that we use the inverse of a number to solve equations
1
2
1
2
β€’ If 2π‘₯ = 10, then multiplying both sides β‹… 2π‘₯ = β‹… 10
1β‹…π‘₯ =5
π‘₯=5
Inverse Matrix
β€’ In the same way, the inverse of a matrix can be used to solve a matrix
equation
𝐴𝑋 = 𝐡
π΄βˆ’1 𝐴𝑋 = π΄βˆ’1 𝐡
𝐼𝑋 = π΄βˆ’1 𝐡
𝑋 = π΄βˆ’1 𝐡
β€’ Note that we must pay attention to the order of the multiplication
β€’ Since we multiplied to the left of 𝐴𝑋, we must also multiply to the left
of 𝐡
Calculating the Inverse of a Matrix
π‘Ž
β€’ Given 𝐴 =
𝑐
of A is
𝑏
, where π‘Ž, 𝑏, 𝑐, and 𝑑 are real numbers, the inverse
𝑑
𝑑 βˆ’π‘
β€’
=
βˆ’π‘ π‘Ž
β€’ Note that his can only make sense if π‘Žπ‘‘ βˆ’ 𝑏𝑐 β‰  0
β€’ What this means is that not every square matrix has an inverse
π΄βˆ’1
1
π‘Žπ‘‘βˆ’π‘π‘
Example
3 8
Find the inverse of 𝐴 =
.
2 5
Follow the pattern of
2, and 𝑑 = 5.
π΄βˆ’1
1
3β‹…5βˆ’8β‹…2
5
βˆ’2
The inverse is
=
1
π‘Žπ‘‘βˆ’π‘π‘
𝑑
βˆ’π‘
βˆ’π‘
. Then, π‘Ž = 3, 𝑏 = 8, 𝑐 =
π‘Ž
1
βˆ’8
5 βˆ’8
βˆ’5
=
=
βˆ’1
3
βˆ’2 3
2
8
βˆ’3
Guided Practice
Find the inverse of the matrix.
βˆ’3 βˆ’4
1.
βˆ’1 βˆ’2
2.
βˆ’1
βˆ’4
3.
6 1
2 4
5
8
Guided Practice
Find the inverse of the matrix.
1.
2.
3.
βˆ’3 βˆ’4 βˆ’3 βˆ’4
;
βˆ’1 βˆ’2 βˆ’1 βˆ’2
βˆ’1 5 βˆ’1
;
βˆ’4 8 βˆ’4
5
8
6 1 6 1
;
2 4 2 4
βˆ’1
βˆ’1
=
=
βˆ’1
=
1
βˆ’3β‹…βˆ’2βˆ’ βˆ’4 β‹…βˆ’1
1
βˆ’1β‹…8βˆ’5β‹…βˆ’4
1
6β‹…4βˆ’2β‹…1
4
βˆ’2
βˆ’1 2
1 βˆ’2
βˆ’2 4
4
=
= 1 βˆ’3
2
1 βˆ’3
1 βˆ’3
2
2
1 8
8 βˆ’5
=
12 4
4 βˆ’1
βˆ’5
=
βˆ’1
1
βˆ’1
4 βˆ’1
=
=
22 βˆ’2
6
6
2
3
1
3
2
11
βˆ’1
11
βˆ’5
12
βˆ’1
12
βˆ’1
22
3
11
Solving a Matrix Equation
β€’ To solve a matrix equation, we must find an inverse that will cancel
the coefficient matrix
β€’ If A, B, and X are matrices such that 𝐴𝑋 = 𝐡, then A is the coefficient
matrix and to solve for X we use the inverse of A
β€’ Note that this is similar to finding the inverse (or reciprocal) of real
number a in order to solve the equation π‘Žπ‘₯ = 𝑏
β€’ Once the inverse is found, multiply
π΄βˆ’1 β‹… 𝐴𝑋 = π΄βˆ’1 𝐡
𝐼𝑋 = π΄βˆ’1 𝐡
𝑋 = π΄βˆ’1 𝐡
Solving a Matrix Equation
Example
Solve the matrix equation 𝐴𝑋 = 𝐡 for the 2 × 2 matrix X.
2 βˆ’7
βˆ’21 3
𝐴=
,𝐡 =
βˆ’1 4
12 βˆ’2
2 βˆ’7
βˆ’21 3
𝑋=
βˆ’1 4
12 βˆ’2
How do we know that X must be a 2 × 2 matrix?
Solving a Matrix Equation
First, find the inverse of A
π΄βˆ’1
2 βˆ’7
=
βˆ’1 4
βˆ’1
1 4
=
1 1
1
4
=
2 β‹… 4 βˆ’ βˆ’7 β‹… βˆ’1 1
7
4
=
2
1
7
2
7
2
Solving a Matrix Equation
Next, multiply both sides of the matrix equation on the left
4
1
π΄βˆ’1 𝐴π‘₯ = π΄βˆ’1 𝐡
7 2 βˆ’7
4 7 βˆ’21
𝑋=
2 βˆ’1 4
1 2 12
4 β‹… βˆ’21 + 7 β‹… 12
1 0
𝑋=
1 β‹… βˆ’21 + 2 β‹… 12
0 1
𝑋=
0
3
βˆ’2
βˆ’1
3
βˆ’2
4 β‹… 3 + 7 β‹… βˆ’2
1 β‹… 3 + 2 β‹… βˆ’2
Solving a Matrix Equation
Check your answer.
2 βˆ’7 0 βˆ’2
=
βˆ’1 4 3 βˆ’1
2 β‹… 0 + βˆ’7 β‹… 3
βˆ’1 β‹… 0 + 4 β‹… 3
βˆ’21
12
2 β‹… βˆ’2 + βˆ’7 β‹… βˆ’1
=
βˆ’1 β‹… βˆ’2 + 4 β‹… βˆ’1
3
=𝐡
βˆ’2
Guided Practice
Solve the matrix equation
βˆ’4
0
1
8
𝑋=
6
24
9
6
Guided Practice
Solve the matrix equation
βˆ’4
0
1
8
𝑋=
6
24
The inverse is
1
βˆ’1 6
6 βˆ’1
=
βˆ’4 β‹… 6 + 1 β‹… 0 0 βˆ’4
24 0
9
6
1
βˆ’
βˆ’1
4
=
βˆ’4
0
1
24
1
6
Guided Practice
Multiply both sides of the equation by the inverse (on the left)
1 1
1 1
βˆ’
βˆ’
βˆ’4
1
4 24
4 24 8 9
𝑋=
1
1 24 6
0 6
0
0
6
6
Since the multiplication on the left is I, we have
1 1
βˆ’
4 24 8 9
𝑋=
1 24 6
0
6
Guided Practice
You may use you calculator to perform the final multiplication
1
βˆ’
4
𝑋=
0
1
24 8
1 24
6
βˆ’2
𝑋=
4
βˆ’2
1
9
6
Inverse of a 3 × 3 Matrix
β€’ The inverse of a 3 × 3 matrix can be calculated by hand, but the
calculation is lengthy, so you will use your calculator
β€’ To do this, enter the element values, then raise the matrix to the βˆ’1
power
β€’ Use the Math button to display the result with fraction values
Guided Practice
Use your calculator
to find the inverse of the matrix. Check your result by
βˆ’1
multiplying 𝐴 β‹… 𝐴 .
1.
2 βˆ’2 0
2
0 βˆ’2
12 βˆ’4 βˆ’6
2.
βˆ’3
1
5
3.
2
5
4
4 5
5 0
2 2
1 βˆ’2
3 0
3 8
Guided Practice
Use your calculator to find the inverse of the matrix. Check your result
by multiplying 𝐴 β‹… π΄βˆ’1 .
1.
2
2
12
βˆ’2 0
2
0 βˆ’2 ; 2
βˆ’4 βˆ’6 12
βˆ’2 0
0 βˆ’2
βˆ’4 βˆ’6
3
βˆ’
2
3
βˆ’
2
3
βˆ’
2
βˆ’1
βˆ’2
βˆ’1
βˆ’1
=
1
2
1
2
1
2
Guided Practice
Use your calculator to find the inverse of the matrix. Check your result
by multiplying 𝐴 β‹… π΄βˆ’1 .
2.
βˆ’3
1
5
4 5 βˆ’3
5 0; 1
2 2
5
4 5
5 0
2 2
βˆ’1
=
10
βˆ’
153
2
153
23
153
2
βˆ’
153
31
153
26
βˆ’
153
25
153
5
βˆ’
153
19
153
Guided Practice
Use your calculator to find the inverse of the matrix. Check your result
by multiplying 𝐴 β‹… π΄βˆ’1 .
3.
2
5
4
1 βˆ’2 2
3 0 ; 5
3 8
4
1 βˆ’2
3 0
3 8
βˆ’1
12
= βˆ’20
3
2
βˆ’7
12
βˆ’1
3
βˆ’5
1
2
Solve Linear Systems With a Matrix Equation
β€’ Multiply the matrices on the left
2
1
βˆ’3 π‘₯
19
β‹… 𝑦 =
βˆ’7
4
Solve Linear Systems With a Matrix Equation
β€’ Multiply the matrices on the left
2 βˆ’3 π‘₯
19
β‹… 𝑦 =
βˆ’7
1 4
The result is a system of equations in two variables:
2π‘₯ βˆ’ 3𝑦 = 19
π‘₯ + 4𝑦 = βˆ’7
Solve Linear Systems With a Matrix Equation
β€’ We can solve systems of equations by converting the system into a
matrix equation
β€’ We can then solve the system in one step by multiplying both sides of
the equation by the inverse of the square matrix
β€’ Example: Use an inverse matrix to solve the linear system.
2π‘₯ βˆ’ 3𝑦 = 19
π‘₯ + 4𝑦 = βˆ’7
Solve Linear Systems With a Matrix Equation
2π‘₯ βˆ’ 3𝑦 = 19
π‘₯ + 4𝑦 = βˆ’7
Use the coefficients of the equations to form a matrix
2 βˆ’3
1 4
π‘₯
Multiply this by the 2 × 1 matrix 𝑦
2
1
βˆ’3 π‘₯
4 𝑦
Solve Linear Systems With a Matrix Equation
π‘₯
Multiply this by the 2 × 1 matrix 𝑦
2 βˆ’3 π‘₯
1 4 𝑦
Set this equal to the 2 × 1 matrix made using the constants
2
1
βˆ’3 π‘₯
19
=
βˆ’7
4 𝑦
Solve Linear Systems With a Matrix Equation
2 βˆ’3 π‘₯
19
=
βˆ’7
1 4 𝑦
Solve the equation by multiplying both sides by the inverse of the
square matrix. You may use your calculator to find the inverse.
4
11
1
βˆ’
11
3
11 2
2 1
11
4
3
βˆ’3 π‘₯
19
11
11
=
𝑦
1
2 βˆ’7
4
βˆ’
11 11
Solve Linear Systems With a Matrix Equation
4
11
1
βˆ’
11
3
11 2
2 1
11
4
3
βˆ’3 π‘₯
11 11 19
=
1
2 βˆ’7
4 𝑦
βˆ’
11 11
4
π‘₯
11
=
𝑦
1
βˆ’
11
3
11 19 = 5
2 βˆ’7
βˆ’3
11
Guided Practice
Use an inverse matrix to solve the linear system.
4π‘₯ + 𝑦 = 10
1.
3π‘₯ + 5𝑦 = βˆ’1
2.
2π‘₯ βˆ’ 𝑦 = βˆ’6
6π‘₯ βˆ’ 3𝑦 = βˆ’18
3.
3π‘₯ βˆ’ 𝑦 = βˆ’5
βˆ’4π‘₯ + 2𝑦 = 8
Guided Practice
Use an inverse matrix to solve the linear system.
4π‘₯ + 𝑦 = 10
1.
; π‘₯ = 3, 𝑦 = βˆ’2
3π‘₯ + 5𝑦 = βˆ’1
2.
2π‘₯ βˆ’ 𝑦 = βˆ’6
; infinite solutions
6π‘₯ βˆ’ 3𝑦 = βˆ’18
3.
3π‘₯ βˆ’ 𝑦 = βˆ’5
; π‘₯ = βˆ’1, 𝑦 = 2
βˆ’4π‘₯ + 2𝑦 = 8
Guided Practice
Use an inverse matrix to solve the linear system.
3π‘₯ βˆ’ 7𝑦 + 5𝑧 = βˆ’32
2π‘₯ + 3𝑦 + 4𝑧 = βˆ’8
1.
βˆ’3π‘₯ + 4𝑦 + 2𝑧 = 5
2.
2π‘₯ + 3𝑦 = βˆ’2
5π‘₯ βˆ’ 3𝑦 + 2𝑧 = 10
5𝑦 + 3𝑧 = βˆ’19
Exercise 3.8
β€’ Handout
Related documents