“Special Products” multiplied these out. Every identity here is one of those products with the two sides exchanged, which is why they need no proof beyond expanding the right-hand side.
Difference of squares
Theorem · a² - b² = (a - b)(a + b)Expanding the right side gives a² + ab - ab - b² = a² - b²; the middle terms cancel. Conversely, any expression that is one perfect square minus another factors this way.
Example · 9x² - 25 and x⁴ - 169x² - 25 = (3x)² - 5² = (3x - 5)(3x + 5). And x⁴ - 16 = (x²)² - 4² = (x² - 4)(x² + 4) = (x - 2)(x + 2)(x² + 4), where the last factor is a sum of squares and stops there.
There is no difference-of-squares pattern for a sum. a² + b² is not (a - b)(a + b). In the quadratic example x² + 4, every real x gives x² + 4 > 0, so there is no real root and therefore no real linear factor. Writing x² + 4 = (x + 2)(x + 2) is the single most common invented law in this lesson; expanding it gives x² + 4x + 4.
Perfect square trinomials
Theorem · a² ± 2ab + b² = (a ± b)²A trinomial is a perfect square exactly when its first and last terms are perfect squares and its middle term is twice the product of their roots, up to sign.
Example · x² + 12x + 36 and 25x² - 20x + 4For the first, x² = (x)², 36 = 6², and 2 · x · 6 = 12x matches: it is (x + 6)². For the second, 25x² = (5x)², 4 = 2², and 2 · 5x · 2 = 20x matches the middle term with the sign negative: it is (5x - 2)².
The middle-term test is what makes this a theorem rather than a guess. x² + 13x + 36 has square outer terms too, but 2 · 1 · 6 = 12, not 13, so it is not a perfect square. It happens to factor as (x + 4)(x + 9), by the method of “Factoring Simple Trinomials”.
Sums and differences of cubes
Theorem · a³ - b³ = (a - b)(a² + ab + b²) and a³ + b³ = (a + b)(a² - ab + b²)Unlike squares, a SUM of cubes does factor. In both identities the linear factor carries the sign of the original and the quadratic factor carries the opposite sign on its middle term. Retest that factor like every other one; the cube identity alone does not prove that no different pattern applies to it.
Example · 8x³ - 27 and 27x³ + 648x³ - 27 = (2x)³ - 3³ = (2x - 3)(4x² + 6x + 9). And 27x³ + 64 = (3x)³ + 4³ = (3x + 4)(9x² - 12x + 16). Expanding either one back is four lines and worth doing once.
The sign rule is the part that is misremembered. In a³ - b³ the binomial is (a - b) and the trinomial's middle term is +ab; in a³ + b³ the binomial is (a + b) and the middle term is -ab. The trinomial's last term is +b² in both cases, never negative.