If $f$ is a polynomial of degree $4$ such that $$f(0) = f(1) = f(2) = f(3) = 1$$ and $$f(4) = 0,$$ then determine $f(5)$.
How would I do this? Any simple formula or theorem?
If $f$ is a polynomial of degree $4$ such that $$f(0) = f(1) = f(2) = f(3) = 1$$ and $$f(4) = 0,$$ then determine $f(5)$.
How would I do this? Any simple formula or theorem?
Define \begin{align} p(x) = f(x)-1 \end{align} then we see that $0, 1, 2, 3$ are its roots which means \begin{align} p(x) = cx(x-1)(x-2)(x-3) \end{align} where \begin{align} p(4) = f(4)-1 = -1 = c4!. \end{align} Hence $c = -1/4!$. Now finish the problem.
A arbitrary polynomial of degree $4$ is $p(x)=a_4x^4+a_3a^3+...a_1x+a_0.$ Put the given conditions and find the coefficients.