Service for Solving Linear Programming Problems

and other interesting typical problems
Ðóññêèé

Example ¹2. Finding the Inverse of a 3x3 Matrix

This solution was made using the calculator presented on the site.
It is necessary to calculate a matrix A-1, inverse to the given one:
A = 1 3 1
2 2 1
-1 -1 2
Formula for calculating the inverse matrix:
A-1 = 1 / det A * A11 A21 A31
A12 A22 A32
A13 A23 A33
A11 ... A33  are numbers (algebraic additions) that will be calculated later.
It is impossible to divide by zero. Therefore, if the determinant of A is zero, then it is impossible to calculate inverse matrix.
Let's calculate the determinant A.
det A = 1 3 1 =
2 2 1
-1 -1 2
The elements of row 3 multiplied by 2 are added to the corresponding elements of row 2.   more info
1 3 1
2 + ( -1) * 2 2 + ( -1) * 2 1 + 2 * 2
-1 -1 2
This elementary transformation does not change the value of the determinant.
= 1 3 1 =
0 0 5
-1 -1 2
Expand the determinant along the row 2.   more info
1 3 1
0 0 5
-1 -1 2
Row number 2
Column number 1
Element Row 2 and column 1
have been deleted
( -1) 2 + 1 * 0 *
3 1
-1 2
1 3 1
0 0 5
-1 -1 2
Row number 2
Column number 2
Element Row 2 and column 2
have been deleted
( -1) 2 + 2 * 0 *
1 1
-1 2
1 3 1
0 0 5
-1 -1 2
Row number 2
Column number 3
Element Row 2 and column 3
have been deleted
( -1) 2 + 3 * 5 *
1 3
-1 -1
Products are summed. If the element is zero than product is zero too.
= ( -1) 2 + 3 * 5 * 1 3 =
-1 -1
= - 5 * 1 3 =
-1 -1
= - 5 * ( 1 * ( -1) - 3 * ( -1) ) =
= - 5 * ( -1 + 3 ) =
= -10
Determinant A is not zero. It is possible to calculate inverse matrix.
Let's calculate numbers (algebraic additions)   A11 ... A33
1 3 1
2 2 1
-1 -1 2
Row number 1
Column number 1
Row 1 and column 1
have been deleted
A11 = ( -1) 1 + 1 *
2 1 =
-1 2
= 2 * 2 - 1 * ( -1) = 4 + 1 = 5
1 3 1
2 2 1
-1 -1 2
Row number 1
Column number 2
Row 1 and column 2
have been deleted
A12 = ( -1) 1 + 2 *
2 1 =
-1 2
= - ( 2 * 2 - 1 * ( -1) ) = - (4 + 1) = -5
1 3 1
2 2 1
-1 -1 2
Row number 1
Column number 3
Row 1 and column 3
have been deleted
A13 = ( -1) 1 + 3 *
2 2 =
-1 -1
= 2 * ( -1) - 2 * ( -1) = -2 + 2 = 0
1 3 1
2 2 1
-1 -1 2
Row number 2
Column number 1
Row 2 and column 1
have been deleted
A21 = ( -1) 2 + 1 *
3 1 =
-1 2
= - ( 3 * 2 - 1 * ( -1) ) = - (6 + 1) = -7
1 3 1
2 2 1
-1 -1 2
Row number 2
Column number 2
Row 2 and column 2
have been deleted
A22 = ( -1) 2 + 2 *
1 1 =
-1 2
= 1 * 2 - 1 * ( -1) = 2 + 1 = 3
1 3 1
2 2 1
-1 -1 2
Row number 2
Column number 3
Row 2 and column 3
have been deleted
A23 = ( -1) 2 + 3 *
1 3 =
-1 -1
= - ( 1 * ( -1) - 3 * ( -1) ) = - (-1 + 3) = -2
1 3 1
2 2 1
-1 -1 2
Row number 3
Column number 1
Row 3 and column 1
have been deleted
A31 = ( -1) 3 + 1 *
3 1 =
2 1
= 3 * 1 - 1 * 2 = 3 - 2 = 1
1 3 1
2 2 1
-1 -1 2
Row number 3
Column number 2
Row 3 and column 2
have been deleted
A32 = ( -1) 3 + 2 *
1 1 =
2 1
= - ( 1 * 1 - 1 * 2 ) = - (1 - 2) = 1
1 3 1
2 2 1
-1 -1 2
Row number 3
Column number 3
Row 3 and column 3
have been deleted
A33 = ( -1) 3 + 3 *
1 3 =
2 2
= 1 * 2 - 3 * 2 = 2 - 6 = -4
Result:
A-1 = 1 / det A * A11 A21 A31
A12 A22 A32
A13 A23 A33
A-1 = 1 / ( -10) * 5 -7 1
-5 3 1
0 -2 -4
A-1 = -1/2 7/10 -1/10
1/2 -3/10 -1/10
0 1/5 2/5
It is necessary to check that   A-1 * A = E.
We will use the penultimate form of the inverse matrix A-1. This will allow us to count without fractions.
5 -7 1
-5 3 1
0 -2 -4
*
1 3 1
2 2 1
-1 -1 2
=
b11 b12 b13
b21 b22 b23
b31 b32 b33
b11 = 5 * 1 + ( -7) * 2 + 1 * ( -1) = 5 - 14 - 1 = -10
5 -7 1
-5 3 1
0 -2 -4
*
1 3 1
2 2 1
-1 -1 2
=
-10 b12 b13
b21 b22 b23
b31 b32 b33
b12 = 5 * 3 + ( -7) * 2 + 1 * ( -1) = 15 - 14 - 1 = 0
5 -7 1
-5 3 1
0 -2 -4
*
1 3 1
2 2 1
-1 -1 2
=
-10 0 b13
b21 b22 b23
b31 b32 b33
b13 = 5 * 1 + ( -7) * 1 + 1 * 2 = 5 - 7 + 2 = 0
5 -7 1
-5 3 1
0 -2 -4
*
1 3 1
2 2 1
-1 -1 2
=
-10 0 0
b21 b22 b23
b31 b32 b33
b21 = -5 * 1 + 3 * 2 + 1 * ( -1) = -5 + 6 - 1 = 0
5 -7 1
-5 3 1
0 -2 -4
*
1 3 1
2 2 1
-1 -1 2
=
-10 0 0
0 b22 b23
b31 b32 b33
b22 = -5 * 3 + 3 * 2 + 1 * ( -1) = -15 + 6 - 1 = -10
5 -7 1
-5 3 1
0 -2 -4
*
1 3 1
2 2 1
-1 -1 2
=
-10 0 0
0 -10 b23
b31 b32 b33
b23 = -5 * 1 + 3 * 1 + 1 * 2 = -5 + 3 + 2 = 0
5 -7 1
-5 3 1
0 -2 -4
*
1 3 1
2 2 1
-1 -1 2
=
-10 0 0
0 -10 0
b31 b32 b33
b31 = 0 * 1 + ( -2) * 2 + ( -4) * ( -1) = 0 - 4 + 4 = 0
5 -7 1
-5 3 1
0 -2 -4
*
1 3 1
2 2 1
-1 -1 2
=
-10 0 0
0 -10 0
0 b32 b33
b32 = 0 * 3 + ( -2) * 2 + ( -4) * ( -1) = 0 - 4 + 4 = 0
5 -7 1
-5 3 1
0 -2 -4
*
1 3 1
2 2 1
-1 -1 2
=
-10 0 0
0 -10 0
0 0 b33
b33 = 0 * 1 + ( -2) * 1 + ( -4) * 2 = 0 - 2 - 8 = -10
5 -7 1
-5 3 1
0 -2 -4
*
1 3 1
2 2 1
-1 -1 2
=
-10 0 0
0 -10 0
0 0 -10
It is necessary to multiply the result by -1/10
-1/10 * -10 0 0
0 -10 0
0 0 -10
=
1 0 0
0 1 0
0 0 1
= E
Thus, the found matrix A-1 is inverse for the given matrix A.






© 2010-2024

If you have any comments, please write to matematika1974@yandex.ru