=>
Integrating, we have
=> ( c is a constant)
Now from the condition , comes out to be
So
Why are you using Taylor's method?
hi, I'm wondering how to find the approximate solution of
dy/dx= e^x y y(0)=1
at x = 0.1 using the Taylor Series method. The expansion should include the
first four non-zero terms. Work to six decimal places accuracy.
Here is what I did but I am unsure which one is correct :
first attempt:
y'=e^x y y'(0)=1
y''=e^x y' y''(0)=1
y'''=e^x y'' y'''(0)=1
sub them into Taylor series method:
y(x0+h)=y(0+0.1)=y(0.1)= 1+h+h^2 /2 + h^3 /6
second attempt:
used product rule to differentiate:
y''=e^x y' + e^x y y''(0)=1+1=2
y'''=e^x y'' + e^x y' + e^x y' +e^x y y'''(0)=2+1+1+1=5
sub them into Taylor:
y(0.1)=1+1*0.1+ 2*(0.1)^2 /2 + 5*(0.1)^3 /6
thank you
Because of the fact that the initial data is given at 0 your first method is the best idea. so you know that
Note in general if you nave two functions (and in your cases )
General Leibniz rule - Wikipedia, the free encyclopedia
you get that
Putting this together you get that the value of the nth derivative is
(The n-1 comes from the fact we didn't need to use the product rule to take the first derivative it was given by the ODE)
You can use this to get as many terms as you need the series look like this
After cranking out a few terms I get that the series looks like
Now use Taylors remainder theorem to show the error bound is where you want it.