I came across a problem in my textbook:
If $(x-2)^2$ is a factor of $f(x) = x^3+px+q$, then find the remainder when $f(x)$ is divided by $(x-1)$.
Finding the remainder is not difficult; I just need to find out what $p$ and $q$ are. Unfortunately, finding those 2 constants is the tough part. If the factor had been of the form $(x-a)(x-b)$, then it wouldn't have been difficult as I would get 2 seperate equations $f(a)=0$ and $f(b)=0$, and I would be able to solve for $p$ and $q$ from there. However, over here, I get two identical equations: $f(2) = 0$. I don't understand how I could find the constants when the factor is of the form $(x-a)^2$?