In short

(a+b)^3 = a^3 + 3a^2b + 3ab^2 + b^3 is literally an (a+b) \times (a+b) \times (a+b) cube. Make one cut along each of the three axes — at the points where a ends and b begins — and the cube falls apart into eight rectangular boxes: one a \times a \times a corner, three a \times a \times b slabs (one for each axis), three a \times b \times b slabs, and one b \times b \times b corner. The coefficients 1, 3, 3, 1 are not memorised — they are counted off the picture.

You already know the square version: (a+b)^2 is a square of side a+b chopped into four tiles by one horizontal and one vertical cut. The cube version is the same idea, just one dimension up. Take a cube of side a+b. Make three cuts — one parallel to each face — at the spots where each edge splits from a into b. The cube does not turn into a mess. It falls apart into exactly eight neat rectangular boxes, like a Rubik's cube whose layers do not match. And the volumes of those eight boxes, added up, are exactly a^3 + 3a^2b + 3ab^2 + b^3.

Once you can see those eight boxes in your head, the identity is no longer something you have to memorise. It is something you can read straight off a 3D picture.

Building the cube, one cut at a time

Start with a solid cube of side length a+b. Its volume is (a+b)^3 — that is the whole point of the identity, the thing we want to compute.

Now mark the splitting point on every edge. On each of the twelve edges, draw a tick at distance a from one corner; the remaining b runs to the opposite corner. Connect the ticks across each face, and then across the inside, with three flat cuts:

Three perpendicular slices, three axes, one cut each. The cube falls into 2 \times 2 \times 2 = 8 smaller boxes. Why eight? Each axis is split into two pieces (a and b), and the three axis splits are independent. The number of resulting boxes is 2 \times 2 \times 2 = 8 — one box per choice of "a or b" along each axis.

Isometric view of the (a+b) cubed cube cut into eight rectangular piecesAn isometric drawing of a cube of side a plus b, sliced along each of three perpendicular axes into eight smaller rectangular boxes. The pieces are colour-coded: one large a-cubed corner box at the back-bottom-left, three a-squared-b slabs along the three axes leaving that corner, three a-b-squared slabs, and a small b-cubed corner box at the front-top-right. Edge lengths a and b are labelled along the visible edges. a²b ab² a²b a²b ab² ab² a b a b b (depth) a (depth) Eight pieces1 corner of side a → a³3 slabs a × a × b → 3a²b3 slabs a × b × b → 3ab²1 corner of side b → b³a³ + 3a²b + 3ab² + b³
The $(a+b)^3$ cube cut by three perpendicular planes. Wheat: the back $a \times a \times a$ corner. Light blue: the three $a \times a \times b$ slabs (one along each axis from the wheat corner). Pale green: the three $a \times b \times b$ slabs (one along each axis from the small front corner). Yellow: the front $b \times b \times b$ corner. Eight pieces, four types, total volume $a^3 + 3a^2b + 3ab^2 + b^3$.

Counting the eight pieces

Here is the bookkeeping that turns the picture into the identity. Every one of the eight boxes has three side lengths, each of which is either a or b. So you can name a box by a three-letter string like aab or bab — one letter per axis. There are 2^3 = 8 such strings, and they group naturally by how many a's they contain:

Add the volumes:

\underbrace{a^3}_{1 \text{ box}} + \underbrace{a^2 b + a^2 b + a^2 b}_{3 \text{ boxes}} + \underbrace{a b^2 + a b^2 + a b^2}_{3 \text{ boxes}} + \underbrace{b^3}_{1 \text{ box}} = a^3 + 3 a^2 b + 3 a b^2 + b^3

That is the identity. The coefficients 1, 3, 3, 1 are just the number of pieces of each type. Why does the total volume equal (a+b)^3? Volume is invariant under dissection — when you cut a solid into non-overlapping pieces, the sum of the piece volumes equals the volume of the original. The eight pieces tile the cube perfectly with no gaps and no overlap, so their volumes must sum to (a+b)^3.

Worked examples

Example 1 — checking with a = 2, b = 1

A cube of side a + b = 3 has volume 27. The identity says

(2+1)^3 = 2^3 + 3 \cdot 2^2 \cdot 1 + 3 \cdot 2 \cdot 1^2 + 1^3 = 8 + 12 + 6 + 1 = 27 \checkmark

