Numerical Methods for Engineers
Numerical Methods for Engineers
7th Edition
ISBN: 9780073397924
Author: Steven C. Chapra Dr., Raymond P. Canale
Publisher: McGraw-Hill Education
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 11, Problem 13P

Use the Gauss-Seidel method(a) without relaxation and (b) with relaxation ( λ = 1.2 ) to solve the following system to a tolerance of ε s = 5 % . If necessary, rearrange the equations to achieve convergence.

2 x 1 6 x 2 x 3 = 38 3 x 1 x 2 + 7 x 3 = 34 8 x 1 + x 2 2 x 3 = 20

(a)

Expert Solution
Check Mark
To determine

To calculate: The solution of following system of equation with Gauss-Seidel method without relaxation to a tolerance of εs=5%. If necessary, rearrange the equations to achieve convergence.

2x16x2x3=383x1x2+7x3=348x1+x22x3=20

Answer to Problem 13P

Solution:

Using Gauss-Seidel method three iterations are performed to get the values x1=4.0046, x2=7.9916  and  x3=1.9991.

Explanation of Solution

Given:

A system of equation:

2x16x2x3=383x1x2+7x3=348x1+x22x3=20

With εs=5%.

Formula used:

(1) The values of x1, x2 and x3 are given by the formula:

x1=b1a12x2a13x3a11, x2=b2a21x1a23x3a22, x3=b3a31x1a32x2a33

(2) Convergence can be checked using the criterion

εa,i=|xijxij1xij|100%<εs

For all i, where j and j- 1 are the present and previous iterations.

Calculation:

Consider the system of equation:

2x16x2x3=383x1x2+7x3=348x1+x22x3=20

The sufficient condition for convergence is:

The diagonal coefficient in each of the equations must be larger than the sum of the absolute values of the other coefficients in the equation. The systems where this condition holds are called diagonally dominant.

Thus, the equations should first be arranged so that they are diagonally dominant.

8x1+x22x3=202x16x2x3=383x1x2+7x3=34

It can be written in the form:

812261317{x1x2x3}={203834}

Where,

[A]=812261317

{X}={x1x2x3}

{B}={203834}

First, solve each of the equations for its unknown on the diagonal

x1=20(1)x2(2)x38.. .. .. (1)

x2=38(2)x1(1)x36.. .. .. (2)

x3=34(3)x1(1)x27.. .. .. (3)

For initial guess, assume x2=0 and x3=0.

Thus, equation (1) becomes,

x1=20x2+2x38=200+2(0)8=2.5

This value, along with the assumed value of x3=0, can be substituted in equation (2) to calculate,

x2=382x1+x36=382×(2.5)+06=7.1667

Now, substitute the calculated values of x1=2.5 and x2=7.1667 into equation (3) to calculate,

x3=34+3x1+x27=34+3×(2.5)+7.16677=2.7619

For the second iteration, the same process is repeated with x1=2.5, x2=7.1667 and  x3=2.7619 to compute,

x1=20x2+2x38=20(7.1667)+2(2.7619)8=4.0863

The value of x1=4.0863, along with the calculated value of x3=2.7619, can be used to get,

x2=382x1+x36=382×(4.0863)+(2.7619)6=8.1557

Now, substitute the calculated values of x1=4.0863 and x2=8.1557 to calculate,

x3=34+3x1+x27=34+3×(4.0863)+(8.1557)7=1.9407

Now, the error can be computed as:

εa,1=|4.086312.54.08631|×100%=38.82%

εa,2=|8.15577.16678.1557|×100%=12.13%

εa,3=|1.9407(2.7619)1.9407|×100%=42.31%

For the third iteration, the same process is repeated with x1=4.0863, x2=8.155 and  x3=1.9407 to compute,

x1=20x2+2x38=20(8.1557)+2(1.9407)8=4.0046

The value of x1=4.0046, along with the calculated value of x3=1.9407, can be used to get,

x2=382x1+x36=382×(4.0046)+(1.9407)6=7.9916

Now, substitute the calculated values of x1=4.0046 and x2=7.9916 to calculate,

x3=34+3x1+x27=34+3×(4.0046)+(7.9916)7=1.9992

Now, the error can be computed as:

εa,1=|4.00464.086314.0046|×100%=2.0404%

εa,2=|7.99168.15577.9916|×100%=2.0534%

εa,3=|1.9992(1.9407)1.9992|×100%=2.92%

Thus, after three iterations the maximum error is 2.92% which is less than εs=5% and the values are x1=4.0046, x2=7.9916  and  x3=1.9991.

(b)

Expert Solution
Check Mark
To determine

To calculate: The solution of following system of equation with Gauss-Seidel method with relaxation λ=1.2 to a tolerance of εs=5%. If necessary, rearrange the equations to achieve convergence.

3x1+x2+12x3=506x1x2x3=36x1+9x2+x3=40

Answer to Problem 13P

Solution:

Using Gauss-Seidel method six iterations are performed with relaxation λ=1.2 to get the values x1=4.0122,x2=8.0272and x3=1.9790.

Explanation of Solution

Given:

A system of equation:

3x1+x2+12x3=506x1x2x3=36x1+9x2+x3=40

With relaxation λ=1.2 and εs=5%.

Formula used:

(1) The values of x1, x2 and x3 are given by the formula:

x1=b1a12x2a13x3a11, x2=b2a21x1a23x3a22, x3=b3a31x1a32x2a33

(2) Relaxation

xinew= λxinew+(1λ)xiold

Where λ is a weighting factor that is assigned a value between 0 and 2.

(3) Convergence can be checked using the criterion

εa,i=|xijxij1xij|100%<εs

