Lesson 1.1 · Foundations of Algebra
Variables and expressions
Arithmetic works with specific numbers. Algebra lets you write one rule that works for every number at once, like "the cost is $3 per ticket plus a $2 fee" for any number of tickets. The tool that makes this possible is the variable.
Variables and constants
Definition
Variable
A variable is a letter or symbol that stands for a number that can change or that you don't know yet. A constant is a number whose value never changes, like or .
Any letter can be a variable. Choosing a letter that reminds you of the quantity helps: for time, for cost, for "number of."
When a number and a variable are written side by side, they are multiplied. So means , and means . You will also see a raised dot, , or parentheses, . Algebra avoids the symbol because it looks too much like the letter .
Parts of an expression
An algebraic expression is a combination of numbers, variables and operations, such as
The pieces of an expression that are added or subtracted are called terms. This expression has three terms: , and .
| word | meaning | in |
|---|---|---|
| term | a piece separated by or | , , |
| coefficient | the number multiplying a variable | and |
| constant term | a term with no variable |
Notice that the minus sign belongs to the term after it. The coefficient of is , not . And when no number is written in front of a variable, the coefficient is : in , the coefficient of is . In , it is .
Common mistake
An expression is not an equation. An expression like has no equals sign; you can simplify it or evaluate it, but you can't "solve" it. An equation like states that two expressions are equal, and that is what you solve (in the next unit).
Translating words into expressions
Word problems use many phrases for the four operations. Here are the most common.
| operation | phrases |
|---|---|
| addition | sum, plus, more than, increased by, total |
| subtraction | difference, minus, less than, decreased by, fewer than |
| multiplication | product, times, of, twice (times 2), triple (times 3) |
| division | quotient, divided by, per, ratio, half of (divided by 2) |
Most phrases translate in the order you read them: "the product of and " is . But "less than" and "subtracted from" reverse the order. "Four less than " means start with and take away , so it is , not .
Tip
Test a translation with a real number. If , "four less than " should be . Since and , the expression is the right one.
Worked example: Translating phrases
Write an expression for each phrase.
- Seven more than twice a number .
- The quotient of a number and , decreased by .
- Three times the sum of and .
Solutions.
- "Twice a number" is , and "seven more than" adds : .
- "The quotient of and " is . Decreasing by gives .
- "The sum of and " must be computed first, so it needs parentheses: . Without them, would mean "two more than three times ," a different quantity.
Evaluating expressions
To evaluate an expression, replace each variable with its given value and then simplify using the order of operations. This is called substitution.
How to evaluate an expression
- Rewrite the expression, putting each value in parentheses where its variable was.
- Simplify using the order of operations.
The parentheses matter most when a value is negative. If , then becomes . Writing instead would give , which is wrong.
Worked example: Evaluating with two variables
Evaluate when and .
Worked example: Evaluating with a negative value
Evaluate when .
Worked example: An expression that models a situation
A streaming service charges a $4 sign-up fee plus $9 per month. Write an expression for the total cost of months, then find the cost of one year.
Each month adds $9, so months cost dollars. Adding the one-time fee gives .
One year is months: . A year costs $112.
Practice
How many terms does the expression have?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
What is the coefficient of in ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which expression means "five less than a number "?
Write an expression for "three times the sum of a number and ."
Enter an expression, e.g. 3x^2 - 2x + 1
Evaluate when and .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Evaluate when .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Evaluate when and .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A gym charges a $15 joining fee plus $8 per visit. Write an expression for the cost of visits, then find the total cost of visits in dollars.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.