Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Algebraic Identities






Shortcuts Worth Memorizing

An algebraic identity is an equation that holds for every value of its variables — not a problem to solve, but a structural fact about how operations interact. The identity (a+b)2=a2+2ab+b2(a+b)^2 = a^2 + 2ab + b^2 is true whether aa and bb are integers, fractions, irrationals, or expressions. It describes what squaring a sum does, regardless of what is being squared.

The point of memorizing these patterns is speed. Anyone can derive (a+b)(a−b)=a2−b2(a+b)(a-b) = a^2 - b^2 by distribution, but doing so every time it appears wastes effort. Recognizing the pattern on sight — in either direction — turns a multi-step expansion into a single move. Read left to right, an identity expands. Read right to left, the same identity factors. Both readings matter.

The identities below are grouped by shape: squares first, then cubes, then higher powers, then expressions in three terms, then the sum and difference of powers, and finally a small set of less common forms that recur often enough to deserve a place in working memory.

Key Terms

Polynomial structure

Polynomial— the family of expressions all these identities operate on
Binomial— most identities expand or factor expressions of the form a±ba \pm b
Trinomial— three-term expressions appearing in Trinomial Expansions
Coefficient— the numerical factors generated by expansion (e.g., the 33 in 3a2b3a^2b)

Identity types

Identity— an equation true for every value of its variables
Difference of Squares— a2−b2=(a+b)(a−b)a^2 - b^2 = (a+b)(a-b)
Perfect Square Trinomial— a2±2ab+b2=(a±b)2a^2 \pm 2ab + b^2 = (a \pm b)^2
Sum and Difference of Cubes— a3±b3a^3 \pm b^3 factorizations

Higher-degree tools

Binomial Coefficient— (nk)\binom{n}{k}, the coefficients in (a+b)n(a+b)^n
Binomial Theorem— the general formula for (a+b)n(a+b)^n
See All Algebra Definitions →


Squares of Binomials

