Section 1.1 Variables and Evaluating Expressions
Variables and expressions are the basic building blocks for writing algebra. In this section, we explore how to use them.
Subsection 1.1.1 Introduction to Variables
When we want to represent an unknown quantity or a quantity whose value can change, we use a variable. For example, if you’d like to write about automobile gas mileage, you could use the symbol “ ” as a variable to represent a car’s gas mileage. The gas mileage might be 25 mpg (miles per gallon) for one car, 30 mpg for some other car, or other values for other cars. It might be one thing for your car when it was new, and something else ten years later.
Since we are using a variable, we can discuss gas mileage for Honda Civics, Ford Explorers, and all other makes and models at the same time, even though these makes and models each have their own gas mileage.
When variables stand for physical quantities, it’s good to use letters that clearly represent those quantities. For example, it is wise to use for gas mileage. This helps people who read your mathematical writing understand it better. It is common to use and for variables when there is no context to suggest something more meaningful like You may see the variable a lot.
It is important to be clear about what unit of measure goes with a variable. With gas mileage if we all agree to use mpg for its units, then might be a placeholder for etc. On the other hand if we decide to use kpg (kilometers per gallon) for units, those quantities would be etc. So it’s important to tell readers that represents gas mileage in miles per gallon or kilometers per gallon or whatever the case may be.
Sometimes the units we should use for a variable are suggested indirectly. For example if we’re told that a car has used so many gallons of gas after traveling so many miles, then we should measure gas mileage in mpg, not kpg.
Checkpoint 1.1.2. Naming Variables.
Identify a variable you might use to represent each quantity. Then identify what units would be most appropriate.
(a)
Remi is studying college student demographics, including their ages. Let be the age of a student, measured in .
Explanation.
The unknown quantity is age, which we generally measure in years. So we could say “Let be the age of a student, measured in years.”
(b)
Luka needs to drive from Portland, OR to Boise, ID. Let be the amount of time passed since Luka left Portland, measured in .
Explanation.
The amount of time passed is the unknown quantity. Since this is a drive from Portland to Boise, it makes sense to measure this in hours, not minutes or weeks. So we could say “Let be the amount of time passed since Luka left Portland, measured in hours.”
(c)
There is a number that you will triple, then add five to, and then take the square root. Let be this number.
Explanation.
The number we are discussing doesn’t have any physical context, so we choose to use the generic variable to represent it.
Subsection 1.1.2 Algebraic Expressions
Any combination of variables and numbers using arithmetic operations (like addition, multiplication, etc.) is an algebraic expression. The following are examples of algebraic expressions:
Example 1.1.3.
The expression:
converts a temperature in degrees Fahrenheit to degrees Celsius. To do this, we need a Fahrenheit temperature, Then we can evaluate the expression. This means replacing its variable(s) with specific numbers and finding the result as a single, simplified number.
Warning 1.1.4. Vocabulary.
The steps in Example 3 are not “solving”, as far as algebra vocabulary is concerned. “Solving” is a word you might want to use because in everyday English you are “finding an answer”. However in algebra, there is a special meaning for the term “solving” that is discussed in Section 5. Here, when we substitute in values for variables and then compute the result, we are “evaluating an expression”, not solving anything.
Checkpoint 1.1.5. Convert Temperature.
Example 1.1.6. Stair Rise and Run.
When building a staircase, you want the rise and run to be consistent from one step to the next.
A convention among contractors is that a staircase run, in inches, is given by where is the rise in inches.
(a)
Determine the run for each step of a staircase where the rise is 7 in.
Explanation.
We substitute for
So the run is 10.5 in.
(b)
A staircase needs to span a total height of 108 in. What is a reasonable number of steps for it to have? What will that mean for the rise of each step? What will the run be for each step?
Explanation.
There is more than one good answer, but if there are steps then the height of each step will be inches, or 9 in. And that mean the run of each step is found by substituting for
So each step would have a run of 8.5 in.
Checkpoint 1.1.7. Stair Rise and Run.
The expression gives the run of a stairstep when the rise is inches. Determine the run for each step of a staircase where the rise is 7.75 in.
Explanation.
We substitute for
So the run is 9.75 in.
Checkpoint 1.1.8. Rising Rents.
In Oregon starting from the year 2000, the median rent among all rental living units has closely followed the expression where is the number of years since the year 2000.
(a)
According to this model, what was the median rent for a living unit in Oregon in 2010?
Explanation.
This model uses as the number of years since 2000. So for the year 2010, is
According to this model, the median monthly rent for a living unit in Oregon in 2010 was
(b)
According to this model, what was the median rent for a living unit in Oregon in 2020?
Explanation.
For the year 2020, is
According to this model, the median monthly rent for a living unit in Oregon in 2020 was
(c)
According to this model, what will be the median rent for a living unit in Oregon in 2030?
Explanation.
For the year 2030, is
According to this model, the median monthly rent for a living unit in Oregon in 2030 will be
Subsection 1.1.3 Evaluating Expressions with Exponents, Absolute Value, and Radicals
Algebraic expressions might have exponents, absolute value bars, and radicals. This does not change the basic approach to evaluating them.
Example 1.1.9. Tsunami Speed.
The speed of a tsunami (in meters per second) can be modeled by where is the depth of the tsunami (in meters). Determine the speed of a tsunami that has a depth of 30 m to four significant digits.
Explanation.
Using we find:
The speed of tsunami with a depth of 30 m is about 17.15 m⁄s.
We have been evaluating expressions, but we can evaluate formulas in the same way. A formula has an equal sign with an expression to the right. On the left of the equal sign, there is a variable that represents the result. For example, we could write the formula for the speed of a tsunami from Example 9.
Checkpoint 1.1.10. Tent Height.
The height inside a tent when you are feet from the west wall of the tent is given by the formula where is in feet.
(a)
When you are ft from the west side, the height is .
Explanation.
When we have:
So when you are ft from the west side, the height of the tent is ft.
(b)
When you are ft from the west side, the height is .
Explanation.
When we have:
So when you are ft from the west side, the height of the tent is ft.
Checkpoint 1.1.11. Mortgage Payments.
If we borrow dollars for a home mortgage loan at an annual interest rate and intend to pay off the loan after months, then the amount we should pay each month in dollars, is given by the formula
If we borrow at an interest rate of with the intent to pay off the loan in years, what should our monthly payment be? (Using a calculator is appropriate here.)
Explanation.
We must use The interest rate is a percentage, so we write (not ). The variable is supposed to be a number of months, but we will pay off the loan in years. Therefore we take
Our monthly payment should be
Warning 1.1.12. Rounding Too Much.
You might have noticed in the explanation to Checkpoint 11 that during the computations, many decimal places were recorded at each step. Tracking lots of decimal places might be important, depending on what you are working toward. If you round in the middle of your work, you have changed the numbers a little bit from what they really should be. As computation continues, this little error can become larger and larger, leaving you with a final result that is too far off from correct. So the best practice is to keep lots of decimal places in all your computations, and then at the very end you may round more if that is appropriate.
Subsection 1.1.4 Evaluating Expressions with Negative Numbers
When we substitute negative numbers into an expression, it’s important to use parentheses around them or else it’s easy to forget that a negative number is being raised to a power.
Example 1.1.13.
We substitute:
The original expression takes and squares it, so we want to do the same thing to the number But with the incorrect expression the number is not being squared. An exponent has higher priority than negation in the order of operations, so is the same as and the wrong number is being squared. With the number is being squared, which is what we want.
So it’s wise to always use parentheses when substituting in a negative number.
Checkpoint 1.1.14. Multivariable Expressions.
Reading Questions 1.1.5 Reading Questions
1.
2.
What is the difference between an “algebraic expression” and a “formula”, as these things were described in this section? (Other math resources may define these terms differently.)
3.
What should you watch out for when substituting in a negative number for a variable?
Exercises 1.1.6 Exercises
Skills Practice
Naming Variables.
Identify a variable you might use to represent each quantity. Then identify what units would be most appropriate.
Evaluating Expressions.
Evaluate the expression for the given value of the variable.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
Applications
Celsius to Kelvin.
To convert a temperature in degrees Celsius to degrees Kelvin, there is a formula
Age of the United States.
Portland to Boise.
If you travel the road from Portland, OR to Boise, ID, and you have traveled miles so far, you have miles left to go.
Hours and Seconds.
There is a formula to convert a number of hours into so many seconds:
Celsius to Fahrenheit.
To convert a temperature in degrees Celsius to degrees Kelvin, there is a formula
Target Heart Rate.
If we want to represent a person’s target heart rate during exercise, we’d use the formula where is the person’s age in years and is their target heart rate in beats per minute (bpm).
Wealth Distribution.
Since the year 2010, the percent of wealth in the United States that is held by the wealthiest 1% has followed the formula where is the year.
Throw a Baseball.
On Earth, if you throw a baseball straight up at speed (in feet per second), the height of the ball seconds later is given by
High Point.
On Earth, if you throw a baseball straight up at speed (in feet per second), the highest that it reaches is feet above the ground.
The Baseball Lands.
On Earth, if you throw a baseball straight up at speed (in feet per second), it will land after seconds.
Cesarean Delivery.
The percentage of births in the U.S. delivered via cesarean section in a year can be given by the formula where is the number of years since 2010.
Diagonal of a Rectangle.
Tent Height.
The height inside a tent when you are feet from the west side of the tent is given by the formula where is in feet.
83.
84.
85.
If a population of fish is introduced into a large, predator-free lake with ample food, then one year later the population will have grown by percent. Find an expression for the population one year later.
86.
If a pool with gallons of water is left uncovered outside for one month with no rain, it will lose percent of its volume to evaporation. Find an expression for the number of gallons after one month.
87.
Suppose family members live in a home, and some cousins, a family of five, comes to stay for a week. Give an expression for how many people live in that house during that week.
88.
Back home in your refrigerator are some eggs. There are eggs, but you cannot recall how many. While shopping, you purchase a dozen eggs. Write an expression for how many eggs you have when you get home.
89.
The rental fee for a beach house is a flat plus per night. Write an expression for the cost to rent the beach house for nights.
90.
An elementary school classroom needs a minimum of square feet for the teacher plus a minimum of square feet per student. Write an expression for the minimum square footage of a classroom with students.
You have attempted 1 of 101 activities on this page.