Uni-Sine
MathematicsAlgebra

Binomial expansion calculator with Pascal's triangle

The binomial theorem expands (a + b)ⁿ without multiplying the bracket out n times: (a + b)ⁿ = Σ nCr aⁿ⁻ʳ bʳ, with the coefficients nCr from Pascal's triangle. So (1 + 2x)⁴ = 1 + 8x + 24x² + 32x³ + 16x⁴. This binomial expansion calculator expands any bracket to a whole power exactly, finds a single term or coefficient, and expands negative and fractional powers as a series with the range it is valid for.

It opens on (2x − 3)⁵. Open the full binomial expansion calculator over this page to type your own.

Try it

Binomial Expansion Calculator

Expand brackets to any power with Pascal's triangle

Go to its page

How to use the binomial expansion calculator

  1. Type a bracket to a power in Expression, such as (2x − 3)^5, (x + y)^6 or (1 + x)^(−2). Fractions work in the bracket and the power.
  2. Read the expansion and the general term, with the working term by term. For whole powers up to 14, Pascal's triangle is drawn with the row you need picked out.
  3. Under Find, type a term number or a power to pick out one term or the coefficient of that power.
  4. For negative or fractional powers, choose how many terms of the series to show. The calculator gives the range of x it is valid for and graphs the series against the true curve.
  5. Load an example from Examples, or press Random problem in the Practice section.

The binomial theorem

(a + b)^n = \sum_{r=0}^{n} \binom{n}{r} a^{n - r} b^r \qquad T_{r+1} = \binom{n}{r} a^{n - r} b^r

The powers of a go down from n to 0 while the powers of b go up from 0 to n, and every term's powers add to n. The coefficients are row n of Pascal's triangle, where each number is the sum of the two above it. Row 4 is 1, 4, 6, 4, 1. T_(r+1) is the general term: the (r + 1)th term, counting from 1.

Worked examples you can check in the calculator

Example 1: (1 + 2x)⁴

Row 4 of Pascal's triangle is 1, 4, 6, 4, 1, and here a = 1 and b = 2x:

1 + 4(2x) + 6(2x)^2 + 4(2x)^3 + (2x)^4 = 1 + 8x + 24x^2 + 32x^3 + 16x^4

Put the 2 inside the bracket before squaring or cubing: (2x)² is 4x², not 2x².

Example 2: a negative term, (2x − 3)⁵

With b = −3 the signs alternate. Row 5 is 1, 5, 10, 10, 5, 1, giving 32x⁵ − 240x⁴ + 720x³ − 1080x² + 810x − 243, the calculator's opening expansion. For example, the third term is 10 × (2x)³ × (−3)² = 10 × 8x³ × 9 = 720x³.

Example 3: one coefficient

Find the coefficient of x⁵ in (2x − 1)⁸. The general term is 8Cr (2x)⁸⁻ʳ (−1)ʳ. For x⁵ you need 8 − r = 5, so r = 3:

\binom{8}{3} \times 2^5 \times (-1)^3 = 56 \times 32 \times (-1) = -1792

The coefficient is −1792. Type (2x − 1)^8 and put 5 in the power box under Find.

Example 4: a negative power

For a power that isn't a positive whole number, the expansion never ends, and it only works when the second term is small enough. The A-level formula book gives:

(1 + x)^n = 1 + nx + \frac{n(n - 1)}{2!}x^2 + \frac{n(n - 1)(n - 2)}{3!}x^3 + \dots \quad |x| < 1

With n = −2: (1 + x)⁻² = 1 − 2x + 3x² − 4x³ + ..., valid for |x| < 1. The calculator's graph shows the series hugging the true curve near x = 0 and drifting away as |x| gets close to 1.

Example 5: a fractional power

For (4 + x)^(1/2), take out the 4 first: (4 + x)^(1/2) = 2(1 + x/4)^(1/2). Expanding with n = 1/2 and x/4 in place of x gives 2 + x/4 − x²/64 + x³/512 + ..., valid for |x| < 4. Putting x = 0.1 in gives 2.02485, matching √4.1 = 2.02485 to five decimal places.

Try one

practice
Pick an answer, then check it.
What is the 4th term of (x + y)⁶?

Common mistakes

  • Leaving numbers outside the power. (2x)³ = 8x³, not 2x³.
  • Dropping a minus sign. (−3)² = 9 but (−3)³ = −27, so the signs alternate.
  • Off-by-one term numbers. The (r + 1)th term uses r, so the 4th term has r = 3.
  • Not taking out a factor for a series. (4 + x)^(1/2) has to become 2(1 + x/4)^(1/2) first.
  • Using a series outside its range. (1 + x)ⁿ for non-whole n only works for |x| < 1.

Common questions

What is the binomial theorem?
A formula for expanding (a + b)ⁿ: the sum of nCr aⁿ⁻ʳ bʳ for r from 0 to n.
How do you find a specific term?
Use the general term nCr aⁿ⁻ʳ bʳ with r one less than the term number. In the calculator, type the term number under Find.
How do you find the coefficient of x to a power?
Write the general term, choose r so the power of x matches, and work out the number in front. The calculator does this from the power you type.
How does Pascal's triangle help?
Row n gives the coefficients of (a + b)ⁿ. Each number is the sum of the two above it, so row 5 is 1, 5, 10, 10, 5, 1.
Can I expand negative or fractional powers?
Yes, as an infinite series. The calculator shows as many terms as you choose and the range of x where the series is valid.

Revision cards

Read the front, say your answer, then flip to check.

Where to go next

  • Solve it

    Binomial Expansion Calculator

    Expand brackets to any power with Pascal's triangle

    Open the tool
  • Test it

    AP Precalculus

    A new exam-style paper every day, with instant marking and a mark scheme

    Start today's paper
  • Test it

    Geometry, Algebra 2 & SAT Math

    A new exam-style paper every day, with instant marking and a mark scheme

    Start today's paper
Read next
Maths · AlgebraBinomial expansion formula: (a + b)ⁿ with examplesThe binomial expansion formula for (a + b)ⁿ and (1 + x)ⁿ, Pascal's triangle, finding one coefficient, fractional and negative powers, with examples.