<meta http-equiv="refresh" content="1; url=/nojavascript/"> Variables and Expressions | CK-12 Foundation

# 1.5: Variables and Expressions

Created by: CK-12
0  0  0

## Introduction

The Ticket Revenue Dilemma

Like many of his friends, Joshua has a summer job at the city zoo. Joshua loves people and so he is working at the ticket counter. His job is to count the people entering the zoo each day. He does this twice. He counts them in the morning and in the afternoon. Sometimes he has more people come in the morning and sometimes the counts are higher in the afternoon.

Joshua loves his job. He loves figuring out how much money the zoo has made from the ticket sales. Joshua has a thing for mental math. While many of his friends think it is too difficult, Joshua enjoys figuring it out in his head.

To enter the zoo for the day, it costs an adult $\7.00$ and a child $\5.00$.

Joshua has written the following expression to help him to figure out the amount of money that the zoo makes in half a day. He divides his arithmetic up between the morning and the afternoon.

$7x+5y$

Here are his counts for Monday.

AM - 65 adults and 75 children

PM - 35 adults and 50 children

Here are his counts for Tuesday.

AM - 70 adults and 85 children

PM - 50 adults and 35 children

Given these counts, how much revenue (money) was collected at the zoo for the entire day on Monday?

How much money was collected at the zoo for the entire day on Tuesday?

How much money was collected in the two days combined?

Joshua can figure this out using his expression.

Can you? In this lesson, you will learn how to use a variable expression to solve a real-world problem.

Pay close attention. You will need these skills to figure out the zoo revenue for Monday and Tuesday.

What You Will Learn

In this lesson, you will learn to use the following skills:

• Evaluating single variable expressions with given values for the variable
• Evaluating multi-variable expressions with given values for the variable
• Using given expressions to analyze and solve real-world problems

Teaching Time

I. Evaluating Single Variable Expressions with Given Values for the Variable

In this lesson we begin with a new concept that we haven’t talked about before. It is the concept of a variable.

What is a variable?

A variable is a letter that is used to represent an unknown quantity.

Often we use $x$ or $y$ to represent the unknown quantity, but any letter can be used as a variable.

Here are some examples of variables.

$a$

$b$

$c$

Notice that the variables here are all lowercase letters. This is often the case with variables.

A variable can be used in any sort of mathematical expression.

A variable expression is an expression with one or more operations that has variables but no equals sign.

This means that we can have expressions and variable expressions.

When we have a variable expression, we have an expression with one or more operations and variables too.

To understand variable expressions a little better, let’s think about some ways that we can show addition, subtraction, multiplication and division in mathematics.

Addition can be shown by using a $+$ sign.

Subtraction can be shown using a subtraction or minus sign $-$ .

Multiplication can be shown a couple of different ways.

• We can use a times symbol as in $5 \times 6 = 30.$
• We can use two sets of parentheses. $(5)(6) = 30$
• We can use a variable next to a number. $6x$ means 6 times the unknown $x$.
• We can use one number next to parentheses. $4(3) = 12$

Division can be shown in a couple of different ways.

• We can use the division sign. $\div$
• We can use the fraction bar. $\frac{6}{2}$ means $6 \div 2$

Now that you are in sixth grade, you will begin to see operations shown in different ways.

Let’s go back to variable expressions.

It is actually easy to evaluate different variable expressions when we have a given value for the variable.

Here is an example.

Example

Evaluate $5+a$, when $a = 18$.

Here we are going to substitute our given value for the variable. In this case, we substitute 18 in for $a$ and then add.

$& 5 + 18\\& 23$

We can evaluate any variable expression as long as we have been given a value for the variable.

Example

Evaluate $b-22$ when $b$ is 40.

Next, we complete the subtraction by substituting our given value 40 into the expression for $b$.

$& 40 - 22 \\& 18$

Example

Evaluate $7x$ when $x$ is 12.

This is a multiplication problem. We substitute our given value in for $x$ and then multiply.

$& 7(12)\\& 84$

