Two expressions are equivalent when they have the same value for every value of their variables at which both have a value. This lesson defines equivalence precisely, proves equivalences with the laws of arithmetic, disproves them with a single counterexample, shows why checking values can never prove one, and treats expressions whose domains differ, such as xx and 1.
Equal for every value
Lesson 1.3 compared x² and 3x − 2: they have the same value at x = 1 and at x = 2, and different values everywhere else (Evaluating expressions). Other pairs never differ. Whatever rational number x is, x + 5 and 5 + x name the same number, by the commutative law of addition. Such pairs are the subject of this lesson.
Every variable has a domain, the set of numbers it may stand for (lesson 1.1); in this unit it is the rational numbers unless something else is said. An expression may still have no value at some numbers of the domain, because a step would divide by 0 (lesson 1.3). So two expressions are compared only where both have a value.
Let A and B be expressions. Their common domain is the set of values of the variables, taken from the domain of the variables, at which both A and B have a value. A and B are equivalent if they have the same value at every value of the variables in their common domain: they name the same number whichever values are substituted.[1]
When A and B are equivalent, the equation A = B is true for every value of the variables in the common domain. An equation that is true for every value of its variable is called an identity.[2] An identity is a claim about every number of a stated collection,[3] so the collection is part of it: “x + 5 = 5 + x for every rational number x”. When the common domain leaves numbers out, the identity says so, as in Section 4.
Most expressions of this unit divide only by nonzero numbers, never by an expression that contains a variable. Such an expression has a value at every rational number, since only a division by 0 can fail (the Theorem of lesson 1.3), so for two of them the common domain is the whole domain, and “equivalent” simply means “equal for every value”.
Equivalent expressions are different ways of writing the same quantity, and a different form can show something the first form hides.[4] If a ticket costs 6 dollars and a booking fee of 2 dollars is charged per ticket, t tickets cost 6t + 2t dollars; the equivalent form 8t (lesson 1.6) shows at once that each ticket really costs 8 dollars.
Write out what each statement claims, for x a rational number: (a) x + 5 and 5 + x are equivalent; (b) x² and 3x − 2 are equivalent.
- Neither expression has a variable in a denominator, so in both cases the common domain is all rational numbers.
- (a) claims: for every rational number x, x + 5 = 5 + x. This is the commutative law of addition for the two rational numbers x and 5 (Rational Numbers 1.4), so it is true.
- (b) claims: for every rational number x, x² = 3x − 2. Lesson 1.3 proved that this holds only for x = 1 and x = 2. At x = 0 the values are 0 and −2.
Answer: (a) is true and (b) is false. Equivalence is a claim about every value, not about some.
Proving equivalence with the laws
A table of values cannot prove that two expressions are equivalent: it covers only the values in it, and the rational numbers cannot all be checked one by one. The proof comes from the laws of arithmetic. Applying the properties of operations to an expression produces equivalent expressions,[5] because each law holds for all rational numbers (Rational Numbers 1.4):
- the commutative laws: changing the order of two numbers in a sum or a product gives the same result,[6] a + b = b + a and ab = ba (Addition 1.5, Multiplication 1.5);
- the associative laws: changing how three numbers are grouped gives the same result,[7] (a + b) + c = a + (b + c) and (ab)c = a(bc) (Addition 1.6, Multiplication 1.6);
- the distributive law, a(b + c) = ab + ac, which can also be read from right to left, ab + ac = a(b + c)[8] (Multiplication 1.7);
- the identity and inverse laws, a + 0 = a, a · 1 = a, a + (−a) = 0, and, for a ≠ 0, a · 1a = 1;
- the rules for subtraction and opposites: a − b = a + (−b) (Integers 2.3), (−1)a = −a, and (−a)(−b) = ab (Integers 3.2).
At any value of the variables, every part of an expression is a rational number, so a law may be applied to the parts. The next theorem says exactly why this gives an equivalent expression.
Let P be a part of an expression A, and let Q be an expression that has the same value as P at every value of the variables at which P has one. Let B be A with P replaced by Q. Then at every value of the variables at which A has a value, B has the same value.
Fix values of the variables at which A has a value. The value of A is computed from the values of its parts, one operation at a time, in an order that the order of operations fixes (the Theorem of lesson 1.3). At some stage the part P has been reduced to one number, its value. The computation of B runs through the same steps, except that at this stage the number comes from Q; by assumption it is the same number. All later steps act on the same numbers, so they give the same results, and the two computations end with the same value.
A law turns a part into an expression with the same value for all numbers, so one use of a law is one replacement. A proof of equivalence is therefore a chain A = A₁ = A₂ = … = B, each step replacing one part by the law it names. That the ends of the chain are equal rests on the first of Euclid’s common notions: things equal to the same thing are equal to one another.[9]
Let A, B and C be expressions that have a value at every value of the variables. If A is equivalent to B and B is equivalent to C, then A is equivalent to C. Also, A is equivalent to itself, and if A is equivalent to B, then B is equivalent to A.
Fix values of the variables, and let a, b and c be the values of A, B and C there. By assumption a = b and b = c, so a = c. As the values were arbitrary, A and C have the same value everywhere. The other two statements hold because a = a, and a = b means b = a.
Prove that (6 + y) + 9 and y + 15 are equivalent.
- (6 + y) + 9 = (y + 6) + 9: the commutative law of addition, applied to the part 6 + y.
- (y + 6) + 9 = y + (6 + 9): the associative law of addition.
- y + (6 + 9) = y + 15: arithmetic on the numbers, 6 + 9 = 15.
- Check at y = −4: (6 + (−4)) + 9 = 2 + 9 = 11, and −4 + 15 = 11.
Answer: each step holds for every rational y, so the two expressions are equivalent. The check at one value confirms the work; the proof is the chain of laws.
Prove that a − (b − c) and a − b + c are equivalent.
- Subtracting is adding the opposite: a − (b − c) = a + (−(b − c)).
- The part −(b − c). Multiplying by −1 gives the opposite,[10] and b − c = b + (−c), so −(b − c) = (−1)(b + (−c)). By the distributive law this is (−1)b + (−1)(−c), and since (−1)b = −b and (−1)(−c) = c, it equals −b + c.
- So a − (b − c) = a + (−b + c) = (a + (−b)) + c, by the Theorem and the associative law.
- Adding the opposite of b is subtracting b: (a + (−b)) + c = a − b + c.
- Check at a = 10, b = 4, c = 3: 10 − (4 − 3) = 10 − 1 = 9, and 10 − 4 + 3 = 6 + 3 = 9.
Answer: equivalent. Subtracting a difference adds back what the difference took away: the sign in front of c changes.
Prove that x(x + 7) − 7x and x² are equivalent.
- Distributive law on the part x(x + 7): it equals x · x + x · 7, which is x² + 7x, since x · x = x² by the definition of a square and x · 7 = 7x by the commutative law.
- So x(x + 7) − 7x = x² + 7x − 7x = x² + (7x + (−7x)): subtracting is adding the opposite, and the associative law.
- 7x + (−7x) = 0: a number plus its opposite is 0, here for the number 7x.
- x² + 0 = x²: the identity law.
- Check at x = 3: 3(3 + 7) − 7 · 3 = 30 − 21 = 9, and 3² = 9.
Answer: equivalent, for every rational x.
Showing that expressions are not equivalent
Equivalence claims something about every value of the common domain. So one value at which both expressions have a value and the values differ shows that they are not equivalent. Such a value is a counterexample, and a single one is all that is needed.[11]
Are 4(x + 3) and 4x + 3 equivalent?
- Both have a value at every rational x. Try x = 0: 4(0 + 3) = 12, but 4(0) + 3 = 3.
- The values differ, so x = 0 is a counterexample.
Answer: not equivalent. In 4(x + 3) the 4 multiplies the whole sum; the expanded form multiplies both terms, as the later lesson “Expanding with the distributive property” shows.
Someone tests (a + b)² and a² + b² at a = 0, b = 5, gets 25 both times, and concludes that they are equivalent. Find the error.
- The test is correct: (0 + 5)² = 25 and 0² + 5² = 25. But one value proves nothing about the others.
- Try a = 1, b = 1: (1 + 1)² = 4, while 1² + 1² = 2. A counterexample.
- In fact, by the distributive law with both factors split (Multiplication 1.7), (a + b)² = (a + b)(a + b) = a² + ab + ba + b². Here ba = ab, and ab + ab = (1 + 1)ab = 2ab by the distributive law, so this is a² + b² plus 2ab. So the two values agree exactly when 2ab = 0, that is, when a = 0 or b = 0, by the zero-product property (Rational Numbers 1.4). The test happened to use a = 0.
Answer: not equivalent. A check that lands on the special values where two expressions agree hides the difference.
Agreement at some values never proves equivalence on its own, however many values are checked. The next theorem builds, for any finite list of numbers, two expressions that agree at exactly those numbers.
Let c₁, c₂, …, cₙ be rational numbers. The expressions x and x + (x − c₁)(x − c₂)⋯(x − cₙ) have the same value at each of c₁, …, cₙ, and different values at every other rational number. In particular, they are not equivalent.
The two values differ by the product (x − c₁)⋯(x − cₙ). At x = cₖ one factor is 0, so the product is 0 and the values agree. At any other rational x no factor is 0, so by the zero-product property (Rational Numbers 1.4), applied one factor at a time, the product is not 0, and the values differ.
Compare x and x + x(x − 1)(x − 2)(x − 3) at x = −1, 0, 1, 2, 3, 4 and 5.
| x | −1 | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|---|
| x | −1 | 0 | 1 | 2 | 3 | 4 | 5 |
| x + x(x − 1)(x − 2)(x − 3) | 23 | 0 | 1 | 2 | 3 | 28 | 125 |
- At x = 0, 1, 2 and 3 one factor of the product is 0, so the second expression equals x: four checks passed.
- At x = 4 the product is 4 · 3 · 2 · 1 = 24, so the second value is 4 + 24 = 28.
- At x = −1 the product is (−1)(−2)(−3)(−4) = 24, and the value is −1 + 24 = 23; at x = 5 it is 5 + 120 = 125.
Answer: they agree at exactly 0, 1, 2 and 3, as the Theorem says. A table that stopped at 3 would have suggested an identity.
Equivalent or not?
- Round
- 1
- Score
- 0
- Streak
- 0
Are these expressions equivalent: equal for every value of the variables at which both have a value?
Try values (optional):
First: 4|Second: 4equal
When one expression has no value
Division by zero is undefined.[12] So xx has no value at x = 0, while 1 has the value 1 there. At every other rational x, dividing by x is multiplying by its reciprocal, and a number times its reciprocal is 1 (Rational Numbers 1.4): xx = x · 1x = 1. So the common domain of xx and 1 is the rational numbers other than 0, and there they are equivalent. The excluded value is stated with the identity, to avoid dividing by 0:[13]
xx = 1 for x ≠ 0.
Replacing xx by 1 inside a larger expression gives an expression with a value at more numbers. The Theorem on replacing a part still holds, since it speaks only of values at which the first expression has one, but the excluded value must be carried along: the new expression agrees with the old one only for x ≠ 0. Dividing by a nonzero number never removes a value: x5 = 15x for every rational x.
Show that x²x and x are equivalent on their common domain, and find that domain.
- x²x has no value at x = 0; x has a value everywhere. The common domain is x ≠ 0.
- For x ≠ 0: x²x = (x · x) · 1x = x · (x · 1x) =x · 1 = x, by the definition of a square, the associative law, the reciprocal and the identity law.
- Check at x = −3: (−3)² ÷ (−3) = 9 ÷ (−3) = −3.
Answer: x²x = x for x ≠ 0. At 0 the left side has no value, so the condition cannot be dropped.
Let the domain of x be the set of the two numbers 0 and 1. Are x² and x equivalent? What if the domain is all rational numbers?
- Domain 0 and 1: 0² = 0 and 1² = 1. The two expressions agree at every number of the domain, so they are equivalent.
- Domain the rational numbers: at x = 2, 2² = 4 but the other value is 2. Not equivalent.
Answer: equivalent on the first domain, not on the second. As with every statement about all numbers of a set, changing the domain can change the answer (lesson 1.1).[14]
“xx = 1” without a condition is false as a statement about every rational x: at x = 0 the left side has no value (Division 1.3). An identity that involves division is complete only with its excluded values.
The definition compares values only where both expressions have one, so it is meant for expressions whose common domain contains numbers. An expression such as 1x − x has a value at no number at all; read literally, the definition would call it equivalent to every expression, which says nothing. Such an expression is not compared with others: an identity is a claim about a collection of numbers at which both sides have values.[3]
The next lessons replace expressions by equivalent, shorter ones: lesson 1.5, “Terms, coefficients and constants”, names the parts of a sum, and lesson 1.6, “Combining like terms”, proves that 6t + 2t = 8t. The unit Linear Equations uses the same idea for equations.
Exercises
Prove that (3 + m) + 12 and m + 15 are equivalent, naming the law used at each step.
▸ Show solution
(3 + m) + 12 = (m + 3) + 12 (commutative law of addition) = m + (3 + 12) (associative law) = m + 15. Each law holds for every rational m, so the expressions are equivalent. Check at m = 2: 5 + 12 = 17 = 2 + 15.
Show that 5(y − 2) and 5y − 2 are not equivalent.
▸ Show solution
At y = 0: 5(0 − 2) = −10, but 5(0) − 2 = −2. One value at which they differ is enough: they are not equivalent.
(a) Prove that 2(3t) and 6t are equivalent. (b) Are 2(4 + t) and 8 + t equivalent? Check t = 0 first, then decide.
▸ Show solution
(a) 2(3t) = (2 × 3)t = 6t by the associative law of multiplication: equivalent.
(b) At t = 0 both are 8, but at t = 1, 2(4 + 1) = 10 while 8 + 1 = 9. Not equivalent; the value t = 0 was a misleading check. (In fact 2(4 + t) = 8 + 2t by the distributive law, which equals 8 + t only when t = 0, since 2t = t only for t = 0.)
Prove that p − (q + r) and p − q − r are equivalent.
▸ Show solution
p − (q + r) = p + (−(q + r)) (subtracting is adding the opposite). Next, −(q + r) = (−1)(q + r) = (−1)q + (−1)r = −q + (−r), by the distributive law. So the expression equals p + (−q) + (−r) by the associative law, which is p − q − r. Check at p = 9, q = 2, r = 5: 9 − 7 = 2 and 9 − 2 − 5 = 2.
Is “x − 2x − 2 = 1 for every rational x” true? Correct it if it is not.
▸ Show solution
The left side has no value where x − 2 = 0, that is, at x = 2; at every other x it is a nonzero number divided by itself, which is 1. So the statement is false as it stands (at x = 2 the left side has no value), and the correct identity is x − 2x − 2 = 1 for x ≠ 2.
Are x³ and x equivalent (a) when the domain of x is the three numbers −1, 0 and 1; (b) when it is all rational numbers?
▸ Show solution
(a) On the domain −1, 0, 1: (−1)³ = −1, 0³ = 0 and 1³ = 1, so x³ and x agree at every number of the domain: equivalent.
(b) On the rational numbers: at x = 2, 2³ = 8 but the other value is 2. Not equivalent.
Find two expressions in x that have the same value at x = 1, 2 and 5 and different values at every other rational number. Prove that yours work.
▸ Show solution
Take x and x + (x − 1)(x − 2)(x − 5). At x = 1, 2 or 5 a factor of the product is 0, so the values agree. At any other rational x no factor is 0, so by the zero-product property the product is not 0 and the values differ.
Check at x = 3: the product is 2 · 1 · (−2) = −4, so the values are 3 and −1.
Summary
- Two expressions are equivalent when they have the same value at every value of the variables in their common domain, the values at which both have a value. The equation between them is then an identity.
- Equivalence is proved with the laws of arithmetic: each law holds for all rational numbers, replacing a part by an equal part keeps the value, and a chain of such steps links the two expressions.
- One value at which both expressions have a value and the values differ proves that they are not equivalent.
- Agreement at finitely many values does not by itself prove equivalence: x and x + (x − c₁)⋯(x − cₙ) agree at exactly c₁, …, cₙ.
- When one expression has no value somewhere, the excluded values belong to the identity: xx = 1 for x ≠ 0. Equivalence also depends on the domain of the variables.
Sources
- 1.National Governors Association Center for Best Practices and Council of Chief State School Officers, “Common Core State Standards for Mathematics”, Common Core State Standards Initiative (2010).Section “Expressions and Equations, standard 6.EE.4 (p. 44)”. corestandards.org/wp-content/uploads/2023/09/Math_Standards1.pdf · open at the quoted passage.
“Identify when two expressions are equivalent (i.e., when the two expressions name the same number regardless of which value is substituted into them).”
Used for: two expressions are equivalent when they name the same number whichever values are substituted. - 2.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 2, “Solving Linear Equations and Inequalities”, section 2.4, “Use a General Strategy to Solve Linear Equations” (“Classify Equations”), p. 249 (the whole topic: pp. 248–249).
“An equation that is true for any value of the variable is called an identity.”
Used for: an equation that is true for every value of its variable is called an identity. - 3.H. Wu, Introduction to School Algebra (draft of July 24, 2010, Department of Mathematics, University of California, Berkeley, 2010).Chapter 1, “Symbolic Expressions”, section “Expressions and identities”, p. 13 (the whole topic: pp. 12–14).
“as a statement that two given number expressions are equal for every number in a given collection under discussion”
Used for: an identity is a claim that two expressions are equal for every number of a stated collection (p. 13). - 4.National Governors Association Center for Best Practices and Council of Chief State School Officers, “Common Core State Standards for Mathematics”, Common Core State Standards Initiative (2010).Section “Expressions and Equations, standard 7.EE.2 (p. 49)”. corestandards.org/wp-content/uploads/2023/09/Math_Standards1.pdf · open at the quoted passage.
“Understand that rewriting an expression in different forms in a problem context can shed light on the problem and how the quantities in it are related.”
Used for: a different but equivalent form of an expression can show something about the quantity that the first form hides. - 5.National Governors Association Center for Best Practices and Council of Chief State School Officers, “Common Core State Standards for Mathematics”, Common Core State Standards Initiative (2010).Section “Expressions and Equations, standard 6.EE.3 (p. 44)”. corestandards.org/wp-content/uploads/2023/09/Math_Standards1.pdf · open at the quoted passage.
“Apply the properties of operations to generate equivalent expressions.”
Used for: applying the properties of operations (the laws of arithmetic) to an expression produces equivalent expressions. - 6.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 1, “Foundations”, section 1.9, “Properties of Real Numbers” (“Use the Commutative and Associative Properties”), p. 146 (the whole topic: pp. 146–148).
“When adding or multiplying, changing the order gives the same result.”
Used for: the commutative laws: changing the order of two numbers in a sum or a product gives the same result. - 7.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 1, “Foundations”, section 1.9, “Properties of Real Numbers” (“Use the Commutative and Associative Properties”), p. 148 (the whole topic: pp. 146–148).
“The associative property has to do with grouping. If we change how the numbers are grouped, the result will be the same.”
Used for: the associative laws: changing how three numbers are grouped gives the same result. - 8.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 7, “Factoring”, section 7.1, “Greatest Common Factor and Factor by Grouping” (“Factor the Greatest Common Factor from a Polynomial”), p. 811 (the whole topic: pp. 810–811).
“We state the Distributive Property here just as you saw it in earlier chapters and “in reverse.””
Used for: the distributive law a(b + c) = ab + ac can also be read from right to left, ab + ac = a(b + c) (the two forms are stated on the same page). - 9.Euclid, trans. T. L. Heath, ed. D. E. Joyce, “Euclid’s Elements, Book I: Common Notions”, Clark University.Section “Common Notions”. mathcs.clarku.edu/~djoyce/java/elements/bookI/cn.html · open at the quoted passage.
“Things which equal the same thing also equal one another.”
Used for: things equal to the same thing are equal to one another: Euclid’s first common notion, on which a chain of equalities rests. - 10.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 1, “Foundations”, section 1.9, “Properties of Real Numbers” (“Simplify Expressions Using the Distributive Property”), p. 158 (the whole topic: pp. 155–158).
“Multiplying by −1 results in the opposite.”
Used for: multiplying by −1 gives the opposite, so −(b − c) = (−1)(b − c). - 11.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.4, “Predicates and Quantifiers” (1.4.3, “Quantifiers”: “The Universal Quantifier”), p. 44 (the whole topic: pp. 43–45).
“Note that a single counterexample is all we need to establish that ∀xP(x) is false.”
Used for: one value at which two expressions differ (a counterexample) is enough to show that they are not equivalent. - 12.Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Elementary Algebra (2nd ed., OpenStax, Rice University, 2020).Chapter 1, “Foundations”, section 1.9, “Properties of Real Numbers” (“Use the Properties of Zero”), p. 152 (the whole topic: pp. 151–153).
“Division by zero is undefined.”
Used for: division by zero is undefined, so x/x has no value at x = 0. - 13.H. Wu, Introduction to School Algebra (draft of July 24, 2010, Department of Mathematics, University of California, Berkeley, 2010).Chapter 1, “Symbolic Expressions”, section “Expressions and identities”, p. 12 (the whole topic: pp. 12–13).
“in the second expression to avoid dividing by 0”
Used for: values that would divide by 0 are excluded explicitly when expressions are compared (p. 12). - 14.Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).Chapter 1, “The Foundations: Logic and Proofs”, section 1.4, “Predicates and Quantifiers” (1.4.3, “Quantifiers”: “The Universal Quantifier”), p. 44 (the whole topic: pp. 43–45).
“The meaning of the universal quantification of P(x) changes when we change the domain.”
Used for: whether a statement about all numbers of a domain (here, that two expressions are equal) is true can change when the domain changes.