Misplaced Pages

Equating coefficients

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Equating the coefficients)

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:

1 x ( x 1 ) ( x 2 ) , {\displaystyle {\frac {1}{x(x-1)(x-2)}},\,}

that is, we want to bring it into the form:

A x + B x 1 + C x 2 , {\displaystyle {\frac {A}{x}}+{\frac {B}{x-1}}+{\frac {C}{x-2}},\,}

in which the unknown parameters are A, B and C. Multiplying these formulas by x(x − 1)(x − 2) turns both into polynomials, which we equate:

A ( x 1 ) ( x 2 ) + B x ( x 2 ) + C x ( x 1 ) = 1 , {\displaystyle A(x-1)(x-2)+Bx(x-2)+Cx(x-1)=1,\,}

or, after expansion and collecting terms with equal powers of x:

( A + B + C ) x 2 ( 3 A + 2 B + C ) x + 2 A = 1. {\displaystyle (A+B+C)x^{2}-(3A+2B+C)x+2A=1.\,}

At this point it is essential to realize that the polynomial 1 is in fact equal to the polynomial 0x + 0x + 1, having zero coefficients for the positive powers of x. Equating the corresponding coefficients now results in this system of linear equations:

A + B + C = 0 , {\displaystyle A+B+C=0,\,}
3 A + 2 B + C = 0 , {\displaystyle 3A+2B+C=0,\,}
2 A = 1. {\displaystyle 2A=1.\,}

Solving it results in:

A = 1 2 , B = 1 , C = 1 2 . {\displaystyle A={\frac {1}{2}},\,B=-1,\,C={\frac {1}{2}}.\,}

Example in nested radicals

A similar problem, involving equating like terms rather than coefficients of like terms, arises if we wish to de-nest the nested radicals a + b c   {\displaystyle {\sqrt {a+b{\sqrt {c}}\ }}} 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

a + b c   = d + e . {\displaystyle {\sqrt {a+b{\sqrt {c}}\ }}={\sqrt {d}}+{\sqrt {e}}.}

Squaring both sides of this equation yields:

a + b c = d + e + 2 d e . {\displaystyle a+b{\sqrt {c}}=d+e+2{\sqrt {de}}.}

To find d and e we equate the terms not involving square roots, so a = d + e , {\displaystyle a=d+e,} and equate the parts involving radicals, so b c = 2 d e {\displaystyle b{\sqrt {c}}=2{\sqrt {de}}} which when squared implies b 2 c = 4 d e . {\displaystyle b^{2}c=4de.} This gives us two equations, one quadratic and one linear, in the desired parameters d and e, and these can be solved to obtain

e = a + a 2 b 2 c 2 , {\displaystyle e={\frac {a+{\sqrt {a^{2}-b^{2}c}}}{2}},}
d = a a 2 b 2 c 2 , {\displaystyle d={\frac {a-{\sqrt {a^{2}-b^{2}c}}}{2}},}

which is a valid solution pair if and only if a 2 b 2 c {\displaystyle {\sqrt {a^{2}-b^{2}c}}} is a rational number.

Example of testing for linear dependence of equations

Consider this overdetermined system of equations (with 3 equations in just 2 unknowns):

x 2 y + 1 = 0 , {\displaystyle x-2y+1=0,}
3 x + 5 y 8 = 0 , {\displaystyle 3x+5y-8=0,}
4 x + 3 y 7 = 0. {\displaystyle 4x+3y-7=0.}

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:

a ( x 2 y + 1 ) + b ( 3 x + 5 y 8 ) = 4 x + 3 y 7. {\displaystyle a(x-2y+1)+b(3x+5y-8)=4x+3y-7.}

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:

a + 3 b = 4 , {\displaystyle a+3b=4,}
2 a + 5 b = 3 , {\displaystyle -2a+5b=3,}
a 8 b = 7. {\displaystyle a-8b=-7.}

Solving it gives:

a = 1 ,   b = 1 {\displaystyle a=1,\ b=1}

The unique pair of values a, b satisfying the first two equations is (a, b) = (1, 1); 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 (a, b) = (1, 1) that satisfied the first two equations in the parameters would not have satisfied the third one (a – 8b = constant), 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.

Example in complex numbers

The method of equating coefficients is often used when dealing with complex numbers. For example, to divide the complex number a+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

a + b i c + d i = e + f i , {\displaystyle {\frac {a+bi}{c+di}}=e+fi,}

and multiply both sides by the denominator to obtain

( c e f d ) + ( e d + c f ) i = a + b i . {\displaystyle (ce-fd)+(ed+cf)i=a+bi.}

Equating real terms gives

c e f d = a , {\displaystyle ce-fd=a,}

and equating coefficients of the imaginary unit i gives

e d + c f = b . {\displaystyle ed+cf=b.}

These are two equations in the unknown parameters e and f, and they can be solved to obtain the desired coefficients of the quotient:

e = a c + b d c 2 + d 2 and f = b c a d c 2 + d 2 . {\displaystyle e={\frac {ac+bd}{c^{2}+d^{2}}}\quad \quad {\text{and}}\quad \quad f={\frac {bc-ad}{c^{2}+d^{2}}}.}

References

Categories: