Newton's interpolating polynomial

  • Thread starter Thread starter fluidistic
  • Start date Start date
  • Tags Tags
    Polynomial
fluidistic
Gold Member
Messages
3,928
Reaction score
272

Homework Statement


Interpolate the function ln(x+1) using a Newton's polynomial of degree 2. The points to be interpolated are x_0=0, x_1=0.6 and x_2=0.9.


Homework Equations



p_2(x)=c_0+c_1(x-x_0)+c_2(x-x_0)(x-x_1).

The Attempt at a Solution


So I used divided differences in order to calculate the coefficients of the polynomial.
f[x_1, x_2]=\frac{f(x_2)-f(x_1)}{x_2-x_1} \approx 0.1718502569.
f[x_0,x_1]\approx 0.7833393821.
f[x_0,x_1,x_2]=\approx -0.6794.
This gives c_0=0, c_1\approx 0.78 and c_2 \approx -0.68.
I've plotted both ln(x+1) and the polynomial and... it doesn't fit as it should. In fact it interpolates ln(x+1) in 0 and 0.6 but not in 0.9 as it should.
Where did I go wrong?! I've redone the algebra twice, even with a calculator and I'm still getting this wrong result.
Thanks for any help.
 

Attachments

  • forlatex.jpg
    forlatex.jpg
    38.4 KB · Views: 441
Physics news on Phys.org
fludistic - I get a different value for c2 of approx -.2344... Don't forget, your data is spaced unequally.
 
TheoMcCloskey said:
fludistic - I get a different value for c2 of approx -.2344... Don't forget, your data is spaced unequally.

Thanks. I've redone all from scratch and now get your result. :)
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top