### Learning Objectives

After completing this section, you should be able to:

- Convert between written and symbolic algebraic expressions and equations.
- Simplify and evaluate algebraic expressions.
- Add and subtract algebraic expressions.
- Multiply and divide algebraic expressions.

Algebraic expressions are the building blocks of algebra. While a numerical expression (also known as an arithmetic expression) like $5+3$ can represent only a single number, an algebraic expression such as $5x+3$ can represent many different numbers. This section will introduce you to algebraic expressions, how to create them, simplify them, and perform arithmetic operations on them.

### Algebraic Expressions and Equations

Xavier and Yasenia have the same birthday, but they were born in different years. This year Xavier is 20 years old and Yasenia is 23, so Yasenia is three years older than Xavier. When Xavier was 15, Yasenia was 18. When Xavier will be 33, Yasenia will be 36. No matter what Xavier’s age is, Yasenia’s age will always be 3 years more.

In the language of algebra, we say that Xavier's age and Yasenia's age are variable and the 3 is a constant. The ages change, or vary, so age is a variable. The 3 years between them always stays the same or has the same value, so the age difference is the constant. In algebra, letters of the alphabet are used to represent variables. The letters most often used for variables are $x$, $y$, $z$, $a$, $b$, and $c$. Suppose we call Xavier's age $x$. Then we could use $x+3$ to represent Yasenia's age, as shown in the table below.

Xavier’s Age | Yasenia’s Age |
---|---|

15 | 18 |

20 | 23 |

33 | 36 |

$x$ | $x+3$ |

To write algebraically, we need some symbols as well as numbers and variables. The symbols for the four basic arithmetic operations: addition, subtraction, multiplication, and division are summarized in Table 5.1, along with words we use for the operations and the result.

Operation | Notation | Say: | The result is… |
---|---|---|---|

Addition | $a+b$ | $a$ plus $b$ | The sum of $a$ and $b$ |

Subtraction | $a$ − $b$ | $a$ minus $b$ | The difference of $a$ and $b$ |

Multiplication | $a$ • $b$, ($a$)($b$), ($a$)$b$, $a$($b$), $\mathit{ab}$, $\mathit{ba}$ | $a$ times $b$ | The product of $a$ and $b$ |

Division | $a$ ÷ $b$, $a$/$b$ | $a$ divided by $b$ | The quotient of $a$ and $b$ |

### Checkpoint

*In algebra, the cross symbol $\left(x\right)$ is normally not used to show multiplication because that symbol could cause confusion. For example, does $3xy$ mean $3\times y$ (three times $y$) or $3\u2022x\u2022y$ (three times $x$ times $y$)? To make it clear, use $\u2022$ or parentheses for multiplication.*

We perform these operations on two numbers. When translating from symbolic form to words, or from words to symbolic form, pay attention to the words *of* or *and* to help you find the numbers.

- The
*sum*5**of**3 means add 5 plus 3, which we write as $5+3$.**and** - The
*difference*9**of**2 means subtract 9 minus 2, which we write as $9-2$.**and** - The
*product*4**of**8 means multiply 4 times 8, which we can write as $4\u20228$.**and** - The
*quotient*20**of**5 means divide 20 by 5, which we can write as $20\xf75$.**and**

### Example 5.1

#### Translating from Algebra to Words

Translate the following algebraic expressions from algebra into words.

- $12+14$
- $\left(30\right)(5)$
- $64\xf78$
- $x-y$

#### Solution

- According to Table 5.1, this could be translated as 12 plus 14 OR the sum of 12 and 14.
- According to Table 5.1, this could be translated as 30 times 5 OR the product of 30 and 5.
- According to Table 5.1, this could be translated as 64 divided by 8 OR the quotient of 64 and 8.
- According to Table 5.1, this could be translated as $x$ minus $y$ OR the difference of $x$ and $\mathrm{y.}$

### Your Turn 5.1

### Example 5.2

#### Translating from Words to Algebra

Translate the following phrases from words into algebraic expressions.

- The difference of 47 and 19
- 72 divided by 9
- The sum of $m$ and $n$
- 13 times 7

#### Solution

### Your Turn 5.2

What is the difference in English between a phrase and a sentence? A phrase expresses a single thought that is incomplete by itself, but a sentence makes a complete statement. “Running very fast” is a phrase, but “The football player was running very fast” is a sentence. A sentence has a subject and a verb. In algebra, we have expressions and equations. Example 5.1 and Example 5.2 used expressions. An expression is like an English phrase. Notice that the English phrases do not form a complete sentence because the phrase does not have a verb. The following table has examples of expressions, which are numbers, variables, or combinations of numbers and variables using operation symbols.

