In mathematics, a trinomial expansion is the expansion of a power of a sum of three terms into monomials. The expansion is given by
(a+b+c)n=∑i,j,ki+j+k=n(ni,j,k)aibjck, where n is a nonnegative integer and the sum is taken over all combinations of nonnegative indices i, j, and k such that i + j + k = n. The trinomial coefficients are given by
(ni,j,k)=n!i!j!k!. This formula is a special case of the multinomial formula for m = 3. The coefficients can be defined with a generalization of Pascal's triangle to three dimensions, called Pascal's pyramid or Pascal's tetrahedron.
Derivation The trinomial expansion can be calculated by applying the binomial expansion twice, setting d=b+c, which leads to
(a+b+c)n=(a+d)n=∑r=0n(nr)an−rdr=∑r=0n(nr)an−r(b+c)r=∑r=0n(nr)an−r∑s=0r(rs)br−scs. Above, the resulting (b+c)r in the second line is evaluated by the second application of the binomial expansion, introducing another summation over the index s. The product of the two binomial coefficients is simplified by shortening r!,
(nr)(rs)=n!r!(n−r)!r!s!(r−s)!=n!(n−r)!(r−s)!s!, and comparing the index combinations here with the ones in the exponents, they can be relabelled to i=n−r, j=r−s, k=s, which provides the expression given in the first paragraph.
Properties The number of terms of an expanded trinomial is the triangular number
tn+1=(n+2)(n+1)2, where n is the exponent to which the trinomial is raised.
Example Examples of trinomial expansions with n=2,3,4 are: (a+b+c)2=a2+b2+c2+2(ab+bc+ac) (a+b+c)3=a3+b3+c3+3(a2b+ab2+b2c+bc2+ac2+a2c)+6abc (a+b+c)4=a4+b4+c4+4(a3b+ab3+b3c+bc3+a3c+ac3)+6(a2b2+b2c2+a2c2)+12(a2bc+ab2c+abc2)
See also Binomial expansion Multinomial coefficient Pascal's pyramid Trinomial triangle
References

