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

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 26, Problem 6P

Solve the following initial-value problem from t = 4  to 5 :

d y d t = 2 y t

Use a step size of 0.5 and initial values of y ( 2.5 ) = 0.48 , y ( 3 ) = 0.333333 , y ( 3.5 ) = 0.244898 ,  and  y ( 4 ) = 0.1875 . Obtain your solutions using the following techniques: (a) the non-self-starting Heun method ( ε S = 1 % ) , and (b) the fourth-order Adams method ( ε S = 0.01 % ) . [Note: The exact answers obtained analytically are y ( 4.5 ) = 0.148148  and  y ( 5 ) = 0.12 .] Compute the true percent relative errors ε t for your results.

(a)

Expert Solution
Check Mark
To determine

To calculate: The solution of differential equation, dydt=2yt from t=4 to t=5 using the non-self-starting Heun method with step size of 0.5 and initial values y(2.5)=0.48, y(3)=0.333333, y(3.5)=0.244898 and y(4)=0.1875. Also, εs=1%. Compute the true percent relative as well.

Answer to Problem 6P

Solution:

First step:

The true error is εt=0.3028%.

Corrector yields:

jyj+1jεa10.14726832.63%20.14769940.292%

Second step:

The true error is εt=0.39%.

Corrector yields:

jyj+1jεa10.119531930.236%

Explanation of Solution

Given Information:

Differential equation, dydt=2yt, t=4 to t=5 with step size of 0.5 and initial values y(2.5)=0.48, y(3)=0.333333, y(3.5)=0.244898 and y(4)=0.1875. Also, εs=1%.

Formula used:

(1) Predictor for non-self-starting Heun method is given by,

yi+10=yi1m+f(ti,yim)2h

(2) Corrector for non-self-starting Heun method is given by,

yi+1j=yim+f(ti,yim)+f(ti+1,yi+1j1)2h

(3) Predictor modifier is given by:

yi+10=yi+1,u0+45(yi,umyi,u0)

where, the subscript u designates that the variable is unmodified.

Calculation:

Consider the given differential equation, dydt=2yt. Here, f(t,y)=2yt.

Predictor for non-self-starting Heun method is given by,

yi+10=yi1m+f(ti,yim)2h.. .. .. (1)

For the given differential equation, it can be written as

yi+10=yi1m+(2yimti)2h

Substitute, i=0, m=0 and h=0.5  in above equation,

y10=y10+(2y00t0)2(0.5)=y10+(2y00t0)

The provided initials conditions are y(2.5)=0.48, y(3)=0.333333, y(3.5)=0.244898 and y(4)=0.1875.

Now, substitute y10=0.244898 , y00=0.1875 and t0=4.

Thus,

y10=0.244898+(2×0.18754)=0.151148

Corrector for non-self-starting Heun method is given by,

yi+1j=yim+f(ti,yim)+f(ti+1,yi+1j1)2h

For the given differential equation, it can be written as,

yi+1j=yim+[(2yimti)+(2yi+1j1ti+1)2]h

Substitute i=0, m=0 and  j=1 in above equation,

y11=y00+[(2y00t0)+(2y10t1)2]h

Put y00=0.1875, y10=0.151148, t0=4, t1=4.5 and h=0.5

y11=0.1875+[(2×0.18754)+(2×0.1511484.5)2]0.5=0.147268277

Similarly, for i=0 and j=2 corrector gives y12=0.1476994.

Error is calculated as,

εa=|y12y11y12|×100=|0.14769940.14726830.1476994|×100=0.2918766

Also, the true error can be computed as,

εt=|0.1481480.14769940.148148|×100=0.3028

Hence, the true error is εt=0.3028%.

jyj+1jεa10.14726832.63%20.14769940.292%

Second step:

Predictor

Substitute i=1 and m=0 in equation (1),

y20=y00+(2y10t1)2h

Substitute y00=4.762673, y10=3.913253 and t1=2.5 in above equation,

y20=0.1875+(2×0.1511484.5)1=0.12032311

Predictor modifier is given by:

yi+10=yi+1,u0+45(yi,umyi,u0)

where, the subscript u designates that the variable is unmodified.

Now, substitute i=1 and m=2 in above equation,

y20=y2,u0+45(y1,u2y1,u0)

Substitute, y2,u0=0.12032311, y1,u2=0.1476994 and y1,u0=0.151148 in above equation,

