Difference of powers pattern

Sit with a table of squares for a while and something strange keeps happening: 82−628^2-6^2 comes out to 2828, and so does 14×214\times2. Try 122−9212^2-9^2 and you get 6363, which is exactly 21×321\times3. It is not a coincidence you stumble on once — it happens every single time, for every pair of numbers you can name. That reliability is what turns the identity (a+b)(a−b)=a2−b2(a+b)(a-b)=a^2-b^2 from a one-off algebra trick into a genuine pattern: something you can tabulate, verify across many rows, and then trust enough to predict a result before you have squared a single number. This article builds that table, pins down the fixed-gap version of the pattern, and uses it to explain a famous "coincidence" — why 992−1299^2-1^2, 982−2298^2-2^2 and 972−3297^2-3^2 all land suspiciously close together.

The core insight

For any two numbers a>ba>b, the difference of their squares always equals (a+b)(a−b)(a+b)(a-b), so tabulating a+ba+b and a−ba-b alongside a2−b2a^2-b^2 reveals a predictable pattern instead of a coincidence.

The core idea

The identity behind the pattern comes straight from the distributive law: expand (a+b)(a−b)(a+b)(a-b) and the cross terms +ab+ab and −ab-ab cancel, leaving only the squares.

a2−b2=(a+b)(a−b)a^2 - b^2 = (a+b)(a-b)

where: aa and bb are any two numbers with a>ba>b, a+ba+b is their sum, and a−ba-b is their difference (the "gap" between them). Because this holds for every choice of aa and bb — not just round or convenient ones — it is safe to build a table and check it row by row, confident that no row can fail:

aabba2a^2b2b^2a2−b2a^2-b^2(a+b)(a−b)(a+b)(a-b)
53259168×2=168\times2=16
8664362814×2=2814\times2=28
129144816321×3=6321\times3=63

Every row matches. The last two columns never disagree, no matter how aa and bb are chosen — which is exactly why this counts as a pattern worth predicting from, not just an identity worth memorising. A particularly useful special case appears when aa and bb are always a fixed gap apart — say a−b=2a-b=2 throughout a table, as in the rows above. Then the identity collapses to a2−b2=(a+b)×2a^2-b^2=(a+b)\times2: twice the sum. Fix the gap at 55 instead and the rule becomes a2−b2=5(a+b)a^2-b^2=5(a+b). Once the gap is known, the entire family of differences-of-squares for that gap can be predicted from a single multiplication, without squaring anything. There is a mirror-image special case too: sometimes it is the sum a+ba+b that stays fixed across a table rather than the gap. In that situation the identity is read the other way around: a2−b2=(a+b)(a−b)a^2-b^2=(a+b)(a-b) becomes a2−b2=k(a−b)a^2-b^2=k(a-b) for the fixed sum kk. Both shortcuts are the same identity — only the roles of "which factor is constant" and "which factor varies" have swapped. Recognising which one applies to a given table is itself part of the pattern-spotting skill this topic is building: check whether a+ba+b or a−ba-b repeats down the rows, and use that column as your multiplier.

Figure
A three-column strip showing a and b as two bars a fixed gap apart their squared areas and the equal rectangle a plus b times a minus b
a squared minus b squared equals a plus b times a minus b a squared b squared minus − = (a + b) rows tall, (a − b) wide same total area every time whatever a and b are, the left shaded area always equals the right rectangle

The pattern holds for a fixed gap

The goal here is to show, for a whole family of number pairs that share the same gap a−ba-b, that a2−b2a^2-b^2 is not merely equal to (a+b)(a−b)(a+b)(a-b) in each isolated case but collapses to a single simple multiple of a+ba+b — turning three separate long calculations into one short rule.

Derivation ADifference of squares for a fixed gap

The goal is to show that once the gap between aa and bb is fixed at some constant value kk, the whole family of differences a2−b2a^2-b^2 reduces to a single multiplication rule, k(a+b)k(a+b), so that any pair sharing that gap can be checked without computing either square directly.

Step 1. Start from the identity that always holds: a2−b2=(a+b)(a−b)a^2-b^2=(a+b)(a-b). This is true for every pair, regardless of how far apart aa and bb are.

Step 2. Suppose the gap is fixed: a−b=ka-b=k for some constant kk (for example k=2k=2 or k=5k=5, as in the table and the worked example below). Substitute this directly into the identity: a2−b2=(a+b)×ka^2-b^2=(a+b)\times k.

Step 3. Read what this means for a table of pairs that all share the same gap kk: as aa and bb climb together while staying kk apart, a2−b2a^2-b^2 simply tracks kk times their sum. Doubling the sum doubles the difference of squares; there is no need to ever compute a2a^2 or b2b^2 separately once kk is known.

Step 4. Check it against the earlier table, where k=2k=2: for (5,3)(5,3), k(a+b)=2×8=16k(a+b)=2\times8=16, matching 25−9=1625-9=16. For (8,6)(8,6), 2×14=282\times14=28, matching 64−36=2864-36=28. For (12,9)(12,9), 3×21=633\times21=63 — here k=3k=3, not 22, since 12−9=312-9=3, and the formula still holds with the correct gap.

