Skip to content
๐ŸŽฏโญ INTERACTIVE LESSON

Variables and Expressions

Learn step-by-step with interactive practice!

Variables and Expressions - Complete Interactive Lesson

Part 1: The Anatomy of an Expression

๐Ÿ”ค Variables and Expressions

Part 1 of 5 โ€” The Anatomy of an Expression


Topics in This Part

Section
What a variable is (and why letters help)
Terms, coefficients, and constants
Expressions vs. equations

๐Ÿ”‘ Key Concept: A variable is a letter โ€” like xx, nn, or tt โ€” that holds a number's place. It may be a value we don't know yet, or one that's allowed to change. Algebra is just arithmetic with some of the numbers wearing letter-shaped masks.

A Variable Is a Stand-In for a Number

Imagine every movie ticket costs the same, but the price isn't posted. Call that price pp. Now we can talk about it before we ever learn its value:

  • 2p2p โ€” the cost of 2 tickets
  • 5p5p โ€” the cost of 5 tickets
  • p+3p + 3 โ€” "three dollars more than one ticket"

Variable vs. Constant

WordMeaningExamples
Variablea letter whose value can change or is unknownx,โ€…โ€Šn,โ€…โ€Štx,\; n,\; t
Constanta fixed number that never changes7,โ€…โ€Šโˆ’4,โ€…โ€Š127,\; -4,\; \dfrac{1}{2}

๐Ÿ’ก Why use letters at all? A variable lets us write one rule that works for every number at once. The formula 2p2p gives the price of two tickets whether a ticket costs $8, $12, or $15 โ€” we never have to rewrite it.

Concept Check ๐ŸŽฏ

The Parts of an Expression

An expression combines numbers, variables, and operations โ€” like 4x+74x + 7. It has no equals sign (an equals sign would make it an equation).

Every piece separated by a ++ or โˆ’- is a term. Inside a term:

  • the number multiplying the variable is the coefficient;
  • a term that is only a number (no variable) is a constant term.

Dissecting 4x+74x + 7

PieceName
4x4xa term
44the coefficient of xx
xxthe variable
77the constant term

โš ๏ธ Watch out: If a variable appears with no number in front โ€” like xx โ€” its coefficient is 11, not 00. We simply don't bother writing the 11. In the same way, โˆ’x-x has coefficient โˆ’1-1.

Name That Part ๐Ÿ”ฝ

Look at the expression 6yโˆ’96y - 9 and choose the correct description for each piece.

Expression or Equation? ๐ŸŽฏ

Count the Terms ๐Ÿงฎ

Terms are the pieces separated by ++ or โˆ’-. Count how many terms each expression has.

1) 5x+25x + 2 โ†’ how many terms? 2) 7aโˆ’3b+47a - 3b + 4 โ†’ how many terms? 3) 9k9k โ†’ how many terms?

Part 2: Translating Words into Math

๐Ÿ”ค Variables and Expressions

Part 2 of 5 โ€” Translating Words into Math


๐Ÿ”‘ The Idea: Math is a language. To turn an English phrase into an expression, find the operation words and the quantities they connect, then build the expression piece by piece.

Operation Keywords

Certain words almost always signal a specific operation. Let "the number" be nn.

OperationKeywordsExample
Add (++)sum, more than, increased by, total, plusn+5n + 5
Subtract (โˆ’-)difference, less than, decreased by, fewer, minusnโˆ’5n - 5
Multiply (ร—\times)product, times, of, twice, doubled, triple5n5n
Divide (รท\div)quotient, per, divided by, split, half ofn5\dfrac{n}{5}

โš ๏ธ The "less than" trap: "55 less than a number" is nโˆ’5n - 5, not 5โˆ’n5 - n. The phrase less than flips the order โ€” you start with the number and take 55 away. The same flip happens with "fewer than" and "subtracted from."

Concept Check ๐ŸŽฏ

Worked Examples โ€” Build It in Pieces

Translate the inner phrase first, then attach the outer operation.

Example 1 โ€” "Twice a number, increased by 3."

  • "twice a number" =2n= 2n
  • "increased by 3" adds 33

2n+32n + 3

Example 2 โ€” "The quotient of a number and 5, decreased by 1."

  • "quotient of a number and 5" =n5= \dfrac{n}{5}
  • "decreased by 1" subtracts 11

n5โˆ’1\dfrac{n}{5} - 1

Example 3 โ€” "8 less than three times a number."

  • "three times a number" =3n= 3n
  • "8 less than" subtracts 88 from it

3nโˆ’83n - 8

๐Ÿ’ก Reading left to right, "8 less than [three times a number]" pushes the โˆ’8-8 to the end, because less than flips the order.

Translate the Phrase ๐Ÿ”ฝ

