Interactive visualiser

Binomial expansion and Pascal’s triangle

Row nn of Pascal’s triangle sits directly above the expansion of (a+b)n(a+b)^n. Select any term to see its binomial coefficient, the two entries that add to make it, and the working for the general term.

Loading the visualiser…

Works on a phone, tablet or computer — nothing to install, no account.

What you are looking at

The coefficients in (a+b)n(a+b)^n are the binomial coefficients (nr)\binom{n}{r}: (nr)\binom{n}{r} counts the ways of choosing which rr of the nn brackets supply a bb. Laid out row by row they form Pascal’s triangle, and each entry is the sum of the two above it, (nr)=(n−1r−1)+(n−1r)\binom{n}{r} = \binom{n-1}{r-1} + \binom{n-1}{r}. When you select a term, its entry in row nn turns yellow and the two entries above it are ringed in green, so the addition rule is visible on the triangle itself.

The general term is Tr+1=(nr)an−rbrT_{r+1} = \binom{n}{r} a^{n-r} b^{r}. Switch to (px+q)n(px+q)^n and the same coefficients are multiplied by powers of pp and qq, so the numbers in the expansion no longer match the triangle. The working panel splits each term into its three factors, for example (52)×23×(−3)2=720\binom{5}{2} \times 2^3 \times (-3)^2 = 720 for the x3x^3 term of (2x−3)5(2x-3)^5, and states the coefficient of that power of xx. It also shows that row nn adds up to 2n2^n.

Try this

  1. 1Tap the entry 10 at r=2r = 2 in row 5. The entries 4 and 6 in row 4 are ringed, and the working shows (52)=(41)+(42)=4+6=10\binom{5}{2} = \binom{4}{1} + \binom{4}{2} = 4 + 6 = 10.
  2. 2Press Light up terms. The highlight walks along the row and then moves down to the next one, up to n=10n = 10; watch the row total double each time nn goes up by 1.
  3. 3Switch to (px+q)n(px+q)^n. At the starting values this is (2x−3)5=32x5−240x4+720x3−1080x2+810x−243(2x-3)^5 = 32x^5 - 240x^4 + 720x^3 - 1080x^2 + 810x - 243: tap each term and notice that the signs alternate because odd powers of −3-3 are negative.
  4. 4Set p=1p = 1 and q=1q = 1, and the coefficients of (x+1)n(x+1)^n are exactly row nn of the triangle. Then press Hide formulas: row nn and the coefficients turn into question marks for you to predict.

Mistakes students make

  • Forgetting to raise the number in front of xx to the power. The x3x^3 term of (2x−3)5(2x-3)^5 contains (2x)3=8x3(2x)^3 = 8x^3, not 2x32x^3.
  • Dropping the sign of a negative term. In (2x−3)5(2x-3)^5 the second term in the bracket is −3-3, so each term carries a factor (−3)r(-3)^r and the signs alternate.
  • Confusing the term number with rr. The term containing brb^r is the (r+1)(r+1)th term, Tr+1T_{r+1}, and row nn has n+1n + 1 entries because rr starts at 0.

Where it is taught

  • IB Maths AA SL 1.9 The binomial theorem · HL 1.10 Permutations and combinations
  • Edexcel A-Level Maths Pure Year 1 · Binomial expansion (positive integer powers)

Teaching this?

Put this visualiser on your lesson board with one tap. Your student sees every drag, live, on their own screen — and Owlileo marks the homework, runs the tests and keeps the parents informed.

Start free →