Expressions and Equations
Click here for a download of this section.
Expressions vs. Equations: Why should we care?
Mathematicians like to spend a lot of time making definitions, a those definitions to students. This can feel like a right of passage or hazing, depending on your point of view. With a lot of the definitions that we offer in before-calculus mathematics, students might justifiably ask: “Why should we care?”
Here, we’d like to make the argument that:
You might be familiar with the old adage “Once you have a hammer, every problem looks like a nail.” We’d like you to consider the reverse; once you recognize that you’re trying to use a nail, you know you should reach for your hammer!
Two of our most fundamental structures to begin with in algebra will be expressions and equations. We’ll define these structures and take a look at some of the things we can do with them.
Expressions
Algebraic Expression
An algebraic expression consists of numbers and variables joined together with mathematical operations (such as addition, subtraction, multiplication, division, exponentiation).
An algebraic expression DOES NOT have an equal sign in it.
A great way to internalize a definition is to look at examples and non-examples. Let’s practice identifying algebraic expressions!
Is each of the following an algebraic expression? Explain why or why not.
$5x^{2} - 2$
$3x = 9$
$5 + 2 = 7$
$\frac{5}{x} - 1$
Remember, what we’re looking for are “numbers and variables joined together with math”, and we want to make sure we don’t have any equal signs. That makes options a and d examples of algebraic expressions. Examples b and c aren’t algebraic expressions, because they each include an equal sign!
Write two examples of algebraic expressions, and two examples of things that aren’t algebraic expressions.
Now we can identify algebraic expressions: so what? Well, if we know we have an algebraic expression, then we know there are a few things we can do with it.
What can we do with an algebraic expression?
Once we know we have an expression, what can we do with it? Our guiding principle will be this:
What does this mean? Well, let’s work with the super sophisticated expression of 2 to investigate.
When working with the number 2, we can do things like:
Multiply by 1, because $2 \cdot 1$ is still just 2
Add 0, because $2 + 0$ is 2
However, we can’t do things like:
Multiply by 2, because $2 \cdot 2$ is 4; we’ve changed the value of our expression from the original 2 into a 4.
Add 3, because $2 + 3$ is 5; we’ve changed the value of our expression from the original 2 into a 5.
Rewrite $\frac{4x}{5y}$ by multiplying by a fancy form of 1.
What do we mean by a fancy form of 1? Well, we use the idea that “a number divided by itself equals 1” to conclude that things like $\frac{2}{2}$ or $\frac{17}{17}$ are actually 1, they’re just a little fancier looking. So, we could rewrite our expression as
\[\frac{4x}{5y} \cdot \frac{2}{2}\]
\[= \frac{8x}{10y}\]
\[\frac{4x}{5y} \cdot \frac{17}{17}\]
\[= \frac{68x}{85y}\]
In the end, then, we’re saying that $\frac{4x}{5y}$ is the same as $\frac{8x}{10y}$, and the same as $\frac{68x}{85y}$. The new versions are just a bit fancier than the original!
Rewrite $6x - 2$ by adding a fancy form of 0
What does a fancy form of 0 look like? We’ll use the idea that a number minus itself makes 0, so things like $7 - 7$ or $13x - 13x$ are forms of 0. That means that
\[6x - 2 + 7 - 7\]
\[6x - 2 + 13x - 13x\]
are both equivalent to the original $6x - 2$.
To see what else we can do, let’s look at a slightly more complicated expression, like $3x + 5y$.
In the expression $3x + 5y$, we can rearrange the order of addition:
\[3x + 5y\]
\[= 5y + 3x\]
If we wanted, we could also reorder the multiplication represented by $3x$:
\[3x + 5y\]
\[= x3 + 5y\]
We can do this because addition is commutative and multiplication is commutative. That means that if we change the order of addition (or the order of multiplication), it doesn’t affect the final value of the expression.
We’ve focused a lot on addition and multiplication; what about subtraction and division? If we are careful, we can think about subtraction and division as being special forms of addition and multiplication, respectively.
Rewrite the expression $7x - 4y$ in terms of addition. Then, rearrange.
Subtraction is equivalent to adding the opposite, so we can rewrite as follows:
\[7x + ( - 4y)\]
The parentheses are mostly here to help us visually sort out the addition followed by a negative symbol. Now, we can rearrange.
\[7x + ( - 4y)\]
\[= - 4y + 7x\]
Notice: the original subtraction is not commutative! $7x - 4y$ would have a different value than $4y - 7x$. If we want to rearrange, we should first think in terms of addition!
Rewrite the expression $\frac{7x}{4 + y}$ in terms of multiplication. Then, rearrange.
Here, the fraction bar represents division, so our expression could be thought of as
\[(7x) \div (4 + y)\]
Division is equivalent to multiplying by the reciprocal, or what you may know as copy dot flip or keep change flip. The thing to keep in mind here is that you must flip the entire denominator together (not each piece of it individually). So,
\[\frac{7x}{4 + y}\]
\[= 7x \div (4 + y)\]
\[= 7x \cdot \frac{1}{4 + y}\]
Then, if we want to rearrange, we could do
\[= \frac{1}{4 + y} \cdot 7x\]
Ways to rearrange algebraic expressions
To rearrange an algebraic expression without affecting its value, we may:
-
Multiply by 1
-
Add zero
-
Reorder addition (or change subtraction to addition, then reorder)
-
Reorder multiplication (or change multiplication to division, then reorder)
Which of the following expressions are equivalent to $\frac{6 + x}{2} - 3y$?
$6 + x \cdot \frac{1}{2} - 3y$
$\frac{x + 6}{2} - 3y$
$3y - \frac{x + 6}{2}$
$- 3y + \frac{x + 6}{2}$
$\frac{4(6 + x)}{4 \cdot 2} - 3y$
$\frac{6 + x}{2} + 5 - 3y$
$\frac{6 + x}{2} + 5 - 3y - 5$
We’ll take this an expression at a time.
When we look at $6 + x \cdot \frac{1}{2} - 3y$, it’s almost a rewrite of division, but it’s missing a key feature: parentheses. We want to make sure we’re multiplying the entire numerator by the reciprocal of the entire denominator. When we write $6 + x \cdot \frac{1}{2}$, only the $x$ is being multiplied by the $\frac{1}{2}$, not the entire $6 + x$. To fix this, then, our expression should be $(6 + x) \cdot \frac{1}{2} - 3y$. Now it’s equivalent to the original.
Next we consider $\frac{x + 6}{2} - 3y$. The only thing that’s happened here is that the addition in the numerator has been rearranged, a perfectly valid move. Therefore, this expression is equivalent to the original.
In $3y - \frac{x + 6}{2}$, we swapped around the subtraction. The problem is, subtraction isn’t commutative, so this is not equivalent to the original expression.
Now this is more like it. If we first change $\frac{6 + x}{2} - 3y$ into $\frac{6 + x}{2} + ( - 3y)$, then we have some addition that we can rearrange. So, we rewrite as $- 3y + \frac{6 + x}{2}$ for an equivalent expression.
Check out the extra 4’s in $\frac{4(6 + x)}{4 \cdot 2} - 3y$. This comes from multiplying that first fraction by $\frac{4}{4}$, a fancy form of 1, so this expression is still equivalent to the original.
In $\frac{6 + x}{2} + 5 - 3y$, we simply added a 5 to the expression. That definitely changes the value of the expression, so it is not equivalent to the original.
This last expression can be created if we add $5 - 5$ to the original expression. Is that allowed? Sure, because $5 - 5$ is a fancy form of 0. So we have
$\frac{6 + x}{2} - 3y + 5 - 5$, which then allows us to (carefully) rearrange our addition to get $\frac{6 + x}{2} + 5 - 3y - 5.$
When faced with an algebraic expression, we can also do a whole host of things that usually fall under the category of “simplification”. Depending on our goals, simplification might mean distribution, combining like terms, factoring, and more.
Simplify $2(x + 5)$.
Distribution is what we do when multiplication meets addition. Here we have 2 multiplied by an addition expression, $x + 5.$
When we first learned about multiplication, it was likely presented as repeated addition. For example, 2 times 3 is 3 added to itself two times:
\[2 \cdot 3\]
\[= 3 + 3\]
\[= 6\]
The same principle applies here. When we have 2 times $x + 5$, that means we want to add $x + 5$ to itself two times:
\[2 \cdot (x + 5)\]
\[= x + 5 + x + 5\]
which we can then reorder because of the commutativity of addition:
\[= x + x + 5 + 5\]
Now, we notice that $x + x$ is 2 times x, and $5 + 5$ is 2 times 5, so we have
\[= 2x + 2 \cdot 5\]
\[= 2x + 10\]
In short, the 2 is “distributed” to both the $x$ and the 5:
\[2(x + 5)\]
\[= 2 \cdot x + 2 \cdot 5\]
Distributive Property
If $a,\ b,\ $and $c$ are real numbers, or variables representing real numbers, then
\[a(b + c)\]
\[= a \cdot b + a \cdot c\]
Because subtraction can be rewritten as adding the opposite, the distributive property also applies to
\[a(b - c)\]
\[= a \cdot b - a \cdot c.\]
Notice that the distributive property only applies in this specific case: when we want to multiply by an addition (or subtraction) expression. Let’s take a detour to make sure we understand when distribution does and doesn’t apply.
In each expression, determine whether distribution can be applied. Then, simplify.
$5(3x)$
$5(3 + x)$
$5(3 - x)$
$(3 + x)^{5}$
$(x + 5)(x + 3)$
Check out the operations in $5(3x)$. That’s 5 times 3 times $x$; there’s no addition or subtraction in sight, so distribution doesn’t apply here. To simplify, we can think of this instead as $5 \cdot 3 \cdot x$, so $15x$.
Now we have 5 times $3 + x$, so we have the required multiplication by an addition expression. So, we distribute the 5:
\[{5 \cdot 3 + 5 \cdot x }{= 15 + 5x}\]Distribution still applies when we have a number (5) times a subtraction expression $(3 - x)$, so to simplify we can distribute the 5:
\[{5 \cdot 3 - 5 \cdot x }{= 15 - 5x}\]Now we have an addition expression, $3 + x$, raised to a power of 5. That’s not multiplication, so distribution doesn’t apply here. It would be incorrect to write $3^{5} + x^{5}$. In fact, if we wanted to simplify, we’d need to think about $(3 + x)$ multiplied by itself 5 times, like $(3 + x)(3 + x)(3 + x)(3 + x)(3 + x)$.
We in fact do have multiplication meeting with addition here, so we can distribute…carefully. We can think of this as $x + 5$ times an addition statement, $x + 3$. So we’ll distribute the $x + 5$ itself:
\[(x + 5) \cdot x + (x + 5) \cdot 3 \]We can rearrange the multiplication a little, then distribute again:
\[{x(x + 5) + 3(x + 5) }{= x \cdot x + x \cdot 5 + 3 \cdot x + 3 \cdot 5}\]
\[= x^{2} + 5x + 3x + 15 \]This expression can be simplified even further, but first we must discuss some more simplification methods!
Another major move we can make while simplifying expressions is combining like terms. The “combining” part usually refers to adding or subtracting. To think about what we’re adding or subtracting, let’s define terms and like terms.
Algebraic Terms
An algebraic term consists of a constant (a number) multiplied by a variable (or variables) raised to a power.
The constant part of the algebraic term is called a coefficient.
Like Terms
Two algebraic terms are like terms if they have the exact same combination of variables raised to the exact same powers.
Determine which of the following expressions represent terms. Then, determine which are like terms.
$3x$
$3 + x$
$3x^{2}$
$3x^{2}y$
$5x^{2}$
$7x^{2}y$
$2xy^{2}$
Only item b is not a term. The 3 and $x$ are joined with addition, not
multiplication. In fact, the 3 and $x$ are each an individual term!
The like terms are $3x^{2}$ and $5x^{2}$, because they both have the same
variable ($x$) raised to the same
power $(2)$. In the $3x^{2}$ term, 3 is the coefficient.
Similarly in the $5x^{2}$ term, the 5
is the coefficient. Notice that $3x$
is not a like term in this group, because though it has
an $x,\ $that $x$ is raised to the (invisible) first
power.
The $3x^{2}y\ $and $7x^{2}y$ are also like terms, because they both have the same combination of variables ($x$ and $y$) each raised to the same power $(2\ $and 1, respectively). Notice that $2xy^{2}$ is not a like term in this group, because its $x$ is raised to the 1st power and its $y$ is raised to the 2nd power; it has the same variables, but the wrong powers on those variables.
Now we can work on combining like terms; that is, we’ll add or subtract them.
Simplify the algebraic expression by combining like terms.
\[3xy^{2} + 7x^{2}y + 2xy^{2} - x^{2}y\]
Let’s start by identifying our like terms. We have $3xy^{2}$ and $2xy^{2}$ for one group, and $7x^{2}y$ and $- x^{2}y$ for our other group. If we change that subtraction to adding the opposite, we can rearrange all the addition to put the like terms next to each other.
\[3xy^{2} + 7x^{2}y + 2xy^{2} + ( - x^{2}y)\]
\[= 3xy^{2} + 2xy^{2} + 7x^{2}y + ( - x^{2}y)\]
Now for the combining part. We’re basically counting up how many of each like term we have. So there are 3 $xy^{2}$’s plus another 2 of the $xy^{2}$’s , making a total of $5xy^{2}$. Similarly, we have 7 of the $x^{2}y$’s, plus a negative 1 $x^{2}y$, so there are $6\ $total $x^{2}y's$. This means, we have
\[5xy^{2} + 6x^{2}y\]
for our final simplified answer.
Notice, we added the coefficients of the like terms, but did nothing to change the variables.
Combining Like Terms
To combine like terms, add or subtract the coefficients, but do not change the variables in any way.
Simplify completely:
\[5(x - 6) - 3(x + 4)\]
Now we have some distribution and eventually some like terms to combine. To ensure that the negatives don’t mess us up, though, let’s change that $- 3$ into adding the opposite:
\[5(x - 6) + ( - 3)(x + 4)\]
Now we distribute, rearrange, and combine like terms.
\[5x - 5 \cdot 6 + \ - 3x + \ - 3 \cdot 4\]
\[= 5x + - 30 + \ - 3x + \ - 12\]
\[= 5x + \ - 3x + \ - 30 + \ - 12\]
\[= 2x - 42\]
Simplifying Algebraic Expressions
To simplify an algebraic expression, we might want to:
-
Distribute
-
Combine like terms
Now we have a lot of tools for rewriting and simplifying algebraic expressions without changing the value of the expression. We can also evaluate an expression to find its value in particular circumstances. To do this kind of evaluation, we should make sure we’re aware of the order of operations.
Order of Operations
When finding the value of an expression, we should do operations in the following order:
-
Parentheses
-
Exponents
-
Multiplication/Division (from left to right)
-
Addition/Subtraction (from left to right)
A common mnemonic for remembering this order is PEMDAS.
Some things in mathematics reflect natural truths about the world we live in, while others reflect agreements made by the mathematical community. The order of operations is an agreement to do operations in a particular order so that, given a string of math, everyone ends up with the same answer. Without this sort of agreement, it would be very difficult to do everything from splitting a check and figuring tip at a restaurant, to sending people to Mars.
Evaluate each of the following expressions.
$3 \cdot 4 - (5 - 3)^{2} + 2$
$\frac{4 + 2}{4 - 1}$
$\frac{1}{2}\left( \frac{3}{4} + \frac{1}{2} \right)$
For each of these, our primary job is to attend to the order of operations.
\[\begin{array}{ll} 3 \cdot 4 - (5 - 3)^{2} + 2 & \\ = 3 \cdot 4 - \left( 2 \right)^{2} + 2 & \text{parentheses} \\ = 3 \cdot 4 - 4 + 2 & \text{exponents} \\ = 12 - 4 + 2 & \text{multiplication and division} \\ = 8 + 2 & \text{addition and subtraction} \\ = 10 & \text{addition and subtraction} \end{array}\]
Notice that once this expression simplified down to all addition and subtraction, we didn’t necessarily do addition first, then subtractions. The “AS” in our “PEMDAS” mnemonic tells us to do addition and subtraction from left to right.
When we have a big fraction like this, we want to think of the entire numerator and the entire denominator as each being in their own set of parentheses (even if the expression isn’t explicitly written like that).
\[\begin{array}{ll} \frac{(4 + 2)}{(4 - 1)} & \\ = \frac{6}{3} & \text{parentheses} \\ = 2 & \text{division} \end{array}\]Our friends, fractions! We’ll review some fraction basics while using the order of operations.
First, recall that to add fractions, we need to make sure they have a
common denominator. How can we make a common denominator? Multiply our
fractions by a fancy form of 1 (one of the things we’re always allowed
to do to an expression!).
\[\begin{array}{ll}
\frac{1}{2}\left( \frac{3}{4} + \frac{1}{2} \right) & \\
= \frac{1}{2}\left( \frac{3}{4} + \frac{1}{2} \cdot \frac{2}{2} \right)
& \text{fancy form of 1} \\
= \frac{1}{2}\left( \frac{3}{4} + \frac{2}{4} \right) &
\text{multiplication} \\
= \frac{1}{2}\left( \frac{5}{4} \right) & \text{addition} \\
= \frac{5}{8} & \text{multiplication}
\end{array}\]
If you find yourself in need of a fraction review, check out this resource: Fractions (Review) – Intermediate Algebra.
Now we return to algebraic expressions. Oftentimes, we want to find the value of an algebraic expression under particular conditions. This requires careful attention to parentheses and the order of operations.
Consider the expression $x^{2} - 3xy$. Evaluate for the following values of $x$ and $y$.
$x = 2$, $y = 1$
$x = - 2$, $y = 3$
$x = z$, $y = z + 2$
We want to replace the $x$ and $y$ in our expression with the indicated values. As we do so, it’s a good idea to put our values into parentheses, so we can keep proper track of the operations we’re doing.
$x^{2} - 3xy$ where $x = 2, y = 1$
We’ll replace each $x$ with $(2)$ and each $y$ with $(1)$.
\[\begin{array}{ll} x^2 - 3xy & \\ = \left( 2 \right)^{2} - 3\left( 2 \right)\left( 1 \right) & \text{substitute} \\ = 4 - 3(2)(1) & \text{exponents} \\ = 4 - 6(1) & \text{multiplication} \\ = 4 - 6 & \text{multiplication} \\ = - 2 & \text{subtraction} \end{array}\]
$x^{2} - 3xy$ where $x = - 2$, $y = 3$
This time, we replace each $x$ with $( - 2)$ and each $y$ with $(3)$.
\[\begin{array}{ll} x^2 - 3xy & \\ = \left( - 2 \right)^2 - 3\left( - 2 \right)\left( 3 \right) & \text{substitute} \\ = 4 - 3( - 2)(3) & \text{exponents}^* \\ = 4+\left( - 3 \right)( - 2)(3) & \text{change subtraction}^\text{**} \\ = 4 + 6(3) & \text{multiplication} \\ = 4 + 18 & \text{multiplication} \\ = 22 & \text{addition} \end{array}\]
*Notice that $( - 2)^{2}\ $is $- 2 \cdot - 2$, hence positive 4.
**Changing the subtraction into adding the opposite helps us to keep proper track of the signs as we work on the multiplying steps.
$x^{2} - 3xy$ where $x = z$, $y = z + 2$
Now we have an extra variable floating around, but our process is still the same! We’ll replace each $x$ with $z$ and replace each $y$ with $(z + 2)$.
\[\begin{array}{ll} x^2 - 3xy & \\ = z^2 - 3z\left( z + 2 \right) & \text{substitute} \\ = z^2+\left( - 3z \right)(z + 2) & \text{change subtraction}^* \\ = z^2 + \ - 3z \cdot z + \ - 3z \cdot 2 & \text{parentheses (distribute)}^** \\ = z^2 + \ - 3z \cdot z + \ - 3 \cdot 2 \cdot z & \text{reorder multiplication} \\ = z^2 + \ - 3z^2 + \ - 6z & \text{multiply} \\ = \ - 2z^2 - 6z & \text{combine like terms} \end{array}\]
*Again, we change the subtraction to help keep track of the signs.
**Here, the $z + 2$ in the parentheses can’t be added more, because $z$ and $2$ aren’t like terms. So, instead, we use the distributive property to evaluate the parentheses.
We’ll take a look at a few more examples before moving on.
Evaluate each expression for the given values.
$\frac{x}{2x - 1}\ $where $x = 3$
$x - (4 - x)$ where $x = - 1$
$\left( xy^{2} \right)^{3}$ where $x = \frac{1}{2}$ and $y = 2$
$\frac{x}{2x - 1}\ $where $x = 3$
\[\begin{array}{ll} \frac{x}{2x - 1} & \\ = \frac{3}{(2\left( 3 \right) - 1)} & \text{Substitute}^* \\ = \frac{3}{(6 - 1)} & \text{Parentheses: multiplication} \\ = \frac{3}{5} & \text{Parentheses: subtraction} \end{array} \]
*When we substituted, we also put the denominator in a set of parentheses. That helps us to keep track of the order of operations. We work on parentheses first, and within those parentheses, still follow the order of operations.
$x - (4 - x)$ where $x = - 1$
\[\begin{array}{ll} x - \left( 4 - x \right) & \\ = \left( - 1 \right) - \left( 4 - \left( - 1 \right) \right) & \text{Substitute} \\ = - 1 - \left( 4+ 1 \right) & \text{Change Subtraction} \\ = - 1 - \left( 5 \right) & \text{Parentheses} \\ = - 6 & \text{Subtraction} \end{array}\]
Alternatively, we could have chosen to simplify this expression, then substitute.
\[\begin{array}{ll}
x - (4 - x) & \\
= x+\left( - 1 \right)(4 + \ - x) &
\text{Change Subtraction}^{*} \\
= x + \ - 1 \cdot 4 +\left( - 1 \right)\left(
- x \right) & \text{Distribute} \\
= x- 4 + x & \text{Multiply} \\
= 2x - 4 & \text{Combine like terms} \\
= 2\left( - 1 \right) - 4 & \text{Substitute} x = - 1 \\
= - 2 - 4 & \text{Multiplication} \\
= - 6 & \text{Subtraction}
\end{array}
\]
*When we changed the subtraction in front of the parentheses, we also
wrote down the invisible 1 that is implied there. So we have $x - 1(4 - x)$, which can be rewritten as
$x + ( - 1)(4 - x)$.
$\left( xy^{2} \right)^{3}$ where $x =\frac{1}{2}$ and $y = 2$
\[ \begin{array}{ll} \left( x y^{2} \right)^{3} & \\ = \left( \left( \frac{1}{2} \right)\left( 2 \right)^{2} \right)^{3} & \text{Substitute} \\ = \left( \left( \frac{1}{2} \right)\left( 4 \right) \right)^{3} & \text{Parentheses (exponents)} \\ = \left( \frac{4}{2} \right)^{3} & \text{Parentheses (multiplication)} \\ = 2^{3} & \text{Parentheses (division)} \\ = 8 & \text{Exponents} \end{array} \]
Equations
Now we turn our sights to equations. Equations are a lot like expressions, with one key difference: they have an equal sign!
Equations
A mathematical statement in which we write that one algebraic expression equals another. Equations are written in the structure:
algebraic expression 1 = algebraic expression 2
The key feature we’re looking for is an equal sign in the given statement!
Notice that we were using equals signs when we simplified or evaluated algebraic expressions, but we did not write our work all in one line. That is, when we simplify something like $2(x - 3)$, we write
\[2(x - 3)\]
\[= 2 \cdot x - 2 \cdot 3\]
instead of
\[2(x - 3) = 2x - 2 \cdot 3.\]
When we simplify algebraic expressions, we’ll write each step on a new line, with the equal sign at the beginning, to distinguish from when we’re simplifying or evaluating versus when we’re solving an equation.
For the equation $x^{2} - 4 = 3x$, determine whether each value of $x$ is a valid solution.
$x = 0$
$x = 1$
$x = - 1$
When we are determining whether a value of a variable is a valid solution to an equation, we want to evaluate each side of the equation for the given value of the variable and see if they are equal.
\[\begin{array}{rclr} x^{2} - 4 & = & 3x & \\ (0)^{2} - 4 & ?= & 3(0) & \text{Substitute } x = 0 \\ 0 - 4 & ?= & 0 & \text{Evaluate each side} \\ -4 & \neq & 0 & \end{array}\]
Let’s dig into what we’re doing here. First of all, while we’re checking our potential solution, we use a $? =$ instead of an $=$. We’re not claiming that the two sides are equal, we’re checking whether they are indeed equal.
Notice also that we’re working with each side independently, simplifying each expression using the order of operations.
Now, at the end, we have $- 4$ on the left and $0$ on the right, which are not equal. This means that the value we substituted in, $x = 0$, is not a solution for the equation, because it doesn’t cause the expression on the left to be equal to the expression on the right.
\[ \begin{array}{rclr} x^{2} - 4 & = & 3x & \\ (1)^{2} - 4 & ?= & 3(1) & \text{Substitute } x = 1 \\ 1 - 4 & ?= & 3 & \text{Evaluate each side} \\ -3 & \neq & 3 & \end{array} \]
When we substitute $x = 1$ into the equation, the left side evaluates to -3, but the right side evaluates to 3. Since $- 3 \neq 3$, $x = 1$ is not a solution to the equation.
\[ \begin{array}{rclr} x^{2} - 4 & = & 3x & \\ (-1)^{2} - 4 & ?= & 3(-1) & \text{Substitute } x = -1 \\ 1 - 4 & ?= & -3 & \text{Evaluate each side} \\ -3 & = & -3 & \end{array} \]
This time, finally, when we substitute in -1 for $x$, we get a true statement at the end: $- 3 = - 3$. This means $x = - 1$ is a solution to the equation!
As we see from the example above, one thing we might do with equations is evaluate them for given values of the variable, just like we did with expressions. When we do this, it’s a good idea to use a ?= instead of an = while we’re deciding whether the two sides are indeed equal.
How can we find potential solutions to test, though? That’s a really big topic, which we’ll revisit time and again throughout this text. For now, we’ll review a few of the main concepts for solving equations.
Solving equations: balancing
When our goal is solving an equation, we’re now allowed to do things that alter the value of the algebraic expressions, as long as we alter the expressions on both sides in the same way. This is often called “balancing” the equation.
Consider the equation $x + 4 = 2x - 2$. There are many things we could do to the equation to keep it balanced.
\[x + 4+ 1 = 2x - 2+ 1\]
Here we added 1 to both sides of the equation. If we had just
the expression $x + 4$, we couldn’t
add 1 to that; it changes the value! But, if $x + 4$ is the same as $2x - 2$, then they’ll still be the same if
we add 1 to both of them.
\[2(x + 4) = 2(2x - 2)\]
This time we multiplied both sides by 2. This is allowed as long as that multiplication affects the whole expression on each side; that’s why we put the $x + 4$ and the $2x - 2$ into parentheses.
\[(x + 4)^{3} = (2x - 2)^{3}\]
We could also raise both sides to the same power.
\[\frac{x + 4}{- 1} = \frac{2x - 2}{- 1}\]
Or divide both sides by the same number.
\[\sqrt{x + 4} = \sqrt{2x - 2}\]
Or square root both sides.
The point of the example above is that we can do a whole bunch of things to an equation that we weren’t able to do to an individual expression, as long as we do the exact same thing to both sides of the equation.
The things we were doing to that equation weren’t very helpful, though, for one of our most common goals: we’d like to solve for the value(s) of $x$ which make the equation true. So, we’ll do the same operations to both sides of the equation with the goal of isolating $x$.
Solve $x + 4 = 3x - 2$
Goal 1: move both $x$ terms to the same side.
Currently we have an $x$ on the left side and a $3x\ $on the right side. We’d like to combine those, but we can’t when they’re on opposite sides. So, we can move one of these $x$ terms to the other side by undoing an operation.
On the left, we have $x$ plus $4$. If we want to move that $x$, we need to zero it out; so we’ll subtract an $x$. To keep the equation balanced, we’ll subtract $x$ from both sides.
\[x + 4- x = 3x - 2- x\]
Now we’ll combine the like terms in the expressions on each side of the equation.
\[\begin{array}{rcl} x - x + 4 & = & 3x - x - 2 \\ 0x + 4 & = & 2x - 2 \\ 4 & = & 2x - 2 \end{array}\]
Now that we only have one variable term, we want to work on isolating the variable. To work on this goal, we’ll undo anything else happening to the variable, in reverse of the order of operations.
Our $x$ is being multiplied by 2, then subtracted by 2. If we were evaluating, we’d do the multiplication first, then the subtraction. We’re solving, so we’ll go in reverse. We want to undo the -2 first by adding 2. But, because that changes the value of the expression, we have to do it to both sides!
\[\begin{array}{rcl} 4+ 2 & = & 2x - 2+ 2 \\ 6 & = & 2x + 0 \\ 6 & = & 2x \end{array}\]
Now our $x$ is only being multiplied by 2. We’ll undo that by dividing by 2, on both sides.
\[\begin{array}{rcl} \frac{6}{2} & = & \frac{2x}{2} \\ 3 & = & x \end{array}\]
Our claim now is that $x = 3$ is a solution to the equation $x + 4 = 3x - 2$. We can check that claim by substituting and evaluating.
\[\begin{array}{rclr} x + 4 & = & 3x - 2 & \\ 3 + 4 & ? = & 3(3) - 2 & \text{substitute} \\ 7 & ? = & 9 - 2 & \text{simplify} \\ 7 & = & 7 & \end{array}\]
When we substitute in $x = 3$ and evaluate each side independently, we end up with a true statement, so $x = 3$ is a solution to the equation $x + 4 = 3x - 2$.
Let’s check out an example which requires a bit more work.
Solve $4(x - 3) = 1 - (x + 2)$.
This time, before we worry about moving $x$ terms or undoing operations, it might be in our best interests to simplify first.
\[ \begin{array}{rclr} 4(x - 3) & = & 1 - 1(x + 2) & \text{Write invisible 1} \\ 4(x - 3) & = & 1 + \left( -1 \right)(x + 2) & \text{Change subtraction} \\ 4 \cdot x - 4 \cdot 3 & = & 1 + (-1) \cdot x + (-1) \cdot 2 & \text{Distribute} \\ 4x - 12 & = & 1 - x - 2 & \text{Simplify} \\ 4x - 12 & = & -x - 1 & \text{Combine like terms} \end{array} \]
In this first part of the process, we worked with each side individually, so we had to stick to do’s and don’ts of working with expressions (we were careful not to change the value of any expression). Now, we want to start moving things to the other side of the equal sign, so we’ll change both sides of the equation in the same way.
\[ \begin{array}{rclr} 4x - 12 & = & -x - 1 & \\ 4x - 12 + x & = & -x - 1 + x & \text{Add } x \text{ to both sides} \\ 4x + x - 12 & = & -x + x - 1 & \text{Rearrange} \\ 5x - 12 & = & 0x - 1 & \text{Combine like terms} \\ 5x - 12 & = & -1 & \text{Simplify} \\ 5x - 12 + 12 & = & -1 + 12 & \text{Add 12 to both sides} \\ 5x + 0 & = & 11 & \text{Simplify} \\ 5x & = & 11 & \\ \frac{5x}{5} & = & \frac{11}{5} & \text{Divide by 5 on both sides} \\ x & = & \frac{11}{5} & \text{Simplify} \end{array} \]
Let’s check that work by substituting $x = \frac{11}{5}$ into the original equation, $ 4(x - 3) = 1 - (x + 2)$.
\[ \begin{array}{rclr} 4\left( \frac{11}{5} - 3 \right) & ?= & 1 - \left( \frac{11}{5} + 2 \right) & \\ 4\left( \frac{11}{5} - \frac{3}{1} \cdot \frac{5}{5} \right) & ?= & 1 \cdot \frac{5}{5} - \left( \frac{11}{5} + \frac{2}{1} \cdot \frac{5}{5} \right) & \text{Make common denominator} \\ 4\left( \frac{11}{5} - \frac{15}{5} \right) & ?= & \frac{5}{5} - \left( \frac{11}{5} + \frac{10}{5} \right) & \text{Simplify} \\ 4\left( -\frac{4}{5} \right) & ?= & \frac{5}{5} - \frac{21}{5} & \text{Subtract} \\ \frac{4}{1} \cdot -\frac{4}{5} & ?= & \frac{5}{5} - \frac{21}{5} & \\ -\frac{16}{5} & = & -\frac{16}{5} & \end{array} \]
Looks like $x = \frac{11}{5}$ is a good solution to the equation!
Solving equations: The Zero Product Property
Besides undoing operations to isolate $x$, our other really important tool for solving equations will be the Zero Product Property.
Zero Product Property (ZPP)
Given two real numbers or algebraic expressions, $a$ and $b$:
If $a \cdot b = 0$
then
$a = 0$ or $b = 0$.
Use the Zero Product Property to solve each equation.
$3x = 0$
$3(x - 2) = 0$
$3x(x - 2) = 0$
$(x + 3)(x - 2) = 0$
Here we have $3 \cdot x = 0$. According to the ZPP, that’s only possible if either 3 equals 0 or x equals 0. Since $3 \neq 0$, the only solution is $x = 0$.
This time we have $3 \cdot (x - 2) = 0$. Again, $3 \neq 0$, so if we use the ZPP, we’ll only have $x - 2 = 0$. Then, we can finish isolating $x$ in that little equation.
\[\begin{array}{rcl} x - 2 & = & 0 \\ x - 2 + 2 & = & 0 + 2 \\ x & = & 2 \end{array}\]
So our solution to the equation is $x = 2$. Let’s double check that.
\[ \begin{array}{rclr} 3(x - 2) & = & 0 & \\ 3(2 - 2) & ?= & 0 & \text{Substitute } 2 \text{ for } x. \\ 3(0) & ?= & 0 & \text{Simplify} \\ 0 & = & 0 & \end{array} \]
We ended with a true statement ($0 = 0$), so it looks like $x = 2$ is a good solution.
This time we have a full $3x$ times our $x - 2$, so according to the ZPP, either $3x = 0$ or $x - 2 = 0$. That gives us two equations to finish solving for $x.$
We already found that when $3x = 0$, $x = 0$, and when $x - 2 = 0$, the solution is $x = 2$. That means our equation has two solutions, $x = 0$ and $x = 2.$
Now the things being multiplied are $(x + 3)$ and $(x - 2)$. According to the ZPP then, either $x + 3 = 0$ or $x - 2 = 0$. Isolate $x$ in each of these equations to get solutions of $x = - 3$ or $x = 2$.
Practice Problems
Conceptual Checks
What is the difference between an algebraic expression and an equation?
What is an algebraic term?
What are like terms?
What are things we can do to an algebraic expression which don’t change its value?
How can we check a solution to an equation?
How can we solve an equation?
What is the Zero Product Property?
Practice Problems
Which of the following expressions are equivalent to $3x - 4(x + 5)?$
$- 4(x + 5) + 3x$
$4(x + 5) - 3x$
$3x - (x + 5)4$
$3x - 4x + 5$
$3x - 4x - 20$
$3x - 4x + 20$
$- x^{2} + 20$
$- x + 20$
$20 - x$
$x = 20$
Which of the following expressions are equivalent to $\frac{4}{x} + \frac{3}{y}?$
$\frac{4 + 3}{x + y}$
$\frac{4}{x} \cdot \frac{y}{y} + \frac{3}{y}$
$\frac{4}{x} + \frac{3}{y} \cdot \frac{x}{x}$
$\frac{4y}{xy} + \frac{3x}{xy}$
$\frac{4y + 3x}{xy}$
$4 \cdot \frac{1}{x} + 3 \cdot \frac{1}{y}$
$\frac{1}{4} \cdot x + \frac{1}{3} \cdot y$
$\frac{4}{x} + \frac{3}{y} + 3 - 3$
$\frac{4}{x} + \frac{3}{y} + 3$
Write at least four algebraic expressions which are equivalent to the given expressions.
$5a + 3b - c$
$\frac{6}{6 + x} + 8y - 10$
$3(x - 4) - (x + 2)$
Simplify each algebraic expression completely.
$8x^{2} - 7xy + 3y - 2x + 9xy + 2x^{2}$
$10a^{2}b + 3ab^{2} + 4a^{2}b - 8ab^{2} + 3a - 2b$
$3(x - 4) - (x + 2)$
$3(4x)$
$2(x + 3)^{2}$
$7 - 2(x + 3)^{2}$
$3y - (5)^{2}y - 10$
$9x - 3x(2) + 7$
$\left( \frac{1}{2}x - 1 \right)3$
$3^{2} - 2(4x)$
Evaluate each expression using the given value of the variable.1
$8(x + 3) - 64$ for $x = 2$
$4y + 8 - 2y$ for $y = 3$
$(11a + 3) - 18a + 4$ for $a = - 2$
$4z - 2z(1 + 4) - 36$ for $z = 5$
$4y(7 - 2)^{2} + 200$ for $y = - 2$
$- (2x)^{2} + 1 + 3$ for $x = 2$
$8(2 + 4) - 15b + b$ for $b = - 3$
$2(11c - 4) - 36$ for $c = 0$
$4(3 - 1)x - 4$ for $x = 10$
$\frac{1}{4}\left( 8w - 4^{2} \right)$ for $w = 1$
For each equation, check whether the given values of the variable are valid solutions.
$8x - 5x = 6$
$x = 2$
$x = 0$
$x = - 2$
$- \frac{5}{4}x + \frac{1}{2}x = - \frac{3}{2}$
$x = - 1$
$x = 1$
$x = 2$
$17 = - 3 + 8a + 2a$
$a = 2$
$a = 1$
$a = 0$
$35 + 3b = - 5(6b - 7)$
$b = - 1$
$b = 0$
$b = 1$
$2m - \frac{25}{12} = - \frac{3}{2}\left( - \frac{3}{2}m + 1 \right)$
$m = - 1$
$m = - \frac{1}{3}$
$m = - \frac{7}{3}$
Solve each equation.
$2x = - 15 - 3x$
$2y + \frac{11}{4} - \frac{9}{4}y = \frac{39}{16}$
$- 11 + 5x = 1 - x$
$6(3a - 1) + 4 = 106$
$32 - 7b = - 4(1 + 4b)$
$\frac{11}{3} - \frac{7}{2}x = - 2\left( \frac{5}{4}x - \frac{1}{2} \right)$
$4x = 0$
$x(x - 5) = 0$
$x(5 - x) = 0$
$5(x - 3) = 0$
$(x + 2)(x - 1) = 0$
$x(x + 3)(x - 6) = 0$
$4x(x - 5)(x + 7) = 0$