Match each English phrase to its expression. Let the number be nn.

You Write the Coefficient ๐Ÿงฎ

Each phrase translates to "(some number) โ‹…โ€‰n\cdot\, n." Enter just that number โ€” the coefficient.

1) "double a number" โ†’ โ€…โ€Š?โ€‰n\;?\,n 2) "triple a number" โ†’ โ€…โ€Š?โ€‰n\;?\,n 3) "a number times ten" โ†’ โ€…โ€Š?โ€‰n\;?\,n

Part 3: Evaluating by Substitution

๐Ÿ”ค Variables and Expressions

Part 3 of 5 โ€” Evaluating by Substitution


๐Ÿ”‘ The Idea: To evaluate an expression, substitute a number for each variable, then simplify using the order of operations. Replacing letters with numbers turns algebra back into arithmetic.

Substitute, Then Simplify

A variable written next to a number means multiply: 4x4x means 4โ‹…x4 \cdot x. So when you plug in a value, restore that multiplication with parentheses.

Example โ€” Evaluate 4x+74x + 7 when x=3x = 3

4x+7=4(3)+7=12+7=194x + 7 = 4(3) + 7 = 12 + 7 = 19

Example โ€” Evaluate 2aโˆ’52a - 5 when a=6a = 6

2aโˆ’5=2(6)โˆ’5=12โˆ’5=72a - 5 = 2(6) - 5 = 12 - 5 = 7

โš ๏ธ Always use parentheses when you substitute. Writing 4(3)4(3) instead of 4343 keeps the multiplication visible and stops you from accidentally gluing the digits together.

Substitute and Solve ๐Ÿงฎ

Evaluate each expression for the given value.

1) 5x+15x + 1 when x=4x = 4 2) 3nโˆ’23n - 2 when n=5n = 5 3) m2+6\dfrac{m}{2} + 6 when m=8m = 8

Order of Operations (PEMDAS)

When an expression has several operations, follow this order:

StepOperation
PParentheses (grouping)
EExponents
MDMultiply & Divide โ€” left to right
ASAdd & Subtract โ€” left to right

Example โ€” Evaluate 2x2+12x^2 + 1 when x=3x = 3

Handle the exponent first, then multiply, then add:

2x2+1=2(3)2+1=2(9)+1=18+1=192x^2 + 1 = 2(3)^2 + 1 = 2(9) + 1 = 18 + 1 = 19

โš ๏ธ Order matters! In 2x22x^2, only the xx is squared โ€” not the 22. Square first (32=93^2 = 9), then multiply by 22. Computing (2โ‹…3)2=36(2 \cdot 3)^2 = 36 is a classic mistake.

Concept Check ๐ŸŽฏ

Expressions with Two Variables

Substitute each variable with its own value, then simplify.

Example โ€” Evaluate 3a+2b3a + 2b when a=4a = 4 and b=5b = 5

3a+2b=3(4)+2(5)=12+10=223a + 2b = 3(4) + 2(5) = 12 + 10 = 22

Example โ€” Evaluate abโˆ’cab - c when a=2,โ€…โ€Šb=6,โ€…โ€Šc=7a = 2,\; b = 6,\; c = 7

abโˆ’c=(2)(6)โˆ’7=12โˆ’7=5ab - c = (2)(6) - 7 = 12 - 7 = 5

๐Ÿ’ก Replace every copy of a variable with its number. If aa appears twice, plug the value into both spots.

Two Variables ๐Ÿงฎ

Evaluate each expression using a=3a = 3 and b=4b = 4.

1) 2a+b2a + b 2) abab 3) 5bโˆ’3a5b - 3a

Part 4: Simplifying: Like Terms & Distributing

๐Ÿ”ค Variables and Expressions

Part 4 of 5 โ€” Simplifying: Like Terms & Distributing


๐Ÿ”‘ The Idea: You can only add or subtract terms that share the exact same variable part โ€” these are like terms. And the distributive property lets you clear parentheses. Together they shrink any expression to its simplest form.

What Are Like Terms?

Like terms have the same variable raised to the same power. Their coefficients can differ.

PairLike terms?Why
3x3x and 5x5xโœ… Yesboth have xx
7y7y and 2y2yโœ… Yesboth have yy
4x4x and 4y4yโŒ Nodifferent variables
2x2x and 2x22x^2โŒ Nodifferent powers
66 and โˆ’9-9โœ… Yesboth are constants

Combining Like Terms

Add or subtract the coefficients and keep the variable part unchanged:

3x+5x=(3+5)x=8x3x + 5x = (3 + 5)x = 8x

โš ๏ธ You do not touch the variable. 3x+5x=8x3x + 5x = 8x, not 8x28x^2. You're counting how many xx's you have โ€” like 33 apples +โ€‰5+\, 5 apples =8= 8 apples, never "8 apples-squared."