Expression | Words | English Phrase |
---|---|---|

$3+5$ | 3 plus 5 | The sum of three and five |

$n-1$ |
$n$ minus one | The difference of $n$ and one |

$6\u20227$ | 6 times 7 | The product of six and seven |

$x\xf7y$ | $x$ divided by $y$ | The quotient of $x$ and $y$ |

### Example 5.3

#### Translating from an English Phrase to an Expression

Translate the following phrases from words into algebraic expressions.

- Seven more than a number $n$.
- A number $n$ times itself.
- Six times a number $n$, plus two more.
- The cost of postage is a flat rate of 10 cents for every parcel, plus 34 cents per ounce $x$.

#### Solution

- $n+7$
- $n\u2022n$ or ${n}^{2}$
- $6n+2$
- $10+34x$

### Your Turn 5.3

An equation is two expressions linked with an equal sign (the symbol =). When two quantities have the same value, we say they are equal and connect them with an equal sign. When you read the words the symbols represent in an equation, you have a complete sentence in English. The equal sign gives the verb. So, $a=b$ is read “$a$ is equal to $b$.” The following table has some examples of equations.

Equation | English Sentence |
---|---|

$3+5=8$ | The sum of three and five is equal to eight. |

$n-1=14$ | $n$ minus one equals fourteen. |

$6\u20227=42$ | The product of six and seven is equal to forty-two. |

$x=53$ | $x$ is equal to fifty-three. |

$y+9=2y-3$ | $y$ plus nine is equal to two times $y$ minus three. |

### Example 5.4

#### Translating from an English Sentence to an Equation

Translate the following sentences from words into algebraic equations.

- Two times $x$ is 6.
- $n$ plus 2 is equal to $n$ times 3.
- The quotient of 35 and 7 is 5.
- Sixty-seven minus $x$ is 56.

#### Solution

- $2x=6$
- $n+2=3n$
- $35\xf77=5$
- $67-x=56$

### Your Turn 5.4

### Who Knew?

#### The Use of Variables

French philosopher and mathematician René Descartes (1596–1650) is usually given credit for the use of the letters $x$, $y$, and $z$ to represent unknown quantities in algebra. He introduced these ideas in his publication of *La Geometrie*, which was printed in 1637. In this publication, he also used the letters $a$, $b$, and $c$ to represent known quantities. There is a (possibly fictitious) story that, when the book was being printed for the first time, the printer began to run short of the last three letters of the alphabet. So the printer asked Descartes if it mattered which of $x$, $y$, or $z$ were used for the mathematical equations in the book. Descartes decided it made no difference to him; so the printer decided to use $x$ predominantly for the mathematics in the book, because the letters $y$ and $z$ would occur more often in the body of the text (written in French) than the letter $x$ would! This might explain why the letter $x$ is still used today as the most common variable to represent unknown quantities in algebra.

### Simplifying and Evaluating Algebraic Expressions

To simplify an expression means to do all the math possible. For example, to simplify $4\u20222+1$ we would first multiply $4\u20222$ to get 8 and then add 1 to get 9. We have introduced most of the symbols and notation used in algebra, but now we need to clarify the order of operations. Otherwise, expressions may have different meanings, and they may result in different values. Consider $2+7\u20223$. Do you add first or multiply first? Do you get different answers?

Add first: $9\u20223=27$ | Multiply first: $2+21=23$ | Which one is correct? |

Early on, mathematicians realized the need to establish some guidelines when performing arithmetic operations to ensure that everyone would get the same answer. Those guidelines are called the order of operations and are listed in the table below.

Step 1: Parentheses and Other Grouping Symbols |
Simplify all expressions inside the parentheses or other grouping symbols, working on the innermost parentheses first. |

Step 2: Exponents |
Simplify all expressions with exponents. |

Step 3: Multiplication and Division |
Perform all multiplication and division in order from left to right. These operations have equal priority. |

Step 4: Addition and Subtraction |
Perform all addition and subtraction in order from left to right. These operations have equal priority. |

### Checkpoint

*You may have heard about Please Excuse My Dear Aunt Sally or PEMDAS. Be careful to notice in Steps 3 and 4 in the table above that multiplication and division, as well as addition and subtraction, happen in order from LEFT to RIGHT. It is possible, for example, to have PEDMAS or PEMDSA. The PEMDAS trick can be misleading if not fully understood!*

### Example 5.5

#### Making a Numerical Equation True Using the Order of Operations

Use parentheses to make the following statements true.

- $17-10+3=10$
- $2\u202226-7=38$
- $8+12\xf75-3=14$
- $5+{2}^{3}\u20227=91$

#### Solution

- Add the parentheses around the $17-10$. Then you have $(17-10)+3=7+3=10$.
- Add the parentheses around the $26-7$. Then you have $2\u2022\left(26-7\right)=2\u202219=38$.
- Add the parentheses around the $5-3$. Then you have $8+12\xf7\left(5-3\right)=8+12\xf72=8+6=14$.
- Add the parentheses around the $5+{2}^{3}$. Then you have $\left(5+{2}^{3}\right)\u20227=\left(5+8\right)\u20227=13\u20227=91$.

### Your Turn 5.5

In the last example, we simplified expressions using the order of operations. Now we'll evaluate some expressions—again following the order of operations. To evaluate an expression means to find the value of the expression when the variable is replaced by a given number.

### Example 5.6

#### Evaluating and Simplifying an Expression

- Evaluate $3x+5$ when $x=2$.
- Evaluate ${x}^{2}+3x+1$ when $x=2$.

#### Solution

- To evaluate, let $x=2$ in the expression, and then simplify: $3\left(2\right)+5=6+5=11$.
- To evaluate, let $x=2$ in the expression, and then simplify: ${2}^{2}+3\left(2\right)+1=4+6+1=11$.

### Your Turn 5.6

### Operations of Algebraic Expressions

Algebraic expressions are made up of terms. A term is a constant or the product of a constant and one or more variables. Examples of terms are 7, $y$, 5${x}^{2}$, 9$a$, and ${b}^{5}$. The constant that multiplies the variable is called the coefficient. Think of the coefficient as the number in front of the variable. Consider the algebraic expressions 5${x}^{2}$, which has a coefficient of 5, and 9$a$, which has a coefficient of 9. If there is no number listed in front of the variable, then the coefficient is 1 since $x=1\u2022x$.

Some terms share common traits. When two terms are constants or have the same variable and exponent, we say they are **like terms**. If there are like terms in an expression, you can simplify the expression by combining the like terms. We add the coefficients and keep the same variable.

### Example 5.7

#### Adding Algebraic Expressions

Add $\left({x}^{2}+4x-9\right)+\left(3{x}^{2}-x+12\right)$.

#### Solution

**Step 1:** Add the terms in any order and get the same result (think: $2+3=3+2$ ) and drop the parentheses:

**Step 2:** Group like terms together:

**Step 3:** Combine the like terms:

### Your Turn 5.7

### Example 5.8

#### Subtracting Algebraic Expressions

Subtract $\left(5{x}^{2}+4x-9\right)-\left(3{x}^{2}-x+12\right)$.

#### Solution

**Step 1:** Distribute the negative inside the parentheses (think: $2-\left(3-4\right)=2-3+4=-1+4=3$, which is the correct answer). You cannot just drop the parentheses (for example, $2-3-4=-1-4=-5$, which is not correct as we have already verified the answer is 3):

**Step 2:** Group like terms together:

**Step 3:** Combine the like terms:

### Your Turn 5.8

Before looking at multiplying algebraic expressions we look at the Distributive Property, which says that to multiply a sum, first you multiply each term in the sum and then you add the products. For example, $5\left(4+3\right)=5\left(4\right)+5\left(3\right)=20+15=35$ can also be solved as $5\left(4+3\right)=5\left(7\right)=35$. If we use a variable, then $5\left(x+3\right)=5x+15$.

We can extended this example to $\left(5+2\right)\left(4+3\right)=\left(5\right)\left(4\right)+\left(5\right)\left(3\right)+\left(2\right)\left(4\right)+\left(2\right)\left(3\right)=20+15+8+6=49$, which can also be solved as $\left(5+2\right)\left(4+3\right)=\left(7\right)\left(7\right)=49$. If we use variables, then $\left(x+5\right)\left(x+4\right)=\left(x\right)\left(x\right)+\left(x\right)\left(4\right)+\left(5\right)\left(x\right)+\left(5\right)\left(4\right)={x}^{2}+4x+5x+20={x}^{2}+9x+20$.

### FORMULA

Distributive Property: $a\left(b+c\right)=ab+ac$

### Example 5.9

#### Simplifying an Expression Using the Order of Operations

Simplify each expression.

- $\left(x-3\right)5$
- $\left(-3\right)\left(x+y-2\right)$
- ${5}^{2}\left(7+3\right)\left(x\right)$
- $4+x\u20225$
- $\left(4+x\right)\u20225$

#### Solution

- $5x-3\u20225=5x-15$
- $\left(-3\right)\u2022x+\left(-3\right)\u2022y-\left(-3\right)\u20222=-3x-3y+6$
- $25\left(7+3\right)\left(x\right)=25\left(10\right)\left(x\right)=250x$
- $4+5x$
- $\left(4\right)\u2022\left(5\right)+\left(x\right)\u2022\left(5\right)=20+5x$

### Your Turn 5.9

### Example 5.10

#### Multiplying Algebraic Expressions

Multiply $\left(4x-9\right)\left(x+2\right)$.

#### Solution

**Step 1:** Use the Distributive Property:

**Step 2:** Multiply:

**Step 3:** Combine the like terms:

### Your Turn 5.10

### Checkpoint

*You may have heard the term FOIL which stands for: First, Outer, Inner, Last. FOIL essentially describes a way to use the Distributive Property if you multiply a two-term expression by another two-term expression, but FOIL only works in that specific situation. For example, suppose you have a two-term expression multiplied by a three-term expression, such as $\left(x+2\right)\left(x+y-5\right)$*. *What terms qualify as inner terms and what terms qualify as outer terms? In this particular situation, FOIL cannot possibly work; the multiplication of $\left(x+2\right)\left(x+y-5\right)$* *should yield six terms, where FOIL is designed to only give you four! The Distributive Property works regardless of how many terms there are. FOIL can be misleading and applied inappropriately if not fully understood!*

### Example 5.11

#### Dividing Algebraic Expressions

Divide $\left(8{x}^{2}+4x-16\right)\xf7\left(4x\right)$.

#### Solution

Divide EACH term by 4$x$:

### Your Turn 5.11

### Checkpoint

*Be careful how you divide! Sometimes students incorrectly divide only one term on top by the bottom term. For example,* $\frac{8{x}^{2}+6x-3}{2x}$ *might turn into $4x+3x-3=7x-3$ if done incorrectly. When we divide expressions, EACH term is divided by the divisor. So,* $\frac{8{x}^{2}+6x-3}{2x}=\frac{8{x}^{2}}{2x}+\frac{6x}{2x}-\frac{3}{2x}=4x+3-\frac{3}{2x}.$ *If you forget, it is always a good idea to check these rules by creating an example using numerical expressions. For example,* $\frac{9+6+3}{3}=\frac{18}{3}=6$. *Dividing each term on top by 3 would yield* $\frac{9+6+3}{3}=\frac{9}{3}+\frac{6}{3}+\frac{3}{3}=3+2+1=6$, *which is the correct answer. However, if you just divided the 9 on top by the 3 on the bottom, getting* $\frac{9+6+3}{3}=3+6+3=12$, *this does not result in the correct answer.*

### People in Mathematics

#### Al-Khwarizmi

Abu Ja’far Muhammad ibn Musa Al-Khwarizmi was born around 780 AD, probably in or around the region of Khwarizm, which is now part of modern-day Uzbekistan. For most of his adult life, he worked as a scholar at the House of Wisdom in Baghdad, Iraq. He wrote many mathematical works during his life, but is probably most famous for his book *Al-kitab al-muhtasar fi hisab al-jabr w’al’muqabalah*, which translates to *The Condensed Book on the Calculation of al-Jabr* (*completion*) *and al’muqabalah* (*balancing*). The word *al-jabr* would eventually become the word we use to describe the topic that he was writing about in this book: *algebra*. From another book of his, with the Latin title *Algoritmi de numero Indorum* (*Al-Khwarizmi on the Hindu Art of Reckoning* ), our word *algorithm* is derived. In addition to writing on mathematics, Al-Khwarizmi wrote works on astronomy, geography, the sundial, and the calendar.

In 2012, Andrew Hacker wrote an opinion piece in the *New York Times Magazine* suggesting that teaching algebra in high school was a waste of time. Keith Devlin, a British mathematician, was asked to comment on Hacker's article by his students in his Stanford University Continuing Studies course "Mathematics: Making the Invisible Visible" on iTunes University. Devlin concludes that Hacker was displaying his ignorance of what algebra is.