Given that f is a polynomial of degree 3 and that f ( k ) = 3 k for k = 1 , 2 , 3 , 4 .
Find the value of f ( 5 ) .
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.
For variety, I am using matrix to solve the problem.
Let f ( x ) = a x 3 + b x 2 + c x + d . Then we have:
⎣ ⎢ ⎢ ⎡ 1 8 2 7 6 4 1 4 9 1 6 1 2 3 4 1 1 1 1 ⎦ ⎥ ⎥ ⎤ ⎣ ⎢ ⎢ ⎡ a b c d ⎦ ⎥ ⎥ ⎤ = ⎣ ⎢ ⎢ ⎡ 3 9 2 7 8 1 ⎦ ⎥ ⎥ ⎤
⟹ ⎣ ⎢ ⎢ ⎡ a b c d ⎦ ⎥ ⎥ ⎤ = ⎣ ⎢ ⎢ ⎡ 1 8 2 7 6 4 1 4 9 1 6 1 2 3 4 1 1 1 1 ⎦ ⎥ ⎥ ⎤ − 1 ⎣ ⎢ ⎢ ⎡ 3 9 2 7 8 1 ⎦ ⎥ ⎥ ⎤ = ⎣ ⎢ ⎢ ⎡ − 6 1 2 3 − 3 1 3 4 2 1 − 4 2 1 9 − 6 − 2 1 2 7 − 7 4 6 1 − 1 6 1 1 − 1 ⎦ ⎥ ⎥ ⎤ ⎣ ⎢ ⎢ ⎡ 3 9 2 7 8 1 ⎦ ⎥ ⎥ ⎤ = ⎣ ⎢ ⎢ ⎡ 4 − 1 8 3 2 − 1 5 ⎦ ⎥ ⎥ ⎤
Therefore, f ( x ) = 4 x 3 − 1 8 x 2 + 3 2 x − 1 5 , ⟹ f ( 5 ) = 4 ( 1 2 5 ) − 1 8 ( 2 5 ) + 3 2 ( 5 ) − 1 5 = 1 9 5 .
Let f ( x ) = 3 ( ( 0 x − 1 ) + 2 ( 1 x − 1 ) + 2 2 ( 2 x − 1 ) + 2 3 ( 3 x − 1 ) ) = 3 ( 1 + 2 ( x − 1 ) + 2 ( x − 1 ) ( x − 2 ) + 3 4 ( x − 1 ) ( x − 2 ) ( x − 3 ) )
We see that this the degree of f is 3 and it fulfills and the condition f ( k ) = 3 k for k = 1 , 2 , 3 , 4 .
Now f ( 5 ) = 3 ( ( 0 4 ) + 2 ( 1 4 ) + 2 2 ( 2 4 ) + 2 3 ( 3 4 ) ) = 3 ( 3 4 − 2 4 ) = 1 9 5 .
Problem Loading...
Note Loading...
Set Loading...
Since the x -values are consecutive, we can just consider the triangle of differences: Row 0 Row 1 Row 2 Row 3 3 6 3 2 1 2 1 8 2 4 3 3 3 6 5 4 3 4
And since the interpolating polynomial has degree 3 , all the rows below Row 3 are zero. This gives the next value by working from the bottom and moving up the triangle Row 0 Row 1 Row 2 Row 3 Row 4 3 6 3 2 1 2 1 8 2 4 3 3 3 6 0 5 4 2 4 3 4 6 0 1 1 4 1 9 5
which gives f ( 5 ) = 1 9 5 .
Clarification: