5B

Expansions with several variables

Expanding (a + b)^n with two variables, binomials such as (2a − 3b)^3 and (x + 1/x)^4, constant terms, and expanding products of binomial powers.

Most binomials in exams aren't $(1 + x)^n$. They look like $(2a - 3b)^3$ or $\left(x + \dfrac2x\right)^4$. The same row of Pascal's triangle does the work: you only need to keep track of two powers instead of one.

The general expansion

Expanding $(a + b)^n$ means picking either $a$ or $b$ from each of the $n$ brackets and multiplying. A term with $k$ factors of $b$ has $n - k$ factors of $a$. So every term is $a^{n-k}b^k$ times a coefficient, and the coefficients are row $n$ of the triangle, just as for $(1 + x)^n$.

For example, $(a + b)^4 = a^4 + 4a^3b + 6a^2b^2 + 4ab^3 + b^4$. The powers in each term add to $4$.

Example 1●●

Expand $(2a - 3b)^3$.

$(2a)^3 + 3(2a)^2(-3b) + 3(2a)(-3b)^2 + (-3b)^3$
Row 3 is 1, 3, 3, 1. Use 2a and (−3b) as the two terms, each in brackets.
$= 8a^3 - 36a^2b + 54ab^2 - 27b^3$
Evaluate each bracket: (2a)² = 4a², (−3b)² = 9b², (−3b)³ = −27b³.

Constant terms

When the second term is a reciprocal, its powers cancel powers of $x$ from the first term. The term independent of $x$ (the constant term) is the one where they cancel completely.

Example 2●●

Expand $\left(x + \dfrac{2}{x}\right)^4$ and state the term independent of $x$.

$x^4 + 4x^3\left(\dfrac2x\right) + 6x^2\left(\dfrac2x\right)^2 + 4x\left(\dfrac2x\right)^3 + \left(\dfrac2x\right)^4$
Row 4 is 1, 4, 6, 4, 1. Powers of x go down, powers of 2/x go up.
$= x^4 + 8x^2 + 24 + \dfrac{32}{x^2} + \dfrac{16}{x^4}$
Simplify each term: for example 6x² × 4/x² = 24.
Term independent of $x$: $24$
The middle term has no x.

Products of expansions

To find one coefficient in a product such as $(3 + x)(1 - 2x)^6$, expand the power only as far as you need, then pair up terms whose powers add to the one you want.

Example 3●●●

Find the coefficient of $x^2$ in $(3 + x)(1 - 2x)^6$.

$(1 - 2x)^6 = 1 - 12x + 60x^2 - \cdots$
Row 6 begins 1, 6, 15. Only terms up to x² can help.
$3 \times 60 + 1 \times (-12)$
x² comes from 3 × (60x²) or from x × (−12x).
$= 180 - 12 = 168$

Your turn

Find the term independent of $x$ in $\left(x^2 - \dfrac1x\right)^6$.

Show the working

A term has the form (row 6 entry) $\times (x^2)^{6-k}\left(-\dfrac1x\right)^k$, with power of $x$ equal to $12 - 2k - k = 12 - 3k$. This is $0$ when $k = 4$. The entry is $15$ and $(-1)^4 = 1$, so the constant term is $15$.

Flashcards
Number of terms in $(a + b)^n$
$n + 1$
Powers in each term of $(a + b)^n$
They add to $n$.
Term independent of $x$
The constant term: the powers of $x$ cancel to $x^0$.
Practice
  1. How many terms are in the expansion of $(a + b)^9$?

  2. In $(a + b)^7$, the term containing $b^3$ also contains:

  3. Find the coefficient of $a^2b$ in $(2a - 3b)^3$.

  4. Find the coefficient of $a^2b^3$ in $(a - 2b)^5$.

  5. Find the coefficient of $x^2$ in $(2 - 3x)^4$.

  6. The signs in the expansion of $(x - y)^5$:

  7. Find the term independent of $x$ in $\left(x + \dfrac1x\right)^6$.

  8. Find the coefficient of $\dfrac{1}{x^2}$ in $\left(x + \dfrac2x\right)^4$.

  9. Exam style: find the coefficient of $x^2$ in $(3 + x)(1 - 2x)^6$.

  10. Exam style: find the term independent of $x$ in $\left(x^2 - \dfrac1x\right)^6$.

Formula sheet