EBK NUMERICAL METHODS FOR ENGINEERS
EBK NUMERICAL METHODS FOR ENGINEERS
7th Edition
ISBN: 9780100254145
Author: Chapra
Publisher: YUZU
bartleby

Videos

Textbook Question
Book Icon
Chapter 11, Problem 12P

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

3 x 1 + x 2 + 12 x 3 = 50 6 x 1 x 2 x 3 = 3 6 x 1 + 9 x 2 + x 3 = 40

(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.

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

Answer to Problem 12P

Solution:

Using Gauss-Seidel method four iterations are performed to get the values x1=1.696789, x2=2.829356 and x3=4.355084.

Explanation of Solution

Given Information:

A system of equation:

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

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:

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

The sufficient condition for convergence is:

If the diagonal coefficient of each equations is greater than the sum of the absolute values of the other coefficients present in the equation. The systems where this condition holds are called diagonally dominant.

Thus, the firstarrange the equation so that theywill be diagonally dominant.

6x1x2x3=36x1+9x2+x3=403x1+x2+12x3=50

It can be written in the form:

6116913112{x1x2x3}={34050}

Where,

[A]=6116913112

{X}={x1x2x3}

{B}={34050}

First, solve the equations for its unknown and find the value of x1,x2, and x3.

x1=3(1)x2(1)x36.. .. .. (1)

x2=40(6)x1(1)x39.. .. .. (2)

x3=50(3)x1(1)x212.. .. .. (3)

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

Thus, equation (1) becomes,

x1=3(1)x2(1)x36=3(1)(0)(1)(0)6=0.5

Substitute the value of x1 and x3=0 in equation (2) to calculate x2.

x2=40(6)x1(1)x39=40(6)(0.5)(1)(0)9=4.11111

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

x3=50(3)x1(1)x212=50(3)(0.5)(1)(4.11111)12=3.949074

For the second iteration, the same process is repeated with x2=4.11111 and x3=3.949074 to compute,

x1=3(1)x2(1)x36=3(1)(4.11111)(1)(3.949074)6=1.843364

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

x2=40(6)x1(1)x39=40(6)(1.843364)(1)(3.949074)9=2.776749

Now, substitute the calculated values of x1=1.843364 and x2=2.776749 to calculate,

x3=50(3)x1(1)x212=50(3)(1.843364)(1)(2.776749)12=4.396112

Now, the error can be computed as:

εa,1=|1.8433640.51.843364|×100%=0.7288×100%=72.88%

εa,2=|2.7767494.111112.776749|×100%=0.4805×100%=48.05%

εa,3=|4.3961123.9490744.396112|×100%=0.1017×100%=10.17%

For the third iteration, the same process is repeated with x2=2.776749 and x3=4.396112 to compute,

x1=3(1)x2(1)x36=3(1)(2.776749)(1)(4.396112)6=1.695477

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

x2=40(6)x1(1)x39=40(6)(1.695477)(1)(4.396112)9=2.82567

Now, substitute the calculated values of x1=1.695477 and x2=2.82567 to calculate,

x3=50(3)x1(1)x212=50(3)(1.695477)(1)(2.82567)12=4.355063

Now, the error can be computed as:

εa,1=|1.6954771.8433641.695477|×100%=0.0872×100%=8.72%

εa,2=|2.825672.7767492.82567|×100%=0.0173×100%=1.73%

εa,3=|4.3550634.3961124.355063|×100%=0.0094×100%=0.94%

For the fourth iteration, the same process is repeated with x2=2.82567 and x3=4.355063 to compute,

x1=3(1)x2(1)x36=3(1)(2.82567)(1)(4.355063)6=1.696789

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

x2=40(6)x1(1)x39=40(6)(1.696789)(1)(4.355063)9=2.829356

Now, substitute the calculated values of x1=1.696789 and x2=2.829356 to calculate,

x3=50(3)x1(1)x212=50(3)(1.696789)(1)(2.829356)12=4.355084

Now, the error can be computed as:

εa,1=|1.6967891.6954771.696789|×100%=0.0008×100%=0.08%

εa,2=|2.8293562.825672.829356|×100%=0.0013×100%=00.13%

εa,3=|4.3550844.3550634.355084|×100%=0.00004×100%=0.004%

Thus, after four iterations the maximum error is 0.13% which is less than εs=5% and the values are x1=1.696789, x2=2.829356 and x3=4.355084.

(b)

Expert Solution
Check Mark
To determine

To calculate: The solution of following system of equation with Gauss-Seidel method withrelaxation λ=0.95 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 12P

Solution:

Using Gauss-Seidel method four iterations are performed with relaxation λ=0.95 to get the values x1=1.70969, x2=2.83003 and x3=4.35641.

Explanation of Solution

Given Information:

A system of equation:

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

With relaxation λ=0.95 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:

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

If the diagonal coefficient of each equations is greater than the sum of the absolute values of the other coefficients present in the equation. The systems where this condition holds are called diagonally dominant.

Thus, the first arrange the equation so that they will be diagonally dominant.

6x1x2x3=36x1+9x2+x3=403x1+x2+12x3=50

It can be written in the form:

6116913112{x1x2x3}={34050}

Where,

[A]=6116913112

{X}={x1x2x3}

{B}={34050}

First, solve the equations for its unknown and find the value of x1,x2, and x3.

x1=3(1)x2(1)x36.. .. .. (1)

x2=40(6)x1(1)x39.. .. .. (2)

x3=50(3)x1(1)x212.. .. .. (3)

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

Thus, equation (1) becomes,

x1=3(1)x2(1)x36=3(1)(0)(1)(0)6=0.5

Relaxation yields:

x1=λ(0.5)+(1λ)(0)=0.95(0.5)+(10.95)(0)=0.95(0.5)+(0.05)(0)=0.475

Substitute the value of x1 and x3=0 in equation (2) to calculate x2.

x2=40(6)x1(1)x39=40(6)(0.475)(1)(0)9=4.12778

Relaxation yields:

x2=λ(4.12778)+(1λ)(0)=0.95(4.12778)+(10.95)(0)=0.95(4.12778)+(0.05)(0)=3.92139

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

x3=50(3)x1(1)x212=50(3)(0.475)(1)(3.92139)12=3.95863

Relaxation yields:

x3=λ(3.95863)+(1λ)(0)=0.95(3.95863)+(10.95)(0)=0.95(3.95863)+(0.05)(0)=3.76070

For the second iteration, the same process is repeated with x2=3.92139 and x3=3.76070 to compute,

x1=3(1)x2(1)x36=3(1)(3.92139)(1)(3.76070)6=1.78035

Relaxation yields:

x1=λ(1.78035)+(1λ)(0.475)=0.95(1.78035)+(10.95)(.475)=0.95(1.78035)+(0.05)(0.475)=1.71508

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

x2=40(6)x1(1)x39=40(6)(1.71508)(1)(3.76070)9=2.88320

Relaxation yields:

x2=λ(2.88320)+(1λ)(3.92139)=0.95(2.88320)+(10.95)(3.92139)=0.95(2.88320)+(0.05)(3.92139)=2.93511

Now, substitute the calculated values of x1=1.71508 and x2=2.93511 to calculate,

x3=50(3)x1(1)x212=50(3)(1.71508)(1)(2.93511)12=4.35084

Relaxation yields:

x3=λ(4.35084)+(1λ)(3.76070)=0.95(4.35084)+(10.95)(3.76070)=0.95(4.35084)+(0.05)(3.76070)=4.32134

Now, the error can be computed as:

εa,1=|1.715080.4751.71508|×100%=0.7230×100%=72.3%

εa,2=|2.935113.921392.93511|×100%=0.3360×100%=33.6%

εa,3=|4.321343.760704.32134|×100%=0.1297×100%=12.97%

For the third iteration, the same process is repeated with x2=2.93511 and x3=4.32134 to compute,

x1=3(1)x2(1)x36=3(1)(2.93511)(1)(4.32134)6=1.70941

Relaxation yields:

x1=λ(1.70941)+(1λ)(1.71508)=0.95(1.70941)+(10.95)(1.71508)=0.95(1.70941)+(0.05)(1.71508)=1.70969

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

x2=40(6)x1(1)x39=40(6)(1.70969)(1)(4.32134)9=2.82450

Relaxation yields:

x2=λ(2.82450)+(1λ)(2.93511)=0.95(2.82450)+(10.95)(2.93511)=0.95(2.82450)+(0.05)(2.93511)=2.83003

Now, substitute the calculated values of x1=1.70969 and x2=2.83003 to calculate,

x3=50(3)x1(1)x212=50(3)(1.70969)(1)(2.83003)12=4.35825

Relaxation yields:

x3=λ(4.35825)+(1λ)(4.32134)=0.95(4.35825)+(10.95)(4.32134)=0.95(4.35825)+(0.05)(4.32134)=4.35641

Now, the error can be computed as:

εa,1=|1.709691.715081.70969|×100%=0.0031×100%=0.31%

Also,

εa,2=|2.830032.935112.83003|×100%=0.0371×100%=3.71%

εa,3=|4.356414.321344.35641|×100%=0.0080×100%=0.80%

Thus, after four iterations the maximum error is 3.71% which is less than εs=5% and the values are x1=1.70969, x2=2.83003 and x3=4.35641.

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!
Students have asked these similar questions
Integrate the function X^2+2*x on the interval 0 to 3 with a step size of .5 using the trapezoid rule.
Solve the following differential equation for axial deformation of a bar of length 12mm using Galerkin Weighted Residual method 2022/09/ d² dx² = -0.75(4- x)² One end of the bar is fixed whereas the displacement is 12 mm at the other end of the bar. You may use Matlab for computations. Use the trial function û(x) = Co + ₂x + ₂x²
The temperature on a sheet of metal is known to vary according to the following function: T(z,9) – 4z - 2ry We are interested to find the maximum temperature at the intersection of this sheet with a cylindrical pipe of negligible thickness. The equation of the intersection curve can be approximated as: 2+-4 Find the coordinates for the location of maximum temperature, the Lagrangian multiplier and the value of temperature at the optimum point. Wnite your answer with two decimal places of accuracy. HINT: IF there are more than one critical point, you can use substitution in the objective function to select the maximum. Enter your results here: Optimum value of z Optimum value of y Optimum value of A Optimum value of T

Chapter 11 Solutions

EBK NUMERICAL METHODS FOR ENGINEERS

Knowledge Booster
Background pattern image
Mechanical Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Principles of Heat Transfer (Activate Learning wi...
Mechanical Engineering
ISBN:9781305387102
Author:Kreith, Frank; Manglik, Raj M.
Publisher:Cengage Learning
UG/ linear equation in linear algebra; Author: The Gate Academy;https://www.youtube.com/watch?v=aN5ezoOXX5A;License: Standard YouTube License, CC-BY
System of Linear Equations-I; Author: IIT Roorkee July 2018;https://www.youtube.com/watch?v=HOXWRNuH3BE;License: Standard YouTube License, CC-BY