Math Core

Lesson 4.1 · Expressions

Variables and expressions

A number like 1717 describes one situation. An expression like 5n+25n + 2 describes a whole family of situations at once: every value of nn gives a different result. Expressions are the language of algebra, so this lesson makes sure you can read them, write them and find their values.

Variables, terms and coefficients

Definition

Variable

A variable is a letter that stands for a number that can change or that you don't know yet. An algebraic expression combines numbers, variables and operations, like 4x−74x - 7 or a2+3aba^2 + 3ab. An expression has no equals sign.

A number written right next to a variable means multiplication: 6y6y means 6⋅y6 \cdot y, and abab means a⋅ba \cdot b. Algebra uses a dot or no symbol at all, because ×\times is easy to confuse with the letter xx.

The parts of an expression that are added or subtracted are its terms. Look at

3m2−m+10.3m^2 - m + 10.
  • The terms are 3m23m^2, −m-m and 1010. Each term keeps the sign in front of it.
  • A coefficient is the number multiplying the variable part. The coefficient of m2m^2 is 33. The coefficient of mm is −1-1, because −m-m means −1⋅m-1 \cdot m.
  • A term with no variable, like 1010, is a constant term.

Writing expressions from words

Most word phrases turn into symbols in the order you read them. "The product of 88 and ww" is 8w8w. "The sum of tt and 55, divided by 22" is t+52\dfrac{t + 5}{2}.

operationwords that signal it
++sum, plus, more than, increased by, added to
−-difference, minus, less than, decreased by, subtracted from
⋅\cdotproduct, times, twice, triple, of
÷\divquotient, divided by, per, half of

Two phrases flip the order: "less than" and "subtracted from." "Nine less than pp" starts with pp and takes 99 away, so it is p−9p - 9.

Common mistake

Don't write "33 less than xx" as 3−x3 - x. Test it with a number: if x=10x = 10, three less than 1010 is 77. That's 10−310 - 3, so the expression is x−3x - 3.

When a phrase says to find a sum or difference first and then do something to it, use parentheses. "Twice the sum of kk and 44" is 2(k+4)2(k + 4). Without the parentheses, 2k+42k + 4 means "four more than twice kk," which is different.

Worked example: Translating phrases

Write an expression for each phrase.

  1. Ten more than the quotient of rr and 33.
  2. Four times the difference of nn and 66.
  3. Seven subtracted from the square of yy.

Solutions.

  1. The quotient of rr and 33 is r3\dfrac{r}{3}. Ten more than that is r3+10\dfrac{r}{3} + 10.
  2. The difference must come first: 4(n−6)4(n - 6).
  3. "Subtracted from" flips the order. Start with y2y^2 and take away 77: y2−7y^2 - 7.

Evaluating expressions

To evaluate an expression, substitute a value for each variable and simplify with the order of operations. Now that you know integer rules, the values can be negative.

Substitute with parentheses

When you replace a variable with a number, put the number in parentheses. Then follow the order of operations: grouping, exponents, multiplication and division, addition and subtraction.

Parentheses protect the sign. If x=−5x = -5, then x2=(−5)2=25x^2 = (-5)^2 = 25. But −x2-x^2 means "the opposite of x2x^2," so −x2=−(−5)2=−25-x^2 = -(-5)^2 = -25.

Worked example: Two variables with integers

Evaluate 3a−2b3a - 2b when a=−4a = -4 and b=−7b = -7.

3a−2b=3(−4)−2(−7)substitute=−12−(−14)multiply=−12+14subtracting a negative is adding=2\begin{aligned} 3a - 2b &= 3(-4) - 2(-7) && \text{substitute} \\ &= -12 - (-14) && \text{multiply} \\ &= -12 + 14 && \text{subtracting a negative is adding} \\ &= 2 \end{aligned}

Worked example: Exponents and a fraction bar

Evaluate x2+1x−3\dfrac{x^2 + 1}{x - 3} when x=−2x = -2.

The fraction bar groups the top and bottom, so simplify each one first.

  • Top: (−2)2+1=4+1=5(-2)^2 + 1 = 4 + 1 = 5.
  • Bottom: −2−3=−5-2 - 3 = -5.

So the value is 5−5=−1\dfrac{5}{-5} = -1.

Expressions that model situations

An expression can describe a real rule. A bike rental shop charges a $6 helmet fee plus $4 per hour. For hh hours, the hourly part costs 4h4h dollars, so the total is 4h+64h + 6 dollars. For a 33-hour ride, substitute h=3h = 3: 4(3)+6=184(3) + 6 = 18, so the ride costs $18.

Tip

When you build an expression from a situation, try it with a small number you can check in your head. If h=1h = 1, the rental should cost $4 plus $6, which is $10, and 4(1)+6=104(1) + 6 = 10.

Practice

Practice 1

How many terms does the expression 4a2+9−3a+b4a^2 + 9 - 3a + b have?

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

Practice 2

What is the constant term of 3m−8+m23m - 8 + m^2?

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

Practice 3

Which expression means "twelve less than twice a number kk"?

Practice 4

Write an expression for "half of the difference of pp and 1010."

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

Practice 5

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

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

Practice 6

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

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

Practice 7

Evaluate 3m−nm+n\dfrac{3m - n}{m + n} when m=4m = 4 and n=−2n = -2.

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

Practice 8

A phone plan costs $25 per month plus $0.10 for each text message. Write an expression for the monthly cost with tt texts, then find the cost in dollars for a month with 150150 texts.

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