Numerical Method Sol of Eqns
Numerical Method Sol of Eqns
Numerical Method Sol of Eqns
++=
++=
++= ……..(1)
Step I. To eliminate x from second and third equations.
Assuming ≠ 0, we eliminate x from the second equation by subtracting (/)
times the first equation from the second equation. Similarly we eliminate x from
the third equation by eliminating (/) times the first equation from the third
equation. We thus, get the new system.
++=
+=
+=
……(2)
Here the first equation is called the pivotal equation and is called the first pivot.
Step II. To eliminate y from third equation in (2).
Assuming ≠ 0, we eliminate y from the third equation of (2), by subtracting ()
times the second equation from the third equation. We thus, get the new system.
++=
+=
=
…….(3)
Here the second equation is the pivotal equation and is the new pivot.
Step III. To evaluate the unknowns.
The values of z are found from the reduced system (3) by back substitution.
Example1. Apply gauss elimination method to solve the equations
x + 4y z = 5; x + y 6z = 12; 3x y z = 4.
3y 5z = 7 ……(iv)
13y + 2z = 19 ...…..(v)
Step II. To eliminate y, operate (v) (iv):
z= …….(vi)
Step III. By back-substitution, we get
From (vi): z = = 2.0845
Operate and 3 =
Operate =
Thus, we have z = 148/71 = 2.0845,
3y = 7 – 5z = 7 – 10.4225 = 3.4225 i.e., y = 1.1408
and x = 5 – 4 y + z = 5 + 4 (1.1408) + 2.0845 = 1.6479
Hence x = 1.6479, y = 1.1408, z = 2.0845.
Problem 1. Solve 10x – 7y + 3z + 5u = 6, -6x + 8y – z – 4u = 5, 3x + y + 4z +11u
=2, 5x – 9y – 2z + 4u = 7 by Gauss elimination method.
• Thus, in this method, the labour of back-substitution for finding the unknowns
is saved at the cost of additional calculation.
Example1. Apply gauss-Jordan method to solve the equations x + y + z = 9;
2x – 3y + 4z = 13; 3x + 4y + 5z = 40.
Sol. We have x+y+z=9 …..(i)
2x – 3y + 4z = 13 ….(ii)
3x + 4y + 5z = 40 ….(iii)
Step I. To eliminate x from (ii) and (iii), operate (ii) – 2(i) and (iii) – 3(i):
x+y+z=9 …..(iv)
– 5y + 2z = -5 …..(v)
y + 2z = 13 …..(vi)
Step II. To eliminate y from (iv) and (vi), operate (iv) + (v) and (vi) + (v):
x+ z=8 …..(vii)
– 5y + 2z = – 5 …..(viii)
z = 12 …..(ix)
Step III. To eliminate z from (vii) and (viii), operate (vii) - (ix) and (viii) - (ix):
x=1
– 5y = – 15
z = 12
Hence the solution is x = 1, y = 3, z = 5.
Otherwise: Rewriting the equations as =
Operate – – =
Operate + =
Operate 5 =
Operate + , =
Operate =
Operate - - =
Hence x = 1, y = 3, z = 5.
Obs. Here the process of elimination of variables amounts to reducing the given
coefficient metric to a diagonal matrix by elementary row transformations
only.
(3) becomes LV = B
which is equivalent to the equations , + = , ++ = .
Solving these for we know V. Then, (4) becomes
++= , += , = ,
from which , , and can be found by back-substitution.
To compute the matrices L and U, we write (2) as
Multiplying the matrices on the left and equating corresponding elements from
both sides, we obtain
(i) = , =, =
(ii) = or = /; =
or = /
(iii) + = or = = or,
=
+ = or =
(iv) = or
……(1)
If are large as compared to other coefficients, solve for x, y, z respectively. Then the
system can be written as
…….(2)
Let us start with the initial approximations for the values of x, y, z respectively.
Substituting these on the right sides of (2), the first approximations are given by
Substituting the values on the right sides of (2), the second approximations are
given by
x= ………..(i)
y= ………..(ii)
z= ………..(iii)
First iteration
Putting y = , z = in (i), we get
Putting x = , z = in (ii), we have
Putting x = , y = in (iii), we obtain
Second iteration
Putting y = , z = in (i), we get
Putting x = , z = in (ii), we obtain
Putting x = , y = in (iii), we get
Third iteration, we get
The values in the 2nd and 3rd iteration being practically the same, we can stop.
Problem 1.: Solve the equations 27x + 6y z = 85, x + y + 54z = 110; 6x + 15y + 2z = 72
by Gauss-Jacobi method and Gauss-Seidel method.