y20=0.12032311+45(0.14769940.151148)=0.11756423

Corrector is given by:

yi+1j=yim+(2yimti)+(2yi+1j1ti+1)2h

Substitute i=1  j=1, m=2 and h=0.5, m= 2 in above formula as shown below,

y21=y12+[(2y12t1)+(2y20t2)2]h

Now, substitute y12=0.1476994, y20=0.11756423, t1=4.5 and t2=5 as shown below,

y21=0.1476994+[(2×0.14769944.5)+(2×0.117564235)2]0.5=0.11953193

Error can be computed as,

εa=|y21y20y20|×100=|0.119531930.117564230.11953193|×100=1.646%

The true error can be computed as,

εt=|0.120.119531930.12|×100=0.39%

Hence, the true error is εt=0.39%.

Corrector yields:

jyj+1jεa10.119531930.236%

(b)

Expert Solution
Check Mark
To determine

To calculate: The solution of differential equation, dydt=2yt from t=4 to t=5 using the fourth-order Adams method step size of 0.5 and initial values y(2.5)=0.48, y(3)=0.333333, y(3.5)=0.244898 and y(4)=0.1875. Also, the exact answers obtained analytically are y(4.5)=0.148148 and y(5)=0.12 and εs=0.01%. Compute the true percent relative as well.

Answer to Problem 6P

Solution:

The solution obtained for the given differential equation are shown below in tabular form:

Predictor= 0.1527937

Corrector iteration:

tyεaεt4.50.147605453.5149%0.3322%4.50.148037810.292%0.074%4.50.1480017730.024350.099%

Predictor = 0.12165973

Corrector iteration:

tyεaεt50.11969011.6456%0.258%50.11983780.123%0.133%50.11982670.0092%0.142%

Explanation of Solution

Given Information:

Differential equation, dydt=2yt, t=4 to t=5 with step size of 0.5 and initial values y(2.5)=0.48, y(3)=0.333333, y(3.5)=0.244898 and y(4)=0.1875. Values obtained analytically y(4.5)=0.148148 and y(5)=0.12. Also, εs=0.01%.

Formula used:

(1) The fourth order Adams-Bashforth formula as predictor is given by,

yi+10=yim+h24(55fim59fi1m+37fi2m9fi3m)

(2) The fourth order Adams-Bashforth formula as corrector is given by,

yi+1j=yim+h24(9fi+1j1+19fim5fi1m+fi2m)

(3) Error is given as,

εa=|yi+1jyi+1j1yi+1j|×100

Calculation:

Consider the given differential equation, dydt=2yt.

Here, f(t)=2yt.. .. .. (1)

Starting values of AdamsBash fourth method are,

At t=2.5, y=0.48. So, y3=0.48. Substitute this value in equation (1)

Thus,

f3=2×0.482.5=0.384

At t=3, y(3)=0.333333. So, y2=0.333333. Substitute this value in equation (1)

Thus,

f2=2×0.3333333=0.222222

At t=3.5, y=0.244898. So, y1=0.244898. Substitute this value in equation (1)

Thus,

f1=2×0.2448983.5=0.1399417

At t=4.0, y=0.1875. So, y0=0.1875. Substitute this value in equation (1)

Thus,

f0=2×0.18754=0.09375

The fourth order Adams-Bashforth formula as predictor is given by,

yi+10=yim+h24(55fim59fi1m+37fi2m9fi3m).. .. .. (2)

The fourth order Adams formula as the corrector is,

yi+1j=yim+h24(9fi+1j1+19fim5fi1m+fi2m).. .. .. (3)

Use predictor to compute a value at t=4.5, substitute i=0 and m=0 in equation (2),

y10=y00+h24(55f059f1+37f29f3)

Substitute values f0=0.09375, f1=0.1399417, f2=0.222222, f3=0.384 and h=0.5.

y10=0.1875+0.524×(55(0.09375)59(0.1399417)+37(0.222222)9(0.384))=0.1527937

Hence, at t=4.5, y10=0.1527937

f1=2×0.15279374.5=0.0679083

Thus, f1=0.0679083.

Now, use corrector,

Put i=0 ,  j=1  in equation (3),

y11=y00+h24(9f1+19f05f1+f2)

Substitute values f0=0.09375, f1=0.1399417, f2=0.222222, f1=0.0679083 and h=0.5.

