Professional Documents
Culture Documents
Direct Method 1. by Elimination: Combine 1 and 2 Equations To Eliminate Z
Direct Method 1. by Elimination: Combine 1 and 2 Equations To Eliminate Z
Direct Method 1. by Elimination: Combine 1 and 2 Equations To Eliminate Z
x – 3y + 2 z = 11
2. 2x + y – 4z = -9
3. 3x – 2y + z = 11
A. Direct Method
1. By Substitutution and Elimination
2. Cramers Rule
3. Inverse
4. Gaussian Elimination
5. Gauss-Jordan
6. LU Factorization
B. Indirect Method
1. Gauss Seidel
2. Jacobi Method
DIRECT METHOD
1. By Elimination
x – 3y + 2z = 11 1st equation
2x + y – 4z = -9 2nd equation
3x – 2y + z = 11 3rd equation
Substitute the values of x and y to any of the 3 original equation to solve for z.
Using 1st equation Using 2nd equation Using 3rd equation
x – 3y + 2 z = 11 2x + y – 4z = -9 3x – 2y + z = 11
2 – 3(-1) + 2 z = 11 2(2) + (-1) – 4z = -9 3(2) – 2(-1) + z = 11
2z = 11 – 2 - 3 4z = 4 -1 + 9 z = 11 – 6 – 2
z=3 value of z z=3 value of z z=3 value of z
By Substitution
x – 3y + 2z = 11 1st equation
2x + y – 4z = -9 2nd equation
3x – 2y + z = 11 3rd equation
Substitute the revised 1st equation to 2nd equation and solve the value of y in terms of z
2x + y – 4z = -9 2nd equation
2(3y - 2z +11) + y – 4z = -9
6y – 4z + 22 + y – 4z = -9
7y = - 31 + 8z 4th equation
Substitute the revised 1st equation to 3rd equation and solve the value of y in terms of z
3x – 2y + z = 11
3(3y - 2z +11) – 2y + z = 11
9y – 6z + 33 – 2y + z = 11
7y = -22 + 5z 5th equation
Substitute the values of y and z to any of the 3 original equations to solve for x
Using 1st equation Using 2nd equation Using 3rd equation
x – 3y + 2 z = 11 2x + y – 4z = -9 3x – 2y + z = 11
x – 3(-1) + 2(3) = 11 2x + (-1) – 4(3) = -9 3x – 2(-1) + (3) = 11
x = 11 – 3 - 6 2x = - 9 + 1 + 12 3x = 11 – 2 - 3
x=2 value of x x=2 value of x x=2 value of x
2. Cramer’s Rule
x – 3y + 2z = 11 1st equation
2x + y – 4z = -9 2nd equation
3x – 2y + z = 11 3rd equation
Dx Dy Dz
x y z
D D D
Dx 42
therefore x 2 value of x
D 21
Solve for Dy by substituting the constants to values of y
1 11 2 1 11
2 9 4 2 9 note: all going down are + and all going up are -
3 11 1 3 11
Dy 21
Therefore y 1 value of y
D 21
Dz 63
therefore z 3 value of z
D 21
INDIRECT METHOD
1. Gauss Seidel
x – 3y + 2z = 11 1st equation
2x + y – 4z = -9 2nd equation
3x – 2y + z = 11 3rd equation
1 3 2
2 1 4
3 2 1
Not possible because the rule is to set the principal diagonal to be dominant. That is to
have a coefficient greater than the sum of the other two coefficients therefore revised the
order of equation if possible or combine any of the two equation to form another
equation that will satisfy the rule.
3x – 2y + z = 11 3rd equation
x – 3y + 2z = 11 1st equation
2x + y – 4z = -9 2nd equation
3 2 1
1 3 2
2 1 4