On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Algebra Fundamentals · Grade 9-12

Algebraic Identities

An algebraic identity is an equality that stays true no matter what values you substitute, like (a+b)2=a2+2ab+b2.

(a−b)2=a2−2ab+b2

Quick Answer

An algebraic identity is an equality that stays true no matter what values you substitute, like (a+b)2=a2+2ab+b2. Use identities to expand, factor or simplify in one step: (x+3)2=x2+6x+9, and x2−49=(x−7)(x+7). Because an identity holds for every value, you can swap one side for the other anywhere it appears. An equation such as x2=49 is different: it is true only for particular values, here 7 and −7, which you have to find.

Why This Matters

Identities are shortcuts you can trust everywhere: they turn 1032 into 10000+600+9, and x2−49 into a product whose zeros you can read off. They are also how you prove two formulas are the same, instead of checking a few examples. The most common algebra error, (a+b)2=a2+b2, is a false identity; at a=b=1 it claims that 4=2.

Intuitive Explanation

Draw a square with side a+b. Split each side into a piece a and a piece b, and the square breaks into four parts: an a by a square, a b by b square, and two a by b rectangles. So (a+b)2=a2+2ab+b2. The picture works for any lengths, which is what makes it an identity, and the two rectangles are the 2ab that people forget.

Numbers can disprove a claimed identity but never prove one. Try (a+b)2=a2+b2 with a=3, b=4: the left side is 49 and the right side is 25, so it is false. Try (a−b)(a+b)=a2−b2 with a=10, b=3: 7⋅13=91 and 100−9=91. That one success is not a proof; expanding (a−b)(a+b)=a2+ab−ab−b2=a2−b2 is.

The identities you will use most are (a+b)2=a2+2ab+b2, (a−b)2=a2−2ab+b2 and a2−b2=(a−b)(a+b). They work in both directions: left to right to expand, right to left to factor. Seeing x2−10x+25 as (x−5)2 is the second identity read backwards. A sum of squares, a2+b2, has no such factoring with real numbers.

An equation like x2−49=0 looks similar but is a condition, true only for x=7 and x=−7. Substituting an arbitrary value tells them apart. At x=2, the identity x2−49=(x−7)(x+7) still holds, since both sides are −45, while the equation fails, since 4−49≠0.

Think of it like this. An identity works like two spellings of one word, "colour" and "color": wherever one appears you may write the other and nothing changes. A conditional equation is more like a riddle with particular answers. Unlike spellings, an identity has to be confirmed by algebra, because a few matching examples prove nothing.

Core idea. An algebraic identity is an equation that holds for all permitted values of its variables, so it acts as an always-valid rewriting shortcut.


When to Use

Use an identity when you see a perfect square such as (x+5)2 to expand, a difference of squares such as 9y2−16 to factor, or a trinomial such as x2+8x+16 that matches (a+b)2. Identities also speed up mental arithmetic, as in 992=(100−1)2, and let you prove that two expressions agree for every value. If a statement is true only for some values, it is an equation to solve; if the pattern does not match exactly, expand by distributing instead.

Tip. Ask: Is this equality true for every value of the variable (an always-true pattern), rather than only for special values?

How to Recognize It

Before using an identity, match the exact shape of the expression to a known pattern, including its signs and coefficients.

  1. Is the expression the square of a two-term bracket, like (2x−3)2?

    Use (a−b)2=a2−2ab+b2 with a=2x and b=3 to get 4x2−12x+9. A bracket times a different bracket, like (2x−3)(x+5), matches no square pattern, so distribute term by term.

  2. Is one perfect square being subtracted from another, like 25x2−4?

    That is a difference of squares, (5x−2)(5x+2). A sum of squares, such as 25x2+4, has no factorisation with real numbers, so stop there rather than forcing one.

  3. Is the middle term of a trinomial exactly twice the product of the square roots of the end terms?

    In x2+10x+25, 2⋅x⋅5=10x, so it is (x+5)2. In x2+10x+21 the last term is not a square, so factor it as an ordinary trinomial: (x+3)(x+7).

  4. Are you asked to find the values that make a statement true?

    Then it is a conditional equation, such as x2−9=0 with answers ±3. An identity like x2−9=(x−3)(x+3) needs no solving; it is a tool you use along the way.

