
Concept explainers
Solve the following initial value problem over the interval from
(a) Analytically.
(b) Euler's method with
(c) Midpoint method with
(d) Fourth-order RK method with
(a)

To calculate: The solution of the initial value problem
Answer to Problem 1P
Solution:
The solution to the initial value problem is
Explanation of Solution
Given Information:
The initial value problem
Formula used:
Tosolve an 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 1P
Solution:
For
t | y | |
0 | 1 | |
0.5 | 0.45 | |
1 | 0.25875 | |
1.5 | 0.245813 | 0.282684 |
2 | 0.387155 | 1.122749 |
And, for
t | y | |
0 | 1 | |
0.25 | 0.725 | |
0.5 | 0.536593 | |
0.75 | 0.422861 | |
1 | 0.36603 | |
1.25 | 0.356879 | 0.165057 |
1.5 | 0.398143 | 0.457865 |
1.75 | 0.51261 | 1.005997 |
2 | 0.764109 | 2.215916 |
Explanation of Solution
Given Information:
The initial value problem
Formula used:
Solve an initial value problem of the form
Calculation:
From the initial condition
Let
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 for
t | y | |
0 | 1 | |
0.5 | 0.45 | |
1 | 0.25875 | |
1.5 | 0.245813 | 0.282684 |
2 | 0.387155 | 1.122749 |
Now, the similar procedure can be followedfor the step size
The results thus obtained are tabulated as,
t | y | |
0 | 1 | |
0.25 | 0.725 | |
0.5 | 0.536593 | |
0.75 | 0.422861 | |
1 | 0.36603 | |
1.25 | 0.356879 | 0.165057 |
1.5 | 0.398143 | 0.457865 |
1.75 | 0.51261 | 1.005997 |
2 | 0.764109 | 2.215916 |
The results for the two-step-sizes are plotted along with the analytical solution
It is inferred that the smaller step-size would give a better approximation to the solution.
(c)

To calculate: The solution of the initial value problem
Answer to Problem 1P
Solution:
The solutions are tabulated as,
t | y | |
0 | 1 | |
0.5 | 0.623906 | |
1 | 0.491862 | |
1.5 | 0.602762 | 0.693176 |
2 | 1.364267 | 3.956374 |
Explanation of Solution
Given Information:
The initial value problem
Formula used:
Solve an initial value problem of the form
Here,
Calculation:
From the initial condition
Let
Now,
Proceed further and use the following MATLAB code to implement mid-point iterative scheme and solve the differential equation.
Execute the above code to obtain the solutions tabulated as,
t | Y | |
0 | 1 | |
0.5 | 0.623906 | |
1 | 0.491862 | |
1.5 | 0.602762 | 0.693176 |
2 | 1.364267 | 3.956374 |
The results for the are plotted along with the analytical solution
Thus, it is inferred that the mid-point method gives a good approximation to the solution.
(d)

To calculate: The solution of the initial value problem
Answer to Problem 1P
Solution:
The solutions are tabulated as,
t | y | ||||
0 | 1 | ||||
0.5 | 0.6016 | ||||
1 | 0.4645 | 0.2095 | 0.2391 | 0.6717 | |
1.5 | 0.5914 | 0.6801 | 1.4953 | 1.8937 | 4.4609 |
2 | 1.5845 | 4.5949 | 10.8302 | 17.0071 | 51.9532 |
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
Let
And,
And,
Therefore,
Proceed further and use the following MATLAB code to implement RK method of order four, solve the differential equation.
In an another .m file, define the equation as,
Execute the above code to obtain the solutions tabulated as,
t | y | ||||
0 | 1 | ||||
0.5 | 0.6016 | ||||
1 | 0.4645 | 0.2095 | 0.2391 | 0.6717 | |
1.5 | 0.5914 | 0.6801 | 1.4953 | 1.8937 | 4.4609 |
2 | 1.5845 | 4.5949 | 10.8302 | 17.0071 | 51.9532 |
The results for the are plotted along with the analytical solution
Hence, it is inferred that the RK method of order four gives the best approximation to the solution.
Want to see more full solutions like this?
Chapter 25 Solutions
Numerical Methods for Engineers
- 5.8 A reinforced concrete column is 12 feet long, and un- der load, it shortens 3 inches". Determine its average unit strain. Average Unit Strainarrow_forward5.10 A 500-foot-long steel cable is loaded in tension and registers an average unit strain of 0.005. Determine the total elongation due to this load. Total Elongationarrow_forward5.14 A 100-foot-long surveyor's steel tape with a cross- sectional area of 0.006 square inch must be stretched with a pull of 16# when in use. If the modulus of elasticity of this steel is E = 30,000 ksi, (a) what is the total elongation 8 in the 100 foot tape and (b) what unit tensile stress is pro- duced by the pull? a. Elongation b. Tensile Stressarrow_forward
- Obtain the voltage across the capacitor for the following input: (a) 5Volts; (b) 3sin(t); (c) 2 cos(t). Use Laplace transform and Cramer's rule.arrow_forwardObtain the voltage across the capacitor for the following input: (a) 5Volts; (b) 3sin(t); (c) 2 cos(t). Use Laplace transform and Cramer's rule.arrow_forwardObtain the voltage across the capacitor for the following input: (a) 5Volts; (b) 3sin(t); (c) 2 cos(t). Use Laplace transform and Cramer's rule.arrow_forward
- v(t) + R₁ = 1 ohm W R2 = 1 ohm www i1(t) 0000 L = 2H i2(t) C 1F + vc(t)arrow_forwardObtain the voltage across the capacitor for the following input: (a) 5Volts; (b) 3sin(t); (c) 2 cos(t). Use Laplace transform and Cramer's rule.arrow_forwardFor communcation marks. In the questions answered above should have the criteria show proper mathematical form use proper symbols, notations, conventions, graph(s) where applicable solution is neat, clear and easy to follow If you write on the paper in online version you will be assigned 0 marks except graph.arrow_forward
- a) If is a polynomial function, does always have to have a horizontal asymptote? If no, provide a counterexample. ax+b b) Write an equation for a rational function whose graph of the formex+d where f(x) has all the indicated features. X-intercept of 14 Y-intercept of -1/2 VA with equation -2/3 HA with equation 4/3arrow_forwardAn airplane has a speed of 400 km/h with no wind. The airplane flies 2140 km with the wind. The airplane can only fly 1860 km against the wind in the same time. If w represents the speed of the wind, create an equation could be used to solve for w? Find the speed f the wind. hint; Use Time = Distance / speedarrow_forwardx²+8x+15 f(x) = Consider the function. x²-x-12 a) Determine the following key features of the function: i) domain and range ii) intercepts iii) equations of any asymptotes and holes iv) intervals where the function is increasing and intervals where the function is decreasing v) Sketch the graph.arrow_forward
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:Cengage