In mathematics, the method of equating the coefficients is a way of solving a functional equation of two expressions such as polynomials for a number of unknown parameters. It relies on the fact that two expressions are identical precisely when corresponding coefficients are equal for each different type of term. The method is used to bring formulas into a desired form.
Example in real fractions
Suppose we want to apply partial fraction decomposition to the expression: that is, we want to bring it into the form: in which the unknown parameters are A, B and C. Multiplying these formulas by x turns both into polynomials, which we equate: or, after expansion and collecting terms with equal powers of x: At this point it is essential to realize that the polynomial 1 is in fact equal to the polynomial 0x2 + 0x + 1, having zero coefficients for the positive powers of x. Equating the corresponding coefficients now results in this system of linear equations: Solving it results in:
A similar problem, involving equating like terms rather than coefficients of like terms, arises if we wish to denest the nested radicals to obtain an equivalent expression not involving a square root of an expression itself involving a square root, we can postulate the existence of rational parameters d, e such that Squaring both sides of this equation yields: To find d and e we equate the terms not involving square roots, so and equate the parts involving radicals, so which when squared implies This gives us two equations, one quadratic and one linear, in the desired parameters d and e, and these can be solved to obtain which is a valid solution pair if and only if is a rational number.
Consider this overdetermined equation system : To test whether the third equation is linearly dependent on the first two, postulate two parameters a and b such that a times the first equation plus b times the second equation equals the third equation. Since this always holds for the right sides, all of which are 0, we merely need to require it to hold for the left sides as well: Equating the coefficients of x on both sides, equating the coefficients of y on both sides, and equating the constants on both sides gives the following system in the desired parameters a, b: Solving it gives: The unique pair of values a, b satisfying the first two equations is = ; since these values also satisfy the third equation, there do in fact exist a, b such that a times the original first equation plus b times the original second equation equals the original third equation; we conclude that the third equation is linearly dependent on the first two. Note that if the constant term in the original third equation had been anything other than –7, the values = that satisfied the first two equations in the parameters would not have satisfied the third one, so there would exist no a, b satisfying all three equations in the parameters, and therefore the third original equation would be independent of the first two.
The method of equating coefficients is often used when dealing with complex numbers. For example, to divide the complex numbera+bi by the complex number c+di, we postulate that the ratio equals the complex number e+fi, and we wish to find the values of the parameters e and f for which this is true. We write and multiply both sides by the denominator to obtain Equating real terms gives and equating coefficients of the imaginary uniti gives These are two equations in the unknown parameters e and f, and they can be solved to obtain the desired coefficients of the quotient: