Ma · Mathematics

What Is the Formula for a Trinomial Expansion?

Published By the 9to5Science editorial team

At a glance

  1. 1. Identify the power

    The standard trinomial formula applies when the exponent is a nonnegative integer.

  2. 2. Assign exponents

    Choose nonnegative exponents for the three terms that add up to the original power.

  3. 3. Compute the coefficient

    Use the multinomial coefficient: the factorial of the power divided by the factorials of the chosen exponents.

  4. 4. Include term coefficients

    Raise each term’s numerical coefficient to its assigned exponent and multiply.

Advertisement

The standard formula for expanding a trinomial such as (x+y+z)n(x+y+z)^n is the multinomial theorem. It extends the binomial theorem: instead of distributing the factors into two groups, you count how often each of the three terms is chosen.

The formula gives every term and its coefficient without multiplying the trinomial by itself repeatedly. It applies when nn is a nonnegative integer.

The trinomial expansion formula

For variables x,y,zx,y,z and a nonnegative integer nn,

(x+y+z)n=∑i,j,k≥0i+j+k=nn!i!j!k!xiyjzk.(x+y+z)^n = \sum_{\substack{i,j,k\geq 0\\i+j+k=n}} \frac{n!}{i!j!k!}x^iy^jz^k.

The sum includes every triple of nonnegative integers (i,j,k)(i,j,k) whose sum is nn. The coefficient

n!i!j!k!\frac{n!}{i!j!k!}

is called a multinomial coefficient. Read i!i! as “ii factorial,” with 0!=10!=1.

For a trinomial with coefficients, the same rule gives

(ax+by+cz)n=∑i,j,k≥0i+j+k=nn!i!j!k!(ax)i(by)j(cz)k.(ax+by+cz)^n = \sum_{\substack{i,j,k\geq 0\\i+j+k=n}} \frac{n!}{i!j!k!}(ax)^i(by)^j(cz)^k.

Thus the numerical coefficient of xiyjzkx^iy^jz^k is the multinomial coefficient multiplied by aibjcka^i b^j c^k.

Why the factorial coefficient appears

Think of (x+y+z)n(x+y+z)^n as a product of nn identical factors. To form a term with xiyjzkx^i y^j z^k, you must choose xx from exactly ii factors, yy from exactly jj, and zz from exactly kk. Since i+j+k=ni+j+k=n, those choices use all the factors.

There are n!n! ways to order nn choices, but swapping the ii copies of xx, the jj copies of yy, or the kk copies of zz does not produce a new arrangement. Divide by i!j!k!i!j!k! to account for those repeated arrangements. The result is n!/(i!j!k!)n!/(i!j!k!).

Worked examples

Expand (x+y+z)3(x+y+z)^3

The nonnegative exponent triples that add up to 33 are permutations of (3,0,0)(3,0,0), (2,1,0)(2,1,0), and (1,1,1)(1,1,1).

  • For (3,0,0)(3,0,0), the coefficient is 3!/(3!0!0!)=13!/(3!0!0!)=1.
  • For (2,1,0)(2,1,0), it is 3!/(2!1!0!)=33!/(2!1!0!)=3.
  • For (1,1,1)(1,1,1), it is 3!/(1!1!1!)=63!/(1!1!1!)=6.

Including every permutation gives

(x+y+z)3=x3+y3+z3+3x2y+3x2z+3xy2+3y2z+3xz2+3yz2+6xyz.(x+y+z)^3 = x^3+y^3+z^3+3x^2y+3x^2z+3xy^2+3y^2z+3xz^2+3yz^2+6xyz.

The mixed term xyzxyz has coefficient 66 because the three variables can be selected in any of 3!=63!=6 orders.

Find one coefficient in (2x−y+3z)5(2x-y+3z)^5

Suppose you need the coefficient of x2yz2x^2yz^2. The exponents 2,1,22,1,2 add to 55, so the multinomial coefficient is

5!2!1!2!=30.\frac{5!}{2!1!2!}=30.

Now include the coefficients from the three terms: (2)2(−1)1(3)2=−36(2)^2(-1)^1(3)^2= -36. Therefore, the coefficient of x2yz2x^2yz^2 is

30(−36)=−1080.30(-36)=-1080.

The corresponding term in the expansion is −1080x2yz2-1080x^2yz^2.

Common mistakes

  • Forgetting that exponents must add to nn. A term in the expansion of a power nn has total degree nn when the original terms are variables of degree one. For example, x2yz2x^2yz^2 has total degree 55, so it can occur in a fifth power.
  • Using the binomial coefficient instead. The coefficient for three chosen exponents is n!/(i!j!k!)n!/(i!j!k!), not just n!/(i!(n−i)!)n!/(i!(n-i)!). The latter counts choices for only two groups.
  • Leaving out coefficients or signs. In (2x−y+3z)n(2x-y+3z)^n, remember to include 2i(−1)j3k2^i(-1)^j3^k for a term xiyjzkx^iy^jz^k.
  • Counting permutations twice. The summation already includes distinct exponent triples such as (2,1,0)(2,1,0) and (1,2,0)(1,2,0). Do not add an extra factor for their permutations.
  • Applying the finite formula to a noninteger power. This formula gives a finite polynomial expansion when nn is a nonnegative integer. Other exponents require a different form, such as a possibly infinite series, and may need conditions on the variables.

Counting the terms

The number of distinct exponent triples in the expansion of (x+y+z)n(x+y+z)^n is

(n+22)=(n+1)(n+2)2.\binom{n+2}{2}=\frac{(n+1)(n+2)}{2}.

For example, when n=3n=3, there are (52)=10\binom{5}{2}=10 terms, as in the expansion above. If some terms share the same variable powers after substitution or simplification, combine them; otherwise, the formula lists each exponent pattern once.

The same principle works for any number of terms. For (x1+x2+⋯+xm)n(x_1+x_2+\cdots+x_m)^n, sum over nonnegative exponents i1,…,imi_1,\ldots,i_m whose total is nn, using coefficient n!/(i1!⋯im!)n!/(i_1!\cdots i_m!). The trinomial formula is the case m=3m=3.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.