Let $p$ be a polynomial of fourth degree having extremum at $x=1$ and $x=2$ and $\lim \limits_{x \to0}\left(1+\frac{p(x)}{x^2}\right)=2$. Then the value to $p(2)$ is?
This problem was in my book, I tried but I am not getting a clue as to how to begin.
Note that the limit exists if
$$\lim \limits_{x \to0} \frac{p(x)}{x^2}=1$$
and if $p(0)=0$, then by L'Hôpital
$$\lim \limits_{x \to0} \frac{p(x)}{x^2}=\lim \limits_{x \to0} \frac{p'(x)}{2x}=1$$
then $p'(0)=0$ and by L'Hôpital
$$\lim \limits_{x \to0} \frac{p'(x)}{2x}=\lim \limits_{x \to0} \frac{p''(x)}{2}=1\implies p''(0)=2$$
Moreover we know that $p'(1)=p'(2)=0$.
Then for $p(x)=ax^4+bx^3+cx^2+dx+e=0$ we deduce
then $p(x)=ax^4+bx^3+x^2=0$ and now apply $p'(1)=0$ and $p'(2)=0$ that is
that is $a=\frac14$ and $b=-1$ then
$$p(x)=\frac14x^4-x^3+x^2$$