Worked example

Verify the difference-of-squares pattern for three pairs of numbers that are each 55 apart, and state the single rule connecting a2−b2a^2-b^2 to a+ba+b for that family.

Step 1. Choose three pairs with a−b=5a-b=5: (a,b)=(10,5)(a,b)=(10,5), (15,10)(15,10), (20,15)(20,15).

Step 2. For (10,5)(10,5): a2−b2=100−25=75a^2-b^2=100-25=75. Check via the identity: (a+b)(a−b)=15×5=75(a+b)(a-b)=15\times5=75. Matches.

Step 3. For (15,10)(15,10): a2−b2=225−100=125a^2-b^2=225-100=125. Check: 25×5=12525\times5=125. Matches.

Step 4. For (20,15)(20,15): a2−b2=400−225=175a^2-b^2=400-225=175. Check: 35×5=17535\times5=175. Matches.

Step 5. Since a−b=5a-b=5 is fixed throughout, the identity collapses to a2−b2=5(a+b)a^2-b^2=5(a+b): the difference of squares is always exactly 55 times the sum, whenever the two numbers are 55 apart. Every row confirms it: 75=5×1575=5\times15, 125=5×25125=5\times25, 175=5×35175=5\times35.

Competitive stretch

A student notices 992−1299^2-1^2, 982−2298^2-2^2 and 972−3297^2-3^2 all look suspiciously related. Here a+b=100a+b=100 stays fixed in every pair instead of the gap. Using the identity, 992−12=(99+1)(99−1)=100×98=980099^2-1^2=(99+1)(99-1)=100\times98=9800; 982−22=100×96=960098^2-2^2=100\times96=9600; 972−32=100×94=940097^2-3^2=100\times94=9400. The three answers are not equal, but each is a multiple of 100100, falling by 200200 each step — because with a+b=100a+b=100 fixed, a2−b2=100(a−b)a^2-b^2=100(a-b), and a−ba-b itself falls by 22 each time (98→96→9498\to96\to94), giving steps of 100×2=200100\times2=200. The results are 98009800, 96009600 and 94009400, explained entirely by the fixed-sum version of the pattern.

Common traps

  • Confusing "difference of squares" with "square of a difference." a2−b2a^2-b^2 is not the same as (a−b)2(a-b)^2; the two look similar but give different numbers — check with a=5,b=3a=5,b=3: a2−b2=16a^2-b^2=16 but (a−b)2=4(a-b)^2=4.
  • Assuming the pattern only works for round, "nice" numbers. The identity a2−b2=(a+b)(a−b)a^2-b^2=(a+b)(a-b) is true for every pair without exception, so it is always worth checking rather than dismissing as a fluke of the chosen numbers.
  • Mixing up which quantity is fixed. A fixed gap (a−b=ka-b=k) gives the rule a2−b2=k(a+b)a^2-b^2=k(a+b); a fixed sum (a+b=ka+b=k) gives the different rule a2−b2=k(a−b)a^2-b^2=k(a-b) — spotting which one is constant in a given table decides which shortcut applies.
  • Building the table without the extra columns. Staring only at raw squared values hides the pattern; adding a+ba+b and a−ba-b as columns makes the match with a2−b2a^2-b^2 obvious immediately.

Ask the tutor: pick your own sequence of number pairs — with a fixed gap or a fixed sum — and ask the AI tutor to help you find and prove which version of the pattern it follows.

How is this different from just using the identity once, like in earlier lessons?

Earlier you probably used (a+b)(a−b)=a2−b2(a+b)(a-b)=a^2-b^2 to simplify or compute a single pair of numbers. Here the focus shifts to a whole sequence of pairs — a table, or numbers with a shared gap or shared sum — and to noticing that the identity produces a consistent, predictable rule across every row. It is the same algebra, but the skill being tested is pattern recognition: spotting the constant (a+ba+b, a−ba-b, or their fixed relationship) that makes an entire family of results predictable at once.

Do I always need a=10 type round numbers for the pattern to be useful?

No — the pattern is most useful precisely when aa and bb are not round. If a+ba+b or a−ba-b happens to be small and easy even though aa and bb themselves are large or awkward, the identity lets you skip squaring altogether. For example, 9972−32997^2-3^2 is instantly (1000)(994)=994000(1000)(994)=994000 without ever computing 9972997^2. The pattern works everywhere; it is simply easiest to notice using round numbers first.

What is the quickest way to tell whether a table follows the fixed-gap or the fixed-sum version of the rule?

Compute a−ba-b and a+ba+b for each row and see which one stays the same down the table. If a−ba-b is constant, use a2−b2=k(a+b)a^2-b^2=k(a+b) with kk that constant gap. If instead a+ba+b is constant, use a2−b2=k(a−b)a^2-b^2=k(a-b) with kk that constant sum. Both are just the identity (a+b)(a−b)(a+b)(a-b) with one factor fixed — checking two extra columns tells you instantly which shortcut applies.

Before this

Where this leads