Variables and Expressions

Equivalent Expressions and How to Test Them

What it means for two expressions to be equivalent, how testing values can disprove it, and how algebra proves it.

Key takeaways

  • Equivalent expressions agree for every allowed input, not just for one or two.
  • A single input where the values differ is enough to prove two expressions are not equivalent.
  • Matching values at a few inputs is evidence but not, in general, proof.
  • Algebraic proof uses properties such as distribution, regrouping and combining like terms.
  • When denominators or roots are involved, check which inputs each expression allows.

Two expressions are equivalent when they have the same value for every allowed value of their variables. For instance, 3(x + 4) and 3x + 12 are equivalent, while 3x + 4 is not equivalent to either one.

You can test a claim of equivalence in two ways. Substituting numbers can show quickly that two expressions are different. Rewriting one into the other with valid properties, or both into a common form, proves that they are the same.

What "the same for every input" means

Different-looking expressions can describe the same quantity. Consider the border of a square garden with side n tiles, where the border is one tile wide and surrounds the garden.

One person counts four sides of n tiles plus four corners: 4n + 4. Another counts the big square minus the garden: (n + 2)² - n². A third counts four strips of n + 1: 4(n + 1).

(n + 2)² - n²  =  n² + 4n + 4 - n²  =  4n + 4
4(n + 1)       =  4n + 4

All three agree for every n. With n = 5, each gives 24. The forms differ in what they emphasize, an idea related to writing rules for tile patterns.

Disproving with one number

To show that two expressions are not equivalent, find one allowed input where they differ. This is called a counterexample.

Is (x + 3)² equivalent to x² + 9? Try x = 1: the first is 16 and the second is 10. They differ, so the answer is no, and no further testing is needed. The missing piece is 6x, as explained in why (a + b)² is not a² + b².

Is 2(5y) equivalent to 10y? At y = 3 both give 30. That does not settle it, but algebra does: regrouping multiplication gives (2 · 5)y = 10y.

Why agreement is not proof

Some wrong expressions agree with the right one at particular inputs.

Claim Agrees at Fails at
x² equals 2x x = 0 and x = 2 x = 3: 9 and 6
x³ equals x x = -1, 0 and 1 x = 2: 8 and 2
√(x²) equals x all x ≥ 0 x = -4: 4 and -4
x + x equals x·x x = 0 and x = 2 x = 5: 10 and 25

The third row is a warning about testing only positive numbers. The correct statement is √(x²) = |x|.

So choose test values with care. Include a negative number, a fraction and a number larger than 2. Avoid relying on 0, 1 or 2, where many different operations happen to coincide. With several variables, give them unequal values.

What a test tells you
Values differ once Proven: not equivalent Values match a few times Encouraging, not proof Valid rewriting links them Proven: equivalent on shared inputs Allowed inputs differ State the restriction Values differ once Proven: not equivalent Values match a few times Encouraging, not proof Valid rewriting links them Proven: equivalent on shared inputs Allowed inputs differ State the restriction

Proving equivalence by rewriting

A proof shows a chain of steps, each justified by a property that holds for all numbers.

Show that 5(x - 2) - 2(x - 8) is equivalent to 3x + 6.

5(x - 2) - 2(x - 8)
= 5x - 10 - 2x + 16       (distributive property)
= 5x - 2x - 10 + 16       (reorder terms)
= 3x + 6                  (combine like terms)

The main tools are the distributive property, the commutative and associative properties of addition and multiplication, and the identity and inverse properties.

A second strategy is to simplify both expressions separately and arrive at the same form. To compare (x + 1)(x + 5) with (x + 3)² - 4, expand each. The first is x² + 6x + 5. The second is x² + 6x + 9 - 4, also x² + 6x + 5. They are equivalent.

Be careful not to prove a claim by assuming it. Work on each side independently instead of writing the claimed equality and performing operations on both sides until something true appears, since some operations, such as multiplying by zero, can turn false statements into true ones.

How many tests would be enough?

For polynomials there is a remarkable fact. Two polynomials in one variable, each of degree at most n, that agree at n + 1 different inputs are identical.

So two expressions that you know are linear, of the form ax + b, are equivalent if they agree at two different values of x. Two quadratics are equivalent if they agree at three.

The condition on degree is essential. You must know it from the form of the expressions, for example by seeing that no product raises the power higher. The fact does not extend to arbitrary expressions with absolute values, roots or fractions.

