Unit 2
Unit 2
Mathematics-III [BT-301]
0000000
Subject Notes
Contents
Numerical Differentiation, Numerical integration:
TrapezoidalruleandSimpson’s1/3rdand3/8rules.SolutionofSimultaneousLinearAlgebraic equations
byGauss’s Elimination,Gauss’s Jordan, Crout’smethods,Jacobi’s,Gauss-Seidal,and Relaxation
method.
NumericalDifferentiation
[A] Derivative at any point :- The general method of numerical differentiation of a function
consists in obtaining an explicit analytical relation 𝑦 = 𝑓 𝑥 with the help of an interpolation
formula ,and then differentiating 𝑦 with respect to 𝑥 as many times as required.
Let the function 𝑦 = 𝑓 𝑥 be obtained by the Newton Gregory’s forward interpolation formula
Mathematics-III [BT-301]
0000000
Subject Notes
𝑑2𝑦
The second derivative𝑑𝑥 2 may be determined by differentiating (2) with respect to 𝑥
𝑑2 𝑦 1 2 3
6𝑢2 − 18𝑢 + 11 4 2𝑢3 − 12𝑢2 + 21𝑢 − 10 5
= [∆ 𝑦0 + 𝑢 − 1 ∆ 𝑦0 + ∆ 𝑦0 + ∆ 𝑦0
𝑑𝑥 2 h2 12 12
+ ⋯….]
Example: A rod is rotating in a plane about one of it’s ends .If the following table gives the
angle 𝜃 radians throughh ,which the rod has turned for different values of time 𝑡 seconds,
find it’s angular velocity and angular acceleration ,when 𝑡 = 0.7 second.
𝑡 seconds 𝜽 radians ∆𝜽 ∆𝟐 𝜽 ∆𝟑 𝜽 ∆𝟒 𝜽 ∆𝟓 𝜽
0.0 0.0 0.12
0.2 0.12 0.36 0.24 0.02 0.00 0.00
0.4 0.48 0.62 0.26 0.02 0.00
0.6 1.10 0.90 0.28 0.02
0.8 2.0 1.20 0.30
1.0 3.20
dθ
Then the angular velocity dt is
𝑡−𝑡 0 𝑡−0.0
Where 𝑢 = = = 5𝑡
h, 0.2
𝑑2𝜃
The angular acceleration is obtained with the help of equation (1),
𝑑𝑡 2
Chameli Devi Group of Institutions, Indore
Mathematics-III [BT-301]
000000
Subject Notes
𝑑2 𝜃 1 2 2 6𝑢 − 6 3 du 1 2
2
= 0 + ∆ 𝜃0 + ∆ 𝜃0 = 2
[∆ 𝜃0 + 𝑢 − 1 ∆3 𝜃0 ]
𝑑𝑡 h 2! 3! dt h
𝑑2𝜃 1
= 0.24 + 3.5 − 1 0.02 = 7.25 radianper𝑠𝑒𝑐𝑜𝑛𝑑 2 .
𝑑𝑡 2 (0.2)2
[B]Derivative at tabulated points: -In particular case, when the derivatives are required at one
of the tabulated points 𝑥0 , , 𝑦0 , , 𝑥1 , , 𝑦1 , … … … … … . 𝑥𝑛 , , 𝑦𝑛 , and not at the intermediate
points, the following formula may be used with advantage.
𝑑
If 𝐷 denotes the differential operator 𝑑𝑥 and ∆ is the difference operator defined by∆𝑓 𝑥 =
𝑓 𝑥 + − 𝑓 𝑥 ,then there holds the operational relation
𝐷 = 𝑙𝑜𝑔 1 + ∆
1 1 1
i.e.𝐷 ≡ [∆ − 2 ∆2 + 3 ∆3 − ⋯ … … . ]
Where,
is the interval between any two successive values of 𝑥 ,at which the values of y are
1 11 5
prescribed.Similarly,𝐷2 ≡ h 2 [∆2 − ∆3 + 12 ∆4 − 6 ∆5 + ⋯ … … . ]
Example: A slider in a machine moves along a fixed straight rod. It’s distance 𝑥 cm along the
road are given in the following table for various values of the time 𝑡 seconds
𝑡 seconds 𝒙 cm ∆𝒙 ∆𝟐 𝒙 ∆𝟑 𝒙 ∆𝟒 𝒙 ∆𝟓 𝒙
0.0 30.1 1.5
0.1 31.6 1.3 -0.2 -0.4 6.7 -31.3
0.2 32.9 0.7 -0.6 6.3 -24.6
0.3 33.6 6.4 5.7 -18.3
0.4 40.0 -6.2 -12.6
0.5 33.8
Chameli Devi Group of Institutions, Indore
Mathematics-III [BT-301]
0000000
Subject Notes
dx
Then the velocity dt is
1 1 1
.𝐷 ≡ [∆ − 2 ∆2 + 3 ∆3 − ⋯ … … . ]
Where h = 0.1
dx
Therefore, the velocity dt = Dx at 𝑡 = 0.3 is given by
1 1 1 1
𝐷𝑥3 = 0.1 ∆𝑥3 − 2 ∆2 𝑥3 + 3 ∆3 𝑥3 − ⋯ … … . = 10 ∆𝑥3 − 2 ∆2 𝑥3 =127 cm per second
Numerical integration
𝑏
The process of computing the value of a definite integral 𝑎
𝑓 𝑥 𝑑𝑥 from a set of numerical
values of the integrand is called Numerical integration. When applied to the integration of a
function of one variable, the process is known as quadrature.
We shall, now establish a general formula for the numerical integration, from which other
special formulas will be deduced. For this, we assume that the values of 𝒙 are at equal intervals
.i.e 𝑎 = 𝑥0 , 𝑥1 = 𝑥0 + h, 𝑥2 = 𝑥0 + 2h … … … … … . 𝑥𝑛 = 𝑥0 + 𝑛h = b
Mathematics-III [BT-301]
000000
Subject Notes
𝑥 = 𝑥0 + 𝑛h, then u = n
𝑥 0 +𝑛h
𝑓 𝑥 𝑑𝑥
𝑥0
𝑛
𝑢 𝑢−1 2 𝑢 𝑢−1 𝑢−2 3
=h 𝑦0 + 𝑢∆𝑦0 + ∆ 𝑦0 + ∆ 𝑦0
0 2! 3!
+ … … … … … 𝑑𝑢
𝑥 0 +𝑛h 𝑛2 1 𝑛3 𝑛2 1 𝑛4
𝑥0
𝑓 𝑥 𝑑𝑥 = h 𝑛𝑦0 + ∆𝑦0 + 2! − ∆2 𝑦0 + 3! − 𝑛3 + 𝑛2 ∆3 𝑦0 +
2 3 2 4
…………… …………………………………..(2)
𝑏−𝑎
Where = 𝑛
[I] Trapezoidal rule :- If ,we put 𝑛 = 1 in (2) ,Then there are only two ordinates 𝑦0 , , 𝑦1 , and
only one finite difference ∆𝑦0 = 𝑦1 , − 𝑦0 , exists, all other higher order finite differences
become zero.
𝑥1
1 1 h
𝑓 𝑥 𝑑𝑥 = h 𝑦0 + ∆𝑦0 = h 𝑦0 + (𝑦1 , − 𝑦0 , ) = [𝑦0 + 𝑦1 , ]
𝑥0 2 2 2
The geometrical meaning of this result is that the area between the curve𝑦 = 𝑓 𝑥 ,the𝑥-axis
and the ordinates 𝑦0 𝑎𝑛𝑑𝑦1 ,is approximated by the area of the trapezium who parallel sides
are𝑦0 𝑎𝑛𝑑𝑦1 , and whose breadth is h = 𝑥1 , − 𝑥0 ,
𝑥2 h
Similarly 𝑥1
𝑓 𝑥 𝑑𝑥 = [𝑦1 + 𝑦2 , ],
2
𝑥3
h
𝑓 𝑥 𝑑𝑥 = [𝑦 + 𝑦3 , ]
𝑥2 2 2
And so on
𝑥𝑛
h
𝑓 𝑥 𝑑𝑥 = [𝑦 + 𝑦𝑛 , ]
𝑛−1 2 𝑛−1
Chameli Devi Group of Institutions, Indore
Mathematics-III [BT-301]
0000000
Subject Notes
[II] Simpson’s 1/3rd rule : If ,we put 𝑛 = 2 in (2) ,Then there are only three ordinates
𝑦0 , , 𝑦1 , 𝑦2 , and therefore only two finite differences ∆𝑦0 𝑎𝑛𝑑∆2 𝑦0 are exist and all other
differences become zero.
𝑥2
𝐡
𝑓 𝑥 𝑑𝑥 = [𝑦 + 4𝑦1 , + 𝑦2 , ]
𝑥0 𝟑 0,
The geometrical meaning of this result is that the curve 𝑦 = 𝑓 𝑥 between the lines
𝑥 = 𝑥0 𝑎𝑛𝑑𝑥 = 𝑥2 is approximated by the area of the parabola whose equation is
𝑥−𝑥 0 𝑥 −𝑥 0 𝑥−𝑥 1
𝑦 = 𝑦0 + ∆𝑦0 + ∆2 𝑦0 and which passes through the points
h 2! 2
𝑥0 , , 𝑦0 , , 𝑥1 , , 𝑦1 , , 𝑥2, , 𝑦2 , .
𝑥6 𝐡
𝑥4
𝑓 𝑥 𝑑𝑥 = 𝟑 [𝑦4 , + 4𝑦5 , + 𝑦6 , ] ,
And so on ……….
𝑥𝑛
𝐡
𝑓 𝑥 𝑑𝑥 = [𝑦 + 4𝑦𝑛−1 , + 𝑦𝑛 , ]
𝑥 𝑛 −2 𝟑 𝑛−2 ,
0000000
Mathematics-III [BT-301]
Subject Notes
[III] Simpson’s 3/8rule :- If ,we put 𝑛 = 3 in (2) ,Then there are only four ordinates
𝑦0 , , 𝑦1 , 𝑦2 , 𝑦3 , and therefore only three finite differences ∆𝑦0 , ∆2 𝑦0 , 𝑎𝑛𝑑∆3 𝑦0 are exist and all
other differences become zero
𝑥3
𝟑𝐡
𝑓 𝑥 𝑑𝑥 = 𝑦 + 3(𝑦1 , + 𝑦2 , + 𝒚𝟑 , ]
𝑥0 𝟖 0,
The geometrical meaning of this result is that the curve 𝑦 = 𝑓 𝑥 between the lines
𝑥 = 𝑥0 𝑎𝑛𝑑𝑥 = 𝑥3 is approximated by the area of the cubical parabola whose equation is
And so on ……….
𝑥𝑛
𝟑𝐡
𝑓 𝑥 𝑑𝑥 = 𝑦 + 3(𝑦𝑛−2 , + 𝑦𝑛−1, + 𝒚𝒏, ]
𝑥 𝑛 −3 𝟖 𝑛−3 ,
1 1
Example: Evaluate the integral 0 1+𝑥 2
𝑑𝑥 by taking no. of subinterval 4 through, Trapezoidal
rd
rule, Simpson’s 1/3 rule and Simpson’s 3/8th rule.
𝑏−𝑎 1−0 1
Solution: We know that Where = = =4
𝑛 4
Chameli Devi Group of Institutions, Indore
000000
Mathematics-III [BT-301]
Subject Notes
𝒙 1
𝒚=
1 + 𝑥2
𝑥0 = 0 𝑦0 = 1
1 16
𝑥1 = 𝑥0 + = 𝑦1 =
4 17
1 4
𝑥2 = 𝑥0 + 2 = 𝑦2 =
2 5
3 16
𝑥3 = 𝑥0 + 3 = 𝑦3 =
4 25
𝑥4 = 𝑥0 + 4 = 1 1
𝑦4 =
2
000000
Mathematics-III [BT-301]
Subject Notes
𝒃
𝟑𝐡
𝒇 𝒙 𝒅𝒙 = 𝒚𝟎 + 𝒚𝟒 , + 𝟐 𝒚𝟑 , + 𝟑 (𝒚𝟏 , + 𝒚𝟐 , = 𝟎. 𝟕𝟓𝟎𝟑
𝒂 𝟖
Simultaneous Linear Algebraic Equations are very common in various fields of Engineering and
Science. We used matrix inversion method or Cramer’s rule to solve these equations in general.
But these methods prove to be tedious, when the system of equations contain a large number
of unknowns. To solve such equations there are other numerical methods, which are
particularly suited for computer operations. These are of two types:-
(3) Croute’smethods.
(1) Gauss’s Elimination Method: In this method, the unknowns are eliminated successively
and the system is reduced to an upper triangular system from which, the unknowns are found
by back substitutions. The method is quite general and is well adapted for computer
operations.
00000
Mathematics-III [BT-301]
Subject Notes
In this method for solving the above equations, we proceed stepwise asfollows:
Step-1:- Elimination of𝑥1 from the second, third, 𝑛𝑡Equation. We assume here that the order
of the equation and the order of unknowns in each equations are such that𝑎11 ≠ 0. The
𝑎
variable 𝑥1 can then be eliminated from the second equation by subtracting ( 𝑎 21 ) times the
11
𝑎 31
first equation from the second equation ( 𝑎 ) times the first equation from the third equation,
11
e.t.c. This gives new system say as follows:
𝑎22
′
𝑥2 + … … … . +𝑎2𝑛
′
𝑥𝑛 = 𝑏2′
𝑎𝑛2
′
𝑥2 + … … … . +𝑎𝑛𝑛
′
𝑥𝑛 = 𝑏𝑛′
Here the first equation is called the pivotal equation and 𝑎11 is called the first pivot.
𝑎′
( 𝑎 33
′ )times the second equation from the third equation,
22
𝑎′
( 𝑎 42
′ )times the second equation from the fourth equation e.t.c.
22
The further steps are now obvious. In the third step, we eliminate 𝑥3 and in the fourth step,
we eliminate 𝑥4 e.t.c.
𝑐22 𝑥2 + … … … . +𝑐2𝑛 𝑥𝑛 = 𝑑2
Chameli Devi Group of Institutions, Indore
Mathematics-III [BT-301]
000000
Subject Notes
𝑐𝑛𝑛 𝑥𝑛 = 𝑑𝑛
In this case there exists a unique solution. The new coefficient matrix is an upper triangular
matrix; the diagonal element 𝑐𝑖𝑖 are usually equal to 1.
𝒙 + 𝟒𝒚 − 𝒛 = −𝟓
𝒙 + 𝒚 − 𝟔𝒛 = −𝟏𝟐
𝟑𝒙 − 𝒚 − 𝒛 = 𝟒
1 4 −1 𝑥 −5
≈ 1 1 −6 𝑦 = −12
3 −1 −1 𝑧 4
→ 𝑅2 − 𝑅1 , → 𝑅3 − 3𝑅1
1 4 −1 𝑥 −5
≈ 0 −3 −5 𝑦 = −7
0 −13 2 𝑧 19
13
→ 𝑅3 − 𝑅
3 2
1 4 −1 𝑥 −5
≈ 0 −3 −5 𝑦 = −7
0 0 71/3 𝑧 148/3
𝒙 + 𝟒𝒚 − 𝒛 = −𝟓 … … . . (𝟏)
−𝟑𝒚 − 𝟓𝒛 = −𝟕 … … . . (𝟐)
71
𝒛 = 148/3 … … . . (𝟐)
3
Chameli Devi Group of Institutions, Indore
Mathematics-III [BT-301]
0000000
Subject Notes
(2) Gauss’s Jordan Method: - This is a modification ofGauss’s Elimination Method. In this
method, elimination of unknowns is performed not in the equations below but in the equations
above also. Ultimatelyreducingthesystem to a diagonal matrix. i.e. each equation involving only
one unknown. Thus in this method, thelabor of back substitution for finding the unknowns is
saved at the cost of additional calculations. This method is well explained by the following
example.
𝒙 + 𝒚 + 𝒛 = 𝟗; 𝟐𝒙 − 𝟑𝒚 + 𝟒𝒛 = 𝟏𝟑 ; 𝟑𝒙 + 𝟒𝒚 + 𝟓𝒛 = 𝟒𝟎
𝒙 + 𝒚 + 𝒛 = 𝟗 … … … . (𝟏)
𝟐𝒙 − 𝟑𝒚 + 𝟒𝒛 = 𝟏𝟑 … … … (𝟐)
𝟑𝒙 + 𝟒𝒚 + 𝟓𝒛 = 𝟒𝟎 … … … . (𝟑)
Step-1:- Operate (2)-2(1) and (3)-3(1) to eliminate 𝑥 from (2) and (3).
𝒙 + 𝒚 + 𝒛 = 𝟗 ………….(4)
−𝟓𝒚 + 𝟐𝒛 = −𝟓 … … … (𝟓)
𝒚 + 𝟐𝒛 = 𝟏𝟑 ……….(6)
Step-2:- operate (4) +1/5 (5) and (6) +1/5 (5) to eliminate 𝑦 from (4) and (6).
𝒙 + 7/5𝒛 = 𝟖 ……….(7)
−𝟓𝒚 + 𝟐𝒛 = −𝟓 … … … (𝟖)
𝟏𝟐
𝒛 = 𝟏𝟐 …………..(9)
𝟓
Step-3:- operate (7) -7/12 (9) and (8) -5/6 (9) to eliminate 𝑧 from (7) and (8).
𝒙=𝟏
𝒚=3
𝒛=𝟓
Mathematics-III [BT-301]
00000
Subject Notes
Now from the above matrix, the Matrix of 12 unknowns,so called derived matrix or Auxiliary
𝑙11 𝑢12 𝑢13 𝑦1
Matrix is 𝐷 ∶ 𝑀 = 𝑙21 𝑙22 𝑢23 𝑦2 and is to be calculated as follows:
𝑙31 𝑙32 𝑙33 𝑦3
Step-1:- The first column of the derived matrix is identical with the first column of 𝐴 ∶ 𝐵 .
Step-2: The first row to the right of the first column of the 𝐷 ∶ 𝑀 is obtained by dividing the
corresponding element in 𝐴 ∶ 𝐵 by the leading diagonal element of that row.
𝑎 12 𝑎 13 𝑏1
i.e.𝑢12 = = ; 𝑢13 = = ; 𝑦1 = .
𝑎 11 𝑎 11 𝑎 11
𝑏3 − ( 𝑙31 𝑦1 + 𝑙32 𝑦2 )
𝑦3 =
𝑙33
Chameli Devi Group of Institutions, Indore
Mathematics-III [BT-301]
000000
Subject Notes
Step-8: Therefore, from above 𝐷 : 𝑀 𝑀𝑎𝑡𝑟𝑖𝑥 , 𝑡𝑒 𝑟𝑒𝑞𝑢𝑖𝑟𝑒𝑑 𝑠𝑜𝑙𝑢𝑡𝑖𝑜𝑛 𝑖𝑠 obtained as follows:
𝑥3 = 𝑦3 ;
𝑥2 = 𝑦2 − 𝑢23 𝑥3 ;
𝑥1 = 𝑦1 − [ 𝑥2 𝑢12 + 𝑥3 𝑢13 ]
2 𝑥1 − 6 𝑥2 + 8 𝑥3 = 24 ; 5 𝑥1 + 4 𝑥2 − 3 𝑥3 = 2 ; 3 𝑥1 + 𝑥2 + 2 𝑥3 = 16
Now from the above matrix, the Matrix of 12 unknowns, so called derived matrix or Auxiliary
𝑙11 𝑢12 𝑢13 𝑦1
Matrix is 𝐷 ∶ 𝑀 = 𝑙21 𝑙22 𝑢23 𝑦2 and is to be calculated as follows:
𝑙31 𝑙32 𝑙33 𝑦3
Step-1:- The first column of the derived matrix 𝐷 ∶ 𝑀 is identical with the first column of
𝐴 ∶ 𝐵 .i.e 𝑙11 = 𝑎11 = 2; 𝑙21 = 𝑎21 = 5; 𝑙31 = 𝑎31 = 3
Step-2: The first row to the right of the first column of the 𝐷 ∶ 𝑀 is obtained by dividing the
corresponding element in 𝐴 ∶ 𝐵 by the leading diagonal element of that row.i.e.
𝑎12 −6 𝑎13 8 𝑏1 24
𝑢12 = = = −3 ; 𝑢13 = = = 4; 𝑦1 = = = 12
𝑎11 2 𝑎11 2 𝑎11 2
Mathematics-III [BT-301]
000000
Subject Notes
23 40
𝑙33 = 𝑎33 − 𝑙31 𝑢13 + 𝑙32 𝑢23 = 2 − [3 4 + 10 − =
19 19
Step-8: Therefore, from above 𝐷 : 𝑀 𝑀𝑎𝑡𝑟𝑖𝑥 , 𝑡𝑒 𝑟𝑒𝑞𝑢𝑖𝑟𝑒𝑑 𝑠𝑜𝑙𝑢𝑡𝑖𝑜𝑛 𝑖𝑠 obtained as follows:
𝑥3 = 𝑦3 = 5;
58 23
𝑥2 = 𝑦2 − 𝑢23 𝑥3 = − −5 − = 2;
19 19
[II] Iterative Methods:In these methods, we start from an initial approximation to the true
solution and obtain better and better approximations from a computation cycle repeated as
often as may be necessary for achieving a desired accuracy. For large systems, iterative
methods may be faster than the direct methods. Even the round -off errors in iterative methods
are smaller. In fact, iteration is a self-correcting process and any error made at any stage of
computation gets automatically corrected in the subsequent steps.
Simple iterative methods can be devised for systems in which the coefficient’s of the leading
diagonal are large as compared to others. We now describe three such methods:-
𝑎1 𝑥 + 𝑏1 𝑦 + 𝑐1 𝑧 = 𝑑1
Chameli Devi Group of Institutions, Indore
Mathematics-III [BT-301]
000000
Subject Notes
𝑎2 𝑥 + 𝑏2 𝑦 + 𝑐2 𝑧 = 𝑑2 ……………..(1)
𝑎3 𝑥 + 𝑏3 𝑦 + 𝑐3 𝑧 = 𝑑3
If 𝑎1 , 𝑏2 , 𝑐3 are large as compared to other coefficients, solve the above system for
𝑥, 𝑦, 𝑧 respectively. Then system of equations can be written as
1
𝑥= ( 𝑑1 − 𝑏1 𝑦 − 𝑐1 𝑧)
𝑎1
1
𝑦= ( 𝑑2 − 𝑎2 𝑥 − 𝑐2 𝑧) ………………………… (2)
𝑏2
1
𝑧= ( 𝑑3 − 𝑎3 𝑥 − 𝑏3 𝑦)
𝑐3
1
𝑦1 = ( 𝑑2 − 𝑎2 𝑥0 − 𝑐2 𝑧0 )
𝑏2
1
𝑧1 = ( 𝑑3 − 𝑎3 𝑥0 − 𝑏3 𝑦0 )
𝑐3
Now for second approximations, Substituting the𝑥1 ,𝑦1 , 𝑧1 on the right hand sides of (2).
1
𝑥2 = ( 𝑑1 − 𝑏1 𝑦1 − 𝑐1 𝑧1 )
𝑎1
1
𝑦2 = ( 𝑑2 − 𝑎2 𝑥1 − 𝑐2 𝑧1 )
𝑏2
1
𝑧2 = ( 𝑑3 − 𝑎3 𝑥1 − 𝑏3 𝑦1 )
𝑐3
This process is repeated till the diffence between two consecutive approximations is negligible.
Note: In the absence of any better estimates for 𝑥0 , 𝑦0 , 𝑧0 ,these may each be taken as zero.
Chameli Devi Group of Institutions, Indore
000000
Mathematics-III [BT-301]
Subject Notes
20𝑥 + 𝑦 − 2𝑧 = 17
3𝑥 + 20𝑦 − 𝑧 = −18……………..(1)
2𝑥 − 3𝑦 + 20𝑧 = 25
1
𝑥= (17 − 𝑦 + 2𝑧)
20
1
𝑦 = 20 (−18 − 3𝑥 + 𝑧) ………………………… (2)
1
𝑧= (25 − 2𝑥 + 3𝑦)
20
For first approximations, substituting 𝑥0 = 0, 𝑦0 = 0, 𝑧0 = 0 for the values of
𝑥, 𝑦, 𝑧 respectively in above,
1
𝑥1 = 17 − 0 + 2.0 = 0.85;
20
1
𝑦1 = −18 − 3.0 + 0 = −0.9;
20
1
𝑧1 = 25 − 2. 0 + 3.0 = 1.25.
20
Now for second approximations, Substituting the𝑥1 ,𝑦1 , 𝑧1 on the right hand sides of (2).𝑥2 =
1
17 − 𝑦1 + 2 𝑧1 = 1.02;
20
1
𝑦2 = −18 − 3 𝑥1 + 𝑧1 = −0.965;
20
1
𝑧2 = 25 − 2𝑥1 + 3𝑦1 = 1.03.
20
Now for third approximations, Substituting the𝑥2 ,𝑦2 , 𝑧2 on the right hand sides of (2).𝑥3 =
1
17 − 𝑦2 + 2 𝑧2 = 1.00125;
20
Chameli Devi Group of Institutions, Indore
Mathematics-III [BT-301]
000000
Subject Notes
1
𝑦3 = −18 − 3 𝑥2 + 𝑧2 = −1.0015;
20
1
𝑧3 = 25 − 2𝑥2 + 3𝑦2 = 1.00325.
20
Now for fourth approximations, substituting these values on the right hand sides of (2).𝑥4 =
1
17 − 𝑦3 + 2 𝑧3 = 1.0004;
20
1
𝑦4 = −18 − 3 𝑥3 + 𝑧3 = −1.000025;
20
1
𝑧4 = 25 − 2𝑥3 + 3𝑦3 = 0.9965.
20
Now for fifth approximations, substituting these values on the right hand sides of (2).𝑥5 =
1
20
17 − 𝑦4 + 2 𝑧4 = 0.999966;
1
𝑦5 = −18 − 3 𝑥4 + 𝑧4 = −1.000078;
20
1
𝑧5 = 25 − 2𝑥4 + 3𝑦4 = 0.999956.
20
Now for sixth approximations, substituting these values on the right hand sides of (2).𝑥6 =
1
17 − 𝑦5 + 2 𝑧5 = 1.0000;
20
1
𝑦6 = −18 − 3 𝑥5 + 𝑧5 = −0.999997;
20
1
𝑧6 = 25 − 2𝑥5 + 3𝑦5 = 0.999992.
20
As the values in the 5th and 6th approximations, i.e. Iterations being practically the same.We can
stop now, Hence the solution is
𝑥 = 1; 𝑦 = −1; 𝑧=1
𝑎1 𝑥 + 𝑏1 𝑦 + 𝑐1 𝑧 = 𝑑1
Chameli Devi Group of Institutions, Indore
000000
Mathematics-III [BT-301]
Subject Notes
𝑎2 𝑥 + 𝑏2 𝑦 + 𝑐2 𝑧 = 𝑑2 ……………..(1)
𝑎3 𝑥 + 𝑏3 𝑦 + 𝑐3 𝑧 = 𝑑3
If 𝑎1 , 𝑏2 , 𝑐3 are large as compared to other coefficients, solve the above system for
𝑥, 𝑦, 𝑧 respectively. Then system of equations can be written as
1
𝑥= ( 𝑑1 − 𝑏1 𝑦 − 𝑐1 𝑧)
𝑎1
1
𝑦= ( 𝑑2 − 𝑎2 𝑥 − 𝑐2 𝑧) ………………………… (2)
𝑏2
1
𝑧= ( 𝑑3 − 𝑎3 𝑥 − 𝑏3 𝑦)
𝑐3
1
𝑦1 = ( 𝑑2 − 𝑎2 𝑥1 − 𝑐2 𝑧0 )
𝑏2
1
𝑧1 = ( 𝑑3 − 𝑎3 𝑥1 − 𝑏3 𝑦1 )
𝑐3
Mathematics-III [BT-301]
00000
Subject Notes
largest coefficient is almost equal to or in at least one equation greater than the sum
of the absolute values of all the remaining coefficients.
20𝑥 + 𝑦 − 2𝑧 = 17
3𝑥 + 20𝑦 − 𝑧 = −18……………..(1)
2𝑥 − 3𝑦 + 20𝑧 = 25
1
𝑦 = 20 (−18 − 3𝑥 + 𝑧) …………(ii)
1
𝑧 = 20 (25 − 2𝑥 + 3𝑦)………….(iii)
1
𝑥1 = 17 − 0 + 2.0 = 0.8500;
20
Substituting 𝑥 = 𝑥1 , 𝑧 = 𝑧0 for the values of 𝑥 , 𝑧 respectively in (ii)
1
𝑦1 = −18 − 3𝑥1 + 𝑧0 = −1.0275;
20
Substituting 𝑥 = 𝑥1 , 𝑦 = 𝑦1 for the values of 𝑥 , 𝑦 respectively in (iii)
1
𝑧1 = 25 − 2𝑥1 + 3𝑦1 = 1.0109
20
For second approximations / Iteration
1
𝑥2 = 17 − 𝑦1 + 2𝑧1 = 1.0025;
20
Chameli Devi Group of Institutions, Indore
000000
Mathematics-III [BT-301]
Subject Notes
1
𝑦2 = −18 − 3𝑥2 + 𝑧1 = −0.9998;
20
Substituting 𝑥 = 𝑥2 , 𝑦 = 𝑦2 for the values of 𝑥 , 𝑦 respectively in (iii)
1
𝑧2 = 25 − 2𝑥2 + 3𝑦2 = 0.9998
20
For third approximations / Iteration
1
𝑥3 = 17 − 𝑦2 + 2𝑧2 = 1.0000;
20
Substituting 𝑥 = 𝑥3 , 𝑧 = 𝑧2 for the values of 𝑥 , 𝑧 respectively in (ii)
1
𝑦3 = −18 − 3𝑥3 + 𝑧2 = −1.0000;
20
Substituting 𝑥 = 𝑥3 , 𝑦 = 𝑦3 for the values of 𝑥 , 𝑦 respectively in (iii)
1
𝑧3 = 25 − 2𝑥3 + 3𝑦3 = 1.0000
20
Hence,the values in 2nd and 3rdApproximations being practically the same, now, we can stop,
Therefore,we seen that the convergence is quite fast in Gauss-Seidal Method as compared to
Gauss’s Jacobi’s Method.
(3) Relaxation method: This method was original developed by R.V. South well in 1935,for
application to Structural engg. Problems.
Let us consider the system of equations
𝑎1 𝑥 + 𝑏1 𝑦 + 𝑐1 𝑧 = 𝑑1
𝑎2 𝑥 + 𝑏2 𝑦 + 𝑐2 𝑧 = 𝑑2 ……………..(1)
𝑎3 𝑥 + 𝑏3 𝑦 + 𝑐3 𝑧 = 𝑑3
Chameli Devi Group of Institutions, Indore
Mathematics-III [BT-301]
000000
Subject Notes
𝑅𝑥 = 𝑑1 − 𝑎1 𝑥 − 𝑏1 𝑦 − 𝑐1 𝑧
𝑅𝑦 = 𝑑2 − 𝑎2 𝑥 − 𝑏2 𝑦 − 𝑐2 𝑧 …………….. (2)
𝑅𝑧 = 𝑑3 − 𝑎3 𝑥 − 𝑏3 𝑦 − 𝑐3 𝑧
To start with we assume 𝑥 = 0, 𝑦 = 0, 𝑧 = 0 and calculate the initial residuals. Then the
residuals are reduced step by step, by giving increments to the variables. For this purpose, we
construct the following operation table:
𝛿 𝑅𝑥 𝛿 𝑅𝑦 𝛿 𝑅𝑧
𝛿𝑥 = 1 − 𝑎1 −𝑎2 − 𝑎3
𝛿𝑦 = 1 − 𝑏1 − 𝑏2 − 𝑏3
𝛿𝑧 = 1 − 𝑐1 − 𝑐2 − 𝑐3
We note from the equations (2) that if 𝑥 is increased by 1 (keeping𝑦, 𝑧 constant), 𝑅𝑥 , 𝑅𝑦 and
𝑅𝑧 decrease by 𝑎1 , 𝑎2 , 𝑎3 respectively.This is shown in the above table along with the
effects on the residuals when 𝑦, 𝑎𝑛𝑑 𝑧 are given unit increments (The table is the transpose of
the coefficient matrix)
At each step, the numerically largest residual is reduced to almost zero,to reduce a particular
residual, the value of the corresponding variable is changed.
When all the residuals have been reduced to almost zero, the increments in 𝑥, 𝑦, 𝑎𝑛𝑑 𝑧 are
added separately to give the desired solution.
Obs.:The iterativeRelaxation method can be applied successfully only if the leading diagonal
elements of the coefficient matrix dominate the other coefficient’s in the corresponding row
i.e. if systems in which the coefficient’s of the leading diagonal are large as compared to others.
We now describe such method:-
9𝑥 − 2𝑦 + 𝑧 = 50
Chameli Devi Group of Institutions, Indore
Mathematics-III [BT-301]
000000
Subject Notes
𝑥 + 5𝑦 − 3𝑧 = 18……………..(1)
−2𝑥 + 2𝑦 + 7𝑧 = 19
Solution:Since the coefficients of the leading diagonal are large as compared to others. Hence,
we can apply this method
𝑅𝑥 = 50 − 9𝑥 + 2𝑦 − 𝑧
𝑅𝑦 = 18 − 𝑥 − 5𝑦 + 3𝑧 …………….. (2)
𝑅𝑧 = 19 + 2𝑥 − 2𝑦 − 7𝑧
𝛿 𝑅𝑥 𝛿 𝑅𝑦 𝛿 𝑅𝑧
𝛿𝑥 = 1 𝑎1 =-9 𝑎2 = −1 𝑎3 = 2
𝛿𝑦 = 1 𝑏1 = 2 𝑏2 = −5 𝑏3 =-2
𝛿𝑧 = 1 𝑐1 = −1 𝑐2 = 3 𝑐3 =-7
Chameli Devi Group of Institutions, Indore
Mathematics-III [BT-301]
000000
Subject Notes
Since 50 is numerically 5 13 29
largest residual ,
50
𝛿𝑥 = =5
9
Since 29 is numerically 1 25 1
largest residual ,
29
𝛿𝑧 = =4
7
Since 25 is numerically 11 0 5
largest residual ,
25
𝛿𝑦 = =5
5
Similarly , 𝛿𝑥 = 1 2 -1 -7
𝛿𝑧 = −1 3 -4 0
𝛿𝑦 = −0.8 1.4 0 1.6
𝛿𝑧 = 0.23 1.17 0.69 -0.1
𝛿𝑥 = 0.13 0 0.56 0.25
𝛿𝑦 = 0.112 0.224 0 0.026
Now, we stop, since the process of reducing residuals is carried as the all the residuals become
zero or negligible, Therefore, the desired solution is obtained by adding up the increments
𝛿𝑥, 𝛿𝑦, & 𝛿𝑧 𝑖𝑛 𝑥, 𝑦 & 𝑧 𝑠𝑒𝑝𝑎𝑟𝑎𝑡𝑒𝑙𝑦 𝑖. 𝑒.
𝑥= 𝛿𝑥 = 0 + 5 + 1 + 0.13 = 6.13 ;
𝑧= 𝛿𝑧 = 0 + 4 − 1 + 0.23 = 3.23 .