Question
Question: Let \(P\left( x \right)={{x}^{6}}+a{{x}^{5}}+b{{x}^{4}}+c{{x}^{3}}+d{{x}^{2}}+ex+f \) be a polynomia...
Let P(x)=x6+ax5+bx4+cx3+dx2+ex+f be a polynomial such that P(1)=1,P(2)=2,P(3)=3,P(4)=1,P(5)=5,P(6)=6, then find the value of P(7).$$$$
Solution
We see that the polynomial P(x)=x for the valuesx=1,2,3,4,5,6. We then use factor theorem to get P(x)−x=C(x−1)(x−2)(x−3)(x−4)(x−5)(x−6). We assign f=P(x)−x and find the value of C by comparison of leading coefficients and then f. We add and subtract 7 to find P(7) using P(x)−x.$$$$
Complete step-by-step answer :
We know from the factor theorem that a polynomial p(x) has a factor (x−a) if and only if p(a)=0 in other words a is a zero of p(x) . We also know that the factorial of a whole number n is product of first n numbers, n!=1×2×3...×n$$$$
The given polynomial is
P(x)=x6+ax5+bx4+cx3+dx2+ex+f
We see that it is a polynomial of degree 6 with leading or the coefficient of highest power is 1. It is also given that P(1)=1,P(2)=2,P(3)=3,P(4)=1,P(5)=5,P(6)=6. So we have P(x)=x for x=1,2,3,4,5,6 and P(x)−x=0 for x=1,2,3,4,5,6. $$$$
We can conclude that P(x)=x is a polynomial of degree 6 and x=1,2,3,4,5,6 are the zeros of the polynomialP(x)=x. So using factor theorem we can say (x−1),(x−2),(x−3),(x−4),(x−5),(x−6) are the factors of the given polynomial P(x). So we can write P(x)−x (denoted as f) and have
f=P(x)−x=C(x−1)(x−2)(x−3)(x−4)(x−5)(x−6)
where C is a constant. As the coefficient of the leading term x6 is 1 then C=1. Let us put x=0 in the above equation