Cubic polynomial interpolation

Algebra Level 2

If p ( x ) p(x) is a cubic polynomial with

p ( 1 ) = 1 , p ( 2 ) = 2 , p ( 3 ) = 3 , p ( 4 ) = 5 , \begin{array}{c}&p(1)= 1, &p(2)=2, &p(3)=3, &p(4)=5,\end{array}

find p ( 6 ) . p(6).


The answer is 16.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

I'm going to use 2 methods to solve this problem, I'm going to give you a guideline for a third method (3), and of course, there are more methods ... for example, method of finite differences

1. \boxed{1.-} We are looking for a cubic polynomial p ( x ) p(x) fulfilling p ( 1 ) = 1 ; p ( 2 ) = 2 ; p ( 3 ) = 3 ; p ( 4 ) = 5 p(1) = 1; \space p(2) = 2 ; \space p(3) = 3; \space p(4) = 5 . I'm going to use Lagrange interpolation , and I'm going to search constants a , b , c , d a, b, c, d such that they meet the conditions imposed. p ( x ) = a ( x 1 ) ( x 2 ) ( x 3 ) + b ( x 1 ) ( x 2 ) ( x 4 ) + c ( x 2 ) ( x 3 ) ( x 4 ) + d ( x 1 ) ( x 3 ) ( x 4 ) p(x) = a(x - 1)(x - 2)(x - 3) + b(x -1)(x -2)(x - 4) + c(x -2)(x - 3)(x - 4) + d(x - 1)(x - 3)(x - 4) p ( 1 ) = 1 c = 1 6 ; p ( 2 ) = 2 d = 1 ; p ( 3 ) = 3 b = 3 2 ; p ( 4 ) = 5 a = 5 6 p(1) = 1 \Rightarrow c = \frac{-1}{6}; \space p(2) = 2 \Rightarrow d = 1; \space p(3) = 3 \Rightarrow b = \frac{-3}{2}; p(4) = 5 \Rightarrow a = \frac{5}{6} So, the polynomial is p ( x ) = 5 6 ( x 1 ) ( x 2 ) ( x 3 ) 3 2 ( x 1 ) ( x 2 ) ( x 4 ) 1 6 ( x 2 ) ( x 3 ) ( x 4 ) + ( x 1 ) ( x 3 ) ( x 4 ) p(x) = \frac{5}{6}(x -1)(x - 2)(x - 3) - \frac{3}{2}(x - 1)(x - 2)(x -4) - \frac{1}{6}(x - 2)(x - 3)(x - 4) + (x - 1)(x - 3)(x - 4) and now substituing at x = 6 x = 6 we get p ( 6 ) = 16 p(6) = 16

2. \boxed{2.-} If p ( x ) p(x) is a cubic polynomial fulfilling the conditions imposed, then p ( x ) x p(x) - x is a cubic polynomial wich roots are 1 , 2 , 3 1,2,3 and this implies that p ( x ) x = k ( x 1 ) ( x 2 ) ( x 3 ) p(x) - x = k(x - 1)(x- 2)(x- 3) where k k is a constant. p ( 4 ) = 5 k = 1 6 p ( x ) = x + 1 6 ( x 1 ) ( x 2 ) ( x 3 ) p(4) = 5 \Rightarrow k = \frac{1}{6} \Rightarrow p(x) = x + \frac{1}{6}(x - 1)(x - 2)(x - 3) \Rightarrow p ( 6 ) = 6 + 1 6 5 4 3 = 16 p(6) = 6 + \frac{1}{6} \cdot 5 \cdot 4 \cdot 3 = 16

3. \boxed{3.-} Use method of indetermined coeffcients,i.e, look for a polynomial p ( x ) = a x 3 + b x 2 + c x + d p(x) = ax^3 + bx^2 + cx + d where a , b , c , d a, b ,c , d are constants and such that p ( 1 ) = 1 , p ( 2 ) = 2 , , p ( 3 ) = 3 , p ( 4 ) = 5 p(1) = 1, \space p(2) = 2, \space, p(3) = 3, \space p(4) = 5 ,i. e, look for constants a , b , c , d a ,b, c, d such that a + b + c + d = 1 8 a + 4 b + 2 c + d = 2 27 a + 9 b + 3 c + d = 3 64 a + 16 b + 4 c + d = 5 a + b + c + d = 1 \\ 8a + 4b + 2c + d = 2 \\ 27a + 9b + 3c + d = 3 \\ 64a + 16b + 4c + d = 5 Solve this system of equations for a , b , c , d a, b, c , d and later substitute...

How did you arrived at the result that p(x)-x will have roots 1,2,3 ? Is there any proof/theorem for this ?

Nilaksh Singh - 3 years, 8 months ago

Log in to reply

That is a basic property that we use for solving questions like these.

Shishir Shahi - 3 years, 8 months ago
Priyanshu Mishra
Oct 11, 2016

p ( x ) x = λ ( x 1 ) ( x 2 ) ( x 3 ) p(x) - x = \lambda(x-1)(x-2)(x-3) , where λ \lambda is a leading coefficient .... ( 1 ) (1) .

Plug x = 4 x = 4 to get

p ( 4 ) = 6 ( λ ) + 4 p(4) = 6(\lambda) + 4

λ = 1 6 \large\ \lambda = \frac{1}{6} .

Put this is ( 1 ) (1) and set x = 6 x=6 to get

p ( 6 ) = 10 + 6 = 16. p(6) = 10 + 6 =16. .

You're excellent, thank you very much!

Hoanthien Nguyen - 4 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...