School is about to start back up again and Lucy is at the store buying supplies. In her basket she has 5 notebooks for $2 each, 2 packs of pencils for $4 each, and 2 packs of pens for $5 each. She also picked out a big binder for $12. Luckily, she has a coupon for $3 off the binder. How can Lucy write and evaluate a numerical expression to calculate the total amount she will spend on her school supplies?

In this concept, you will learn how to evaluate variable expressions involving the four basic operations.

### Evaluating Expressions with Basic Operations

An **expression** is a mathematical phrase that contains numbers and operations. A **numerical expression** is an expression with only numbers and operations and no variables. A **variable expression** is an expression that contains variables.

To **evaluate** a variable expression means to find the value of the expression for given values of the variables. To evaluate, substitute the given values for the variables in the expression and simplify using the order of operations (PEMDAS).

Remember that the order of operations are:

**P**arentheses: Start by simplifying any part of the expression in parentheses using the order of operations.**E**xponents: Rewrite any terms that contain exponents without exponents.**M**ultiplication/**D**ivision: Do any multiplication and/or division in order from left to right.**A**ddition/**S**ubtraction: Do any addition and/or subtraction in order from left to right.

The acronym **PEMDAS** can help you to remember the order of operations. Just remember that multiplication and division go together and addition and subtraction go together.

Here is an example.

Evaluate the expression

if .First, substitute 6 in for the

in the expression.

Next, notice that this expression has multiplication, addition, division, and subtraction. Remember that

Next, divide

.

Now, add and subtract from left to right. First, add

.

Finally, subtract.

The answer is 19.

### Examples

#### Example 1

Earlier, you were given a problem about Lucy, who is shopping for school supplies.

She has 5 notebooks for $2 each, 2 packs of pencils for $4 each, 2 packs of pens for $5 each, and a big binder for $12. She also has a coupon for $3 off the binder. Lucy wants to know how much she will be spending on supplies.

First, write an expression for each item that represents how much she is spending on that item.

- Notebooks:
- Pencils:
2×$4 - Pens:
- Binder:
$12−$3

Now, add everything together to create one expression that represents the total amount she is spending.

Next, notice that this expression has multiplication, addition, and subtraction. Start by doing the multiplication from left to right. First you will multiply

. Then continue multiplying from left to right.Next, add and subtract from left to right.

The answer is that Lucy is spending $37 on school supplies.

#### Example 2

Evaluate

if is 4.First, substitute 4 in for the

in the expression.

Next, notice that this expression has multiplication, addition, division, and subtraction. Start by doing the multiplication and division from left to right. First you will multiply

.

Next, divide

Now, add and subtract from left to right. First, add

.

Then, subtract

.

Finally, add.

The answer is 38.

#### Example 3

Evaluate

First, substitute 5 in for the

Next, notice that this expression has multiplication, addition, and division. Start by doing the multiplication and division from left to right. First you will multiply

. Then divide.

Next, add from left to right.

The answer is 37.

#### Example 4

Evaluate

First, substitute 4 in for the

in the expression.Next, notice that this expression has multiplication, addition, division, and subtraction. Start by doing the multiplication and division from left to right. First you will multiply

Next, add and subtract from left to right. First you will add

The answer is 27.

#### Example 5

Evaluate

if is 6 and is 9.First, substitute 6 in for the \begin{align*}y\end{align*} in the expression.

and 9 in for the

Next, notice that this expression has division, addition, multiplication, and subtraction. Remember that a fraction bar means division so

is the same as .Start by doing the multiplication and division from left to right. First you will divide

. Then multiply.

Next, add and subtract from left to right. First you will add

. Then subtract.

The answer is 46.

### Review

Use the order of operations to evaluate each numerical expression.

- \begin{align*}5+3\times4\end{align*}
- \begin{align*}6\times2+5\times3\end{align*}
- \begin{align*}4+5\times2-9\end{align*}
- \begin{align*}4+6\div2+10-3\end{align*}
- \begin{align*}8-15\div3+4\times5\end{align*}

Evaluate the following expressions when

is 4.- \begin{align*}2x+28\div4-3\end{align*}
- \begin{align*}6x+30\div2-10\end{align*}
- \begin{align*}5x+x-3+8\end{align*}
- \begin{align*}3x+36\div9-3+1\end{align*}
- \begin{align*}5x+9-3+8\end{align*}
- \begin{align*}4x+30\div15-3+8\end{align*}
- \begin{align*}8x+2x-3+18\end{align*}
- \begin{align*}2x+x\div2-3+8\end{align*}