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

Variables and Algebraic Expressions

Learn step-by-step with interactive practice!

Variables and Algebraic Expressions - Complete Interactive Lesson

Part 1: What Is a Variable?

๐Ÿ”ค Variables and Algebraic Expressions

Part 1 of 5 โ€” What Is a Variable?


Topics in This Part

Section
Variables: letters that hold numbers
Constants vs. variables
The hidden multiplication sign
Powers and the order of operations

๐Ÿ”‘ Key Concept: A variable is just a letter that stands in for a number we don't know yet (or a number that's allowed to change). Algebra is arithmetic where some of the numbers are wearing name tags.

Variables and Constants

A variable is a symbol โ€” usually a letter like xx, yy, nn, or tt โ€” that represents a number.

A constant is a fixed number that never changes, like 77, โˆ’3-3, or 12\dfrac{1}{2}.

SymbolTypeWhy
xxvariablea letter standing for an unknown number
55constanta fixed value
nnvariablecould be any number
โˆ’12-12constantalways โˆ’12-12

Why bother with letters? Because one expression can describe many situations at once. If a movie ticket costs $9, the cost of nn tickets is 9n9n โ€” and that single rule works whether you buy 11 ticket or 100100.

๐Ÿ’ก The same variable can stand for different numbers in different problems, but within one problem each letter holds a single value at a time.

The Invisible Multiplication Sign

In algebra we almost never write the ร—\times symbol โ€” it looks too much like the letter xx. Instead, putting a number right next to a variable means multiply:

3xโ€…โ€Š=โ€…โ€Š3โ‹…xโ€…โ€Š=โ€…โ€Š3ย timesย x3x \;=\; 3 \cdot x \;=\; 3 \text{ times } x

The number stuck to the front, 33, is called the coefficient.

ExpressionMeaning
5y5y5โ‹…y5 \cdot y
ababaโ‹…ba \cdot b
7(n)7(n)7โ‹…n7 \cdot n
xx1โ‹…x1 \cdot x (coefficient of 11 is invisible)

โš ๏ธ Watch out: xyxy means xโ‹…yx \cdot y, but 2323 does not mean 2โ‹…32 \cdot 3 โ€” two digits next to each other still make a normal two-digit number. The shortcut only applies when a letter is involved.

Concept Check ๐ŸŽฏ

Powers and Order of Operations

An exponent is a shortcut for repeated multiplication:

x2=xโ‹…xx3=xโ‹…xโ‹…xx^2 = x \cdot x \qquad x^3 = x \cdot x \cdot x

We read x2x^2 as "xx squared" and x3x^3 as "xx cubed."

When an expression mixes operations, evaluate them in this order (PEMDAS):

OrderOperation
1Parentheses (grouping)
2Exponents
3Multiplication / Division (left โ†’ right)
4Addition / Subtraction (left โ†’ right)

๐Ÿ’ก 2x22x^2 means 2โ‹…(x2)2 \cdot (x^2) โ€” the exponent attaches only to the xx, not the 22, because exponents come before multiplication. So if x=3x = 3, then 2x2=2โ‹…9=182x^2 = 2 \cdot 9 = 18, not (2โ‹…3)2=36(2\cdot 3)^2 = 36.

Translate to Numbers ๐Ÿงฎ

Rewrite each as a plain number (no variables โ€” just compute).

1) 42=โ€‰?4^2 = \,? 2) 23=โ€‰?2^3 = \,? 3) 5+3โ‹…2=โ€‰?5 + 3 \cdot 2 = \,? (remember order of operations)

Order of Operations Check ๐Ÿ”ฝ

Choose the correct value of each numerical expression. Follow PEMDAS carefully.

Part 2: Evaluating Expressions

๐Ÿ”ค Variables and Algebraic Expressions

Part 2 of 5 โ€” Evaluating Expressions


๐Ÿ”‘ The Idea: To evaluate an algebraic expression, you substitute a given number for each variable and then simplify using the order of operations. Replace the name tag with the actual number.

Substitution: Plug In and Compute

To evaluate an expression for a given value, swap the variable for its number โ€” using parentheses to be safe โ€” then follow PEMDAS.

Worked Example: evaluate 3x+43x + 4 when x=5x = 5

3x+4=3(5)+4=15+4=193x + 4 = 3(5) + 4 = 15 + 4 = 19

