Supriya Ghosh (Editor)

Multinomial theorem

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In mathematics, the multinomial theorem describes how to expand a power of a sum in terms of powers of the terms in that sum. It is the generalization of the binomial theorem to polynomials.

Contents

Theorem

For any positive integer m and any nonnegative integer n, the multinomial formula tells us how a sum with m terms expands when raised to an arbitrary power n:

( x 1 + x 2 + + x m ) n = k 1 + k 2 + + k m = n ( n k 1 , k 2 , , k m ) t = 1 m x t k t ,

where

( n k 1 , k 2 , , k m ) = n ! k 1 ! k 2 ! k m !

is a multinomial coefficient. The sum is taken over all combinations of nonnegative integer indices k1 through km such that the sum of all ki is n. That is, for each term in the expansion, the exponents of the xi must add up to n. Also, as with the binomial theorem, quantities of the form x0 that appear are taken to equal 1 (even when x equals zero).

In the case m = 2, this statement reduces to that of the binomial theorem.

Example

The third power of the trinomial a + b + c is given by

( a + b + c ) 3 = a 3 + b 3 + c 3 + 3 a 2 b + 3 a 2 c + 3 b 2 a + 3 b 2 c + 3 c 2 a + 3 c 2 b + 6 a b c .

This can be computed by hand using the distributive property of multiplication over addition, but it can also be done (perhaps more easily) with the multinomial theorem, which gives us a simple formula for any coefficient we might want. It is possible to "read off" the multinomial coefficients from the terms by using the multinomial coefficient formula. For example:

a 2 b 0 c 1 has the coefficient ( 3 2 , 0 , 1 ) = 3 ! 2 ! 0 ! 1 ! = 6 2 1 1 = 3 a 1 b 1 c 1 has the coefficient ( 3 1 , 1 , 1 ) = 3 ! 1 ! 1 ! 1 ! = 6 1 1 1 = 6 .

Alternate expression

The statement of the theorem can be written concisely using multiindices:

( x 1 + + x m ) n = | α | = n ( n α ) x α

where α = (α12,…,αm) and xα = x1α1x2α2xmαm.

Proof

This proof of the multinomial theorem uses the binomial theorem and induction on m.

First, for m = 1, both sides equal x1n since there is only one term k1 = n in the sum. For the induction step, suppose the multinomial theorem holds for m. Then

( x 1 + x 2 + + x m + x m + 1 ) n = ( x 1 + x 2 + + ( x m + x m + 1 ) ) n = k 1 + k 2 + + k m 1 + K = n ( n k 1 , k 2 , , k m 1 , K ) x 1 k 1 x 2 k 2 x m 1 k m 1 ( x m + x m + 1 ) K

by the induction hypothesis. Applying the binomial theorem to the last factor,

= k 1 + k 2 + + k m 1 + K = n ( n k 1 , k 2 , , k m 1 , K ) x 1 k 1 x 2 k 2 x m 1 k m 1 k m + k m + 1 = K ( K k m , k m + 1 ) x m k m x m + 1 k m + 1 = k 1 + k 2 + + k m 1 + k m + k m + 1 = n ( n k 1 , k 2 , , k m 1 , k m , k m + 1 ) x 1 k 1 x 2 k 2 x m 1 k m 1 x m k m x m + 1 k m + 1

which completes the induction. The last step follows because

( n k 1 , k 2 , , k m 1 , K ) ( K k m , k m + 1 ) = ( n k 1 , k 2 , , k m 1 , k m , k m + 1 ) ,

as can easily be seen by writing the three coefficients using factorials as follows:

n ! k 1 ! k 2 ! k m 1 ! K ! K ! k m ! k m + 1 ! = n ! k 1 ! k 2 ! k m + 1 ! .

Multinomial coefficients

The numbers

( n k 1 , k 2 , , k m ) = n ! k 1 ! k 2 ! k m ! ,

which can also be written as

= ( k 1 k 1 ) ( k 1 + k 2 k 2 ) ( k 1 + k 2 + + k m k m ) = i = 1 m ( j = 1 i k j k i )

are the multinomial coefficients. Just like "n choose k" are the coefficients when a binomial is raised to the nth power (e.g., the coefficients are 1,3,3,1 for (a + b)3, where n = 3), the multinomial coefficients appear when a multinomial is raised to the nth power (e.g., (a + b + c)3).

Sum of all multinomial coefficients

The substitution of xi = 1 for all i into:

k 1 + k 2 + + k m = n ( n k 1 , k 2 , , k m ) x 1 k 1 x 2 k 2 x m k m = ( x 1 + x 2 + + x m ) n ,

gives immediately that

k 1 + k 2 + + k m = n ( n k 1 , k 2 , , k m ) = m n .

Number of multinomial coefficients

The number of terms in a multinomial sum, #n,m, is equal to the number of monomials of degree n on the variables x1, …, xm:

# n , m = ( n + m 1 m 1 ) .

The count can be performed easily using the method of stars and bars.

Ways to put objects into boxes

The multinomial coefficients have a direct combinatorial interpretation, as the number of ways of depositing n distinct objects into m distinct bins, with k1 objects in the first bin, k2 objects in the second bin, and so on.

Number of ways to select according to a distribution

In statistical mechanics and combinatorics if one has a number distribution of labels then the multinomial coefficients naturally arise from the binomial coefficients. Given a number distribution {ni} on a set of N total items, ni represents the number of items to be given the label i. (In statistical mechanics i is the label of the energy state.)

The number of arrangements is found by

  • Choosing n1 of the total N to be labeled 1. This can be done ( N n 1 ) ways.
  • From the remaining N − n1 items choose n2 to label 2. This can be done ( N n 1 n 2 ) ways.
  • From the remaining N − n1 − n2 items choose n3 to label 3. Again, this can be done ( N n 1 n 2 n 3 ) ways.
  • Multiplying the number of choices at each step results in:

    ( N n 1 ) ( N n 1 n 2 ) ( N n 1 n 2 n 3 ) . . . = N ! ( N n 1 ) ! n 1 ! ( N n 1 ) ! ( N n 1 n 2 ) ! n 2 ! ( N n 1 n 2 ) ! ( N n 1 n 2 n 3 ) ! n 3 ! . . . .

    Upon cancellation, we arrive at the formula given in the introduction.

    Number of unique permutations of words

    The multinomial coefficient is also the number of distinct ways to permute a multiset of n elements, and ki are the multiplicities of each of the distinct elements. For example, the number of distinct permutations of the letters of the word MISSISSIPPI, which has 1 M, 4 Is, 4 Ss, and 2 Ps is

    ( 11 1 , 4 , 4 , 2 ) = 11 ! 1 ! 4 ! 4 ! 2 ! = 34650.

    (This is just like saying that there are 11! ways to permute the letters—the common interpretation of factorial as the number of unique permutations. However, we created duplicate permutations, because some letters are the same, and must divide to correct our answer.)

    Generalized Pascal's triangle

    One can use the multinomial theorem to generalize Pascal's triangle or Pascal's pyramid to Pascal's simplex. This provides a quick way to generate a lookup table for multinomial coefficients.

    The case of n = 3 can be easily drawn by hand. The case of n = 4 can be drawn with effort as a series of growing pyramids.

    References

    Multinomial theorem Wikipedia