Comparing coefficients

A coefficient is the number multiplied in front of a variable. If an equation is true for every value of x (an identity), the terms of the same degree on both sides must have equal coefficients. So after simplifying, match the x2x^2 terms, the x terms, and the constant terms to find the unknowns.

Chalcack concept card · Reviewed by the Chalcack team ·

Pair up terms of the same degree on both sides and match their coefficients.

Formulas

  • If ax2+bx+c=a′x2+b′x+c′ax^2 + bx + c = a'x^2 + b'x + c' for every value of x, then a=a′a = a', b=b′b = b', c=c′c = c'

When to use it

Use it when an equation is described as an identity in x, or true for all x, and you need to find unknown coefficients.

Worked example

If (x+1)(x+2)=x2+ax+b(x+1)(x+2) = x^2 + ax + b for every value of x, find a and b. Expanding the left side gives x2+3x+2x^2 + 3x + 2. Comparing the x coefficients gives a = 3, and comparing the constant terms gives b = 2.

Common mistake

A common mistake is to skip a term that is missing on one side. For example, in x2+5=x2+ax+bx^2 + 5 = x^2 + ax + b, the x coefficient on the left is 0, so a = 0 and b = 5.

Related concepts

All 181 math concepts