Worked Example: evaluate x2โˆ’2xx^2 - 2x when x=4x = 4

x2โˆ’2x=(4)2โˆ’2(4)=16โˆ’8=8x^2 - 2x = (4)^2 - 2(4) = 16 - 8 = 8

โš ๏ธ Use parentheses when you substitute, especially with negatives. For x=โˆ’3x = -3, writing x2=(โˆ’3)2=9x^2 = (-3)^2 = 9 keeps the sign right; writing โˆ’32-3^2 by accident gives โˆ’9-9, which is wrong here.

Substituting Negative Numbers

Worked Example: evaluate 5โˆ’2x5 - 2x when x=โˆ’3x = -3

5โˆ’2x=5โˆ’2(โˆ’3)=5โˆ’(โˆ’6)=5+6=115 - 2x = 5 - 2(-3) = 5 - (-6) = 5 + 6 = 11

Worked Example: evaluate a+b2\dfrac{a + b}{2} when a=7a = 7 and b=3b = 3

a+b2=7+32=102=5\frac{a + b}{2} = \frac{7 + 3}{2} = \frac{10}{2} = 5

๐Ÿ’ก A fraction bar acts like a set of parentheses: do all the arithmetic on top (and on the bottom) before you divide.

Concept Check ๐ŸŽฏ

Evaluate It ๐Ÿงฎ

Substitute and compute. Enter a single number for each.

1) 4xโˆ’54x - 5 when x=3โ€…โ€Šโ‡’โ€…โ€Š?x = 3 \;\Rightarrow\; ? 2) 12y+1\dfrac{12}{y} + 1 when y=4โ€…โ€Šโ‡’โ€…โ€Š?y = 4 \;\Rightarrow\; ? 3) a2โˆ’ba^2 - b when a=5,โ€…โ€Šb=9โ€…โ€Šโ‡’โ€…โ€Š?a = 5,\; b = 9 \;\Rightarrow\; ?

Match the Value ๐Ÿ”ฝ

Each expression below is evaluated at x=2x = 2. Pick the correct result.

Part 3: Translating Words into Expressions

๐Ÿ”ค Variables and Algebraic Expressions

Part 3 of 5 โ€” Translating Words into Expressions


๐Ÿ”‘ Why it matters: Real problems arrive as sentences, not equations. The skill of turning "seven more than a number" into n+7n + 7 is the bridge from English to algebra.

The Keyword Dictionary

Certain words signal certain operations. Let nn be "the number."

WordsOperationExpression
sum, plus, more than, increased byaddn+5n + 5
difference, minus, less than, decreased bysubtractnโˆ’5n - 5
product, times, of, twicemultiply5n5n
quotient, divided by, perdividen5\dfrac{n}{5}

โš ๏ธ Order matters for subtraction. "77 less than a number" is nโˆ’7n - 7 โ€” the number comes first. Don't write 7โˆ’n7 - n. The phrase "less than" flips the order you read.

Translation Check ๐ŸŽฏ

Building Multi-Step Expressions

Some phrases combine operations. Read carefully and group with parentheses when a quantity is acted on as a whole.

PhraseExpression
"33 more than twice a number"2n+32n + 3
"55 times the sum of a number and 44"5(n+4)5(n + 4)
"the quotient of a number and 22, decreased by 11"n2โˆ’1\dfrac{n}{2} - 1
"1010 decreased by half a number"10โˆ’n210 - \dfrac{n}{2}

๐Ÿ’ก The word "sum" or "difference" inside a longer phrase usually signals a set of parentheses: "55 times the sum of nn and 44" must be 5(n+4)5(n+4), not 5n+45n + 4.

Phrase โ†’ Expression ๐Ÿ”ฝ

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

From Words to Value ๐Ÿงฎ

Translate, then evaluate at the given value.

1) "55 more than a number nn," when n=8โ€…โ€Šโ‡’โ€…โ€Š?n = 8 \;\Rightarrow\; ? 2) "Three times a number nn," when n=7โ€…โ€Šโ‡’โ€…โ€Š?n = 7 \;\Rightarrow\; ? 3) "22 less than a number nn," when n=10โ€…โ€Šโ‡’โ€…โ€Š?n = 10 \;\Rightarrow\; ?

Part 4: Terms, Coefficients & Like Terms

