Let f(x) and g(x) be polynomials, and let
where it is not necessarily assumed that an ≠ 0 and bn≠ 0. If f(x)=g(x) for all values of x, then an=bn, an−1=bn−1,…, a1=b1, a0=b0. Using this fact is known as equating coefficients. The result is obtained by applying the Fundamental Theorem of Algebra to the polynomial h(x), where h(x)=f(x)−g(x). If h(x)=0 for all values of x (or, indeed, for more than n values of x), the only possibility is that h(x) is the zero polynomial with all its coefficients zero. The method can be used, for example, to find numbers A, B, C and D such that
for all values of x. It is often used to find the unknowns in partial fractions.