Example

Evaluate $\frac{14}{x}$ when $x$ is 2.

Here we have a fraction bar which tells us that this is a division problem. We substitute the given value in for $x$ and divide.

$\frac{14}{2} = 7$

Here we have looked at several different examples that all had one variable and one operation.

Now it is time for you to try a few on your own. Evaluate each expression using the given value.

1. Evaluate $17+y$ when $y$ is 12.
2. Evaluate $5c$ when $c$ is 9.
3. Evaluate $8 \div x$ when $x$ is 4.

Take a minute and check your work with a peer.

II. Evaluating Multi-Variable Expressions with Given Values

In the last section, we evaluated expressions that had one variable and one operation.

In this section, we are going to be working with expressions that have multiple variables and multiple operations.

Let’s look at an example to see what this looks like.

Example

Evaluate $6a+b$ when $a$ is 4 and $b$ is 6. First, of all, you can see that there are two variables in this expression. There are also two operations here. The first one is multiplication: $6a$ lets us know that we are going to multiply 6 times the value of $a$. The second one is addition: the $+ \ b$ lets us know that we are going to add the value of $b$. We have also been given the values of $a$ and $b$. We substitute the given values for each variable into the expression and evaluate it.

$& 6(4)+5\\ & 24+5\\& 29$

Notice that we used the order of operations when working through this problem.

Order of Operations

P - parentheses

E - exponents

MD - multiplication and division in order from left to right

AS - addition and subtraction in order from left to right

Whenever we are evaluating expressions with more than one operation in them, always refer back and use the order of operations.

Let’s look at another example with multiple variables and expressions.

Example

Evaluate $7b-d$ when $b$ is 7 and $d$ is 11.

First, we substitute the given values in for the variables.

$& 7(7) - 11\\& 49 - 11\\& 38$

What about when we have an example that is all variables?

Example

Evaluate $ab + cd$ when $a$ is 4, $b$ is 3, $c$ is 10 and $d$ is 6.

We work on this one in the same way as the other examples.

Begin by substituting the given values in for the variables.

$(4)(3) + (10)(6)$

We have two multiplication problems here and one addition.

Next, we follow the order of operations to evaluate the expression.

$& 12 + 60\\& 72$

Now it is time for you to try a few on your own.

1. Evaluate $12x - y$ when $x$ is 4 and $y$ is 9.
2. Evaluate $\frac{12}{a} + 4$ when $a$ is 3.
3. Evaluate $5x + 3y$ when $x$ is 4 and $y$ is 8.

III. Using Given Expressions to Analyze and Solve Real-World Problems

Our dilemma at the beginning of this lesson is an excellent way to see how given expressions can be used to analyze real-world problems.

Before we complete the problem of the zoo revenue, let’s look at one other problem.

Our example works with money because our original problem works with money too.

Example

Joanne has a pile of nickels and a pile of dimes. She counts her money and figures out that she has 25 nickels and 36 dimes. Given these counts, how much money does Joanne have in all?

The first thing that we need to do is to underline all of the important information in the problem.

Joanne has a pile of nickels and a pile of dimes. She counts her money and figures out that she has 25 nickels and 36 dimes. Given these counts, how much money does Joanne have in all?

Next, we need to write an expression with a variable.

$.05x +.10y$

A nickel is 5 cents. We can use decimal .05 to show that amount in dollars.

A dime is 10 cents. We can use decimal .10 to show that amount in dollars.

The $x$ represents the number of nickels.

The $y$ represents the number of dimes.

We have been given the number of dimes and nickels that Joanne has.

We can substitute those values into our expression for $x$ and $y$.

Example

$.05(25) + .10(36)$

Next, we evaluate the expression.

$1.25 + 3.60 = \4.50$

Joanne has $\4.50$ total. You can see why we changed the way we wrote the value of coins from cents to dollars now, because our answer is in dollars.

Now let’s go and complete our dilemma from the beginning of the lesson.

## Real Life Example Completed

