Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

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|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
add comment

1 Answer 1

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|improve this answer
add comment

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.