Squaring a product works factor by factor: (ab)² = a²b². It is tempting to square a sum the same way.
By that habit (a+b)2(a + b)^2 would simply be a2+b2a^2 + b^2 — square each piece and add.
Trying numbers shows the habit fails — while a third expression matches every time.
a, b(a + b)²a² + b²a² + 2ab + b²
3, 44925 — wrong49
1, 142 — wrong4
5, −2929 — wrong9
0, 7494949
a2+b2a^2 + b^2 is right only when one of the two is 00. The column a2+2ab+b2a^2 + 2ab + b^2 agrees with (a+b)2(a + b)^2 in every row, and would in any row added.
The habit drops the cross term 2ab, the two rectangles left over in the square of side a + b.
The middle term is what gets missed most often. Squaring (a+b)(a+b) does not give a2+b2a^2 + b^2 — the cross term 2ab2ab comes from the two outer-and-inner products that survive distribution. The conjugate product (a+b)(a−b)(a+b)(a-b) is the exception: there the cross terms cancel, leaving a clean difference of squares — the most heavily used factoring pattern in algebra.
Geometrically, (a+b)2(a+b)^2 is the area of a square with side a+ba+b, dissected into one a×aa \times a square, one b×bb \times b square, and two a×ba \times b rectangles. The cross term 2ab2ab counts those two rectangles. Once that picture is in working memory, the formula becomes unforgettable. The reverse direction — recognizing a2+2ab+b2a^2 + 2ab + b^2 as a perfect square trinomial — is what lets you collapse three terms into one squared binomial on sight.
DownloadPNG2×PDF
Square of a sum
(a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2
Square of a difference
(a−b)2=a2−2ab+b2(a - b)^2 = a^2 - 2ab + b^2
Product of conjugates
(a+b)(a−b)=a2−b2(a + b)(a - b) = a^2 - b^2
Squares of BinomialsLearn Math Class
The picture below draws the first of the three as areas: the square of side a+ba + b cut into its four pieces.
a²b²ababa + ba + babab
(a + b)² as an area: a² + ab + ab + b²

A square of side a + b is cut into four pieces: an a × a square, a b × b square and two a × b rectangles. Their areas add up to the whole, which is the identity (a + b)² = a² + 2ab + b² read off the picture, the middle term being the two identical rectangles. Build the square piece by piece on the square of a sum explorer.

The square of a difference and the conjugate product are the same picture with one side shortened or one piece removed.
The definition
An identity is an equation that holds for every value of its variables, such as (a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2.
Three identities form the foundation of nearly all polynomial work. Squaring a sum, squaring a difference, and multiplying conjugate binomials produce predictable results that appear constantly in factoring, completing the square, simplifying rational expressions, and solving quadratic equations.
So (a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2 is an identity, while (a+b)2=a2+b2(a + b)^2 = a^2 + b^2 is not: it fails at a=3a = 3, b=4b = 4.
An identity is a rewriting rule: either side may replace the other, whatever the values.
In practice, aa and bb are rarely single letters. Expanding (2x+3)2(2x + 3)^2 means applying the identity with a=2xa = 2x and b=3b = 3, and each of the three terms a2a^2, 2ab2ab and b2b^2 is built from those whole expressions. The same substitution works for any binomial, whatever its two terms look like.
Fact: A shortcut for mental multiplication
49⋅51=(50−1)(50+1)=502−1=249949 \cdot 51 = (50 - 1)(50 + 1) = 50^2 - 1 = 2499. Any two numbers the same distance from an easy square multiply this way, in your head.
Each letter stands for a whole term, coefficient included.
Pitfall: Squaring only the letter
Writing (2x+3)2(2x + 3)^2 as 2x2+12x+92x^2 + 12x + 9 squares the xx but not the 22; at x=1x = 1 that gives 2323 instead of 52=255^2 = 25. The first term is a=2xa = 2x, so a2=4x2a^2 = 4x^2 and (2x+3)2=4x2+12x+9(2x + 3)^2 = 4x^2 + 12x + 9.
Cubes work the same way with more cross terms, as cubes of binomials shows.
The rest of the page covers cubes of binomials, higher powers and the binomial theorem, trinomial expansions, and the factoring identities.

Cubes of Binomials

Cubing a binomial extends the squaring pattern by one degree. Four terms appear instead of three, with coefficients 1,3,3,11, 3, 3, 1 governing the expansion. The signs alternate when the binomial is a difference, exactly as they did in the squared case.

These identities show up in polynomial factoring, in algebraic manipulation involving cubic expressions, and as a stepping stone toward the general binomial theorem. Recognizing a3+3a2b+3ab2+b3a^3 + 3a^2b + 3ab^2 + b^3 as (a+b)3(a+b)^3 on sight saves the work of factoring it from scratch. The reverse-direction counterparts — the sum and difference of cubes — are different identities entirely and live in Sums and Differences of Powers below; do not confuse the two.

Pitfall: Making every sign negative
Writing (x−2)3(x - 2)^3 as x3−6x2−12x−8x^3 - 6x^2 - 12x - 8 puts a minus on every term after the first; at x=3x = 3 that gives −71-71 instead of 13=11^3 = 1. The signs alternate: (x−2)3=x3−6x2+12x−8(x - 2)^3 = x^3 - 6x^2 + 12x - 8.

The structural pattern — descending powers of aa, ascending powers of bb, symmetric coefficients — is the same one that governs every higher power. Squares and cubes are the two cases worth committing to memory directly; beyond that, the binomial theorem takes over.
DownloadPNG2×PDF
PatternExpanded form
Cube of a sum(a+b)3=a3+3a2b+3ab2+b3(a + b)^3 = a^3 + 3a^2b + 3ab^2 + b^3
Cube of a difference(a−b)3=a3−3a2b+3ab2−b3(a - b)^3 = a^3 - 3a^2b + 3ab^2 - b^3
Cubes of BinomialsLearn Math Class
Cubing a binomial always gives the coefficients 1,3,3,11, 3, 3, 1; a difference only makes the signs alternate.

Higher Powers and the Binomial Theorem

The pattern in (a+b)2(a+b)^2 and (a+b)3(a+b)^3 generalizes. For any positive integer nn:

Higher Powers and the Binomial Theorem
(a+b)n=∑k=0n(nk)an−kbk(a+b)^n = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^k

This is the binomial theorem. The expansion has n+1n+1 terms; the powers of aa descend from nn to 00 while the powers of bb ascend from 00 to nn. The numerical coefficients are the binomial coefficients (nk)\binom{n}{k}, which can be read directly off Pascal's triangle.

The fourth and fifth powers expand to:

Higher Powers and the Binomial Theorem
(a+b)4=a4+4a3b+6a2b2+4ab3+b4(a+b)^4 = a^4 + 4a^3b + 6a^2b^2 + 4ab^3 + b^4

Higher Powers and the Binomial Theorem
(a+b)5=a5+5a4b+10a3b2+10a2b3+5ab4+b5(a+b)^5 = a^5 + 5a^4b + 10a^3b^2 + 10a^2b^3 + 5ab^4 + b^5

The coefficients 1,4,6,4,11,4,6,4,1 and 1,5,10,10,5,11,5,10,10,5,1 are the corresponding rows of Pascal's triangle.

COROLLARY
For a difference (a−b)n(a-b)^n, the same coefficients appear with alternating signs: every odd-indexed term (counting from k=0k=0) flips sign, since (−b)k(-b)^k is negative when kk is odd.

Memorizing every higher power is unnecessary. The formula handles them all. What matters is recognizing when the binomial theorem applies and being able to read off any specific term — the term containing bkb^k is (nk)an−kbk\binom{n}{k} a^{n-k} b^k, no full expansion required.

Pitfall: Using the binomial coefficient alone
Taking (52)=10\binom{5}{2} = 10 as the coefficient of x3x^3 in (x+2)5(x + 2)^5 leaves out the factor b2=22b^2 = 2^2. The term is (52)x3⋅22=40x3\binom{5}{2} x^3 \cdot 2^2 = 40x^3.

Reading off one term is the usual task in practice. In (x+2)5(x + 2)^5 the role of aa is played by xx and the role of bb by 22, and the term with x3x^3 is the one where n−k=3n - k = 3, that is k=2k = 2. The general term then gives that term in full, its number and its power of xx together.
11112113311464115101051C(5, 2) = 10 — 10 paths from the top
C(5, 2) = 10 paths through Pascal’s triangle

The coefficient of a³b² in (a + b)⁵ is the number of ways to choose which 2 of the 5 factors contribute a b, and the triangle counts those choices as the 10 downward paths that reach the highlighted entry. Every row of the triangle is the coefficient list of one power. Follow the paths for any entry on the binomial coefficient visualizer.

Pascal’s triangle is the binomial theorem with the algebra stripped away.

Trinomial Expansions

When three terms are squared or cubed, the expansion produces every pairwise product of the original terms, each appearing twice (or more) due to the multiple ways factors can combine.

The square of a trinomial follows directly from term-by-term multiplication:

Trinomial Expansions
(a+b+c)2=a2+b2+c2+2ab+2ac+2bc(a+b+c)^2 = a^2 + b^2 + c^2 + 2ab + 2ac + 2bc

Three squared terms and three doubled cross-products — one for each pair of original terms.

COROLLARY
The pattern generalizes: squaring a sum of kk terms produces kk squares plus (k2)\binom{k}{2} doubled cross-products.

The cube of a trinomial is heavier:

Trinomial Expansions
(a+b+c)3=a3+b3+c3+3(a2b+a2c+ab2+b2c+ac2+bc2)+6abc(a+b+c)^3 = a^3 + b^3 + c^3 + 3(a^2b + a^2c + ab^2 + b^2c + ac^2 + bc^2) + 6abc

Three cubed terms, six trinomial cross-products of the form a2ba^2b each with coefficient 33, and one central term 6abc6abc where every variable appears once. The full multinomial theorem governs expansions like these in general, but for three variables at degree two or three, memorizing the pattern is faster than recomputing.

A useful identity hidden in the cubic case is a3+b3+c3−3abc=(a+b+c)(a2+b2+c2−ab−ac−bc)a^3 + b^3 + c^3 - 3abc = (a+b+c)(a^2+b^2+c^2 - ab - ac - bc), which factors a symmetric polynomial that resists the standard sum-of-cubes approach when three variables are involved.
a²abacabb²bcacbcc²aabbcca+b+ca+b+c
(a + b + c)² as nine pieces

A square of side a + b + c, cut along a, b and c in both directions, falls into nine rectangles: three squares a², b², c² on the diagonal and six off-diagonal pieces, each product ab, ac, bc appearing twice, once on each side of the diagonal. That is exactly a² + b² + c² + 2ab + 2ac + 2bc. Step through the dissection on the square of a trinomial explorer.

Squaring a sum of k terms works the same way: k squares on the diagonal and every pair twice off it.

Sums and Differences of Powers

These identities run in the opposite direction to the binomial expansions in the sections above: they take a two-term expression and break it into factors. The two anchors are the difference of squares and the sum and difference of cubes, but the pattern extends to every degree.

The difference of squares a2−b2=(a+b)(a−b)a^2 - b^2 = (a+b)(a-b) is the most-used factoring identity in algebra, appearing constantly in simplification, rationalization, and solving equations.

RULE
Its sum counterpart a2+b2a^2 + b^2 does not factor over the real numbers — but over the complex numbers it splits as (a+bi)(a−bi)(a+bi)(a-bi), with the imaginary unit supplying what the reals lack.

The cubes split cleanly in both directions:

Difference of Cubes
a3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a-b)(a^2 + ab + b^2)
Learn more about this formula: Difference of Cubes →

Sum of Cubes
a3+b3=(a+b)(a2−ab+b2)a^3 + b^3 = (a+b)(a^2 - ab + b^2)
Learn more about this formula: Sum of Cubes →


Pitfall: Copying the sign into the quadratic factor
Writing x3+8x^3 + 8 as (x+2)(x2+2x+4)(x + 2)(x^2 + 2x + 4) copies the plus sign into the middle term; that product is x3+4x2+8x+8x^3 + 4x^2 + 8x + 8. The middle sign is the opposite one: x3+8=(x+2)(x2−2x+4)x^3 + 8 = (x + 2)(x^2 - 2x + 4).

The quadratic factors a2±ab+b2a^2 \pm ab + b^2 are irreducible over the reals (their discriminants are negative), so this factorization is the end of the line for cubes over R\mathbb{R}.

For higher powers, two general patterns govern everything. The difference an−bna^n - b^n always factors — (a−b)(a-b) divides it for any positive integer nn:

Sums and Differences of Powers
an−bn=(a−b)(an−1+an−2b+an−3b2+⋯+bn−1)a^n - b^n = (a-b)(a^{n-1} + a^{n-2}b + a^{n-3}b^2 + \cdots + b^{n-1})

The sum an+bna^n + b^n has (a+b)(a+b) as a divisor only when nn is odd:

Sums and Differences of Powers
an+bn=(a+b)(an−1−an−2b+an−3b2−⋯+bn−1)(n odd)a^n + b^n = (a+b)(a^{n-1} - a^{n-2}b + a^{n-3}b^2 - \cdots + b^{n-1}) \quad (n \text{ odd})

When nn is even, an+bna^n + b^n has no factor (a+b)(a+b); of these, only a2+b2a^2 + b^2 is irreducible over the reals, while for example a6+b6=(a2+b2)(a4−a2b2+b4)a^6 + b^6 = (a^2 + b^2)(a^4 - a^2b^2 + b^4). The case a4−b4a^4 - b^4 is worth noting separately because it factors twice — first as a difference of squares, then again because a2−b2a^2 - b^2 factors further: (a−b)(a+b)(a2+b2)(a-b)(a+b)(a^2+b^2).
DownloadPNG2×PDF
Layout
✓Yes✕No
PatternFactors over ℝ?Factorization
a² − b²✓(a + b)(a − b)
a² + b²✕irreducible over ℝ; (a + bi)(a − bi) over ℂ
a³ − b³✓(a − b)(a² + ab + b²)
a³ + b³✓(a + b)(a² − ab + b²)
a⁴ − b⁴✓(a − b)(a + b)(a² + b²)
aⁿ − bⁿ (any n)✓(a − b)(aⁿ⁻¹ + aⁿ⁻²b + ⋯ + bⁿ⁻¹)
aⁿ + bⁿ (odd n)✓(a + b)(aⁿ⁻¹ − aⁿ⁻²b + ⋯ + bⁿ⁻¹)
Sums and Differences of PowersLearn Math Class
a · (a − b)(a − b) · ba + ba − bab
a² − b² rearranged into (a + b)(a − b)

Removing a b × b corner from an a × a square leaves an L-shape of area a² − b²; cutting the L into two rectangles, a(a − b) and (a − b)b, and laying them end to end gives one rectangle of sides a + b and a − b. The factorisation is a rearrangement of area, nothing more. Watch the pieces slide into the rectangle on the difference of squares explorer.

The higher-degree factorisations above have no such picture, which is why they are learned as patterns.
A difference of like powers always has the factor a−ba - b; a sum has a+ba + b only for odd powers.

Useful Specials

A handful of less common identities recur often enough to deserve a place alongside the standard ones. None of them follow from a general theorem the way the binomial expansions do — each is a specific algebraic fact worth recognizing on sight.

The Sophie Germain identity factors a4+4b4a^4 + 4b^4, an expression that looks irreducible at first glance:

Useful Specials
a4+4b4=(a2+2ab+2b2)(a2−2ab+2b2)a^4 + 4b^4 = (a^2 + 2ab + 2b^2)(a^2 - 2ab + 2b^2)

It surfaces in number theory and contest problems where a4+4b4a^4 + 4b^4 appears and would otherwise resist factoring.

Fact: n4+4n^4 + 4 is almost never prime
For every whole number n≥2n \geq 2 both factors are greater than 11, so n4+4n^4 + 4 is composite. The one exception is n=1n = 1, where 14+4=51^4 + 4 = 5 is prime.

Taking a=na = n and b=1b = 1 turns the identity into a statement about whole numbers: n4+4=(n2+2n+2)(n2−2n+2)n^4 + 4 = (n^2 + 2n + 2)(n^2 - 2n + 2). For n=3n = 3 it splits 8585 as 17⋅517 \cdot 5, and for n=5n = 5 it splits 629629 as 37⋅1737 \cdot 17. Each factor is a perfect square plus one, since n2+2n+2=(n+1)2+1n^2 + 2n + 2 = (n + 1)^2 + 1 and n2−2n+2=(n−1)2+1n^2 - 2n + 2 = (n - 1)^2 + 1, so both are positive whole numbers for every whole number nn.

Two paired identities link sums and differences of squared binomials:

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

Useful Specials
(a+b)2−(a−b)2=4ab(a+b)^2 - (a-b)^2 = 4ab

The first reduces a sum of squared sum and squared difference; the second extracts the product abab from the same pair. Both are useful when manipulating expressions where a+ba+b and a−ba-b appear together.

A symmetric three-variable identity:

Useful Specials
a2+b2+c2−ab−ac−bc=12[(a−b)2+(b−c)2+(a−c)2]a^2 + b^2 + c^2 - ab - ac - bc = \tfrac{1}{2}\left[(a-b)^2 + (b-c)^2 + (a-c)^2\right]

Recognizing this form proves the expression is non-negative for all real a,b,ca, b, c, which is otherwise non-obvious.

A factorable quartic that is not a perfect square:

Useful Specials
a4+a2b2+b4=(a2+ab+b2)(a2−ab+b2)a^4 + a^2b^2 + b^4 = (a^2 + ab + b^2)(a^2 - ab + b^2)

This one looks like a difference of squares hiding inside a sum, and it appears in factoring problems where the standard patterns fail.

Finally, over the complex numbers, the sum of two squares factors using the imaginary unit:

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

Over R\mathbb{R} this expression is irreducible; over C\mathbb{C} it splits cleanly, and the factorization is the basis for using complex conjugates to handle expressions that have no real factorization.

Summary of Algebraic Identities

The table below collects every identity from this page in one place. Use it as a reference card — for each pattern, the table shows the canonical form and the contexts where the identity does the most work.

For every identity in one searchable list, see the algebraic identities table.
DownloadPNG2×PDF
Layout
FamilyIdentityWhere it's used
Square of a sum(a + b)² = a² + 2ab + b²completing the square, perfect square trinomials
Square of a difference(a − b)² = a² − 2ab + b²completing the square, expansions
Difference of squaresa² − b² = (a + b)(a − b)factoring, rationalizing denominators
Cube of a sum(a + b)³ = a³ + 3a²b + 3ab² + b³cubic expansions, depressed cubics
Cube of a difference(a − b)³ = a³ − 3a²b + 3ab² − b³cubic expansions, depressed cubics
Sum of cubesa³ + b³ = (a + b)(a² − ab + b²)factoring cubics
Difference of cubesa³ − b³ = (a − b)(a² + ab + b²)factoring cubics
Binomial theorem(a + b)ⁿ = Σ C(n,k) aⁿ⁻ᵏ bᵏgeneral expansions of any degree
Square of a trinomial(a + b + c)² = a² + b² + c² + 2ab + 2ac + 2bcthree-variable expansions
aⁿ − bⁿ(a − b)(aⁿ⁻¹ + aⁿ⁻²b + ⋯ + bⁿ⁻¹)factoring any degree, (a − b) always divides
aⁿ + bⁿ (odd n)(a + b)(aⁿ⁻¹ − aⁿ⁻²b + ⋯ + bⁿ⁻¹)factoring odd-degree sums only
Sophie Germaina⁴ + 4b⁴ = (a² + 2ab + 2b²)(a² − 2ab + 2b²)specialty factoring
Sum of squares (over ℂ)a² + b² = (a + bi)(a − bi)complex number factoring
Summary of Algebraic IdentitiesLearn Math Class
DownloadPNG2×PDF
Before you read
The identities in six groups
The algebraic identities on this page group by the kind of expression they expand or factor.
  • L0Algebraic identities
    • L1Squares of binomials
      • L2Square of a sum(a + b)²
      • L2Square of a difference(a − b)²
      • L2Difference of squaresa² − b²
    • L1Cubes of binomials(a ± b)³
    • L1Higher powersthe binomial theorem(a + b)ⁿ
    • L1Trinomial square(a + b + c)²
    • L1Sums and differences of powers
      • L2Sum and difference of cubesa³ ± b³
      • L2Difference of nth powersaⁿ − bⁿ
      • L2Sum of nth powersfactors by a + b when n is oddaⁿ + bⁿ
    • L1Useful specials
      • L2Sophie Germaina⁴ + 4b⁴
      • L2Sum of squares over ℂa² + b²
Takeaway
Read them both ways
Every identity works left to right for expanding and right to left for factoring.
Algebraic identities in six groups·/algebra/identitiesLearn Math Class

Common Pitfalls

Most wrong expansions and factorizations come from a handful of slips. The first is described in the section on squares; the others are marked where they happen in the sections above. Here each is worked through in full, with the wrong and the right working side by side.
DownloadPNG2×PDF
1Dropping the middle term
A binomial is squared term by term, as if the square could be shared out over a sum the way it is over a product, and the cross term disappears.
Start
(x+5)2(x + 5)^2
Wrong turn
Error here
=x2+25= x^2 + 25
Right path
With a=xa = x and b=5b = 5, the identity gives a2+2ab+b2a^2 + 2ab + b^2:
=x2+2⋅x⋅5+25= x^2 + 2 \cdot x \cdot 5 + 25
=x2+10x+25= x^2 + 10x + 25
Why it happensPowers do spread over products, (ab)2=a2b2(ab)^2 = a^2b^2, and the same move looks natural for a sum.
How to checkSubstitute a value. At x=1x = 1, (1+5)2=36(1 + 5)^2 = 36; the wrong form gives 1+25=261 + 25 = 26, the right form 1+10+25=361 + 10 + 25 = 36.
2Squaring only the letter
The first term of the binomial carries a number, as in 2x2x, but the square is applied to the letter alone and the number is left as it was.
Start
(2x+3)2(2x + 3)^2
Wrong turn
Error here
=2x2+2⋅2x⋅3+9= 2x^2 + 2 \cdot 2x \cdot 3 + 9
=2x2+12x+9= 2x^2 + 12x + 9
Right path
The first term is a=2xa = 2x, so a2=(2x)2=4x2a^2 = (2x)^2 = 4x^2:
=4x2+12x+9= 4x^2 + 12x + 9
Why it happensThe identity is learned with single letters, and a2a^2 is read as "the letter squared" instead of "the whole first term squared".
How to checkSubstitute a value. At x=1x = 1, (2+3)2=25(2 + 3)^2 = 25; the wrong form gives 2+12+9=232 + 12 + 9 = 23, the right form 4+12+9=254 + 12 + 9 = 25.
3Making every sign negative
In the cube of a difference, the minus sign of the binomial is carried to every term after the first instead of alternating.
Start
(x−2)3(x - 2)^3
Wrong turn
Error here
=x3−6x2−12x−8= x^3 - 6x^2 - 12x - 8
Right path
With a=xa = x and b=2b = 2, the identity a3−3a2b+3ab2−b3a^3 - 3a^2b + 3ab^2 - b^3 gives
=x3−3⋅x2⋅2+3⋅x⋅4−8= x^3 - 3 \cdot x^2 \cdot 2 + 3 \cdot x \cdot 4 - 8
=x3−6x2+12x−8= x^3 - 6x^2 + 12x - 8
Why it happensA minus in the binomial suggests a minus everywhere. But the third term contains (−b)2(-b)^2, which is positive.
How to checkSubstitute a value. At x=3x = 3, (3−2)3=1(3 - 2)^3 = 1; the wrong form gives 27−54−36−8=−7127 - 54 - 36 - 8 = -71, the right form 27−54+36−8=127 - 54 + 36 - 8 = 1.
4Using the binomial coefficient alone
Asked for one term of an expansion, the binomial coefficient is read off Pascal's triangle and taken as the whole coefficient, even though bb is a number other than 11 and its power adds a factor.
Start
The term with x3x^3 in (x+2)5(x + 2)^5 has k=2k = 2,
Wrong turn
Error here
so its coefficient is (52)=10\binom{5}{2} = 10.
Right path
The general term is (nk)an−kbk\binom{n}{k} a^{n-k} b^k with a=xa = x and b=2b = 2:
(52)x3⋅22=10⋅4⋅x3=40x3\binom{5}{2} x^3 \cdot 2^2 = 10 \cdot 4 \cdot x^3 = 40x^3
The coefficient is 4040.
Why it happensIn (a+b)n(a + b)^n with plain letters the binomial coefficients are the whole coefficients, and that habit carries over when bb is a number.
How to checkThe coefficients of the full expansion add up to the value at x=1x = 1, here (1+2)5=243(1 + 2)^5 = 243. The full expansion x5+10x4+40x3+80x2+80x+32x^5 + 10x^4 + 40x^3 + 80x^2 + 80x + 32 adds up to 243243; the binomial coefficients alone add up to only 25=322^5 = 32.
5Copying the sign into the quadratic factor
When a sum of cubes is factored, the plus sign of the binomial factor is copied into the middle term of the quadratic factor.
Start
x3+8x^3 + 8
Wrong turn
Error here
=(x+2)(x2+2x+4)= (x + 2)(x^2 + 2x + 4)
Right path
With a=xa = x and b=2b = 2, the identity a3+b3=(a+b)(a2−ab+b2)a^3 + b^3 = (a + b)(a^2 - ab + b^2) gives
=(x+2)(x2−2x+4)= (x + 2)(x^2 - 2x + 4)
Why it happensThe binomial factor has the same sign as the original expression, and it seems natural for the quadratic factor to follow it.
How to checkExpand the answer. (x+2)(x2+2x+4)=x3+4x2+8x+8(x + 2)(x^2 + 2x + 4) = x^3 + 4x^2 + 8x + 8, while (x+2)(x2−2x+4)=x3−2x2+4x+2x2−4x+8=x3+8(x + 2)(x^2 - 2x + 4) = x^3 - 2x^2 + 4x + 2x^2 - 4x + 8 = x^3 + 8. At x=1x = 1 the original gives 99, the wrong form 3⋅7=213 \cdot 7 = 21, the right form 3⋅3=93 \cdot 3 = 9.
Common pitfalls with algebraic identities·/algebra/identitiesLearn Math Class
All five checks come down to one move: give xx a small value, work out the original expression and the result, and compare the two numbers. A mismatch proves the working wrong. A match is only evidence, since two different expressions can agree at a single point, so when the result matters, try a second value as well.

Skills You Should Learn

Each skill opens its step-by-step method page.
Polynomial methods
  • Expand a special productSingle ruleA binomial squared, or a sum times the matching difference: (2x+3)2(2x + 3)^2, (x−5)2(x - 5)^2, (3x+2)(3x−2)(3x + 2)(3x - 2).
  • Factor a difference of squaresSpot a2−b2a^2 - b^2 and write (a−b)(a+b)(a - b)(a + b); repeat while squares remain.
  • Factor a sum or difference of cubesSpot a3±b3a^3 \pm b^3 and use the matching formula; the quadratic factor never factors further.
  • Multiply polynomialsSingle ruleTwo polynomials multiplied: (x+2)(x2−3x+1)(x + 2)(x^2 - 3x + 1), (2x−1)(x+4)(2x - 1)(x + 4).
Equation methods
  • Complete the squareTurn x2+bxx^2 + bx into a perfect square to solve a quadratic or find its vertex.

Algebraic Identities FAQ

What is the Sophie Germain identity?

+
It factors a4+4b4a^4 + 4b^4, an expression that looks stubbornly irreducible, into (a2+2ab+2b2)(a2−2ab+2b2)(a^2 + 2ab + 2b^2)(a^2 - 2ab + 2b^2). Nothing in the standard patterns suggests it, since the expression is a sum rather than a difference and neither term is a perfect square of a binomial. It turns up in number theory and in contest problems.Read more →

When does an+bna^n + b^n factor?

+
It has (a+b)(a + b) as a divisor only when nn is odd. For even nn there is no factor (a+b)(a + b), yet over the reals only a2+b2a^2 + b^2 is irreducible; for example a6+b6=(a2+b2)(a4−a2b2+b4)a^6 + b^6 = (a^2 + b^2)(a^4 - a^2b^2 + b^4). Differences behave better: an−bna^n - b^n factors for every positive nn, with (a−b)(a - b) as a divisor. Some cases factor repeatedly, as a4−b4a^4 - b^4 becomes (a−b)(a+b)(a2+b2)(a - b)(a + b)(a^2 + b^2).Read more →

How do you pull abab out of a+ba + b and a−ba - b?

+
Square both and subtract: (a+b)2−(a−b)2=4ab(a+b)^2 - (a-b)^2 = 4ab, so the product falls out as a quarter of the difference. Adding instead gives the companion identity (a+b)2+(a−b)2=2(a2+b2)(a+b)^2 + (a-b)^2 = 2(a^2 + b^2), which strips the cross term entirely. The pair is worth recognising whenever a sum and a difference appear together.Read more →

How do you work out 49×5149 \times 51 in your head?

+
Use the difference of squares. The two numbers sit the same distance either side of 5050, so 49⋅51=(50−1)(50+1)=502−12=249949 \cdot 51 = (50 - 1)(50 + 1) = 50^2 - 1^2 = 2499. Any pair placed evenly around an easy square works the same way: 38⋅42=402−22=1600−4=159638 \cdot 42 = 40^2 - 2^2 = 1600 - 4 = 1596. The multiplication turns into one square and one subtraction.Read more →

Is n4+4n^4 + 4 ever prime?

+
Only for n=1n = 1, where it equals 55. The Sophie Germain identity with a=na = n and b=1b = 1 gives n4+4=(n2+2n+2)(n2−2n+2)n^4 + 4 = (n^2 + 2n + 2)(n^2 - 2n + 2), and the smaller factor equals (n−1)2+1(n - 1)^2 + 1, which is greater than 11 for every whole number n≥2n \geq 2. For n=3n = 3, for example, 85=17⋅585 = 17 \cdot 5.Read more →

How do you prove a2+b2+c2≥ab+bc+caa^2 + b^2 + c^2 \geq ab + bc + ca?

+
Move everything to one side and use the identity a2+b2+c2−ab−ac−bc=12[(a−b)2+(b−c)2+(a−c)2]a^2 + b^2 + c^2 - ab - ac - bc = \frac{1}{2}\left[(a-b)^2 + (b-c)^2 + (a-c)^2\right]. The right side is half a sum of squares, so it is never negative for real aa, bb, cc. It is zero only when all three squares are zero, that is when a=b=ca = b = c, so that is the only case of equality.Read more →

How can you check an expansion quickly?

+
Substitute a number into both sides. An identity holds for every value, so one value where the sides disagree proves a mistake: at x=1x = 1, (x+5)2=36(x + 5)^2 = 36, while the slip x2+25x^2 + 25 gives 2626. Choosing x=1x = 1 also adds up the coefficients, so those of (x+2)5(x + 2)^5 must total 35=2433^5 = 243. Agreement at one value is not a proof, but disagreement always exposes an error.Read more →