Counting before expanding
The binomial theorem is often remembered as a formula, but the formula is a counting statement. When expanding , each product comes from choosing either or from each of the factors. Different choices can produce the same monomial. Its coefficient records how many choices produce it, so we need to distinguish the choices made during multiplication from the terms left after collecting like terms.
The central question is therefore: how many ways can we select the factors that contribute ? Their positions matter, even though the order in which we name those positions does not. Factorials, permutations, and combinations make this distinction precise. They also explain why the coefficients are integers and why a short coefficient calculation can replace a long expansion.
Factorials, permutations, and combinations
Definition
Factorial
For a positive integer ,
By convention, .
To arrange all of distinct objects in a row without repetition, there are choices for the first position, then for the second, and so on. Multiplying these numbers gives the factorial. At each stage, every partial arrangement has the stated number of possible next choices; this is the sequential product rule. The convention at zero corresponds to one empty arrangement, rather than no arrangements.
Definition
Permutation
Let and be integers with . A -permutation of distinct objects is an ordered arrangement of of those objects, without repetition. The number of such arrangements is
When , the product is empty and has value .
There are exactly factors in the product: the last choice has possibilities. The factorial quotient cancels the unused factors from down to ; it does not introduce a further choice. In particular, counts arrangements of all the objects, while counts the empty ordered selection.
An unordered selection specifies only which objects are chosen. An ordered selection also specifies their positions; arranging a previously chosen set specifies only their order. For example, from the letters , selecting three letters in order gives results. The sequences and are different ordered results, but represent the same three-element selection. This distinction must be settled before choosing a counting formula.
Definition
Binomial coefficient
For integers and with ,
It counts the number of -element subsets of an -element set, also called -combinations. The notation denotes the same number.
Each fixed selection of distinct objects has exactly internal orders. Thus the ordered selections split into equally sized groups: two ordered selections belong to the same group precisely when they contain the same objects. Counting by groups gives
This explains both the division and the fact that the quotient is an integer. In the five-letter example, each group has orders, so there are unordered selections. Dividing by is justified because every selected object is distinct and every selection has the same number of orders. It would be incorrect to divide again after a combination has already removed those orders.
Worked example
Arrange objects with a restriction
Suppose distinct girls and distinct boys are seated in a row, with , and no two boys may sit together. We count the positions of individual people, so exchanging two girls or two boys gives a different seating.
First arrange the girls. This can be done in ways. For any fixed order, they create gaps: one before the first girl, one between each consecutive pair, and one after the last girl. Each gap can contain at most one boy; placing two boys in the same gap would make them adjacent.
Choose occupied gaps in ways, then arrange the boys among those gaps in ways. The gaps already have a left-to-right order; it is the boys that are assigned to them. Consequently,
Multiplying by the number of girl arrangements gives
There is no double counting: a finished seating uniquely determines the order of the girls, the occupied gaps, and the boy in each gap. Conversely, each such choice gives a valid seating. The original assumption guarantees enough gaps, but the argument works for nonnegative integers satisfying . When , the empty row is regarded as one gap. If , every gap is occupied. If , a valid seating is impossible, so the answer is zero; the displayed factorial quotient is not used there.
Pascal's identity
Theorem
Basic binomial identities
Let be a nonnegative integer. For integers with ,
For integers with ,
There is exactly one empty subset and exactly one subset containing every object. These explain the endpoint values, including when the underlying set is empty. Symmetry follows by taking complements: each selected -element subset determines a unique unselected -element subset, and taking the complement again recovers the original choice. Thus the two kinds of selection have equal counts. In the factorial formula, the same symmetry exchanges the two denominator factors.
The last identity is Pascal's identity. Its upper index increases because we are now selecting from one more object. To count -element subsets of distinct objects, distinguish one object and separate the subsets into two cases. Those containing that object require more objects from the remaining , giving . Those excluding it require all objects from the remaining , giving . The cases are disjoint and exhaustive, so their counts add. The index range ensures both selections are within the factorial definition above.
Proof
Algebraic proof of Pascal's identity
For an integer with , compute
Use the common denominator . The first numerator is multiplied by , whereas the second is multiplied by . Their sum is
Therefore
The remaining factorial is correct because . Checking this difference helps prevent a shift of one in the final indices.
Pascal's triangle places in row , starting at row zero, with running from zero to . Its first five rows are
Each row starts and ends with one. Each interior entry is the sum of the two entries immediately above it, and complement symmetry makes every row read the same from either end. These are consequences of counting, rather than separate patterns that must be memorized.
Worked example
Lattice paths
How many paths go from to if each step is either one unit right or one unit up?
Every path has steps: right steps and up steps. Choosing which of the positions are right steps determines all remaining steps, hence the entire path. Conversely, every such selection reaches the destination. Thus the number is
We do not multiply by or : the right steps are not individually labelled, and exchanging two right steps leaves the path unchanged. More generally, paths to are counted by .
This also gives a geometric reading of Pascal's identity. A path to arrives either from by a right step or from by an up step. Counting by the final step gives precisely for .
The binomial theorem
Theorem
Binomial theorem
For every positive integer ,
Concept lensCombinatorial
A subset is a choice of terms in the expansion
Let and be integers, and regard as commuting variables. Label the factors of by .
Selection view. A -element subset of these labels specifies exactly which factors supply ; every other factor supplies . Naming the elements of in another order changes no choice, so the count is , without a further factor of .
Algebraic view. Distributivity produces one product for each such choice. Commutativity makes all products with choices of the same monomial . Conversely, each choice producing these formal exponents determines one such subset. Collecting these contributions gives coefficient . The coefficient identity then holds for all real substitutions, including zero.
Here counts the choices; counting choices instead replaces by . The endpoint subsets and each give one choice. Over all subset sizes there are products before collection.
Every product has total degree : the two exponents sum to . As increases from zero to , the exponent of decreases and that of increases. This gives monomial positions after collection. The endpoint terms are and , each with coefficient one. Counting the positions that contribute instead gives the equivalent indexing
Either convention is valid, but a single calculation must use its chosen convention consistently. Complement symmetry explains why the coefficients match when the order of the sum is reversed.
Pascal's identity also explains the induction step. Multiplying the expansion for power by , an interior term receives contributions from times the old term indexed by , and times the old term indexed by . For , their combined coefficient is . The two endpoint terms each arise once. Starting with power one, this recovers the next row at every step.
Worked example
Expand a small power
For ,
The coefficient of counts the products , , and : exactly one of the three factors supplies . Similarly, choosing two positions for gives the three products contributing . Choosing no or choosing from every factor gives the two endpoint terms. Thus the products before collection become monomial terms, with coefficients ; the sum of the coefficients still counts all eight choices.
Substitution makes this last observation general. Set ; every monomial becomes one, so the sum of the coefficients is . Set and ; terms acquire alternating signs and their sum is zero. For positive integers , these statements are
The second equality says that the counts of even-sized and odd-sized subsets are equal. The positive-integer condition matters: at the alternating sum contains only the single value one. Both substitutions use the finite binomial theorem already proved.
Coefficient extraction
The binomial theorem is especially useful when only one term is needed. Begin with its general term, treating each entire summand in the original bracket as one unit. Keep the binomial coefficient, numerical powers, sign, and variable exponent separate. The exponent identifies which index is relevant; it does not by itself give the coefficient.
For an expression of the form , with numerical constants and integer exponents , substitution into the finite theorem gives
If a negative exponent occurs, take . To find the coefficient of , solve and keep only integer indices with . For each valid index, evaluate , including any sign carried by the constants. If there is no valid index, the coefficient is zero. When there is at most one matching index; if several terms have the same exponent, their coefficients must be added.
Worked example
Find a constant term
Find the constant term of
Here the second summand is the whole expression , so choosing it times contributes both and . The general term is
A constant term has exponent zero. The equation gives , which is not an integer. Therefore this expansion has no constant term: its constant coefficient is zero. Rounding the index would select a different power of , not an approximate constant term.
Compare the closely related expression , again for . Changing the first exponent changes the general term to
Now gives , an integer in the allowed range. The constant term is . The sign is positive because six negative factors were selected. These two expressions show why the exponent equation and the validity check must be performed anew for each question.
Use the following procedure whenever a particular coefficient is requested:
- Write the general term and specify what the index counts.
- Simplify the variable exponent, retaining all scalar powers and signs.
- Set the exponent equal to the requested power.
- Check that each resulting index is an integer with .
- Substitute valid indices into the numerical coefficient and add any contributions to the same power.
Common mistake
The binomial index must be an integer in range
The index counts selected factors, so it cannot be fractional, negative, or larger than the total number of factors. An inadmissible index means the requested term is absent. Even for an admissible index, the coefficient is not usually just the binomial coefficient: the numerical powers and signs in the two summands still contribute. A constant term means exponent zero; it does not mean substituting zero for the variable, especially when the original expression contains reciprocal powers.
Quick checks
Checkpoint
Why is divided by while is not?
Compare ordered and unordered selection.
Solution · Answer
counts ordered arrangements. counts unordered selections, so the possible internal orders of each selected set must be divided out. Every selected set has exactly that many orders because the objects are distinct.
Checkpoint
How many paths go from to using only right and up steps?
Count the right-step positions.
Solution · Answer
There are steps total and right steps, so the number is . Choosing the two up-step positions gives the same count by complement symmetry.
Checkpoint
For an integer , what is the coefficient of in ?
Use the binomial theorem.
Solution · Answer
The coefficient is : choose exactly two of the factors to supply , while all the others supply .
Exercises
- Compute and explain its counting meaning.
- Prove using the factorial formula.
- Find the coefficient of in .
- Find the coefficient of in , where .
Guided solutions
Solution · Model solution 1
. It counts the three-element subsets of a seven-element set. Each subset corresponds to six ordered selections; the division removes those orders.
Solution · Model solution 2
For integers , substitute into the formula: . Both expressions are defined, including the endpoints, by .
Solution · Model solution 3
The general term is . To obtain , set , so , an allowed integer index. The coefficient is . Both scalar powers are necessary; the even power makes the contribution positive.
Solution · Model solution 4
The general term is . Set , so , an allowed integer index. The coefficient is , with no negative sign because both summands have positive numerical coefficients. This time the exponent equation has a valid solution.