You can see all four contributions in a 3 \times 3 \times 3 arrangement of unit cubes (think of a small Rubik's cube): one 2 \times 2 \times 2 block in one corner (8 unit cubes), three flat 2 \times 2 \times 1 slabs glued to its three exposed faces (4 unit cubes each, so 12 total), three 2 \times 1 \times 1 rods filling the remaining edges (2 unit cubes each, so 6 total), and one lonely 1 \times 1 \times 1 cube at the far corner. 8 + 12 + 6 + 1 = 27. The Rubik's-cube picture is the identity, with side lengths a = 2 and b = 1.

Example 2 — why the coefficients are 1, 3, 3, 1 (Pascal's third row)

Look at the row of binomial coefficients

1 \quad 3 \quad 3 \quad 1

at the top of Pascal's triangle's third row. This is not a coincidence; it is the same counting you just did. The coefficient of a^{3-k} b^k in (a+b)^3 is the number of ways to choose which k of the three axes get a b — that is, \binom{3}{k}.

  • \binom{3}{0} = 1 way to give zero axes a b → one a^3 corner.
  • \binom{3}{1} = 3 ways to pick which one axis is a b → three a^2 b slabs.
  • \binom{3}{2} = 3 ways to pick which two axes are b's → three a b^2 slabs.
  • \binom{3}{3} = 1 way to make all three b → one b^3 corner.

The 1, 3, 3, 1 is a count of pieces in the cube. Pascal's triangle and the dissection of an n-cube are the same fact. Why the symmetry \binom{3}{k} = \binom{3}{3-k}? Swapping every "a" for "b" and vice versa turns the cube inside out: the a^3 corner becomes a b^3 corner, the a^2 b slabs become a b^2 slabs. The coefficients are mirror-symmetric because the picture is.

Example 3 — mental arithmetic: $11^3$ in five seconds

Write 11 = 10 + 1 and use the identity with a = 10, b = 1:

11^3 = (10+1)^3 = 10^3 + 3 \cdot 10^2 \cdot 1 + 3 \cdot 10 \cdot 1^2 + 1^3 = 1000 + 300 + 30 + 1 = 1331

Notice the digits of the answer: 1, 3, 3, 1. The same Pascal row that counts the pieces in the cube literally appears as the digits of 11^3 — because 11 = 10 + 1 and powers of 10 shift digits left without overlap. The same trick gives 11^4 = 14641 (1, 4, 6, 4, 1 from Pascal's fourth row), and 11^5 = 161051 — which is almost 1, 5, 10, 10, 5, 1 except the two 10s carry over. Cricket scoring trick: an over has 6 legal balls, so 6 + 1 = 7 deliveries with one no-ball; 7^3 = (6+1)^3 = 216 + 108 + 18 + 1 = 343 in your head, no calculator.

The same shortcut works for 21^3 = (20+1)^3 = 8000 + 1200 + 60 + 1 = 9261 and 101^3 = (100+1)^3 = 1{,}000{,}000 + 30{,}000 + 300 + 1 = 1{,}030{,}301.

Why this matters

Once the cube picture is in your head, three things become permanent:

  1. You stop forgetting the middle coefficients. The two middle terms of (a+b)^3 both have coefficient 3, never 2 and never 4 — because there are exactly three axes in 3D space, so exactly three slabs of each mixed type. The "3" is geometric, not arbitrary.
  2. You can extend the trick. (a+b)^4 is a 4D hypercube cut into 2^4 = 16 pieces, with type counts 1, 4, 6, 4, 1 — the next row of Pascal's triangle, and also \binom{4}{0}, \binom{4}{1}, \dots, \binom{4}{4}. You cannot draw it, but the bookkeeping is identical: count the strings of as and bs of each composition.
  3. You see the binomial theorem coming. (a+b)^n = \sum_{k=0}^n \binom{n}{k} a^{n-k} b^k is just "cut an n-dimensional hypercube of side a+b along all n axes; count the pieces of each type." That is the binomial theorem — and you have already proved it for n = 3 by drawing one cube.

The (a-b)^3 identity has its own picture too: start with the a^3 cube, slice off three slabs (one per face), notice you over-removed three rods, add them back, then notice you under-removed the corner, fix it. The result is (a-b)^3 = a^3 - 3a^2 b + 3 a b^2 - b^3, with the alternating signs explained exactly the same way the (a-b)^2 corner is — it is inclusion–exclusion in 3D.

References

  1. Algebraic identities — the parent article.
  2. Geometric proof of (a+b)² — the 2D version of the same dissection idea.
  3. Wikipedia: Binomial theorem — the general statement that (a+b)^n has coefficients given by Pascal's triangle.
  4. Wikipedia: Pascal's triangle — where 1, 3, 3, 1 lives, and why the symmetry is automatic.
  5. NCERT Class 9 Mathematics, Chapter 2: Polynomials — the Indian school treatment of (a+b)^3 and (a-b)^3.
  6. Cut the Knot: (a+b)³ visual proof — an interactive 3D dissection of the same cube.