Course contentsShow
← Computer Science
Lesson 105 of 2,8722. Discrete Mathematics for CSFree lesson

The Binomial Theorem

Apply the binomial theorem to expand (x+y)^n and understand the role of binomial coefficients in expansions.

The Binomial Theorem

What You'll Learn

You'll learn how to expand expressions like (x + y)ⁿ using binomial coefficients and understand the pattern behind these expansions.


The Core Idea

The Binomial Theorem is a powerful formula that tells us how to expand (x + y)ⁿ without multiplying it out the long way. Instead of manually computing (x + y)(x + y)(x + y)..., we use a clean pattern:

(x + y)ⁿ = C(n,0)xⁿy⁰ + C(n,1)xⁿ⁻¹y¹ + C(n,2)xⁿ⁻²y² + ... + C(n,n)x⁰yⁿ

where C(n,k) are the binomial coefficients from Pascal's Triangle you just learned.

How It Works

Each term in the expansion has three parts:

  1. A binomial coefficient C(n,k) that acts as the term's multiplier
  2. A power of x that decreases from n down to 0
  3. A power of y that increases from 0 up to n

The exponents in each term always add up to n.

Example: (x + y)³

Using the theorem:

  • C(3,0)x³y⁰ = 1·x³ = x³
  • C(3,1)x²y¹ = 3·x²y = 3x²y
  • C(3,2)x¹y² = 3·xy² = 3xy²
  • C(3,3)x⁰y³ = 1·y³ = y³

Result: (x + y)³ = x³ + 3x²y + 3xy² + y³

Notice the coefficients (1, 3, 3, 1) are exactly row 3 of Pascal's Triangle!


Key Takeaway: The Binomial Theorem uses binomial coefficients C(n,k) to systematically expand (x + y)ⁿ, where each term follows the pattern C(n,k)xⁿ⁻ᵏyᵏ with k ranging from 0 to n.