Binomial Expansion Calculator
Expand binomial expressions using the binomial theorem with Pascal triangle coefficients. Enter values for instant results with step-by-step formulas.
Formula
(a + b)^n = Sum from k=0 to n of C(n,k) * a^(n-k) * b^k
Where C(n,k) = n! / (k!(n-k)!) is the binomial coefficient (also called 'n choose k'), a and b are the two terms of the binomial, n is the exponent (a non-negative integer), and k ranges from 0 to n generating n+1 total terms in the expansion.
Worked Examples
Example 1: Expanding (2x + 3)^4
Problem: Use the binomial theorem to fully expand (2x + 3)^4 and identify all terms with their coefficients.
Solution: Using (a+b)^n with a=2, b=3, n=4:\nC(4,0)(2)^4(3)^0 = 1 x 16 x 1 = 16\nC(4,1)(2)^3(3)^1 = 4 x 8 x 3 = 96\nC(4,2)(2)^2(3)^2 = 6 x 4 x 9 = 216\nC(4,3)(2)^1(3)^3 = 4 x 2 x 27 = 216\nC(4,4)(2)^0(3)^4 = 1 x 1 x 81 = 81\nTotal = 16 + 96 + 216 + 216 + 81 = 625 = 5^4\nPascal row: [1, 4, 6, 4, 1]
Result: 16 + 96 + 216 + 216 + 81 = 625 | Verified: (2+3)^4 = 5^4 = 625
Example 2: Finding the 5th Term of (x + 2)^7
Problem: Find the 5th term in the binomial expansion of (x + 2)^7 using the general term formula.
Solution: The (k+1)th term = C(n,k) * a^(n-k) * b^k\nFor the 5th term, k = 4:\nT(5) = C(7,4) * (1)^(7-4) * (2)^4\nC(7,4) = 7! / (4! * 3!) = 5040 / (24 * 6) = 35\nT(5) = 35 * 1 * 16 = 560\nThe 5th term in the expansion is 560x^3\nPascal row for n=7: [1, 7, 21, 35, 35, 21, 7, 1]
Result: 5th term = 560 (coefficient 35 x 16) | Exponent of x: 3, Exponent of 2: 4
Frequently Asked Questions
What is the binomial theorem and what does it do?
The binomial theorem provides a formula for expanding any expression of the form (a + b) raised to a positive integer power n into a sum of individual terms. First proved in its general form by Isaac Newton, the theorem states that (a + b)^n equals the sum from k = 0 to n of C(n,k) times a^(n-k) times b^k, where C(n,k) is the binomial coefficient 'n choose k.' This eliminates the need for tedious repeated multiplication. For example, (x + y)^4 expands to x^4 + 4x^3y + 6x^2y^2 + 4xy^3 + y^4. The theorem is fundamental in algebra, probability theory, combinatorics, and calculus, forming the basis for many advanced mathematical concepts.
What are binomial coefficients and how are they calculated?
Binomial coefficients, written as C(n,k) or 'n choose k,' represent the number of ways to choose k items from a set of n items without regard to order. They are calculated using the formula C(n,k) = n! / (k! times (n-k)!), where ! denotes factorial. For example, C(5,2) = 5! / (2! times 3!) = 120 / (2 times 6) = 10. Binomial coefficients have many remarkable properties: they are always positive integers, they satisfy the symmetry property C(n,k) = C(n, n-k), and each coefficient equals the sum of two coefficients from the previous row in Pascal triangle. They appear throughout mathematics in counting problems, probability distributions, and polynomial expansions.
What is Pascal triangle and how does it relate to binomial expansion?
Pascal triangle is a triangular array of numbers where each entry is the sum of the two entries directly above it in the previous row. The rows of Pascal triangle, starting from row 0, give exactly the binomial coefficients for each power: row 0 is [1], row 1 is [1, 1], row 2 is [1, 2, 1], row 3 is [1, 3, 3, 1], and so on. These numbers serve as the coefficients in binomial expansions: (a+b)^3 = 1a^3 + 3a^2b + 3ab^2 + 1b^3. Named after Blaise Pascal who studied it in 1653, though it was known centuries earlier in China, Persia, and India. Pascal triangle contains many hidden patterns including Fibonacci numbers along diagonals, powers of 2 as row sums, and powers of 11 as concatenated row digits.
How do you find a specific term in a binomial expansion?
To find the (k+1)th term in the expansion of (a + b)^n, use the general term formula: T(k+1) = C(n,k) times a^(n-k) times b^k, where k ranges from 0 to n. Note that the first term corresponds to k=0, the second to k=1, and so on. For example, to find the 4th term of (2x + 3)^6, set k=3: T(4) = C(6,3) times (2x)^3 times 3^3 = 20 times 8x^3 times 27 = 4320x^3. The middle term occurs when k = n/2 for even n, and there are two middle terms when n is odd. Finding specific terms is useful in probability calculations and when you need only certain parts of an expansion rather than the full polynomial.
What is the sum of binomial coefficients for a given power?
The sum of all binomial coefficients for power n equals 2^n. This can be proven by substituting a = 1 and b = 1 into the binomial theorem: (1 + 1)^n = sum of C(n,k) for k = 0 to n, which gives 2^n. Similarly, substituting a = 1 and b = -1 gives 0 = sum of C(n,k) times (-1)^k, showing that the sum of even-positioned coefficients equals the sum of odd-positioned coefficients, each equaling 2^(n-1). For example, for n = 4, the coefficients are [1, 4, 6, 4, 1] with sum = 16 = 2^4, and even-position sum (1 + 6 + 1 = 8) equals odd-position sum (4 + 4 = 8). These identities have applications in combinatorics and information theory.
Can the binomial theorem be extended to non-integer exponents?
Yes, Newton generalized the binomial theorem to handle any real or even complex exponent, not just positive integers. The generalized binomial theorem states that (1 + x)^r for any real r equals the infinite series: 1 + rx + r(r-1)x^2/2! + r(r-1)(r-2)x^3/3! + ..., which converges for |x| < 1. The generalized binomial coefficients C(r,k) = r(r-1)(r-2)...(r-k+1)/k! can be negative or fractional. This extension is crucial in calculus for deriving Taylor series, computing square roots and cube roots as infinite series, and in physics for approximations like (1+x)^(-1) approximately equal to 1-x for small x. Newton used this generalization extensively in his development of calculus.