The Ticket Revenue Dilemma

Let’s use what we have learned about variable expressions and given values to solve the revenue question from the beginning of the lesson.

Here is the problem once again:

Like many of his friends, Joshua has a summer job at the city zoo. Joshua loves people and so he is working at the ticket counter. His job is to count the people entering the zoo each day. He does this twice. He counts them in the morning and in the afternoon. Sometimes he has more people come in the morning and sometimes the counts are higher in the afternoon.

Joshua loves his job. He loves figuring out how much money the zoo has made from the ticket sales. Joshua has a thing for mental math. While many of his friends think it is too difficult, Joshua enjoys figuring it out in his head.

To enter the zoo for the day, it costs an adult $\7.00$ and a child $\5.00$.

Joshua has written the following expression to help him to figure out the amount of money that the zoo makes in half a day. He divides his arithmetic up between the morning and the afternoon.

$\underline{7x+5y}$

Here are his counts for Monday.

AM - 65 adults and 75 children

PM - 35 adults and 50 children

Here are his counts for Tuesday.

AM - 70 adults and 85 children

PM - 50 adults and 35 children

Begin by underlining all of the important information in the problem, done here already.

Our expression remains the same.

We can use $7x+5y$.

For Monday morning, the zoo had 65 adults and 75 children visit. Those are the given values that we can substitute into our expression for $x$ and $y$.

$& 7(65)+5(75)\\& 455+375\\& \830.00$ For Monday afternoon, the zoo had 35 adults and 50 children visit. Those are the given values that we can substitute into our expression for $x$ and $y$.

$& 7(35)+5(50) \\& 245+250\\& \495.00$

The total amount of money made on Monday is $830 + 495 = \1325.$

Next, we can figure out Tuesday.

For Tuesday morning, the zoo had 70 adults and 85 children visit. Those are the given values for $x$ and $y$.

$& 7(70)+5(85)\\& 490+425\\& \915.00$

For Tuesday afternoon, the zoo had 50 adults and 35 children visit. Those are the given values for $x$ and $y$.

$& 7(50)+5(35)\\& 350+175\\& \525$

The total amount of money made on Tuesday is $915 + 525 = \1440$.

If we wanted to figure out the total amount of revenue for both days combined, we simply add the two totals together.

$\1325 + \1440 = \2765.00$

## Vocabulary

Here are the vocabulary words that have been used in this lesson.

Evaluate
to simplify an expression that does not have an equals sign.
Variable
a letter, usually lowercase, that is used to represent an unknown quantity.
Expression
a number sentence that uses operations but does not have an equals sign
Variable Expression
a number sentence that has variables or unknown quantities in it with one or more operations and no equals sign.
Revenue
means money

## Technology Integration

Here's a preview of evaluating expressions from a high-school algebra course.

This is a video with a jingle to help you remember variables and expressions. Very entertaining!

1. http://www.harcourtschool.com/jingles/jingles_all/35mystery_number.html - This is a video with a jingle to help you remember variables and expressions. Very entertaining!

## Time to Practice

Directions: Evaluate each of the variable expressions when $a = 4, \ b = 5, \ c = 6$

1. $5 + a$

2. $6 + b$

3. $7 + c$

4. $8 - a$

5. $9c$

6. $10a$

7. $7c$

8. $9a$

9. $4b$

10. $\frac{16}{a}$

11. $\frac{42}{c}$

12. $\frac{c}{2}$

13. $15a$

14. $9b$

15. $\frac{15}{b}$

Directions: Evaluate each multi-variable expression when $x = 2$ and $y = 3$.

16. $2x + y$

17. $9x - y$

18. $x + y$

19. $xy$

20. $xy + 3$

21. $9y - 5$

22. $10x - 2y$

23. $3x + 6y$

24. $2x + 2y$

25. $7x - 3y$

26. $3y - 2$

27. $10x - 8$

28. $12x - 3y$

29. $9x + 7y$

30. $11x - 7y$

Feb 22, 2012

Aug 19, 2014