If $g(x)=\frac{P(x)}{x^2-4}$, $\lim_{x\rightarrow\infty}g(x)=5$, and $\lim_{x\rightarrow2}g(x)=\frac{9}{4}$, find P(x)
I have been trying to do this question but I have not succeeded. I have attempted to do it in the following way:
$\lim_{x\rightarrow\infty} \frac{P(x)}{x^2-4}=\lim_{x\rightarrow\infty}\frac{P'(x)}{2x}$ (L'Hospital rule)
$=\lim_{x\rightarrow\infty} \frac{P''(x)}{2}$
Hence we have that $P''(x)=10$.
I also attempted to do something with $\lim_{x\rightarrow2}g(x)=\frac{9}{4}$ however I didn't manage to find anything useful. After a lot of trial and error, I found that an equation which fits the given parameters is: $P(x)=5x^2-11x+2$. Could you please explain to me how to do this question and also explain the intuitive reason behind each step of your reasoning?
L'Hopital's Rule also applies for $x \to 2$. We must have $P(2) = 0$ for $\lim_{x\to2}g(x)$ to exist.
Hence we have $$\lim_{x \to 2} \frac{P'(x)}{2x} = \frac94$$
and thus $P'(2) = 9$.
By $P''(x) = 10$ we have $P'(x) = 10x + c_1$. The above gives $c_1 = -11$.
Now $P(x) = 5x^2-11x+c_2$, and since we must have $P(2) = 0$, we have $c_2 = 2$.
Therefore $P(x)=5x^2-11x+2$.