Variables Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Variables.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

A symbol (usually a letter like xx) that represents an unknown or changing quantity in a mathematical expression.

Like a box that can hold any number. 'x+5=12x + 5 = 12' asks: what's in the box?

Read the full concept explanation โ†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: A variable is a symbol that holds a number you don't know yet or one that can change.

Common stuck point: The procedure for variables is the easy part; the trap is treating xx as always meaning the same number across different problems. Asking "Is a letter being used to hold a number we don't know yet or one that can vary?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Is a letter being used to hold a number we don't know yet or one that can vary?

Common Mistakes to Watch For

Before you work through the examples, skim the mistake guide so you know which shortcuts and sign errors to avoid.

Worked Examples

Example 1

easy
If x+5=12x + 5 = 12, what value does xx represent?

Answer

x=7x = 7

First step

1
The variable xx is a placeholder for an unknown number.

Full solution

  1. 2
    Subtract 5 from both sides: x=12โˆ’5=7x = 12 - 5 = 7.
  2. 3
    Check: 7+5=127 + 5 = 12 โœ“
A variable is a symbol that stands for an unknown value. To find its value, we perform operations that isolate it on one side of the equation.

Example 2

medium
Evaluate the expression 3x+2y3x + 2y when x=4x = 4 and y=โˆ’1y = -1.

Example 3

medium
A rectangle has length โ„“\ell and width ww. Write a formula for its perimeter PP.

Example 4

medium
Maria is 33 years older than her brother. If her brother is bb years old, how old is Maria?

Example 5

medium
If x=2yx = 2y and y=5y = 5, what is xx?

Example 6

hard
The sum of three consecutive integers is 4848. Let the smallest be nn. Write and solve an equation for nn.

Example 7

hard
If 5xโˆ’3=2x+95x - 3 = 2x + 9, find xx.

Example 8

challenge
Two numbers differ by 77 and their sum is 2525. Let the smaller be xx. Find both numbers.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
If 2n=182n = 18, what is the value of nn?

Example 2

medium
Write an expression using a variable for: 'a number increased by 8.'

Example 3

easy
In the expression 3n+53n + 5, what is the variable?

Example 4

easy
If x=4x = 4, evaluate x+7x + 7.

Example 5

easy
Write 'a number increased by 66' using a variable.

Example 6

easy
Do 2x2x and xโ‹…2x \cdot 2 mean the same thing?

Example 7

easy
In 5yโˆ’25y - 2, what is the coefficient of yy?

Example 8

easy
Let nn be any integer. Is n+1n + 1 always the next integer?

Example 9

easy
Simplify x+x+xx + x + x.

Example 10

easy
If aa stands for apples and bb for bananas, what does a+ba + b count?

Example 11

medium
Marcus is 33 years older than Tina. If Tina is tt years old, write Marcus's age.

Example 12

medium
A variable pp represents a price in dollars. Why can't p=โˆ’4p = -4 here?

Example 13

medium
If xx doubles, what happens to 5x5x?

Example 14

medium
Two unknowns satisfy x+y=10x + y = 10. Is xx a fixed number?

Example 15

medium
Express 'the sum of three consecutive integers' starting at nn.

Example 16

medium
If T=2ฯ€L/gT = 2\pi\sqrt{L/g}, which symbols are variables and which is a constant?

Example 17

medium
Why does xโˆ’x=0x - x = 0 for every value of xx?

Example 18

medium
A recipe uses cc cups of flour per loaf. Write the flour for 55 loaves.

Example 19

challenge
If nn is even, explain why n2n^2 is even using a variable.

Example 20

challenge
Distinguish the roles of xx in f(x)=x2f(x) = x^2 versus f(3)=9f(3) = 9.

Example 21

challenge
A locker problem labels lockers 11 to nn. Why use nn instead of a number?

Example 22

medium
If y=3xy = 3x and xx increases from 22 to 33, how much does yy increase?

Example 23

easy
If yโˆ’4=10y - 4 = 10, what is yy?

Example 24

easy
Evaluate 4xโˆ’14x - 1 when x=3x = 3.

Example 25

easy
Write an expression for 'a number nn doubled, then added to 55'.

Example 26

medium
Evaluate a2+ba^2 + b when a=โˆ’3a = -3 and b=5b = 5.

Example 27

medium
If pp is the price of one pencil in dollars, write an expression for the cost of 1212 pencils.

Example 28

medium
Simplify: 5xโˆ’2x+4โˆ’15x - 2x + 4 - 1.

Example 29

medium
A taxi charges a $3 flat fee plus $2 per mile. Write an expression for the cost of mm miles.

Example 30

medium
Evaluate 2x+6x\frac{2x + 6}{x} when x=2x = 2.

Example 31

hard
If 3x+7=223x + 7 = 22, find xx.

Example 32

hard
Evaluate x2โˆ’2xy+y2x^2 - 2xy + y^2 when x=4,y=1x = 4, y = 1.

Example 33

hard
A bag has nn red marbles and 2n+32n + 3 blue marbles. Write an expression for the total marbles.

Example 34

medium
Write an expression for 'the quotient of a number nn and 44, decreased by 11'.

Example 35

easy
Solve for xx: x+11=20x + 11 = 20.

Example 36

medium
Evaluate x+yxโˆ’y\frac{x + y}{x - y} when x=7,y=3x = 7, y = 3.

Example 37

hard
If A=ฯ€r2A = \pi r^2 and r=3r = 3, find AA in terms of ฯ€\pi.

Background Knowledge

These ideas may be useful before you work through the harder examples.

equalnumber sense