Concept explainers
Solve the following problem over the interval from
(a) Analytically.
(b) Euler's method.
(c) Heun's method without iteration.
(d) Ralston's method.
(e) Fourth-order RK method.
(a)
To calculate: The solution of the initial value problem
Answer to Problem 2P
Solution: The solution to the initial value problem is
Explanation of Solution
Given Information:
The initial value problem
Formula used:
To solvean initial value problem of the form
Calculation:
Rewrite the provided differential equation as,
Integrate both sides to get,
Now use the initial condition
Hence, the analytical solution of the initial value problem is
(b)
To calculate: The solution of the initial value problem
Answer to Problem 2P
Solution: For
t | y |
0 | 1 |
0.25 | 1.25 |
0.5 | 1.809017 |
0.75 | 2.817765 |
1 | 4.496385 |
Explanation of Solution
Given Information:
The initial value problem
Formula used:
Solvean initial value problem of the form
Calculation:
From the initial condition
Thus, evaluate the function
Further,
Proceed further and use the following MATLAB code to implement Euler’s method and solve the differential equation.
Execute the above code to obtain the solutions stored in matrix
The results thus obtained are tabulated as,
T | y |
0 | 1 |
0.25 | 1.25 |
0.5 | 1.809017 |
0.75 | 2.817765 |
1 | 4.496385 |
(c)
To calculate: The solution of the initial value problem
Answer to Problem 2P
Solution: The solutions are tabulated as,
Explanation of Solution
Given Information:
The initial value problem
Formula used:
Solve an initial value problem of the form
In the above expression,
Calculation:
From the initial condition
Thus, evaluate the function
And,
Thus,
Proceed further and use the following MATLAB code to implement Heun’s method and solve the differential equation.
Execute the above code to obtain the solutions stored in matrix
Theresults thus obtained aretabulated as,
(d)
To calculate: The solution of the initial value problem
Answer to Problem 2P
Solution: The solutions are tabulated as,
Explanation of Solution
Given Information:
The initial value problem
Formula used:
Solve an initial value problem of the form
In the above expression,
Calculation:
From the initial condition
Thus, evaluate the function
And,
Thus,
Proceed further and use the following MATLAB code to implement Ralston’s method and solve the differential equation.
Execute the above code to obtain the solutions stored in matrix
The results thus obtained are tabulated as,
(e)
To calculate: The solution of the initial value problem
Answer to Problem 2P
Solution: The solutions are tabulated as,
Explanation of Solution
Given Information:
The initial value problem
Formula used:
Solve an initial value problem of the form
In the above expression,
Calculation:
From the initial condition
Ans,
And,
And,
Therefore,
Proceed further and use the following MATLAB code to implement RK method of order four, solve the differential equation, and compare the results obtained from part (a) to part (e) on a single plot.
Execute the above code to obtain the solutions stored in matrix
The results thus obtained are tabulated as,
Plot for all the methods along with the analytical solution
From the graph, it is inferred that the RK method of order 4 is the best approximation to the solution.
Want to see more full solutions like this?
Chapter 25 Solutions
Numerical Methods for Engineers
Additional Math Textbook Solutions
College Algebra Essentials (5th Edition)
Pathways To Math Literacy (looseleaf)
College Algebra (Collegiate Math)
Elementary Statistics ( 3rd International Edition ) Isbn:9781260092561
College Algebra (7th Edition)
- Find the unknown value. 27. y varies jointly with x and the cube root of 2. If when x=2 and z=27,y=12, find y if x=5 and z=8.arrow_forwardThe population P (in millions) of Texas from 2001 through 2014 can be approximated by the model P=20.913e0.0184t, where t represents the year, with t=1 corresponding to 2001. According to this model, when will the population reach 32 million?arrow_forwardbThe average rate of change of the linear function f(x)=3x+5 between any two points is ________.arrow_forward
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageTrigonometry (MindTap Course List)TrigonometryISBN:9781337278461Author:Ron LarsonPublisher:Cengage Learning
- Functions and Change: A Modeling Approach to Coll...AlgebraISBN:9781337111348Author:Bruce Crauder, Benny Evans, Alan NoellPublisher:Cengage LearningAlgebra and Trigonometry (MindTap Course List)AlgebraISBN:9781305071742Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage Learning