y11=0.1875+0.524(9(0.0679083)+19(0.09375)5(0.1399417)+(0.222222))=0.14760545

At t=4.5 and y11=0.14760545

f1=2×0.147605454.5=0.0656024

Thus, f1=0.0656024.

This result can be substituted back into equation (3) to iteratively correct the estimate,

y12=0.1875+0.524(9(0.0656024)+19(0.09375)5(0.1399417)+(0.222222))=0.14803781

Again,

At t=4.5 and y12=0.14803781

f1=2×0.148037814.5=0.0657946

Thus, f1=0.0657946.

This result can be substituted back into equation (3) to iteratively correct the estimate,

y13=0.1875+0.524(9(0.0657946)+19(0.09375)5(0.1399417)+(0.222222))=0.148001773

At t=4.5 and y13=0.148001773

f1=2×0.1480017734.5=0.0657786

Thus, f1=0.0657786.

Now, use the predictor to find the value at t=5.

Substitute i=1 in equation (2),

y20=y1+h24(55f159f0+37f19f2)

Substitute values, f1=0.0657786 f0=0.09375, f1=0.1399417 and f2=0.222222 in above equation, to get

y20=0.148001773+0.524×(55(0.0657786)59(0.09375)+37(0.1399417)9(0.222222))=0.12165973

At t=5 and y20=0.12165973.

f2=2×0.121659735=0.0486639

Thus, f2=0.0486639

Now error is given as,

εa=|yi+1jyi+1j1yi+1j|×100

Calculate εa as shown below,

εa=|0.147605450.15279370.14760545|×100=3.5149%

The true percent relative errors can be calculated as,

εt=|0.1481480.147605450.148148|×100=0.36622%

Corrector formula is given as,

yi+1j=yim+h24(9fi+1j1+19fim5fi1m+fi2m)

Substitute i=1 and j=1 in above formula,

y21=y1+h24(9f20+19f15f0+f1)

Substitute values, f1=0.0657786 f0=0.09375, f1=0.1399417 and f2=0.0486639 in above equation, to get

y21=0.148001773+0.524(9(0.0486639)+19(0.0657786)5(0.09375)+(0.1399417))=0.1196901

At t=5 and y21=0.1196901

f2=2×0.11969015=0.0478760

Thus, f2=0.0478760.

Hence,

y22=0.148001773+0.524(9(0.0478760)+19(0.0657786)5(0.09375)+(0.1399417))=0.11983783

At t=5 and y22=0.11983783

f2=2×0.119837835=0.0479351

Thus, f2=0.0479351.

Hence,

y23=0.148001773+0.524(9(0.0479351)+19(0.0657786)5(0.09375)+(0.1399417))=0.11982675

Now error is given as,

εa=|yi+1jyi+1j1yi+1j|×100

Calculate εa as shown below,

εa=|0.11969010.121659730.1196901|×100=1.6456%

The true percent relative errors can be calculated as,

εt=|0.120.11969010.12|×100=0.25825%

Results are shown below in tabular form:

Predictor= 0.1527937

tyεaεt4.50.147605453.5149%0.3322%4.50.148037810.292%0.074%4.50.1480017730.024350.099%

Corrector iteration:

Predictor = 0.12165973

Corrector iteration:

tyεaεt50.11969011.6456%0.258%50.11983780.123%0.133%50.11982670.0092%0.142%

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
Problem1: Solve the system of linear equations by each of the methods listed below. (a) Gaussian elimination with back-substitution (b) Gauss-Jordan elimination (c) Cramer's Rule 3x, + 3x, + 5x, = 1 3x, + 5x, + 9x3 = 2 5x, + 9x, + 17x, = 4
Solve the following initial value problem by the method of Laplace Transform
3. Using the trial function u¹(x) = a sin(x) and weighting function w¹(x) = b sin(x) find an approximate solution to the following boundary value problems by determining the value of coefficient a. For each one, also find the exact solution using Matlab and plot the exact and approximate solutions. (One point each for: (i) finding a, (ii) finding the exact solution, and (iii) plotting the solution) a. (U₁xx -2 = 0 u(0) = 0 u(1) = 0 b. Modify the trial function and find an approximation for the following boundary value problem. (Hint: you will need to add an extra term to the function to make it satisfy the boundary conditions.) (U₁xx-2 = 0 u(0) = 1 u(1) = 0
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
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