๐Ÿ”ค Variables and Algebraic Expressions

Part 4 of 5 โ€” Terms, Coefficients & Like Terms


๐Ÿ”‘ Big Idea: Before you can simplify an expression, you have to break it into terms and spot which ones are "alike." Only like terms can be combined.

The Anatomy of an Expression

A term is a single number, variable, or product of them. Terms are separated by ++ and โˆ’- signs.

Consider โ€…โ€Š4x+7โˆ’2y\;4x + 7 - 2y. It has three terms: 4x4x, 77, and โˆ’2y-2y.

TermCoefficientVariable partName
4x4x44xxvariable term
7777noneconstant term
โˆ’2y-2yโˆ’2-2yyvariable term
  • The coefficient is the number multiplied by the variable.
  • A constant term has no variable.
  • The sign in front of a term belongs to that term, so the coefficient of โˆ’2y-2y is โˆ’2-2.

๐Ÿ’ก If a variable has no visible number, its coefficient is 11: the term xx means 1x1x, and โˆ’x-x means โˆ’1x-1x.

Concept Check ๐ŸŽฏ

What Makes Terms "Like"?

Like terms have the exact same variable part โ€” same letters raised to the same powers. The coefficients can differ.

PairLike?Why
3x3x and 8x8xโœ… yesboth have variable part xx
5y5y and 5x5xโŒ nodifferent variables
4n4n and 77โŒ noone has nn, one is a constant
2x22x^2 and 9x29x^2โœ… yesboth have x2x^2
6x6x and 6x26x^2โŒ noxx and x2x^2 are different powers

โš ๏ธ Constants are like terms with each other. 77 and โˆ’3-3 can combine to 44. But a constant is never like a variable term.

Like or Not? ๐Ÿ”ฝ

Decide whether each pair is a set of like terms.

Count and Identify ๐Ÿงฎ

For the expression โ€…โ€Š9xโˆ’4+3x+xโ€…โ€Š\;9x - 4 + 3x + x\;:

1) How many terms does it have? 2) Adding the coefficients of all the xx-terms (99, 33, and 11), what total do you get?

Part 5: Simplifying & Mastery Check

๐Ÿ”ค Variables and Algebraic Expressions

Part 5 of 5 โ€” Simplifying & Mastery Check


You can now name the parts of an expression and spot like terms. The payoff is simplifying: combining like terms and using the distributive property to write an expression in its cleanest form.

Combining Like Terms

To combine like terms, add or subtract their coefficients and keep the variable part unchanged.

Worked Example: simplify 7x+2x7x + 2x

7x+2x=(7+2)x=9x7x + 2x = (7 + 2)x = 9x

Worked Example: simplify 5a+3โˆ’2a+85a + 3 - 2a + 8

Group the like terms, then combine:

(5aโˆ’2a)+(3+8)=3a+11(5a - 2a) + (3 + 8) = 3a + 11

โš ๏ธ You cannot combine 3a+113a + 11 any further โ€” 3a3a is a variable term and 1111 is a constant. A simplified expression often still has more than one term, and that's fine.

The Distributive Property

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

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

Worked 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

Worked Example: simplify 2(n+5)+4n2(n + 5) + 4n

2(n+5)+4n=2n+10+4n=(2n+4n)+10=6n+102(n + 5) + 4n = 2n + 10 + 4n = (2n + 4n) + 10 = 6n + 10

๐Ÿ’ก Distribute first, then combine like terms. And watch the signs: โˆ’2(xโˆ’3)=โˆ’2x+6-2(x - 3) = -2x + 6, because โˆ’2โ‹…(โˆ’3)=+6-2 \cdot (-3) = +6.

Simplify Check ๐ŸŽฏ

Simplify It ๐Ÿงฎ

Combine like terms and/or distribute. Enter the constant part of each simplified answer.

1) 5x+7+2xโˆ’35x + 7 + 2x - 3 simplifies to 7x+?7x + ? (enter the constant) 2) 3(n+6)3(n + 6) expands to 3n+?3n + ? (enter the constant) 3) 2(a+4)+a2(a + 4) + a simplifies to 3a+?3a + ? (enter the constant)

Mixed Practice ๐Ÿ”ฝ

Pull together everything from the lesson.

Exit Quiz โœ…

Answer all three to finish the lesson.