Let denote a constant (a number, rather than a variable like .)
Let denote an expression about (for example,
By the factor theorem, if is a factor of , then . In other words, if all mentions of in the expression are replaced with , then the expression should evaluate to zero.
is equivalent to . That is: .
Replace all mentions of in by to get:
.
That should evaluate to zero. Therefore: . Solve for to get .