
The polynomial remainder theorem is used to find the remainder when a polynomial is divided by a linear divisor.
If  $ f(a)=r $  then   $ \frac{f(x)}{(x-a)}$  gives a remainder of   $ r$
Example 1:
When $x^3-7x-6$ is divided by $x-4$
$ \begin{array}{l} \phantom{x-4 )} \;x^2+4x\;+9\phantom{)} \\ x-4{\overline{\smash{\big)}\,x^3+0x^2-7x-6\phantom{)}}}\\ \;\;\;\;-~\phantom{((}\underline{x^3-4x^2\phantom{-7x-6.. )}}\;\;\;\;\;\scriptsize{(\times x^2)}\\ \;\;\;\;\phantom{x-4-4}4x^2-7x-6\phantom{)}\\ \;\;\;\;\;\;\;\;\;\;-~\phantom{()}\;\;\underline{4x^2-16x\;\;\phantom{6}\;\;}\;\;\;\;\;\scriptsize{(\times 4x)}\\ \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;9x-6\phantom{)}\\ \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;-\;\;\underline{9x-36}\;\;\;\;\;\,\scriptsize{(\times 9)}\\ \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\,\;\;\phantom{9x-}30 \end{array} $
a remainder of 30 is left.
Using the polynomial remainder theorem simplifies finding this remainder.
Substituting 4 into $ x^3-7x-6$  gives  $ 4^3-7\cdot 4-6=30$
This is most useful when finding the roots of, and factorising a polynomial.
The factor theorem is a special case of the remainder theorem and states that:
If  $ f(a)=0 $ then   $ (x-a)$  is a factor of   $ f(x)$
Example 2:
If   $ f(x)=x^2+x-2$  , since   f(1)=0   and   f(-2)=0
$\Rightarrow (x-1)\; \small {\&} \normalsize \;(x+2)$ are both factors of  f(x).