Concept explainers
Solve the following initial-value problem from
Use a step size of 0.5 and initial values of
(a)
To calculate: The solution of differential equation,
Answer to Problem 6P
Solution:
First step:
The true error is
Corrector yields:
Second step:
The true error is
Corrector yields:
Explanation of Solution
Given Information:
Differential equation,
Formula used:
(1) Predictor for non-self-starting Heun method is given by,
(2) Corrector for non-self-starting Heun method is given by,
(3) Predictor modifier is given by:
where, the subscript u designates that the variable is unmodified.
Calculation:
Consider the given differential equation,
Predictor for non-self-starting Heun method is given by,
For the given differential equation, it can be written as
Substitute,
The provided initials conditions are
Now, substitute
Thus,
Corrector for non-self-starting Heun method is given by,
For the given differential equation, it can be written as,
Substitute
Put
Similarly, for
Error is calculated as,
Also, the true error can be computed as,
Hence, the true error is
Second step:
Predictor
Substitute
Substitute
Predictor modifier is given by:
where, the subscript u designates that the variable is unmodified.
Now, substitute
Substitute,
Corrector is given by:
Substitute
Now, substitute
Error can be computed as,
The true error can be computed as,
Hence, the true error is
Corrector yields:
(b)
To calculate: The solution of differential equation,
Answer to Problem 6P
Solution:
The solution obtained for the given differential equation are shown below in tabular form:
Corrector iteration:
Corrector iteration:
Explanation of Solution
Given Information:
Differential equation,
Formula used:
(1) The fourth order Adams-Bashforth formula as predictor is given by,
(2) The fourth order Adams-Bashforth formula as corrector is given by,
(3) Error is given as,
Calculation:
Consider the given differential equation,
Here,
Starting values of AdamsBash fourth method are,
At
Thus,
At
Thus,
At
Thus,
At
Thus,
The fourth order Adams-Bashforth formula as predictor is given by,
The fourth order Adams formula as the corrector is,
Use predictor to compute a value at
Substitute values
Hence, at
Thus,
Now, use corrector,
Put
Substitute values
At
Thus,
This result can be substituted back into equation (3) to iteratively correct the estimate,
Again,
At
Thus,
This result can be substituted back into equation (3) to iteratively correct the estimate,
At
Thus,
Now, use the predictor to find the value at
Substitute
Substitute values,
At
Thus,
Now error is given as,
Calculate
The true percent relative errors can be calculated as,
Corrector formula is given as,
Substitute
Substitute values,
At
Thus,
Hence,
At
Thus,
Hence,
Now error is given as,
Calculate
The true percent relative errors can be calculated as,
Results are shown below in tabular form:
Corrector iteration:
Corrector iteration:
Want to see more full solutions like this?
Chapter 26 Solutions
EBK NUMERICAL METHODS FOR ENGINEERS
- Suppose that a room containing 1300 cubic feet of air is originally free of carbon monoxide (CO). Beginning at time t = 0, cigarette smoke containing 4% CO is introduced into the room at a rate of 0.8 cubic feet per minute. The well-circulated smoke and air mixture is allowed to leave the room at the same rate. Let A(t) represent the amount of CO in the room (in cubic feet) after t minutes. (A) Write the DE model for the time rate of change of CO in the room. Also state the initial condition. dA dt A(0) (B) Solve the IVP to find the amount of CO in the room at any time t > 0. A(t) (C) Extended exposure to a CO concentration as low as 0.00012 is harmful to the human body. Find the time at which this concentration is reached. t= minutesarrow_forwardYou buy a house for $210000, and take out a 30-year mortgage at 7% interest. For simplicity, assume that interest compounds continuously. A) What will be your annual mortgage payment? $ per year B) Suppose that regular raises at your job allow you to increase your annual payment by 6% each year. For simplicity, assume this is a nominal rate, and your payment amount increases continuously. How long will it take to pay off the mortgage? yearsarrow_forwardYour employer automatically puts 5 percent of your salary into a 401(k) retirement account each year. The account earns 8% interest. Suppose you just got the job, your starting salary is $40000, and you expect to receive a 2% raise each year. For simplicity, assume that interest earned and your raises are given as nominal rates and compound continuously. Find the value of your retirement account after 30 years Value = $arrow_forward
- Suppose that a room containing 1300 cubic feet of air is originally free of carbon monoxide (CO). Beginning at time t = 0, cigarette smoke containing 4% CO is introduced into the room at a rate of 0.8 cubic feet per minute. The well-circulated smoke and air mixture is allowed to leave the room at the same rate. Let A(t) represent the amount of CO in the room (in cubic feet) after t minutes. (A) Write the DE model for the time rate of change of CO in the room. Also state the initial condition. dA dt A(0) (B) Solve the IVP to find the amount of CO in the room at any time t > 0. A(t) (C) Extended exposure to a CO concentration as low as 0.00012 is harmful to the human body. Find the time at which this concentration is reached. t= minutesarrow_forwardNewton's Law of Cooling tells us that the rate of change of the temperature of an object is proportional to the temperature difference between the object and its surroundings. This can be modeled by the differential equation dT dt k(TA), where T is the temperature of the object after t units of time have passed, A is the ambient temperature of the object's surroundings, and k is a constant of proportionality. Suppose that a cup of coffee begins at 178 degrees and, after sitting in room temperature of 61 degrees for 12 minutes, the coffee reaches 171 degrees. How long will it take before the coffee reaches 155 degrees? Include at least 2 decimal places in your answer. minutesarrow_forwardcan you help me solve this question and show workings pleasearrow_forward
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:Cengage