A monic polynomial f ( x ) of degree 5 is such that ⎩ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎧ f ( 0 ) = 1 f ( 1 ) = 2 f ( 2 ) = 5 f ( 3 ) = 1 0 f ( 4 ) = 1 7 . What is 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.
@Ruchit Chudasama , you need to mention f ( x ) is monic that is the coefficient of the highest power of x is 1. If not there is no solution.
Log in to reply
Actually it was in my mind but, in my typing flow, I just forgot to mention it......
Log in to reply
I have edited the problem for you.
How did you get the function?
Log in to reply
Firstly: note that the given list of function values matches g ( x ) = x 2 + 1 . This however is not a monic polynomial of degree 5 (it is monic, but only of degree 2). As such, Chew-Seong Cheong adds an additional term to obtain f ( x ) . This term does make it a monic function of degree 5, and adds 0 at all of the given values of x : each of the terms in the multiplication becomes 0 in turn.
Notice that f ( n ) = 1 + n 2 for all n = 0 , 1 , 2 , 3 , 4 . Therefore the equation f ( n ) − n 2 − 1 = 0 has roots 0, 1, 2, 3, 4. So we can write f ( n ) − n 2 − 1 = K n ( n − 1 ) ( n − 2 ) ( n − 3 ) ( n − 4 ) for some proportional constant K. However, notice that f ( n ) − n 2 − 1 is still a monic polynomial, so K = 1 . Rearrange the equation we get f ( n ) = n ( n − 1 ) ( n − 2 ) ( n − 3 ) ( n − 4 ) + n 2 + 1
Why it can t be (x^2+1)?
Log in to reply
Note that if g ( x ) = x 2 + 1 , then g ( 0 ) = 1 , g ( 1 ) = 2 , g ( 2 ) = 5 , g ( 3 ) = 1 0 and g ( 4 ) = 1 7 .
see, they say you should have "read the statement carefully" and "had noticed" that it was the polynomial of degree 5 they wanted you to find:)))))
I have provided a note to explain.
A monic polynomial with a degree of 5 has the form f ( x ) = x 5 + B x 4 + C x 3 + D x 2 + E x + F .
For f ( 0 ) = 1 , 1 = 0 5 + B ( 0 ) 4 + C ( 0 ) 3 + D ( 0 ) 2 + E ( 0 ) + F , or F = 1
For f ( 1 ) = 2 , 2 = 1 5 + B ( 1 ) 4 + C ( 1 ) 3 + D ( 1 ) 2 + E ( 1 ) + F , or B + C + D + E + F = 1
For f ( 2 ) = 5 , 5 = 2 5 + B ( 2 ) 4 + C ( 2 ) 3 + D ( 2 ) 2 + E ( 2 ) + F , or 1 6 B + 8 C + 4 D + 2 E + F = − 2 7
For f ( 3 ) = 1 0 , 1 0 = 3 5 + B ( 3 ) 4 + C ( 3 ) 3 + D ( 3 ) 2 + E ( 3 ) + F , or 8 1 B + 2 7 C + 9 D + 3 E + F = − 2 3 3
For f ( 4 ) = 1 7 , 1 7 = 4 5 + B ( 4 ) 4 + C ( 4 ) 3 + D ( 4 ) 2 + E ( 4 ) + F , or 2 5 6 B + 6 4 C + 1 6 D + 4 E + F = − 1 0 0 7
Solving the system equations gives B = − 1 0 , C = 3 5 , D = − 4 9 , E = 2 4 , and F = 1 .
Therefore, the polynomial is f ( x ) = x 5 − 1 0 x 4 + 3 5 x 3 − 4 9 x 2 + 2 4 x + 1 , and f ( 5 ) = 5 5 − 1 0 ( 5 ) 4 + 3 5 ( 5 ) 3 − 4 9 ( 5 ) 2 + 2 4 ( 5 ) + 1 = 1 4 6 .
How can you persuppose the coefficient of x^5 is 1
Excellent, thank you
Relevant wiki: Polynomial Interpolation - Problem Solving
Let g ( x ) = f ( x ) − ( x 2 + 1 ) . Then g ( x ) is a monic fifth-degree polynomial whose zeroes are 0 , 1 , 2 , 3 , and 4 .
Therefore, g ( x ) = x ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) = f ( x ) − ( x 2 + 1 ) , so f ( x ) = x ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) + x 2 + 1 . f ( 5 ) = 5 ( 4 ) ( 3 ) ( 2 ) ( 1 ) + 2 5 + 1 = 1 4 6 .
That's perfect, thanks
Because f ( x ) = x 2 + 1 for x = 0 , 1 , 2 , 3 , 4 , we can let g ( x ) = f ( x ) − x 2 − 1 , so 0 , 1 , 2 , 3 , 4 will be the roots of g . Furthermore, to make f monic, g will need to be monic also, so g ( x ) = x ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) , which let f ( x ) = x ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) + x 2 + 1 , then we have f ( 5 ) = 5 ! + 2 5 + 1 = 1 4 6 .
For a polynomial of degree n, the nth set of finite differences will be equal. I remember proving with some algebra 2 students many years ago that not only are they equal, but they are equal to n!*(leading coefficient) as long as the x values are 1 apart. Since the leading coefficient is 1, we just need to make the 5th difference equal to 5!=120. I'll leave a blank at the end of each line until I have the info to fill them in.
1 , 2 , 5 , 1 0 , 1 7 , _ Original numbers
1 , 3 , 5 , 7 , _ First differences
2 , 2 , 2 , _ Second
0 , 0 , _ Third
0 , _ Fourth
_ Fifth difference
This last blank is the 120.
Backfilling the blanks gives
1 2 0
0 , 1 2 0
0 , 0 , 1 2 0
2 , 2 , 2 , 1 2 2
1 , 3 , 5 , 7 , 1 2 9
1 , 2 , 5 , 1 0 , 1 7 , 1 4 6
Fix the typo on original value 17. Simpler than taking the set of linear equations straight on without any short cut at x 2 + 1
Log in to reply
Fixed, thanks. I was unaware of the x^2+1 trick. I would have done it David Vreken's way if this hadn't occurred to me.
Not everyone is able to figure out that f ( x ) = x 2 + 1 for x = 0 , 1 , 2 , 3 , 4 . It's OK if you can't think of that. I have a way to overcome that.
Do notice that f ( n + 1 ) − f ( n ) = 2 n + 1 for n = 0 , 1 , 2 , 3 since
f ( 1 ) − f ( 0 ) = 2 − 1 = 1 , f ( 2 ) − f ( 1 ) = 5 − 2 = 3 , f ( 3 ) − f ( 2 ) = 1 0 − 5 = 5 , f ( 4 ) − f ( 3 ) = 1 7 − 1 0 = 7
∑ n = 0 k ( f ( n + 1 ) − f ( n ) ) = ∑ n = 0 k ( 2 n + 1 )
f ( 1 ) − f ( 0 ) + f ( 2 ) − f ( 1 ) + f ( 3 ) − f ( 2 ) + . . . + f ( k ) − f ( k − 1 ) + f ( k + 1 ) − f ( k ) = 2 ( 0 ) + 1 + ∑ n = 1 k ( 2 n + 1 )
f ( k + 1 ) − f ( 0 ) = 1 + 2 ( 2 k ( k + 1 ) ) + k
f ( k + 1 ) − 1 = 1 + k ( k + 1 ) + k
f ( k + 1 ) = k 2 + 2 k + 2 = ( k + 1 ) 2 + 1
∴ f ( k ) = k 2 + 1 for k = 0 , 1 , 2 , 3
Then, by Factor Theorem , we deduce that f ( x ) = x ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) + x 2 + 1 . Since the question mentions that f ( x ) is monic polynomial, it follows that the leading coefficient has to be 1 .
f ( 5 ) = 5 × 4 × 3 × 2 × 1 + 5 2 + 1 = 1 4 6
f(x) = (x-2)^5 + A(x-2)^4 + B(x-2)^3 + C(x-2)^2 + D(x-2) + 5
Let’s calculate!
Assume six-th point is (5,f5) with fn=f(n), write Lagrange polynomial of degree 5 with 6 points and solve for f5 so that polynomial is monic, i.e. coefficient of x^5 is 1.
Polynomial is sum i fi*[prod (m<>i) (x-xm)/(xi-xm)] for i = 0 to 5 and m in {0,1,2,3,4,5}. Coefficient of x^5 is sum i fi*[prod (m<>i) 1/(xi-xm)]. Thus, it should be 1 for monicity. So, f5 = (1 - sum (i<5) fi/[prod (m<>i) (xi-xm)])*[prod_(m<>5) (xi-xm)].
With the numbers, you get f5 = (1 - (-6+60-300+600-510)/720)*120 = (720+156)/6 = 146
Problem Loading...
Note Loading...
Set Loading...
We note that f ( x ) is of the following form:
f ( x ) f ( 0 ) f ( 1 ) f ( 2 ) f ( 3 ) f ( 4 ) f ( 5 ) = x ( x − 1 ) ( x − 2 ) ( x − 3 ) ( x − 4 ) + x 2 + 1 = 0 + 0 2 + 1 = 1 = 0 + 1 2 + 1 = 2 = 0 + 2 2 + 1 = 5 = 0 + 3 2 + 1 = 1 0 = 0 + 4 2 + 1 = 1 7 = 1 2 0 + 2 5 + 1 = 1 4 6 Note that it is monic and a degree of 5. See note on how to get x 2 + 1 .
Note: Let a 0 = 1 , a 1 = 2 , ... a 4 = 1 7 . We note that a k − a k − 1 = 2 k − 1 . Then we have:
k = 1 ∑ x a k − k = 1 ∑ x a k − 1 k = 1 ∑ x a k − k = 0 ∑ x − 1 a k a x − a 0 a x − 1 a x = k = 1 ∑ x ( 2 k − 1 ) = k = 1 ∑ x ( 2 k − 1 ) = 2 × 2 x ( x + 1 ) − x = x 2 = x 2 + 1