Algebraic Identities compared with Equation (conditional), Evaluating, and Equivalence transformation

Every row involves an equals sign or a rewrite, so they blur together. Ask whether the equality holds for every value, holds only for some values you must find, is being used with one given value, or justifies a single step.

Algebraic Identities

Meaning
Use this when you want to expand, factor, or simplify by matching a pattern that is true for all values.
Key test
Is this equality true for every value of the variable (an always-true pattern), rather than only for special values?
Formula
(a−b)2=a2−2ab+b2
Example
Factor x2−49.

Equation (conditional)

Meaning
An equality true only for particular values you must solve for.
Key test
Use when you need to find which values make it true.
Formula
x2=9⇒x=±3
Example
2x+1=7

Evaluating

Meaning
Substituting one number to get a result, not asserting an all-values pattern.
Key test
Use when the variable already has a value.
Example
(3+2)2=25

Equivalence transformation

Meaning
A single legal step justified by an identity or balance rule.
Key test
Use to name why one rewrite is valid mid-solution.
Formula
a=b  ⟺  a+c=b+c
Example
Adding 4 to both sides

Formula & Notation

(a−b)2=a2−2ab+b2
An identity is a statement f(x)≡g(x) for all x in a domain D.

How to read it: ≡ is sometimes used to denote an identity, as in (a+b)2≡a2+2ab+b2.

Worked Examples

Example 1 — Factor a difference of squares

Easy

Factor x2−49.
Show the steps and the answer
  1. Write each term as a square: x2=(x)2 and 49=72, with a minus sign between them.

    That is the exact shape a2−b2, with a=x and b=7.

  2. Apply a2−b2=(a−b)(a+b): x2−72=(x−7)(x+7).

    The identity holds for every a and b, so it holds for a=x and b=7.

  3. Expand to check: (x−7)(x+7)=x2+7x−7x−49=x2−49.

    The middle terms cancel, which is why a difference of squares has no x term.

Answer: (x−7)(x+7)

Takeaway: A square minus a square factors as (difference)(sum); the missing middle term is the sign to look for.

Example 2 — A conditional equation

Standard

Solve x2−49=0.
Show the steps and the answer
  1. Notice the =0: at x=0 the left side is −49, so this is not true for every x.

    It is a condition to solve, not an identity.

  2. Use the identity to factor: (x−7)(x+7)=0.

    Replacing one side of an identity with the other does not change which x make the equation true.

  3. Set each factor to zero: x−7=0 or x+7=0.

    A product is zero only when one of its factors is zero.

  4. Check: 72−49=0 and (−7)2−49=0.

    Both values satisfy the original equation.

Answer: x=7 or x=−7

Takeaway: Identities help you rewrite an equation, but solving it still means finding the particular values that make it true.

Example 3 — Find the mistake: the forgotten middle term

Application

Expand (2x+5)2. Lia writes: "(2x+5)2=4x2+25." Find the mistake and correct it.
Show the steps and the answer
  1. Test with x=1: (2+5)2=49, but 4+25=29.

    An identity must agree for every value, so one mismatch shows Lia's version is wrong.

  2. Match the pattern (a+b)2=a2+2ab+b2 with a=2x and b=5.

    Squaring a sum produces the middle term 2ab, the two rectangles in the square picture.

  3. Work out each term: a2=4x2, 2ab=2(2x)(5)=20x, b2=25.

    Squaring 2x squares the 2 as well, giving 4x2.

  4. Write the result and retest: 4x2+20x+25 at x=1 gives 4+20+25=49.

    Now both sides agree at the test value.

Answer: 4x2+20x+25

Takeaway: Squaring a sum always produces the middle term 2ab; the square of a sum is not the sum of the squares.

