Section 2.2 Equivalent Algebraic Expressions
Section Objectives
Understand the definition of equivalence of algebraic expressions both in terms of numerical results and as different processes yielding the same results.
Prove that expressions are inequivalent through substitution.
Introduce the commutative, associative, and distributive laws of addition and multiplication (along with their geometric interpretations) as a means of creating equivalent expressions by reordering, regrouping, and factoring.
Two algebraic expressions are equivalent if whenever particular values are substituted into both expressions, the end result is the same for both expressions.
Example 2.2.1.
Let's try \(x=-2\) first. Substituting into the first expression we have
In the second expression we get
Since we got the same result when \(x=-2\text{,}\) the expressions might be equivalent.
Now let's try \(x=4\text{.}\) Substituting into the first expression we have
In the second expression we get
Again, the same result is obtained. You should try some of your own values of \(x\) now; if you evaluate correctly, these two expressions should always give the same result.
Remark 2.2.2.
Note that testing values isn't really enough to prove two expressions are equivalent. It just provides evidence. We'll prove these expressions are equivalent in 2.2.14.Thinking of algebraic expressions procedurally, we have the following characterization of equivalent algebraic expressions:
Key Concept 2.2.3. Equivalent Expressions as Different Processes with the Same Result.
Equivalent algebraic expressions are symbolic representations of different processes performed on the variables that always give the same end result.
People who are good at algebra often speak of manipulating/simplifying algebraic expressions and putting expressions into different forms. What they are talking about is replacing an expression with an equivalent expression. The reason for manipulating expressions is that sometimes one version of an expression makes it easier to see a solution to a problem. For instance, the expression used to find the temperature in \(^{\circ}\)C given the temperature in \(^{\circ}\)F is
where \(F\) is the temperature in \(^{\circ}\)F and \(C\) is the temperature in \(^{\circ}\)C. Suppose we want to know what temperature in \(^{\circ}\)F corresponds to \(0^{\circ}\)C. Even if you already know the answer is \(32^{\circ}\)F, the given expression does not make it obvious. However, the given expression is equivalent to the following:
Now the solution is more clear; if we substitute \(F=32\) into the expression for \(C\) in terms of \(F\text{,}\) we get \(\frac{5}{9}(32-32) = 0\text{.}\)
Notice that these two expressions represent different procedures if we write them down sequentially. The first version (\(C = \frac{5}{9}F - \frac{160}{9}\)) obtains \(C\) from \(F\) by the following steps:
- S1:
- Multiply \(F\) by \(\frac{5}{9}\text{.}\)
- S2:
- Subtract \(\frac{160}{9}\) from S1.
The second version (\(C = \frac{5}{9}(F - 32)\)) obtains \(C\) from \(F\) through a different sequence of steps:
- S1\('\text{:}\)
- Subtract \(32\) from \(F\text{.}\)
- S2\('\text{:}\)
- Multiply S1\('\) by \(\frac{5}{9}\text{.}\)
The procedures are different, so are these two expressions equivalent? The answer here comes from the arithmetic rule known as the distributive law (to be discussed more later 2.2.19). We can take the second expression and distribute the \(\frac{5}{9}\) as follows:
Another example of equivalent expressions is give by Example 2.1.4. In this case, we used the fact that the expression \(\frac{2}{x+1}\) is equivalent to \(2 \cdot \frac{1}{x+1}\text{.}\)
Fundamentally, since algebraic expressions are built using the operations of arithmetic, equivalence of algebraic expressions is determined by using rules of arithmetic. We will discuss the most commonly used ways of manipulating expressions into equivalent ones in the remainder of this section. However, we will first discuss how to tell if two expressions are inequivalent.
Subsection 2.2.1 Inequivalent Expressions
Two expressions are not equivalent if there are some values of the variables in the expression that yield different numbers when you substitute. So, if you plug the same number into two expressions and get different results, then the two expressions are inequivalent (assuming you did the arithmetic correctly). With practice, you’ll get good at being able to detect inequivalent expressions without even needing to substitute anything. For now, we’ll look at some important examples that sometimes trip people up.
Example 2.2.4.
The two expressions \((x+y)^2\) and \(x^2 + y^2\) are not equivalent. One may detect this by noting the order in which operations are performed on \(x\) and \(y\text{.}\) In one expression you add the two variables, then square. In the other, you square each variable, then add. Based one our experience with order of operations (order matters), we think these may not be equivalent. It turns out that if you pick any two numbers for \(x\) and \(y\text{,}\) as long as neither is zero, these two expressions will evaluate to different numbers. For instance, if we substitute \(x=1\) and \(y=2\text{,}\) then the first expression gives
whereas the second expression gives
It is also possible to see that these two expressions are inequivalent by giving the geometric representations. We begin by thinking of \(x\) and \(y\) as lengths. Then \((x+y)^2\) is the area of a square whose side length is \(x+y\text{,}\) while \(x^2+y^2\) is the sum of areas of squares that fit inside the square of side length \(x+y\) as in the following diagram:
In this figure we see that the total shaded area is \(x^2+y^2\) while the area of the entire square is \((x+y)^2\text{.}\) If you note that the unshaded portions of the square each have area \(xy\text{,}\) we can see that \((x+y)^2\) is equivalent to \(x^2+2xy+y^2\) (That can be seen symbollically using the distributive law 2.2.19, which we will see soon.).
Question 2.2.6.
Explain why \(\sqrt{x^2 + y^2}\) is not equivalent to \(x+y\text{.}\) Do this both by plugging in numbers and by either referring to the last example, or using the Pythagorean Theorem to explain the inequivalence geometrically.
Question 2.2.7.
Use volumes to give a geometric explanation of why \((x+y)^3\) is equivalent to \(x^3+3x^2y+3xy^2+y^3\text{,}\) but is not equivalent to \(x^3+y^3\text{.}\) (This question may be a test of your artistic skills.)
Example 2.2.8.
\(\frac{1}{x}+\frac{1}{3}\) is not equivalent to \(\frac{2}{x+3}\text{.}\) A simple, but perhaps not helpful, reason is because that's not how you add fractions. Let's make sure we really see that this is not how you add fractions. First substitute \(x=1\text{.}\) Then the first expression evaluates to
while the second evaluates to
Even if you forget how to add fractions you can tell these are not equal. The first one is larger than one and the second is smaller than one.
Remark 2.2.9.
Again, it is important to note that for two expressions to be equivalent, they must evaluate to the same number for all values of the variables, not just some. For instance, in the example with squares, if \(x=0\) the two expressions do evaluate to the same thing. However, this does not make the expressions equivalent.Subsection 2.2.2 Reordering and Regrouping
Sometimes the order in which operations are performed in an algebraic expression doesn't affect the result. Specifically, if the expression only involves addition, order of operations doesn't tell you which one to do first because it doesn't matter. Likewise for multiplication. Specifically, we have the following rules for addition and multiplication:
Fundamental Properties 2.2.10. Commutative and Associative Laws for Addition and Multiplication.
For any numbers \(a\text{,}\) \(b\text{,}\) and \(c\)
\(a+b = b+a\) (addition is commutative)
\(ab=ba\) (multiplication is commutative)
\(a+(b+c) = (a+b)+c\) (addition is associative)
\(a(bc)=(ab)c\) (multiplication is associative)
Example 2.2.11.
Question 2.2.13.
Now we would like geometric explanations of the associative laws.
Explain the associative law for addition using lengths on the number line.
Explain the associative law for multiplication using the fact that the volume of a rectangular prism is the area of its base multiplied by its height (similar to our explanation of the commutative law for multiplication).
These rules are most useful in simplifying complex expressions that involve many terms being added together or multiplied.
Example 2.2.14.
Example 2.2.15.
In the last step of the previous example we performed an important type of regrouping known as combining like terms. This is when all the terms with the same algebraic type (same exponents on a variable for example) are combined into a single term by adding together the constants by which they are multiplied. It is important to note that terms can only be combined when the only difference between them is a constant multiplier. For instance,
The remaining terms cannot be combined further because one has an exponent of \(2\) while the other has an exponent of \(\frac{1}{2}\text{.}\)
Example 2.2.16.
Question 2.2.17.
Give a collection of objects (geometric shapes, not necessarily real-world objects) that would have a volume represented by \(4x^3 + 6x\text{?}\)
Question 2.2.18.
Decide if the following attempts to combine like terms are correct. If a mistake was made, say what it was and correct it.
\(4xy+7y^2x + 3x^2y +2yx = 6xy + 10x^3y^3\)
\((2x^2+1) + (3x+7) + (x^2-8x) = 3x^2-5x+8\)
Subsection 2.2.3 Distributing, Expanding, and Factoring
One of the most important rules in constructing equivalent algebraic expressions is the Distributive Law.
Fundamental Properties 2.2.19. The Distributive Law.
For any numbers \(a\text{,}\) \(b\text{,}\) and \(c\)
This fact asserts that you can
add two lengths, \(b\) and \(c\text{,}\) on the line together, then expand/compress by a factor of \(a\text{,}\) or
expand/contract each of \(b\) and \(c\) by a factor of \(a\text{,}\) then add the results together.
The end result is the same in either case because the stretch/compression caused by multiplication by \(a\) is uniformly applied to all lengths. We can also see this in terms of areas like we did with other properties of the real numbers that involve multiplication (like 2.2.4 again). In the equation
We can think of \(b\) and \(c\) as horizontal lengths and \(a\) as a vertical length as in the diagram below:
When we glue these two recangles together, we have one rectangle whose area is \(a(b+c).\) Since gluing didn't change the total area, we have
Many seemingly complex algebraic manipulations boil down to using the distributive law several times and collecting like terms; it's just that \(a\text{,}\) \(b\text{,}\) and \(c\) may be some sort of algebraic expressions.
Example 2.2.22.
Question 2.2.23.
Describe what each term in the second and third lines of the manipulation given above represents geometrically as areas, as in the example in the last section showing \((x+y)^2 = x^2+2xy+y^2\text{.}\) Hint: Go back and look at 2.2.4 again.
Example 2.2.24.
Subtraction of quantities in parentheses is often simplified using the distributive law and remembering that subtraction is really just addition of \(-1\) times the given quantity. For instance, suppose we want to simplify the expression
First, re-write it with addition and \(-1\) multiplying the piece in parentheses, then apply the distributive law:
With practice, you probably won't need to write this many steps down. This process is often referred to as “distributing a minus sign”.
Now is probably a good time to just get a little practice expanding/distributing and collecting like terms. Just remember the distributive law and you'll see it's not that hard.
Question 2.2.25.
Expand (write as an equivalent expression without parentheses) each of the following expressions and collect like terms:
\(3ab(2a-5b)\)
\((2x+1)(3x-4)\)
\(3x^2(1-x)^3\)
\(2x-\frac{1}{3}x(5-3x-2x^2)\)
Now we will go backward from expanding/distributing. This process is known as factoring. When we expand an expression, we write it as an equivalent expression that is a sum of simple terms that each only involve multiplication and/or division. To factor an expression means to write it as a product of simple terms. For example, earlier in this chapter we had two expressions for the temperature in \(^{\circ}\)C in terms of the temperature in \(^{\circ}\)F. The expression \(C = \frac{5}{9}F - \frac{160}{9}\) is in expanded form, while \(C = \frac{5}{9}(F-32)\) is in factored form. Factored forms of expressions are often useful for solving equations as we'll see in the next chapter. Factoring isn't something that can be done in all cases by a single procedure; the following are just a few examples of common factoring methods.
Example 2.2.26.
When each term of an expression is divisible by some common factor one can “un-distribute” that factor. For instance, if we are given the expression
we can see that each term contains \(y\) and \(3\) as a factor. This means we can factor \(3y\) out of the expression to get the equivalent expression
Note that you can check your answer by applying the distributive law. An interpretation of pulling out a common factor like this is that each term is being stretched/compressed by the same amount, hence we can think of this as a single entity being stretched/compressed, which may be simpler.
Example 2.2.27.
\({\color{blue}rs}\) must equal \({\color{blue}12}\text{,}\)
\({\color{teal}pq}\) must equal \({\color{teal}-2}\text{,}\) and
\({\color{red} rq + ps}\) must equal \({\color{red} 5}\text{.}\)
Now you can do a little trial and error to find your solution (This is a very common thing to do in mathematics.)
- Attempt 1:
- The term \({\color{blue}rs}\) must equal \({\color{blue}12}\text{.}\) So let's try \(r=2\) and \(s=6\text{.}\) From the fact that \({\color{teal}pq}\) must equal \({\color{teal}-2}\) we can try \(p=2\) and \(q=-1\text{.}\) However, then we find\begin{align*} rq+ps \amp = \amp 2\cdot (-1) + 2\cdot 6 \\ \ \amp \neq \amp {\color{red}5}. \end{align*}So that combination won't work. With that combination of \(r\) and \(s\) we will find that \(p=\pm 2\) and \(q=\mp 1\) will always fail (note how the \(\pm\) and \(\mp\) must line up because \(p\) and \(q\) have opposite signs). So we move on to another try.
- Attempt 2:
- The term \({\color{blue}rs}\) must equal \({\color{blue}12}\text{.}\) So let's try \(r=3\) and \(s=4\text{.}\) Again, we know that \({\color{teal}pq}\) must equal \({\color{teal}-2}\) we can try \(p=2\) and \(q=-1\text{.}\) However, then we find\begin{align*} rq+ps \amp = \amp 3\cdot (-1) + 2\cdot 4 \\ \\ \ \amp = \amp {\color{red}5}. \end{align*}Notice that works out. Hence we can say\begin{equation*} 12x^2 + 5x+2 = (3x+2)(4x-1). \end{equation*}
The product of the two terms in \({\color{red}(rq + ps)}\) is equal to the product of the first and last coefficients. that is,
\begin{equation*} {\color{red}(rq \cdot ps)} = {\color{blue} rs}\cdot {\color{teal} pq}. \end{equation*}Since \({\color{blue}rs}\) must equal \({\color{blue}12}\) and \({\color{teal}pq}\) must equal \({\color{teal}-2}\) we must be able to break \({\color{red} 5}\) into a sum of two numbers that multiply to \(-24\text{.}\)
Noting that \({\color{red} 5} = -3+8\text{,}\) we have
The second solution is the so-called \(ac\) method including the reasoning behind it. Applying it blindly isn't terribly insightful in terms of explaining what factoring really does, but it gets the answer. For this reason it is recorded below:
Basic Solving Procedure 2.2.28. The \(ac\) Method.
To factor \(ax^2+bx+c\text{:}\)
Multiply \(a\cdot c\text{.}\)
Think of numbers that multiply to \(ac\text{.}\) Look for a pair that adds to \(b\text{.}\) If you cannot find one, this quadratic can't be factored with whole numbers.
If you get numbers that multiply to \(a\cdot c\) and add \(b\text{,}\) replace \(b\) with an explicit sum, and distribute \(x\text{.}\) With the four terms you have at this point, use factoring by un-distributing one thing at a time (this is called factoring by grouping). You are guaranteed to find a factorization.
Example 2.2.29.
Example 2.25. Any expression of the form \(a^2-b^2\) may be factored as \((a+b)(a-b)\) (\(a\) and \(b\) may represent more complicated expressions in this). One may check this using the distributive law. To see how this factorization works geometrically, consider the following figure with \(b\) being thought of as a number smaller than \(a\text{.}\)
In this figure the entire square has an area of \(a^2\) units and the gray shaded area has an area of \(a^2-b^2\) units. Each of the smaller shaded rectangles has area \(b(a-b)\) and the lower right shaded square has an area of \((a-b)(a-b)\text{.}\) Hence the total shaded area is
Now each term has a common factor of \((a-b)\text{,}\) hence we may factor it off and simplify by collecting like terms:
One may also see this factorization geometrically by taking the shaded rectangle on top and moving it to the left hand side of the diagram.
Now we have a single shaded rectangle whose height is \(a-b\) and whose width is \(a+b\text{,}\) hence the total area is \((a-b)(a+b)\text{.}\)
Question 2.2.32.
Factor each of the following expressions as completely as possible.
\(x^2+5x+6\)
\(x^4-25x^2y^2\)
\(4x^2+19x+12\)
\(y^2-y^4\)
\(2x^3-16x^2+32x\)
\(z^4+z^2-2\)
Question 2.2.33.
Think of \(x\text{,}\) \(y\text{,}\) and \(1\) as positive lengths to use areas of rectangles to explain why