Concept Check ๐ŸŽฏ

Simplifying Longer Expressions

When an expression mixes different kinds of terms, group the like terms and combine each group separately. Constants combine with constants.

Example โ€” Simplify 4x+3+2x+54x + 3 + 2x + 5

4x+2xโŸ6x+3+5โŸ8=6x+8\underbrace{4x + 2x}_{6x} + \underbrace{3 + 5}_{8} = 6x + 8

Example โ€” Simplify 7a+2bโˆ’3a+4b7a + 2b - 3a + 4b

7aโˆ’3aโŸ4a+2b+4bโŸ6b=4a+6b\underbrace{7a - 3a}_{4a} + \underbrace{2b + 4b}_{6b} = 4a + 6b

๐Ÿ’ก Keep each term's sign with it. In 7aโˆ’3a7a - 3a, the โˆ’3a-3a travels with its minus sign. Reading a subtraction as "adding a negative" means signs never get lost.

Combine Like Terms ๐Ÿงฎ

Simplify each expression. Enter only the coefficient of xx in the simplified result.

1) 6x+3x6x + 3x โ†’ result is โ€…โ€Š?โ€‰x\;?\,x 2) 9xโˆ’4x9x - 4x โ†’ result is โ€…โ€Š?โ€‰x\;?\,x 3) 5x+2xโˆ’x5x + 2x - x โ†’ result is โ€…โ€Š?โ€‰x\;?\,x

The Distributive Property

To clear parentheses, multiply the outside factor by every term inside:

a(b+c)=ab+aca(b + c) = ab + ac

Example โ€” Expand 3(x+4)3(x + 4)

3(x+4)=3โ‹…x+3โ‹…4=3x+123(x + 4) = 3 \cdot x + 3 \cdot 4 = 3x + 12

Example โ€” Expand, then combine: 2(x+5)+3x2(x + 5) + 3x

2(x+5)+3x=2x+10+3x=5x+102(x + 5) + 3x = 2x + 10 + 3x = 5x + 10

โš ๏ธ Distribute to both terms. A frequent slip is 3(x+4)=3x+43(x + 4) = 3x + 4 โ€” the 33 never reached the 44. The factor must hit every term inside the parentheses.

Distribute & Simplify ๐Ÿ”ฝ

Choose the correct simplified form of each expression.

Part 5: Real-World Modeling & Mastery Check

๐Ÿ”ค Variables and Expressions

Part 5 of 5 โ€” Real-World Modeling & Mastery Check


You can now (1) name the parts of an expression, (2) translate words into math, (3) evaluate by substituting, and (4) simplify by combining like terms and distributing. Let's put it all together and finish strong.

Building Expressions for Real Situations

A variable shines when a quantity can change. Pick a letter for the unknown, then describe the situation.

Example โ€” A taxi charges $3 to start, plus $2 per mile.

Let mm = number of miles. The total cost (in dollars) is:

3+2m3 + 2m

A 55-mile ride costs 3+2(5)=3+10=133 + 2(5) = 3 + 10 = 13, so $13.

Example โ€” You have $20 and spend $4 each day.

Let dd = number of days. The money left (in dollars) is:

20โˆ’4d20 - 4d

After 33 days you have 20โˆ’4(3)=20โˆ’12=820 - 4(3) = 20 - 12 = 8, so $8.

๐Ÿ’ก The pattern: a fixed start-up amount becomes the constant, and the per-unit rate becomes the coefficient of the variable.

Apply It ๐ŸŽฏ

Word-Problem Practice ๐Ÿงฎ

A printer rents for a flat $10 fee plus $3 per hour. The cost is 10+3h10 + 3h dollars.

1) What is the cost for h=2h = 2 hours? (enter just the number of dollars) 2) What is the cost for h=5h = 5 hours? 3) What is the coefficient of hh in 10+3h10 + 3h?

Mixed Review ๐Ÿ”ฝ

One quick check pulled from each part of the lesson.

Quick Reference

GoalKey move
Name a coefficientthe number multiplying the variable (lone xx โ†’ 11)
Translate "less than"flip the order: "55 less than nn" =nโˆ’5= n - 5
Evaluate an expressionsubstitute, then apply PEMDAS
Combine like termsadd the coefficients, keep the variable
Distributemultiply the outside factor by every inside term

โš ๏ธ Top traps: "less than" flips the order; in 2x22x^2 the square applies only to the xx; 3x+5x=8x3x + 5x = 8x (the exponent never changes); and 3(x+4)=3x+123(x + 4) = 3x + 12 โ€” distribute to both terms.

Exit Quiz โœ…

Answer all three to finish the lesson.