Math Iv Chapter 2
Math Iv Chapter 2
Introduction
Consider a system
a1 x + b1 y + c1 z = d1
a2 x + b2 y + c2 z = d2 (1)
a3 x + b3 y + c3 z = d3
AX = B,
where
a1 b1 c1 x d1
A = a2 b2 c2 , X = y and B = d2 .
a3 b3 c13 z d3
Here, a1 is called the first pivot and b20 , c20 , b30 , c30 , d20 , d20 are transformed elements.
Now take b20 as the pivot (b 0 2 6= o), then
a1 b1 c1 d1
b30
R 3 ⇒ R3 − 0 R2 ⇔ 0 b20 c20 d20 (4)
b2 00
0 0 c13 d300
Now, if c300 6= 0, from Equation (4). The given system of linear equation is
equivalent to
a1 x + b1 y + c1 z = d1
0 0 0
b2 y + c2 z = d2 (5)
00
00
c 3 z = d3 .
Using back substitution,
00
d
z = c300
3 0 00
0 00
y = b01c 00 d2 c3 − c2 d3 (6)
2 3
x = 10 00 d1 b 0 c 00 − b1 d 00 c 00 + b1 c 0 d 00 − b 0 c1 d 00
a b c 1 2 3
2 3 2 3 2 3 2 3
0 00
Note: This method fails if any one of the pivots a1 , b2 or c3 becomes zero.
In such case, by interchanging the rows we can get the non-zero pivots.
Example
Solve the system of equations
3x + y − z = 3
2x − 8y + z = −5 ,
x − 2y + 9z = 8
Solution
Solution Cont...
Now choosing − 26
3 as the pivot from the second column, we get
3 1 −1 3
7
R3 ⇒ R 3 − R2 ⇔ 0 − 26 3
5
3 −7
26 693 231
0 0 78 26
z = 1
∴ y =1
x =1
Exercise IV.1
Example
Solve the system of equations
10x + y + z = 12
2x + 10y + z = 13 by Gauss - Jordan method.
x + y + 5x = 7
Solution
Solution
( 1 0 420 421
R1 → R1 + 8R2
⇔ 0 1 58 59
R3 → R3 − 9R2 0 0 −473 −473
1 0 420 421
1
R3 → − R3 ⇔ 0 1 58 59
473
0 0 1 1
( 1 0 0 1
R1 → R1 − 420R3
⇔ 0 1 0 1
R2 → R2 − 58R3 0 0 1 1
Therefore, the system AX = B reduced to the form
x = 1
1 0 0 x 1
0 1 0 y = 1 ∴ y =1
0 0 1 z 1
z =1
Exercise IV.2
Introduction
Let |a1 | > |b1 | + |c1 |; |b2 | > |a2 | + |c2 |; |c3 | > |a3 | + |b3 |.
That is, in each equation the coefficients of diagonal terms are large. Hence
the system (8) is ready for iteration. Solving for x, y and z respectively, we
get
1
x = (d1 − b1 y − c1 z)
a1
1
y = (d2 − a2 x − c2 z) (8)
b2
1
z = (d3 − a3 x − b3 y )
c3
Example
8x − 3y + 2z = 20;
6x + 3y + 12z = 35;
4x + 11y − z = 33.
8x − 3y + 2z = 20;
4x + 11y − z = 33;
6x + 3y + 12z = 35.
Solution
So that the diagonal elements are dominant in the coefficient matrix. Now we
write the equations in the form
1
x = (20 + 3y − 2z)
8
1
y = (33 − 4x + z)
11
1
z = (35 − 6x − 3y ) (12)
12
We start from an approximations x0 = y0 = z0 = 0. Substituting these values on
RHS of equation (12). First approximation is given as:
1
x1 = (20 + 3y0 − 2z0 ) = 2.5
8
1
y1 = (33 − 4x0 + z0 ) = 3
11
1
z1 = (35 − 6x0 − 3y0 ) = 2.9166667
12
Solution
1
x2 = (20 + 3y1 − 2z1 ) = 2.895833
8
1
y2 = (33 − 4x1 + z1 ) = 2.3560606
11
1
z2 = (35 − 6x1 − 3y1 ) = 0.9166666
12
Third approximation: Substituting x2 , y2 , z2 on RHS of Equation (12), we get
1
x3 = (20 + 3y2 − 2z2 ) = 3.1543561
8
1
y3 = (33 − 4x2 + z2 ) = 2.030303
11
1
z3 = (35 − 6x2 − 3y2 ) = 0.8797348
12
Solution
Exercise IV.3
3x + 4y + 15z = 54.8;
x + 12y + 3z = 39.66;
10x + y − 2z = 7.74.
a1 x + b1 y + c1 z = d1
a2 x + b2 y + c2 z = d2
a3 x + b3 y + c3 z = d3 (13)
is written as
1
x = (d1 − b1 y − c1 z) (a)
a1
1
y = (d2 − a2 x − c2 z) (b)
b2
1
z = (d3 − a3 x − b3 y ) (c) (14)
c3
We start with the initial approximations x0 , y0 , z0 . Substituting y0 and z0 in
equation (a),
Jean Paul Nsabimana, Department
Simultaneous
of Linear
Mathematics
Algebraic
University
Equations of 2020
December 24, Rwanda Em
25 / 34
Simultaneous Linear Algebraic Equations Iterative Method
We get
1
x1 = (d1 − b1 y0 − c1 z0 ).
a1
Now substituting x = x1 , z = z0 in Equation (b), we get
1
y1 = (d2 − a2 x1 − c2 z0 ).
b2
1
z1 = (d3 − a3 x1 − b3 y1 ).
c3
This process is continued till the values of x, y , z are obtained to the desired
degree of accuracy. The general algorithm is as follows:
1
xk+1 = (d1 − b1 yk − c1 zk )
a1
1
yk+1 = (d2 − a2 xk+1 − c2 zk )
b2
1
zk+1 = (d3 − a3 xk+1 − b3 yk+1 ) (15)
c3
Since the current values of the unknowns at each stage of iteration are used in
proceeding to the next stage of iteration, this method is more rapid in
convergence than Gauss- Jacobi Method.
Example
8x − 3y + 2z = 20;
4x + 11y − z = 33;
6x + 3y + 12z = 35.
So that the diagonal elements are dominant in the coefficient matrix. Now we
write the equations in the form
1
x = (20 + 3y − 2z) (a)
8
1
y = (33 − 4x + z) (b)
11
1
z = (35 − 6x − 3y ) (c)
12
Solution
20
Putting y = 0, z = 0 in RHS of (a), we get x1 = 8 = 2.5. Putting
x = 2.5, z = 0 in RHS of (b), we get
1
y1 = (33 − 4(2.5)) = 2.0909091.
11
Putting x = 2.5, y = 2.0909091 in RHS of (c), we get
1
z1 = (35 − 6(2.5) − 3(2.0909091)) = 1.1439394.
12
For second approximation:
1
x2 = (20 + 3y1 − 2z1 ) = 2.9981061
8
1
y2 = (33 − 4x2 + z1 ) = 2.0137741
11
1
z2 = (35 − 6x2 − 3y2 ) = 0.9141701
12
Solution
Solution
Solution
x = 3.0167
y = 1.9858
z = 0.9118
We find that 12 iterations are necessary in Gauss - Jacobi method to get the
same accuracy as achieved by 7 iterations in Gauss - Seidel method.
Jean Paul Nsabimana, Department
Simultaneous
of Linear
Mathematics
Algebraic
University
Equations of 2020
December 24, Rwanda Em
32 / 34
Simultaneous Linear Algebraic Equations Iterative Method
Exercise IV.4
28x + 4y − z = 32
x + 3y + 10z = 24
2x + 17y + 4z = 35
10x − 2y − z − w = 3
−2x + 10y − z − w = 15
−x − y + 10z − 2w = 27
−x − y − 2z + 10w = −9
Exercise IV.4
2x + y + z = 4
x + 2y + z = 4
x + y + 2z = 4
(ii)
8x + y + z = 8
2x + 4y + z = 4
x + 3y + 5z = 5