Skip to main content

Binomial Expansion Calculator

Mathematics - Binomial Expansion

Binomial Expansion Calculator

Expand binomial expressions like (a + b)^n using the binomial theorem. See every term with Pascal's triangle coefficients, step-by-step working, and learn the formula for combinations (nCr).

Expand a Binomial

Enter the binomial expression and the power n. Use ^ for exponents in the terms (e.g., a + b, 2x + 3y, x - 1). Click Expand to see every term.

Expansion will appear here.
Note: This calculator uses the binomial theorem: (a + b)^n = Σ [nCr × a^(n-r) × b^r] for r = 0 to n. It supports integer exponents from 0 to 20.

Binomial Expansion – Complete Explanation

Binomial expansion is the process of expanding an expression of the form (a + b)^n into a sum of terms. The binomial theorem provides a systematic way to find each term using combinations (nCr), eliminating the need for repeated multiplication. This powerful tool connects algebra, combinatorics, and probability.

Binomial Theorem

(a + b)ⁿ = Σ [ⁿCᵣ × aⁿ⁻ʳ × bʳ] for r = 0, 1, 2, ..., n

Where ⁿCᵣ = n! / (r! × (n-r)!) is the binomial coefficient.

1. What Is a Binomial Expansion?

A binomial is an algebraic expression with exactly two terms, such as (x + y) or (2a - 3b). When you raise a binomial to a power, you multiply it by itself repeatedly. For small powers, you can multiply manually, but for larger powers, the binomial theorem provides an efficient formula.

Simple cases by manual multiplication:

(a + b)² = a² + 2ab + b²

(a + b)³ = a³ + 3a²b + 3ab² + b³

(a + b)⁴ = a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴

2. The Binomial Theorem Formula

The binomial theorem states that for any non-negative integer n:

(a + b)ⁿ = ⁿC₀aⁿ + ⁿC₁aⁿ⁻¹b + ⁿC₂aⁿ⁻²b² + ... + ⁿCₙbⁿ

Each term has three parts:

  • ⁿCᵣ (binomial coefficient): The number of ways to choose r items from n items.
  • aⁿ⁻ʳ: The first term raised to a decreasing power.
  • bʳ: The second term raised to an increasing power.

3. Pascal's Triangle

Pascal's triangle provides a visual way to find binomial coefficients without calculating combinations:

Row 0:           1
Row 1:         1   1
Row 2:       1   2   1
Row 3:     1   3   3   1
Row 4:   1   4   6   4   1
Row 5: 1   5  10  10   5   1

Each number is the sum of the two numbers above it. Row n gives the coefficients for (a + b)ⁿ.

Example: Row 4 (1, 4, 6, 4, 1) are the coefficients for (a + b)⁴ = a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴.

4. Combinations (nCr) Explained

The binomial coefficient ⁿCᵣ (read as "n choose r") is calculated as:

Combination Formula

ⁿCᵣ = n! / (r! × (n-r)!)

Where n! = n × (n-1) × (n-2) × ... × 2 × 1

Example: ⁵C₂ = 5! / (2! × 3!) = (5×4×3×2×1) / ((2×1) × (3×2×1)) = 120 / (2 × 6) = 120 / 12 = 10

This means there are 10 ways to choose 2 items from 5 items.

5. Step-by-Step Examples

Example 1: Expand (x + y)⁵

Expand (x + y)⁵ using the binomial theorem.

Step 1: Identify a = x, b = y, n = 5.
        Coefficients from Pascal's triangle row 5: 1, 5, 10, 10, 5, 1

Step 2: Write each term for r = 0 to 5:
        r = 0: ⁵C₀ × x⁵ × y⁰ = 1x⁵
        r = 1: ⁵C₁ × x⁴ × y¹ = 5x⁴y
        r = 2: ⁵C₂ × x³ × y² = 10x³y²
        r = 3: ⁵C₃ × x² × y³ = 10x²y³
        r = 4: ⁵C₄ × x¹ × y⁴ = 5xy⁴
        r = 5: ⁵C₅ × x⁰ × y⁵ = 1y⁵

Step 3: Combine:
        (x + y)⁵ = x⁵ + 5x⁴y + 10x³y² + 10x²y³ + 5xy⁴ + y⁵

Example 2: Expand (2x - 3)⁴

Expand (2x - 3)⁴ using the binomial theorem.

Step 1: a = 2x, b = -3, n = 4.
        Coefficients: 1, 4, 6, 4, 1

