Math Core

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 77 or −2.5-2.5.

Any letter can be a variable. Choosing a letter that reminds you of the quantity helps: tt for time, cc for cost, nn for "number of."

When a number and a variable are written side by side, they are multiplied. So 4n4n means 4×n4 \times n, and xyxy means x×yx \times y. You will also see a raised dot, 4⋅n4 \cdot n, or parentheses, 4(n)4(n). Algebra avoids the ×\times symbol because it looks too much like the letter xx.

Parts of an expression

An algebraic expression is a combination of numbers, variables and operations, such as

5x2−3y+8.5x^2 - 3y + 8.

The pieces of an expression that are added or subtracted are called terms. This expression has three terms: 5x25x^2, −3y-3y and 88.

wordmeaningin 5x2−3y+85x^2 - 3y + 8
terma piece separated by ++ or −-5x25x^2, −3y-3y, 88
coefficientthe number multiplying a variable55 and −3-3
constant terma term with no variable88

Notice that the minus sign belongs to the term after it. The coefficient of yy is −3-3, not 33. And when no number is written in front of a variable, the coefficient is 11: in x+4x + 4, the coefficient of xx is 11. In −x-x, it is −1-1.

Common mistake

An expression is not an equation. An expression like 2x+12x + 1 has no equals sign; you can simplify it or evaluate it, but you can't "solve" it. An equation like 2x+1=92x + 1 = 9 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.

operationphrases
additionsum, plus, more than, increased by, total
subtractiondifference, minus, less than, decreased by, fewer than
multiplicationproduct, times, of, twice (times 2), triple (times 3)
divisionquotient, divided by, per, ratio, half of (divided by 2)

Most phrases translate in the order you read them: "the product of 66 and nn" is 6n6n. But "less than" and "subtracted from" reverse the order. "Four less than nn" means start with nn and take away 44, so it is n−4n - 4, not 4−n4 - n.

Tip

Test a translation with a real number. If n=10n = 10, "four less than nn" should be 66. Since 10−4=610 - 4 = 6 and 4−10=−64 - 10 = -6, the expression n−4n - 4 is the right one.

Worked example: Translating phrases

Write an expression for each phrase.

  1. Seven more than twice a number xx.
  2. The quotient of a number mm and 55, decreased by 33.
  3. Three times the sum of yy and 22.

Solutions.

  1. "Twice a number" is 2x2x, and "seven more than" adds 77: 2x+72x + 7.
  2. "The quotient of mm and 55" is m5\dfrac{m}{5}. Decreasing by 33 gives m5−3\dfrac{m}{5} - 3.
  3. "The sum of yy and 22" must be computed first, so it needs parentheses: 3(y+2)3(y + 2). Without them, 3y+23y + 2 would mean "two more than three times yy," 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

  1. Rewrite the expression, putting each value in parentheses where its variable was.
  2. Simplify using the order of operations.

The parentheses matter most when a value is negative. If x=−3x = -3, then x2x^2 becomes (−3)2=9(-3)^2 = 9. Writing −32-3^2 instead would give −9-9, which is wrong.

Worked example: Evaluating with two variables

Evaluate 4a−2b4a - 2b when a=6a = 6 and b=5b = 5.

4a−2b=4(6)−2(5)substitute=24−10multiply=14subtract\begin{aligned} 4a - 2b &= 4(6) - 2(5) && \text{substitute} \\ &= 24 - 10 && \text{multiply} \\ &= 14 && \text{subtract} \end{aligned}

Worked example: Evaluating with a negative value

Evaluate x2−5x+1x^2 - 5x + 1 when x=−2x = -2.

x2−5x+1=(−2)2−5(−2)+1substitute=4−5(−2)+1exponent=4+10+1multiply: −5⋅(−2)=10=15add\begin{aligned} x^2 - 5x + 1 &= (-2)^2 - 5(-2) + 1 && \text{substitute} \\ &= 4 - 5(-2) + 1 && \text{exponent} \\ &= 4 + 10 + 1 && \text{multiply: } -5 \cdot (-2) = 10 \\ &= 15 && \text{add} \end{aligned}

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 mm months, then find the cost of one year.

Each month adds $9, so mm months cost 9m9m dollars. Adding the one-time fee gives 9m+49m + 4.

One year is 1212 months: 9(12)+4=108+4=1129(12) + 4 = 108 + 4 = 112. A year costs $112.

Practice

Practice 1

How many terms does the expression 6x2−x+116x^2 - x + 11 have?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

What is the coefficient of xx in 6x2−x+116x^2 - x + 11?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Which expression means "five less than a number nn"?

Practice 4

Write an expression for "three times the sum of a number nn and 88."

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 5

Evaluate 5p+2q5p + 2q when p=3p = 3 and q=8q = 8.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Evaluate 2x2−3x+12x^2 - 3x + 1 when x=−3x = -3.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Evaluate a+ba−b\dfrac{a + b}{a - b} when a=10a = 10 and b=6b = 6.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

A gym charges a $15 joining fee plus $8 per visit. Write an expression for the cost of vv visits, then find the total cost of 44 visits in dollars.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.