Here is the problem:
$P(x)$ and $Q(x)$ are polynomials with real coefficients and $P(x)^3-Q(x)^3$ is divisible by $(x-a)^2$ but not by $(x-a)^3$. Prove that $P(x)-Q(x)$ is divisible by $(x-a)^2$.
I am pretty sure this problem is not that hard when you figure out how to go about solving it, but I'm having trouble with it. I am pretty sure that it requires some kind of application of the fundamental theorem of algebra, as $(x-a)$ is obviously supposed to be a root of the polynomial made by $P(x)-Q(x)$. Yet I am not sure how to go about proving the property in question. Any help would be appreciated. Thank you in advance.