Dividing f(x) by (x − a) always produces a quotient q(x) and a remainder r, so f(x) = (x−a)·q(x) + r. Substituting x = a makes the first term zero, since (a−a) = 0, leaving f(a) = r. The remainder is just the function evaluated at the divisor's root.