\begin{gather}
(x + y + z)^n = (x + y + z) (x + y + z) \dotsm (x + y + z) \text{,}\tag{✶}
\end{gather}
with \(n\) factors. To expand this out, we generalize the FOIL method: from each factor, choose either \(x\text{,}\)\(y\text{,}\) or \(z\text{,}\) then multiply all your choices together. For any such product, the powers on \(x\text{,}\)\(y\text{,}\) and \(z\) must sum to \(n\text{.}\) To get the final expansion, add the results of all possible such products.
But we can collect terms that have the same exponent on each of \(x\text{,}\)\(y\text{,}\) and \(z\text{.}\) How many ways can we form a specific term \(x^i y^j z^k\text{,}\) for \(0 \le i,j,k \le n\) such that \(i + j + k = n\text{?}\) We have \(\combinationalt{n}{i}\) ways to choose \(i\) factors from the right-hand side of (✶) from which to take \(x\text{,}\) then \(\combinationalt{n - i}{j}\) ways to choose \(j\) factors from which to take \(y\text{.}\) But now from all remaining factors we must choose \(z\text{,}\) and there is only \(1\) way to do this. So the coefficient on \(x^i y^j z^k\) is
Use the Binomial Theorem on \(\bbrac{x + (y + z)}^n\text{,}\) then again on \((y + z)^k\) for each term \(\combinationalt{n}{k} x^{n - k} (y + z)^k\text{.}\) (This would be very tedious!)
Worked Example23.2.2.Expanding a trinomial.
Determine the terms in the expansion of \((2 x + y - 3 z)^3\text{.}\)
Here we don’t have any extra contributions to the coefficient from constants inside the trinomial, so using \(n=14\text{,}\)\(i = 5\text{,}\)\(j = 2\text{,}\)\(k = 7\text{,}\) the coefficient is simply
Use the same generalized FOIL method argument as in the Binomial and Trinomial Theorem proofs, and simplify the product of combination formulas obtained.
Worked Example23.2.5.Determining a specific coefficient in a multinomial expansion.
Determine the coefficient on \(x^2 y z^6\) in the expansion of \((3 x + 2 y + z^2 + 6)^8\text{.}\)
a number appearing as a coefficient in the expansion of \((x_1 + x_2 + \dotsb + x_m)^n\)
\(\binom{n}{i_1,i_2,\dotsc,i_m}\)
the coefficient on the term \(x_1^{i_1} x_2^{i_2} \dotsm x_m^{i_m}\) in the expansion of \((x_1 + x_2 + \dotsm + x_m)^n\text{,}\) where the exponents \(i_1, i_2, \dotsc, i_m\) must sum to \(n\)
Note23.2.6.
The Multinomial Theorem tells us \(\displaystyle
\binom{n}{i_1,i_2,\dotsc,i_m} = \frac{n!}{i_1! \, i_2! \, \dotsm \, i_m!}
\text{.}\)
In the case of a binomial expansion \((x_1 + x_2)^n\text{,}\) the term \(x_1^{i_1} x_2^{i_2}\) must have \(i_1 + i_2 = n\text{,}\) or \(i_2 = n - i_1\text{.}\) The Multinomial Theorem tells us that the coefficient on this term is