In short
When you add the expansions of (x + y)^n and (x - y)^n, every odd-power term cancels: you get twice the sum of the even-indexed terms. When you subtract them, every even-power term cancels: you get twice the sum of the odd-indexed terms. These two identities — (x+y)^n + (x-y)^n and (x+y)^n - (x-y)^n — let you isolate half the terms of a binomial expansion, which is exactly what many JEE and competition problems demand.
Take a specific example: (1 + \sqrt{2})^6 + (1 - \sqrt{2})^6. If you expand both separately, each has seven terms with messy powers of \sqrt{2}. But add them, and every term with (\sqrt{2})^1, (\sqrt{2})^3, or (\sqrt{2})^5 — the odd powers — cancels perfectly. Only the rational terms survive.
That is the power of special expansions: they turn a pair of complicated expressions into something clean.
The core identities
Start with the binomial theorem. For any positive integer n:
The only difference between the two expansions is the factor (-1)^r. When r is even, (-1)^r = 1 and the terms match. When r is odd, (-1)^r = -1 and the terms have opposite signs.
The formal statements
Special expansion identities
For any positive integer n and any x, y:
Sum:
Difference:
For the common case x = 1, y = x:
Counting the terms
How many terms does each special expansion have? If n is even, say n = 2m, the even values of r are 0, 2, 4, \ldots, 2m — that is m + 1 terms in the sum and m terms in the difference. If n is odd, say n = 2m + 1, the even values are 0, 2, \ldots, 2m (m + 1 terms) and the odd values are 1, 3, \ldots, 2m+1 (m + 1 terms).
A concrete expansion: n = 6
Take (x + y)^6 and (x - y)^6. The full expansions are:
Add them:
Four terms survive — those with y^0, y^2, y^4, y^6 (even powers of y).
Subtract:
Three terms survive — those with y^1, y^3, y^5 (odd powers of y).
The (1+x)^n versions and their coefficient sums
Setting x = 1 and y = x in the identities gives the forms you will use most often.
Sum of even-indexed binomial coefficients. Set x = 1 in (1+x)^n + (1-x)^n = 2[\text{even terms}]:
Sum of odd-indexed binomial coefficients. Similarly:
The even-indexed and odd-indexed coefficients each sum to exactly half of 2^n. This is a beautiful consequence: out of the 2^n subsets of an n-element set, exactly half have even size and half have odd size.
Interactive: toggle between sum and difference
Drag the red point to choose n from 2 to 8. The figure shows the coefficients of (1+x)^n, with even-indexed terms in red and odd-indexed terms in gray. The running totals at the bottom confirm that both groups always sum to 2^{n-1}.
Applications of the special expansion identities
Evaluating irrational expressions
The most common application: compute (a + \sqrt{b})^n + (a - \sqrt{b})^n.
Since (a + \sqrt{b})^n + (a - \sqrt{b})^n contains only even powers of \sqrt{b}, every term is rational (because (\sqrt{b})^{2k} = b^k). All the irrational parts cancel.
Example. Compute (1 + \sqrt{3})^4 + (1 - \sqrt{3})^4.
Apply the sum formula with x = 1, y = \sqrt{3}, n = 4:
No surds anywhere in the answer.
Proving that an expression is an integer
To show that (3 + \sqrt{5})^7 + (3 - \sqrt{5})^7 is an integer, just note that (3 - \sqrt{5})^7 is positive but very small (since 3 - \sqrt{5} \approx 0.76, and 0.76^7 \approx 0.14). The sum identity tells you the result contains only even powers of \sqrt{5}, which are integers. So the expression is a positive integer. You do not even need to compute it — just the identity is enough.
Finding the integer nearest to (a + \sqrt{b})^n
If 0 < a - \sqrt{b} < 1, then (a - \sqrt{b})^n is a small positive number less than 1. The sum (a + \sqrt{b})^n + (a - \sqrt{b})^n is an integer (by the special expansion identity). So (a + \sqrt{b})^n equals that integer minus a small positive fraction — the nearest integer is the sum itself.
Two worked examples
Example 1: Find the value of $(2 + \sqrt{3})^6 + (2 - \sqrt{3})^6$
Step 1. Identify x = 2, y = \sqrt{3}, n = 6. Apply the sum identity: only even powers of \sqrt{3} survive.
Why: (2 + \sqrt{3})^6 + (2 - \sqrt{3})^6 is the sum of conjugate expressions. By the special expansion, the odd-power terms cancel.
Step 2. List the surviving terms. Even values of r: 0, 2, 4, 6.
Why: the sum identity gives twice the even-indexed terms. Each (\sqrt{3})^{2k} = 3^k, which is rational.
Step 3. Compute each term.
r = 0: 1 \cdot 64 = 64
r = 2: 15 \cdot 16 \cdot 3 = 720
r = 4: 15 \cdot 4 \cdot 9 = 540
r = 6: 1 \cdot 27 = 27
Why: \binom{6}{0} = 1, \binom{6}{2} = 15, \binom{6}{4} = 15, \binom{6}{6} = 1. And (\sqrt{3})^2 = 3, (\sqrt{3})^4 = 9, (\sqrt{3})^6 = 27.
Step 4. Add and double.
64 + 720 + 540 + 27 = 1351
Result: 2 \times 1351 = 2702.
Result. (2 + \sqrt{3})^6 + (2 - \sqrt{3})^6 = \mathbf{2702}.
The key observation: (2 - \sqrt{3})^6 \approx 0.0004, which is negligible. So (2 + \sqrt{3})^6 \approx 2702 - 0.0004 \approx 2702. The nearest integer to (2 + \sqrt{3})^6 is 2702.
Example 2: Show that $(1 + \sqrt{2})^6 - (1 - \sqrt{2})^6 = 140\sqrt{2}$
Step 1. This is a difference of conjugates, so use the difference identity with x = 1, y = \sqrt{2}, n = 6. Only odd powers of \sqrt{2} survive.
Why: subtracting the two expansions cancels all even-power terms and doubles all odd-power terms.
Step 2. List the surviving terms. Odd values of r: 1, 3, 5.
Why: the difference identity gives twice the odd-indexed terms. Each surviving term has an odd power of \sqrt{2}.
Step 3. Simplify each term.
r = 1: 6 \cdot \sqrt{2} = 6\sqrt{2}
r = 3: 20 \cdot 2\sqrt{2} = 40\sqrt{2}
r = 5: 6 \cdot 4\sqrt{2} = 24\sqrt{2}
Why: (\sqrt{2})^3 = 2\sqrt{2} and (\sqrt{2})^5 = 4\sqrt{2}. Every odd power of \sqrt{2} has \sqrt{2} as a factor.
Step 4. Combine.
= 2(6\sqrt{2} + 40\sqrt{2} + 24\sqrt{2}) = 2 \times 70\sqrt{2} = 140\sqrt{2}
Result. (1 + \sqrt{2})^6 - (1 - \sqrt{2})^6 = \mathbf{140\sqrt{2}}.
Notice the pattern: the sum identity gives an integer, and the difference identity gives an integer times \sqrt{2}. This always happens when y = \sqrt{b} — the sum kills all irrationals, and the difference factors out exactly one \sqrt{b}.
Common confusions
-
"The sum identity gives only odd-r terms." The opposite. The sum (x+y)^n + (x-y)^n gives the even-r terms (r = 0, 2, 4, \ldots). The difference gives the odd-r terms. A mnemonic: "sum keeps the same-sign terms" — even r means (-1)^r = +1, matching the original.
-
"(\sqrt{3})^4 = 3\sqrt{3}." Powers of square roots follow (\sqrt{a})^k = a^{k/2}. So (\sqrt{3})^4 = 3^2 = 9, not 3\sqrt{3}. Even powers of \sqrt{a} are rational; odd powers have a factor of \sqrt{a}.
-
"These identities work only for \sqrt{b}." The identities (x+y)^n \pm (x-y)^n work for any x and y. The special case y = \sqrt{b} is just the most common application. You can equally use y = i (imaginary unit) to connect to complex numbers, or y = \sin\theta to derive trigonometric identities.
-
"I need to expand both expressions separately and then add." You never need to expand both fully. The whole point of the identity is that you expand only the surviving terms — roughly half the work.
Going deeper
If you can apply the sum and difference identities to compute conjugate-pair expressions and extract the coefficient sums 2^{n-1}, you have the core skill. The material below explores connections that the identities open up.
Connection to Chebyshev polynomials
The expression \frac{(x + \sqrt{x^2 - 1})^n + (x - \sqrt{x^2 - 1})^n}{2} is the Chebyshev polynomial of the first kind, T_n(x). It satisfies T_n(\cos\theta) = \cos(n\theta). The sum identity is what makes this polynomial rational in x — despite the \sqrt{x^2 - 1} in the definition, all irrational parts cancel.
Pell's equation and (a + b\sqrt{d})^n
The identity (a + b\sqrt{d})^n + (a - b\sqrt{d})^n = 2 \times \text{integer} is central to the theory of Pell's equation x^2 - dy^2 = 1. If (a, b) is a solution to a^2 - db^2 = 1, then the integer part of (a + b\sqrt{d})^n gives the n-th solution — and the special expansion identity is what guarantees that this integer part is well-defined.
Generating binomial coefficient sums
By substituting different values of x and y, you can generate many coefficient identities. Setting x = 1 and y = i (where i^2 = -1) gives:
(1 + i)^n + (1 - i)^n = 2\left[\binom{n}{0} - \binom{n}{2} + \binom{n}{4} - \cdots\right]
Since (1+i)^n = (\sqrt{2})^n \cdot e^{in\pi/4}, the left side equals 2^{n/2} \cdot 2\cos(n\pi/4), giving a closed form for the alternating even-indexed sum of binomial coefficients. These connections are explored further in binomial theorem with complex numbers.
Where this leads next
- Binomial Theorem for Positive Integer — the foundational expansion formula that these identities build on.
- Binomial Coefficients — the coefficient identities \sum \binom{n}{r} = 2^n and the even/odd split 2^{n-1} derived here.
- Binomial Theorem with Complex Numbers — setting y = i in the special expansion gives powerful trigonometric identities.
- Trigonometric Identities — Sum and Difference — the multiple-angle formulas connected to Chebyshev polynomials.
- Algebraic Identities — the square and cube identities that are the n = 2 and n = 3 cases of special expansions.