Example: is (x + 2)² - (x - 2)² equivalent to 8x? Both sides have degree at most 2. At x = 0: 4 - 4 = 0, and 8·0 = 0. At x = 1: 9 - 1 = 8. At x = 3: 25 - 1 = 24. Three agreements settle it. Expanding confirms it: 4x - (-4x) = 8x.

Finding the first wrong step

When two forms that should match turn out to differ, you can use testing to locate the error. Pick one input and evaluate every line of the work. The first line whose value changes is where the mistake was made.

Here is a flawed simplification of 6x - 2(x - 5), tested at x = 3. The original has the value 18 - 2(-2) = 22.

6x - 2(x - 5)        value at x = 3:  22
6x - 2x - 10         value at x = 3:   2     (changed here)
4x - 10              value at x = 3:   2

The value jumps between the first and second lines, so the distribution is at fault: -2 times -5 is +10. The last step, combining 6x and -2x, was fine. The corrected result is 4x + 10, which gives 22.

This technique works on long calculations too, and it saves you from rereading every symbol. It will not find an error that happens to leave the value unchanged at your chosen input, so if all lines agree but you still have doubts, try a second number.

Equivalence and equations

Equivalence of expressions is easy to confuse with solving an equation. The statement 2x + 6 = 2(x + 3) is true for every x, so the two sides are equivalent expressions. The statement 2x + 6 = 14 is true only when x = 4, so 2x + 6 and 14 are not equivalent, even though they are equal at that one input.

If you try to solve an equation whose sides are equivalent, the variable disappears and a true statement remains.

2x + 6 = 2(x + 3)
2x + 6 = 2x + 6
6 = 6              (subtract 2x from both sides)

If the variable disappears and a false statement remains, such as 6 = 5, the two sides differ at every input. The distinction is taken up in identities versus equations.

The phrase "equivalent equations" means something related but different: equations that have exactly the same solutions, as x + 1 = 5 and 3x = 12 do.

Domains matter

Two expressions can agree wherever both are defined and still have different sets of allowed inputs.

The expression (x² - x)/x equals x - 1 for every x ≠ 0. At x = 0 the first is undefined and the second equals -1. It is accurate to say they are equivalent for x ≠ 0.

Roots raise the same issue. (√x)² equals x only for x ≥ 0 when working with real numbers, because √x is not a real number for negative x. Logarithms behave similarly: ln(x²) equals 2 ln x only for x > 0, while ln(x²) is also defined for negative x, where it equals 2 ln |x|.

Using graphs and tables

A graphing tool offers a visual test. Enter both expressions as functions of x. If the graphs separate anywhere, the expressions are not equivalent.

If the graphs appear to coincide, treat that as strong evidence only. The window shows a limited range, small differences may be thinner than a pixel, and a single missing point, such as the hole at x = 0 above, may not be drawn at all.

A table of values does the same job numerically. Look down two columns for any row where they disagree. Rounding on a calculator can make equal values look slightly different in the last digit, or unequal ones look the same.

Choosing the most useful form

Equivalent forms are not equally handy for every purpose. The quadratic x² - 6x + 8 can also be written (x - 2)(x - 4) or (x - 3)² - 1.

  • The factored form shows that the value is 0 at x = 2 and x = 4.
  • The completed-square form shows that the smallest value is -1, reached at x = 3.
  • The expanded form shows at once that the value at x = 0 is 8.

Learning to see these options is the subject of seeing structure in expressions.

A routine for deciding

When you are handed two expressions and asked whether they are equivalent, this order saves effort.

  1. Note any inputs that either expression does not allow.
  2. Test one awkward value, such as -3. If the results differ, you are done.
  3. If they match, rewrite one or both expressions using valid properties.
  4. State your conclusion with its evidence and any restriction on the inputs.

Practice with answers

Decide whether each pair is equivalent.

  1. 4(a + 2) - a and 3a + 8
  2. (2y)² and 2y²
  3. (m + n)/2 and m/2 + n/2
  4. 1/(p + q) and 1/p + 1/q
  5. -(k - 7) and 7 - k

Answers. 1. Yes: 4a + 8 - a = 3a + 8. 2. No: (2y)² = 4y², and at y = 1 the values are 4 and 2. 3. Yes: dividing by 2 distributes over a sum. 4. No: at p = q = 1, the first is 1/2 and the second is 2. 5. Yes: both equal -k + 7.

When an answer is "no," give the counterexample. When it is "yes," give the rewriting. Each kind of claim needs its own kind of support.

Written for 4Algebra with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 35 articles in Variables and Expressions →

Latest news on this topic