Binomial Expansion Calculator
The binomial theorem expands (ax + b)ⁿ into a sum of n + 1 terms using Pascal’s triangle. (2x + 3)⁴ = 16x⁴ + 96x³ + 216x² + 216x + 81, with coefficients 1, 4, 6, 4, 1 and a sum of coefficients 5⁴ = 625.
Last updated · By S. Dilshan · Runs in your browser, nothing is uploaded
Step-by-Step Solution
What Is the Binomial Theorem?
A binomial is an expression with two terms, such as (2x + 3). Raising it to a power, as in (2x + 3)⁴, means multiplying it by itself four times. Doing that by hand produces dozens of products, but the binomial theorem gives the answer directly, with a pattern that never fails.
The pattern uses binomial coefficients, the numbers in Pascal’s triangle. Row n of the triangle gives the coefficients of (a + b)ⁿ. For n = 4 the row is 1, 4, 6, 4, 1, and the exponent of the first term falls from 4 to 0 while that of the second rises from 0 to 4.
Pascal’s Triangle (Rows 0 to 6)
| Row n | Coefficients |
|---|---|
| 0 | 1 |
| 1 | 1, 1 |
| 2 | 1, 2, 1 |
| 3 | 1, 3, 3, 1 |
| 4 | 1, 4, 6, 4, 1 |
| 5 | 1, 5, 10, 10, 5, 1 |
| 6 | 1, 6, 15, 20, 15, 6, 1 |
Each entry is the sum of the two above it. Entries are also the combination numbers C(n, k), which you can calculate with the combination calculator.
Binomial Theorem Formula
nis the power. It must be a non-negative whole number here (0 to 20).kcounts the terms from 0 to n, giving n + 1 terms in total.C(n, k)is the binomial coefficient, the entry in row n of Pascal’s triangle.- The sum of the coefficients at x = 1 equals (a + b)ⁿ. For (2x + 3)⁴ this is 5⁴ = 625.
Binomial expansion generalises the FOIL method: (a + b)² = a² + 2ab + b² is the n = 2 case, which you can try in the FOIL calculator.
Worked Example: (2x + 3)⁴
Here a = 2x, b = 3 and n = 4, with coefficients 1, 4, 6, 4, 1.
| Term k | C(4, k) | (2x)⁴⁻ᵏ | 3ᵏ | Result |
|---|---|---|---|---|
| 0 | 1 | 16x⁴ | 1 | 16x⁴ |
| 1 | 4 | 8x³ | 3 | 96x³ |
| 2 | 6 | 4x² | 9 | 216x² |
| 3 | 4 | 2x | 27 | 216x |
| 4 | 1 | 1 | 81 | 81 |
Adding the terms: (2x + 3)⁴ = 16x⁴ + 96x³ + 216x² + 216x + 81.
- Number of terms: 5.
- Check: at x = 1, 16 + 96 + 216 + 216 + 81 = 625 = 5⁴ ✓.
With a Negative Constant: (x − 2)³
Treat b as −2. The coefficients are 1, 3, 3, 1 and the expansion is x³ − 6x² + 12x − 8. The signs alternate because the odd powers of −2 are negative. At x = 1 the total is −1 = (1 − 2)³ ✓.
(x + 1)⁵
Using row 5: x⁵ + 5x⁴ + 10x³ + 10x² + 5x + 1, with a coefficient sum of 2⁵ = 32.
A Quick Approximation
For small b, the first terms give a good estimate: 1.02⁵ = (1 + 0.02)⁵ ≈ 1 + 5(0.02) + 10(0.02)² = 1.104, while the exact value is 1.10408.
How to Use This Binomial Expansion Calculator
- Enter the coefficient a of x in (ax + b).
- Enter the constant b. Use a negative number for a subtraction.
- Enter the power n, from 0 to 20.
- Read the full expansion, the number of terms, the row of Pascal’s triangle and the sum of the coefficients.
Where the Binomial Theorem Is Used
- Probability and statistics: the binomial distribution comes from this expansion. See the binomial probability calculator.
- Algebra: expanding and simplifying powers of expressions quickly.
- Approximation: finite-difference formulas and compound-interest estimates use the first few terms.
- Calculus: the binomial series extends the theorem to fractional and negative powers.
- Combinatorics and computer science: counting subsets, and the identity that the sum of row n is 2ⁿ.
What Are the Most Common Mistakes With the Binomial Expansion Calculator?
- Forgetting to apply the power to the coefficient. In (2x)³ the coefficient is 8, not 2.
- Ignoring signs. With a negative b, the terms alternate in sign.
- Using (a + b)ⁿ = aⁿ + bⁿ. That is false. (a + b)² = a² + 2ab + b².
- Mis-numbering the row. Row 0 is the first row, and (a + b)ⁿ uses row n.
- Dropping terms. An expansion of power n always has n + 1 terms.
- Non-integer powers. This calculator covers whole-number powers 0 to 20 only.
Where Can You Verify These Formulas?
The definitions and formulas on this page follow standard references. Check them against these sources:
- OpenStax: algebra and calculus textbooks
- NIST Digital Library of Mathematical Functions
- Wolfram MathWorld
Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.
Frequently Asked Questions
What is the binomial theorem?
It states that (a + b)ⁿ = Σ C(n, k) aⁿ⁻ᵏ bᵏ for k from 0 to n, giving the full expansion of a binomial raised to a whole-number power.
How many terms does (ax + b)ⁿ have?
n + 1 terms. For n = 4 there are 5 terms.
What is Pascal’s triangle?
A triangle of numbers in which each entry is the sum of the two above it. Row n lists the binomial coefficients for the power n.
How can I check my expansion?
Substitute x = 1. The sum of the coefficients must equal (a + b)ⁿ.
What happens if b is negative?
The signs of the terms alternate, because odd powers of a negative number are negative. (x − 2)³ = x³ − 6x² + 12x − 8.
How is the binomial theorem related to combinations?
The coefficient of each term is C(n, k), the number of ways to choose k items from n.