How can I derive this approximate equation via the Taylor expansion: 2y(x+h)−y(x−h)−122h(y′(x+h)+4y′(x)+y′(x−h))=−801h5y(5)(x)+O(h7) ? Do we have to assume that y(x+h)−y(x−h)=2hy′(x)+31h3y′′′(x))+3601h5y(5)(x))+O(h7) or does this follow ?
You should use the Taylor expansions of y(x+h) and y(x−h) up to O(h7) to have an expression of 2y(x+h)−y(x−h), then obtain in the same way an expression of 2y′(x+h)+y′(x−h) that you're gonna use to make disappear some terms of low degree:
-
Start with:
y(x+h)=y(x)+hy′(x)+2h2y′′(x)+3!h3y′′′(x)+4!h4y(4)(x)+5!h5y(5)(x)+6!h6y(6)(x)+O(h7)
y(x−h)=y(x)−hy′(x)+2h2y′′(x)−3!h3y′′′(x)+4!h4y(4)(x)−5!h5y(5)(x)+6!h6y(6)(x)+O(h7)
It gives that:
2y(x+h)−y(x−h)=hy′(x)+3!h3y′′′(x)+5!h5y(5)(x)+O(h7)
and then:
2y(x+h)−y(x−h)−hy′(x)=3!h3y′′′(x)+5!h5y(5)(x)+O(h7)(1)
-
We now use:
y′(x+h)=y′(x)+hy′′(x)+2h2y′′′(x)+3!h3y(4)(x)+4!h4y(5)(x)+5!h5y(6)(x)+6!h6y(7)(x)+O(h7)
y(x−h)=y′(x)−hy′′(x)+2h2y′′′(x)−3!h3y(4)(x)+4!h4y(5)(x)−5!h5y(6)(x)+6!h6y(7)(x)+O(h7)
It gives that:
2y′(x+h)+y′(x−h)=y′(x)+2h2y′′′(x)+4!h4y(5)(x)+6!h6y(7)(x)+O(h7)
then:
2y′(x+h)+y′(x−h)−y′(x)=2h2y′′′(x)+4!h4y(5)(x)+6!h6y(7)(x)+O(h7)
then:
h(2y′(x+h)+y′(x−h)−y′(x))=2h3y′′′(x)+4!h5y(5)(x)+O(h7)
then:
62h(2y′(x+h)+y′(x−h)−y′(x))=3!h3y′′′(x)+4!62h5y(5)(x)+O(h7)
ie. :
122h(y′(x+h)+y′(x−h)−2y′(x))=3!h3y′′′(x)+4!62h5y(5)(x)+O(h7)(2)
-
(1)−(2) gives:
2y(x+h)−y(x−h)−hy′(x)−122h(y′(x+h)+y′(x−h)−2y′(x)=(5!h5−4!62h5)y(5)(x)+O(h7)
ie. :
2y(x+h)−y(x−h)−122h(y′(x+h)+4y′(x)+y′(x−h))=(5!h5−4!62h5)y(5)(x)+O(h7)
but we compute:
5!1−4!62=5!1−3.4.61=2.3.4.51−3.4.61=121(101−61)=121(303−305)=121(30−2)=−3602=−1801
and thus:
2y(x+h)−y(x−h)−122h(y′(x+h)+4y′(x)+y′(x−h))=−1801h5y(5)(x)+O(h7)(∗)
which is what you wanted (modulo a little typo a priori).
There are some tricks to use to solve such questions. Your goal is to obtain an approximation of f5(x). You must do things like combining Taylor expansions of f(x+h) and f(x−h) to eliminate the terms of low degree ie. the terms f′′(x),f′′′(x)... before f5(x), by using parities. You can try first to compute an approximation of f′(x),f′′(x)... and you're gonna get a feeling of the tricks.
As far as I know, these expressions are useful to compute solutions of differential equations numerically for instance. It's nice to have access to the fifth derivative without computing the first, then the second, then the third... and it's a more secured and efficient way to compute this fifth derivative numerically.
Originally, my main goal was to obtain (5.3-10) especially the number 24 as below. I obviously need to integrate G(s) but I do not know from where to where. The source is here on page 173. 111.jpg
This topic was moved here from #learning: questions > Taylor expansion of y'(x-h) by Matteo Capucci (he/him).