Americas
Europe
Q27E
Expert-verifiedQuestion: Consider the initial value problem .
(a) Using definite integration, show that the integrating factor for the differential equation can be written as and that the solution to the initial value problem is
(b) Obtain an approximation to the solution at x = 1 by using numerical integration (such as Simpson’s rule, Appendix C) in a nested loop to estimate values of and, thereby, the value of .
[Hint: First, use Simpson’s rule to approximate at x = 0.1, 0.2, . . . , 1. Then use these values and apply Simpson’s rule again to approximate ]
(c) Use Euler’s method (Section 1.4) to approximate the solution at x = 1, with step sizes h = 0.1 and 0.05. [A direct comparison of the merits of the two numerical schemes in parts (b) and (c) is very complicated, since it should take into account the number of functional evaluations in each algorithm as well as the inherent accuracies.]
Since is a continuous real valued function on an open interval which contains points 0 we can use fundamental theorem of calculus to obtain
We can write integrating factor as
Multiplying by
Now,
Here
Put x=1 then
We find the value of.
Using Simpson’s rule
So, at x=0.1,0.2, ……1
The values are
x = 0, =1
x = 0.1, =1.105354
x = 0.2, =1.223010
x = 0 .3, =1.355761
x = 0 .4, =1.506975
x = 0.5, =1.680635
x = 0 .6, =1.881401
x = 0 .7, =2.114679
x = 0 .8, =2.386713
x = 0 .9, =2.70670
x = 1, =3.076723
Now, using the previous conclusions
So,
role="math" localid="1663932388162" role="math" localid="1663932537871"
Therefore,
The differential equation is
Use the recursive formula
localid="1663933001609"
Where,
and , h=0.1, N=10 steps at x=1
The values are
Therefore,
and, h=0.1, N=20 steps at x=1
Therefore,
94% of StudySmarter users get better grades.
Sign up for free