For all i, where j and j- 1 are the present and previous iterations.

Calculation:

Consider the system of equation:

2x16x2x3=383x1x2+7x3=348x1+x22x3=20

The sufficient condition for convergence is:

The diagonal coefficient in each of the equations must be larger than the sum of the absolute values of the other coefficients in the equation. The systems where this condition holds are called diagonally dominant.

Thus, the equations should first be arranged so that they are diagonally dominant.

8x1+x22x3=202x16x2x3=383x1x2+7x3=34

It can be written in the form:

812261317{x1x2x3}={203834}

Where,

[A]=812261317

{X}={x1x2x3}

{B}={203834}

First, solve each of the equations for its unknown on the diagonal

x1=20(1)x2(2)x38.. .. .. (1)

x2=38(2)x1(1)x36.. .. .. (2)

x3=34(3)x1(1)x27.. .. .. (3)

For initial guess, assume x1=0, x2=0 and x3=0.

Thus, equation (1) becomes,

x1=20x2+2x38=200+2(0)8=2.5

Relaxation yields:

x1=λ(2.5)+(1λ)(0)=1.2×(2.5)0.2×(0)=3

This value, along with the assumed value of x3=0, can be substituted in equation (2) to calculate,

x2=382x1+x36=382×(3)+06=7.3333

Relaxation yields:

x2=λ(7.3333)+(1λ)(0)=1.2×(7.3333)0.2×(0)=8.8

Now, substitute the calculated values of x1=3 and x2=8.8 into equation (3) to calculate,

x3=34+3x1+x27=34+3×(3)+(8.8)7=2.3142

Relaxation yields:

x3=λ(2.3142)+(1λ)(0)=1.2×(2.3142)0.2×(0)=2.7771

For the second iteration, the same process is repeated with x1=3, x2=8.8 and x3=2.7771 to compute,

x1=20x2+2x38=20(8.8)+2(2.7771)8=4.2942

Relaxation yields:

x1=λ(4.2942)+(1λ)(3)=1.2×(4.2942)0.2×(3)=4.5531

The value of x1=4.5531, along with the calculated value of x3=2.7771, can be used to get,

x2=382x1+x36=382×(4.5531)+(2.7771)6=8.3139

Relaxation yields:

x2=λ(8.3139)+(1λ)(8.8)=1.2×(8.3139)0.2×(8.8)=8.2166

Now, substitute the calculated values of x1=4.5531 and x2=8.2166 to calculate,

x3=34+3x1+x27=34+3×(4.5531)+(8.2166)7=1.7319

Relaxation yields:

x3=λ(1.7319)+(1λ)(2.7771)=1.2×(1.7319)0.2×(2.7771)=1.52294

Now, the error can be computed as:

εa,1=|4.553134.5531|×100%=34.11%

εa,2=|8.21668.88.2166|×100%=7.1%

εa,3=|1.5229(2.7771)1.5229|×100%=82.35%

For the third iteration, the same process is repeated with x1=4.5531,x2=8.2166 and x3=1.5229 to compute,

x1=20x2+2x38=20(8.2166)+2(1.5229)8=3.9078

Relaxation yields:

x1=λ(3.9078)+(1λ)(4.5531)=1.2×(3.9078)0.2×(4.5531)=3.7787

The value of x1=3.7787, along with the calculated value of x3=1.5229, can be used to get,

x2=382x1+x36=382×(3.7787)+(1.5229)6=7.8467

Relaxation yields:

x2=λ(7.8467)+(1λ)(8.2166)=1.2×(7.8467)0.2×(8.2166)=7.7727

Now, substitute the calculated values of x1=3.7787 and x2=7.7727 to calculate,

x3=34+3x1+x27=34+3×(3.7787)+(7.7727)7=2.1273

Relaxation yields:

x3=λ(2.1273)+(1λ)(1.5229)=1.2×(2.1273)0.2×(1.5229)=2.2481

Now, the error can be computed as:

εa,1=|3.77874.55313.7787|×100%=20.49%

εa,2=|7.77278.21667.7727|×100%=5.71%

εa,3=|2.2481(1.5229)2.2481|×100%=32.25%

The table showing values calculated for further iterations is given below

ivarvaluerelaxationε(%)max ε1x1x2x32.57.33332.314238.82.7771001001002x1x2x34.29428.31391.73194.5538.21661.522934.117.1082.3582.353x1x2x33.90787.84672.12723.77877.77272.248120.495.7132.2432.254x1x2x34.03368.06951.94534.08468.12891.88427.504.4019.3019.305x1x2x39.98737.97002.02253.96787.93832.05002.942.408.078.076x1x2x34.00488.01241.99084.01228.02721.97901.111.113.603.60

Therefore, after six iterations, the maximum error is 3.60% which is less than 5%. Thus, the results are x1=4.0122,x2=8.0272and x3=1.9790.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!

Chapter 11 Solutions

Numerical Methods for Engineers

Additional Math Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Advanced Math
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
01 - What Is A Differential Equation in Calculus? Learn to Solve Ordinary Differential Equations.; Author: Math and Science;https://www.youtube.com/watch?v=K80YEHQpx9g;License: Standard YouTube License, CC-BY
Higher Order Differential Equation with constant coefficient (GATE) (Part 1) l GATE 2018; Author: GATE Lectures by Dishank;https://www.youtube.com/watch?v=ODxP7BbqAjA;License: Standard YouTube License, CC-BY
Solution of Differential Equations and Initial Value Problems; Author: Jefril Amboy;https://www.youtube.com/watch?v=Q68sk7XS-dc;License: Standard YouTube License, CC-BY