Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Somebody please help me to obtain piece-wise interpolating polynomials for the function $f(x)$ defined by the below data:

$x=1$, $f(x)=3$; $x=2, f(x)=3$; $x=4, f(x)=21$; $x=8, f(x)=73$

I know the polynomial is given by $p_1i= f_i-1 +(x-x_i-1 )f(x_i-1 ,x_i)$.

share|cite|improve this question
I'm not sure what you mean by p1i= f i-1 +(x-xi-1 )f(xi-1 ,xi). Please clearify that. – draks ... Apr 23 '12 at 14:09

It's not too hard to do. Remember the usual formula for the line through two points $(x_1,y_1)$ and $(x_2,y_2)$:


You have a bunch of points give; the idea is that your function is represented in each interval by the line joining the two endpoints of your interval. So, for instance, within the interval $[1,2]$, you have the line


and similarly for the intervals $[2,4]$, and $[4,8]$ (four points makes three intervals). Can you do the rest?

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.