Simplifying 'b2' of Newton's divided difference interpolation

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 4K views
bsodmike
Messages
82
Reaction score
0
Hi all,

http://www.bsodmike.com/stuff/interpolation.pdf"

I am going through some of my notes and quite a few books; they all skip the over the point I have marked with 3 red dots in the http://www.bsodmike.com/stuff/interpolation.pdf" .

[tex]\begin{equation}\label{eq:solution}\begin{split} <br /> b_2&=\dfrac{f(x_2)-b_0-b_1(x_2-x_0)}{(x_2-x_0)(x_2-x_1)}=\dfrac{f(x_2)-f(x_0)-\dfrac{f(x_1)-f(x_0)}{x_1-x_0}(x_2-x_0)}{(x_2-x_0)(x_2-x_1)}={\color{red}\hdots}= \\[10px]<br /> &=\dfrac{\dfrac{f(x_2)-f(x_1)}{x_2-x_1}-\dfrac{f(x_1)-f(x_0)}{x_1-x_0}}{(x_2-x_0)}<br /> \end{split}\end{equation}[/tex]

[tex]As marked above in {\color{red}red} as three {\color{red}$\hdots$}, what algebraic manipulations are needed to arrive at the solution? <br /> <br /> The farthest I can get is,<br /> \begin{equation}\label{eq:attempt}\begin{split} <br /> b_2&=\dfrac{f(x_2)-f(x_0)-\dfrac{f(x_1)-f(x_0)}{x_1-x_0}(x_2-x_0)}{(x_2-x_0)(x_2-x_1)}\\[10px]<br /> &=\dfrac{f(x_2)-f(x_0)-\left[\left(\dfrac{f(x_1)}{x_1-x_0}+\dfrac{f(x_0)}{x_0-x_1}\right)(x_2-x_0)\right]}{(x_2-x_0)(x_2-x_1)}<br /> \end{split}\end{equation}[/tex]

I would most appreciate your comments on solving this. You can either send me a PM or an email to mike@bsodmike.com.
 
Last edited by a moderator:
Mathematics news on Phys.org
I believe I managed to figure it out. Take the eq. ([tex]b_1[/tex]) in terms of [tex]f(x_0)[/tex],

[tex]\begin{equation}\label{eq:attempt}<br /> f(x_0)=f(x_1)-b_1(x_1-x_0)=f(x_1)-\dfrac{f(x_1)-f(x_0)}{x_1-x_0}(x_1-x_0)<br /> \end{equation}[/tex]

and substitute [tex]b_1[/tex] inside. Substitute the entire [tex]f(x_0)[/tex] in,

[tex]\begin{equation}\label{eq:attempt}\begin{split} <br /> b_2&=\dfrac{f(x_2)-f(x_0)-\dfrac{f(x_1)-f(x_0)}{x_1-x_0}(x_2-x_0)}{(x_2-x_0)(x_2-x_1)}\\[10px]<br /> &=\dfrac{f(x_2)-\left(f(x_1)-\dfrac{f(x_1)-f(x_0)}{x_1-x_0}(x_1-x_0)\right)-\dfrac{f(x_1)-f(x_0)}{x_1-x_0}(x_2-x_0)}{(x_2-x_0)(x_2-x_1)}\\[10px]<br /> &=\dfrac{\dfrac{f(x_2)-f(x_1)}{x_2-x_1}-\left(\dfrac{f(x_1)-f(x_0)}{(x_1-x_0)(x_2-x_1)}((x_0-x_1)+(x_2-x_0))\right)}{(x_2-x_0)}\\[10px]<br /> &=\dfrac{\dfrac{f(x_2)-f(x_1)}{x_2-x_1}-\dfrac{f(x_1)-f(x_0)}{x_1-x_0}}{(x_2-x_0)}<br /> \end{split}\end{equation}[/tex]

\o/ :approve: