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$.
Expand $(2a - 3b)^3$.
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.
Expand $\left(x + \dfrac{2}{x}\right)^4$ and state the term independent of $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.
Find the coefficient of $x^2$ in $(3 + x)(1 - 2x)^6$.
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$.
How many terms are in the expansion of $(a + b)^9$?
Powers of $b$ from $0$ to $9$: $9 + 1 = 10$ terms.
In $(a + b)^7$, the term containing $b^3$ also contains:
The powers add to $7$, so the term is $35a^4b^3$.
Find the coefficient of $a^2b$ in $(2a - 3b)^3$.
$3 \times (2a)^2 \times (-3b) = 3 \times 4 \times (-3)\,a^2b = -36a^2b$.
Find the coefficient of $a^2b^3$ in $(a - 2b)^5$.
Row $5$ entry $10$: $10 \times a^2 \times (-2b)^3 = 10 \times (-8)\,a^2b^3 = -80a^2b^3$.
Find the coefficient of $x^2$ in $(2 - 3x)^4$.
$6 \times 2^2 \times (-3x)^2 = 6 \times 4 \times 9\,x^2 = 216x^2$.
The signs in the expansion of $(x - y)^5$:
The term with $(-y)^k$ is negative exactly when $k$ is odd. The first term, $x^5$, has $k = 0$, so it is positive.
Find the term independent of $x$ in $\left(x + \dfrac1x\right)^6$.
The powers of $x$ cancel when $x$ and $\dfrac1x$ each appear $3$ times: the middle term, $20 \times x^3 \times \dfrac{1}{x^3} = 20$.
Find the coefficient of $\dfrac{1}{x^2}$ in $\left(x + \dfrac2x\right)^4$.
$4 \times x \times \left(\dfrac2x\right)^3 = 4 \times x \times \dfrac{8}{x^3} = \dfrac{32}{x^2}$.
Exam style: find the coefficient of $x^2$ in $(3 + x)(1 - 2x)^6$.
$(1 - 2x)^6 = 1 - 12x + 60x^2 - \cdots$. The $x^2$ coefficient is $3 \times 60 + 1 \times (-12) = 168$.
Exam style: find the term independent of $x$ in $\left(x^2 - \dfrac1x\right)^6$.
Power of $x$: $2(6 - k) - k = 12 - 3k = 0$ gives $k = 4$. The term is $15 \times (x^2)^2 \times \left(-\dfrac1x\right)^4 = 15$.
Coaching Centre