Step 2: Calculate each term:
        r = 0: 1 × (2x)⁴ × (-3)⁰ = 16x⁴
        r = 1: 4 × (2x)³ × (-3)¹ = 4 × 8x³ × (-3) = -96x³
        r = 2: 6 × (2x)² × (-3)² = 6 × 4x² × 9 = 216x²
        r = 3: 4 × (2x)¹ × (-3)³ = 4 × 2x × (-27) = -216x
        r = 4: 1 × (2x)⁰ × (-3)⁴ = 1 × 1 × 81 = 81

Step 3: (2x - 3)⁴ = 16x⁴ - 96x³ + 216x² - 216x + 81

6. More Examples

Example 1: (1 + x)³ = 1 + 3x + 3x² + x³

Coefficients: 1, 3, 3, 1

Example 2: (a - b)⁶ = a⁶ - 6a⁵b + 15a⁴b² - 20a³b³ + 15a²b⁴ - 6ab⁵ + b⁶

Note the alternating signs when b is negative.

Example 3: (3x + 2y)³ = 27x³ + 54x²y + 36xy² + 8y³

7. Patterns in Binomial Expansions

Binomial expansions follow several predictable patterns:

  • Number of terms: (a + b)ⁿ has n + 1 terms.
  • Sum of exponents: In each term, the exponents of a and b sum to n.
  • Symmetric coefficients: The first and last coefficients are equal (1), the second and second-to-last are equal (n), etc.
  • Sum of coefficients: The sum of all coefficients equals 2ⁿ for (1 + 1)ⁿ.
  • Alternating signs: When b is negative, signs alternate: +, -, +, -, ...

8. Negative and Fractional Exponents

The binomial theorem can be extended to negative and fractional exponents using infinite series, but that's beyond basic binomial expansion. For negative or fractional n, the expansion becomes an infinite series:

Example: (1 + x)⁻¹ = 1 - x + x² - x³ + x⁴ - ... (for |x| < 1)

This is the geometric series and uses the generalized binomial theorem.

Note: This calculator focuses on non-negative integer exponents. For negative or fractional exponents, the expansion produces infinite series with convergence conditions.

9. Common Mistakes to Avoid

  • Forgetting the binomial coefficients: (a + b)³ = a³ + 3a²b + 3ab² + b³, NOT a³ + a²b + ab² + b³. The coefficients 1, 3, 3, 1 are essential.
  • Misplacing exponents: The exponent of a decreases from n to 0; the exponent of b increases from 0 to n. They always sum to n.
  • Ignoring signs: When b is negative, the signs alternate. (a - b)ⁿ expands with alternating + and - signs.
  • Incorrect combination calculation: Remember that ⁿC₀ = ⁿCₙ = 1, and ⁿC₁ = ⁿCₙ₋₁ = n.
  • Forgetting to raise coefficients: In (2x + 3)⁴, the 2 and 3 must also be raised to the appropriate powers: (2x)⁴ = 16x⁴, not 2x⁴.

10. Real-World Applications

  • Probability: The binomial distribution uses binomial coefficients to calculate probabilities of k successes in n trials.
  • Compound Interest: (1 + r)ⁿ expands to show the growth of an investment over n periods.
  • Calculus: Binomial series approximate functions and evaluate limits.
  • Combinatorics: Counting subsets, arrangements, and combinations uses binomial coefficients.
  • Physics: Binomial expansion appears in relativistic energy equations and perturbation theory.
  • Computer Science: Analyzing algorithm complexity and generating functions.

11. Practice Problems with Solutions

Problem 1: Expand (x + 2)³.

Solution: x³ + 6x² + 12x + 8

Problem 2: Expand (a - 1)⁴.

Solution: a⁴ - 4a³ + 6a² - 4a + 1

Problem 3: Find the coefficient of x⁵ in (1 + x)⁸.

Solution: ⁸C₅ = 56

Problem 4: Expand (2x - y)³.

Solution: 8x³ - 12x²y + 6xy² - y³

12. Tips for Mastering Binomial Expansion

  • Memorize Pascal's triangle up to row 7 for quick coefficient lookup.
  • Use symmetry: the coefficients read the same forward and backward.
  • Check that the number of terms equals n + 1.
  • Verify that the exponents of a and b in each term sum to n.
  • Practice with both variables and numerical coefficients.
  • When terms have coefficients (like 2x), remember to raise the entire term including its coefficient.
  • Use the calculator to verify your manual expansions, but always work through the steps yourself first.

13. Final Thoughts

The binomial theorem is one of the most elegant and useful results in algebra. It transforms the tedious task of multiplying a binomial by itself n times into a systematic formula using combinations. From probability theory to calculus approximations, the binomial expansion appears throughout mathematics and its applications.

Mastering binomial expansion gives you not just a computational tool but a deeper appreciation for the patterns and structures that make algebra beautiful. Use this calculator as a learning aid, but strive to internalize the theorem so you can expand binomials with confidence in any context.