Where You'll See It

  • Squaring numbers in your head

    To find 1032, write it as (100+3)2=10000+2(100)(3)+9=10609. In the same way 982=(100−2)2=10000−400+4=9604, quicker than long multiplication.

  • Multiplying two numbers near a round number

    To multiply 47×53, write it as (50−3)(50+3)=502−32=2500−9=2491. The difference-of-squares identity turns a two-digit multiplication into one subtraction, and it works whenever two numbers sit equally far either side of an easy number.

  • The area of a picture frame

    A square photo of side a sits in a square frame of side b, so the frame's area is b2−a2=(b−a)(b+a). For a 30 cm frame around a 24 cm photo that is 6×54=324 cm², the same as 900−576.

Common Mistakes

  1. The slip: Dropping the middle term: writing (a+b)2=a2+b2

    Instead: the perfect-square identity has 2ab: (a+b)2=a2+2ab+b2

  2. The slip: Trying to 'solve' an identity for a unique value

    Instead: every value satisfies it, so there is nothing to solve

  3. The slip: Mismatching the sign pattern

    Instead: a2−b2=(a−b)(a+b), but a2+b2 does not factor over the reals


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Expand (x−5)2 using the identity (a−b)2=a2−2ab+b2.

    Hint: Here a=x and b=5.

  2. Use (a+b)(a−b)=a2−b2 to compute 52×48 mentally.

    Hint: Both numbers are the same distance from 50.

  3. Use (a+b)2=a2+2ab+b2 to compute 312 mentally.

    Hint: Write 31 as 30+1.

  4. Show that (x+1)2−(x−1)2=4x is an identity by expanding, then test it at x=3.

    Hint: Expand both squares and subtract carefully.

  5. Which is an identity and which is a conditional equation: (A) 3(x−2)=3x−6, (B) 3(x−2)=2x+1? Solve the one with a single answer.

    Hint: Is each one true for every x, or only for some?

  6. A student writes (2x+3)2=4x2+9. Test with x=1 and correct it.

    Hint: Where is the 2ab term?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

How do I write a proof that something is an identity?

Start from one side and rewrite it, using only moves that keep things equal, until it becomes the other side. To prove (a+b)2−(a−b)2=4ab(a+b)^2-(a-b)^2=4ab, expand both squares to get a2+2ab+b2−(a2−2ab+b2)a^2+2ab+b^2-(a^2-2ab+b^2), and everything cancels except 4ab4ab. Do not start by writing the claim and changing both sides at once, since that assumes what you are trying to show.

What is the identity for (a+b)3?

(a+b)3=a3+3a2b+3ab2+b3(a+b)^3=a^3+3a^2b+3ab^2+b^3. The coefficients 1, 3, 3, 1 come from Pascal's triangle, and the next power uses 1, 4, 6, 4, 1. A common error is writing (a+b)3=a3+b3(a+b)^3=a^3+b^3, which fails at a=b=1a=b=1: the left side is 8 and the right is 2. The correct factoring of a3+b3a^3+b^3 is (a+b)(a2−ab+b2)(a+b)(a^2-ab+b^2).

Is a2+b2 equal to a+b?

No, and this is the square-root version of the missing-middle-term mistake. With a=3a=3 and b=4b=4, 9+16=5\sqrt{9+16}=5, but a+b=7a+b=7. A square root does not split over a sum, though it does split over a product: ab=ab\sqrt{ab}=\sqrt a\sqrt b for nonnegative aa and bb. The same caution applies to 1a+b\frac{1}{a+b}, which is not 1a+1b\frac1a+\frac1b.

Why does 43×37 come out so easily with an identity?

Because 43×37=(40+3)(40−3)43\times37=(40+3)(40-3), a difference of squares: 402−32=1600−9=159140^2-3^2=1600-9=1591. Any two numbers equally far from a round number work this way. The same identity explains a pattern: of two numbers with a fixed sum, the product is largest when they are equal, since (m+d)(m−d)=m2−d2(m+d)(m-d)=m^2-d^2 shrinks as the gap dd grows.

Learning Path

Algebraic Identities

You are here

Next →

Nothing after this yet
You need Variable as Generalization (letters standing for any number), Identity vs Equation, and Algebraic Pattern first. This concept adds the standard always-true patterns and how to use them in both directions. They return in factoring quadratics, completing the square, simplifying rational expressions, and in trigonometry, where sin⁡2θ+cos⁡2θ=1 is an identity used the same way.

See Also