Académique Documents
Professionnel Documents
Culture Documents
ENSC 21
Mathematical Methods in Engineering
Linear Algebra
Solutions to Systems of Linear Equations
An example of a system of linear equations:
𝑎1 𝑥 + 𝑏1 𝑦 + 𝑐1 𝑧 = 𝑑1
𝑎2 𝑥 + 𝑏2 𝑦 + 𝑐2 𝑧 = 𝑑2
𝑎3 𝑥 + 𝑏3 𝑦 + 𝑐3 𝑧 = 𝑑3
𝑎1 𝑏1 𝑐1 𝑑1
𝑎2 𝑏2 𝑐2 𝑑2
𝑎3 𝑏3 𝑐3 𝑑3
DES, UPLB
Solutions to Systems of Linear Equations
Row echelon form:
𝑒1 𝑓1 𝑔1 ℎ1
0 𝑓2 𝑔2 ℎ2
0 0 𝑔3 ℎ3
Reduced row echelon form (identity matrix):
𝑖1 0 0 𝑙1
0 𝑗2 0 𝑙2
0 0 𝑘3 𝑙3
DES, UPLB
Solutions to Systems of Linear Equations
The transition from the augmented matrix to the row echelon and then to the reduced
row echelon form or identity matrix is performed by applying elementary row operations
such as:
DES, UPLB
Solving Systems of Equations using Matrices
BASIC OPERATIONS
1. ADDITION/SUBTRACTION:
a b e f
Let A B
c d
g h
a b e f a e b f
A B
c d g h c g d h
2. MULTIPLICATION:
a b e f i
A B C
c d g h j
DES, UPLB
Solving Systems of Equations using Matrices
BASIC OPERATIONS
a b d b
4. ADJOINT: Let A c d The adjoint of A is adj A
c a
a b c
Let B d e f
g h i
The matrix of minors of B is The adjoint of B is
e f d f d e e f b c b c
h i
i
g i
g h
h i
e
f
h
b d f a c a c
c a c a b adjA
min B i g d f
h i
g
i
g
h
g i
d e a b a b
b c a c a b
h d e
f d f d e g
g h
e
Note the pattern of signs beginning with positive in the upper-left corner of the matrix. DES, UPLB
Solving Systems of Equations using Matrices
BASIC OPERATIONS
5. INVERSE MATRIX, A-1
A. Inverse of a 2x2 matrix
a b
Let A
c d
−1 1
𝑎 𝑏 𝑑 −𝑏
𝐴−1 = =
𝑐 𝑑 𝑎𝑑 − 𝑏𝑐 −𝑐 𝑎
DES, UPLB
Solving Systems of Equations using Matrices
CRAMER’S RULE
Steps:
1. Write the coefficient matrix of the system (A); if it is square, you may
continue, otherwise Cramer's rule is not applicable.
2. Compute the determinant of the coefficient matrix, |A|; if |A| is not zero
you may continue, otherwise Cramer's rule is not applicable.
3. Suppose the first variable of the system is x. Then write the matrix Ax
as follows: substitute the column of numbers to the right of the equal
signs instead of the first (from the left) column of A. Now compute the
determinant of Ax, that is |Ax|.
4. The value of x in the solution is now |Ax| / |A|.
DES, UPLB
Solving Systems of Equations using Matrices
CRAMER’S RULE
Steps:
1adj ( A)
A
det( A)
DES, UPLB
Solving Systems of Equations using Matrices
ROW REDUCTION : Gaussian/ Gauss-Jordan Elimination
Steps:
1. Interchange two rows.
2. Multiply one row by a nonzero number.
3. Add a multiple of one row to a different row.
DES, UPLB
Sample Problem:
Determine the value of 𝑥, 𝑦, and 𝑧 using:
a. Cramer’s rule
b. inverse matrix
c. using Gaussian elimination
d. using Gauss-Jordan elimination
8𝑥 − 7𝑦 + 10𝑧 = 15
2𝑥 + 3𝑦 + 8𝑧 = 7
-4𝑥 + 5𝑦 − 2𝑧 = −9
DES, UPLB
Sample Problems:
Solution:
DES, UPLB
Sample Problems:
Determine the value of 𝑥, 𝑦, and 𝑧 using:
a. using Cramer’s rule
The determinant of the coefficient matrix is
8 −7 10
𝐴 = 2 3 8 = 8 ∙ 3 ∙ −2 + −7 ∙ 8 ∙ −4 + 10 ∙ 2 ∙ 5
−4 5 −2 − −4 ∙ 3 ∙ 10 − 5 ∙ 8 ∙ 8 − (−2 ∙ 2 ∙ −7)
= 48
DES, UPLB
Sample Problems:
Determine the value of 𝑥, 𝑦, and 𝑧 using:
a. using Cramer’s rule
The determinant of 𝐴𝑥 is
15 −7 10
𝐴𝑥 = 7 3 8 = 15 ∙ 3 ∙ −2 + −7 ∙ 8 ∙ −9 + 10 ∙ 7 ∙ 5
−9 5 −2 − −9 ∙ 3 ∙ 10 − 5 ∙ 8 ∙ 15 − (−2 ∙ 7 ∙ −7)
= 336
𝐴𝑥 336
𝑥= = =7
𝐴 48
DES, UPLB
Sample Problems:
Determine the value of 𝑥, 𝑦, and 𝑧 using:
a. using Cramer’s rule
The determinant of 𝐴𝑦 is
8 15 10
𝐴𝑦 = 2 7 8 = 8 ∙ 7 ∙ −2 + 15 ∙ 8 ∙ −4 + 10 ∙ 2 ∙ −9
−4 −9 −2 − −4 ∙ 7 ∙ 10 − −9 ∙ 8 ∙ 8 − (−2 ∙ 2 ∙ 15)
= 144
𝐴𝑦 144
𝑦= = =3
𝐴 48 DES, UPLB
Sample Problems:
Determine the value of 𝑥, 𝑦, and 𝑧 using:
a. using Cramer’s rule
The determinant of 𝐴𝑧 is
8 −7 15
𝐴𝑧 = 2 3 7 = 8 ∙ 3 ∙ −9 + −7 ∙ 7 ∙ −4 + 15 ∙ 2 ∙ 5
−4 5 −9 − −4 ∙ 3 ∙ 15 − 5 ∙ 7 ∙ 8 − (−9 ∙ 2 ∙ −7)
= −96
𝐴𝑧 −96
𝑧= = = −2
𝐴 48 DES, UPLB
Sample Problems:
Determine the value of 𝑥, 𝑦, and 𝑧 using:
b. using inverse matrix
Let
8 −7 10 15
𝐴= 2 3 8 𝐵= 7
−4 5 −2 −9
DES, UPLB
Sample Problems:
Determine the value of 𝑥, 𝑦, and 𝑧 using:
b. using inverse matrix
The matrix of minors of A is The adjoint of 𝐴 is
3 8 2 8 2 3
− −46 36 −86
5 −2 −4 −2 −4 5 −46 −28 22
−7 10 8 10 8 −7
𝑚𝑖𝑛𝐴 = −
5 −2 −4 −2
−
−4 5
= 36 24 −12 a𝑑𝑗 A = −28 24 −44
−7 10 8 10 8 −7 −86 −44 38 22 −12 38
−
3 8 2 8 2 3
𝑅1 8 −7 10 15
𝑅2 2 3 8 7 𝑅2 - 𝑅2 /𝑅1 𝑐1 ∗ 𝑅1
𝑅3 −4 5 −2 −9 𝑅3 - 𝑅3 /𝑅1 𝑐1 ∗ 𝑅1
𝑅1 8 −7 10 15 8 −7 10 15
𝑅2 2 3 8 7 𝑅2 - 2/8 𝑐1 ∗ 𝑅1 0 19/4 11/2 13/4
𝑅3 −4 5 −2 −9 𝑅3 - −4 /8 𝑐1 ∗ 𝑅1 0 3/2 3 −3/2
Sample Problems:
Determine the value of 𝑥, 𝑦, and 𝑧 using:
c. using Gaussian elimination
𝑅1 8 −7 10 15 𝑅1 - 𝑅1 /𝑅2 𝑐2 ∗ 𝑅2
𝑅2 0 19/4 11/2 13/4
𝑅3 0 3/2 3 −3/2 𝑅3 - 𝑅3 /𝑅2 𝑐2 ∗ 𝑅2
24 𝑧 = −48 𝑧 = −2
19 19
19 𝑦 + 11 𝑧 = 13 𝑦=3
4 2 4
8𝑥 + 344 19 𝑧 = 376 19 𝑥=7 DES, UPLB
Sample Problems:
Determine the value of 𝑥, 𝑦, and 𝑧 using:
d. using Gauss-Jordan elimination
Continuing from the row echelon form to reduced row echelon form
𝑅1 8 0 344/19 376/19 𝑅1 - 𝑅1 /𝑅3 𝑐3 ∗ 𝑅3
𝑅2 0 19/4 11/2 13/4 𝑅2 - 𝑅2 /𝑅3 𝑐3 ∗ 𝑅3
𝑅3 0 0 24/19 −48/19
24
𝑅1 8 0 344/19 376/19 𝑅1 - (344 /
19 19 𝑐3
) ∗ 𝑅3 8 0 0 56
𝑅2 0 19/4 11/2 13/4 𝑅 - (11/24)𝑐 ∗ 𝑅 0 19/4 0 57/4
2 2 19 3 3
𝑅3 0 0 24/19 −48/19 0 0 24/19 −48/19
Sample Problems:
Determine the value of 𝑥, 𝑦, and 𝑧 using:
d. using Gauss-Jordan elimination
From the identity matrix, solve for the unknowns
𝑅1 8 0 0 56 Reduced
Row
𝑅2 0 19/4 0 57/4 Echelon
𝑅3 0 0 24/19 −48/19 Form
𝑅1 8 0 0 56 𝑅1 /8 1 0 0 7
19
𝑅2 0 19/4 0 57/4 𝑅 /
2 4 0 1 0 3
24
𝑅3 0 0 24/19 −48/19 𝑅 /
3 19 0 0 1 −2
Sample Problems:
Determine the value of 𝑥, 𝑦, and 𝑧 using:
d. using Gauss-Jordan elimination
From the identity matrix, solve for the unknowns
1 0 0 7 𝑥=7
0 1 0 3 𝑦=3
0 0 1 −2 𝑧 = −2
DES, UPLB