01 / 20
\( 3x \)

Evaluating Expressions
with Variables

Learn to substitute values into algebraic expressions and simplify — a core skill tested on the HESI A2 math section.

HESI A2 Exam

What Is a Variable?

A variable is a letter (like \( x \), \( y \), or \( n \)) that stands for a number we don't yet know. An expression combines variables, numbers, and operations — for example \( 3x + 5 \).

Substitution: Plug In the Value

\( 3x + 5 \)
when
\( x = 4 \)
\( 3(4) \)\( + 5 \)
\( = \)
\( 12 + 5 \)
\( = \)
\( 17 \)

The Rule: Order of Operations

After substituting, simplify using PEMDAS — the agreed order in which operations are performed:

1
Parentheses — work inside grouping symbols first.
2
Exponents — evaluate powers like \( x^2 \).
3
Multiplication & Division — left to right.
4
Addition & Subtraction — left to right.

Reading Algebraic Shorthand

\( 3x \)
Means \( 3 \times x \) — a number next to a variable is multiplication.
\( \dfrac{x}{2} \)
Means \( x \div 2 \) — a fraction bar is division.
\( x^2 \)
Means \( x \times x \) — the exponent is repeated multiplication.

Expression vs. Equation

ExpressionEquation
Looks like\( 3x + 5 \)\( 3x + 5 = 17 \)
Has an "="?NoYes
You are asked toEvaluate (find a value)Solve (find the variable)

A 3-Step Method

1
Substitute. Replace every variable with its given value, using parentheses around each number.
2
Simplify. Apply PEMDAS step by step — exponents, then multiply/divide, then add/subtract.
3
Check. Re-read the problem and confirm your single numeric answer is reasonable.

Example 1: Single Variable

Evaluate \( 4x - 7 \) when \( x = 5 \).

\( 4x - 7 \)
\( 4(5) - 7 \)
\( 20 - 7 \)
\( = \)
\( 13 \)

Example 2: Two Variables

Evaluate \( 2a + 3b \) when \( a = 4 \) and \( b = 6 \).

\( 2a + 3b \)
\( 2(4) + 3(6) \)
\( 8 + 18 \)
\( = \)
\( 26 \)

Example 3: Exponents & Negatives

Evaluate \( x^2 - 4x \) when \( x = -3 \).

\( x^2 - 4x \)
\( (-3)^2 - 4(-3) \)
\( 9 - (-12) \)
\( = \)
\( 9 + 12 \)
\( = 21 \)

Common Mistakes

✕ Ignoring order
Adding before multiplying. In \( 3x+5 \) you must compute \( 3x \) first.
✕ Sign errors
Forgetting that \( (-3)^2 = 9 \), not \( -9 \). Use parentheses.
✕ Misreading shorthand
Treating \( 2x \) as "2 plus x." It means \( 2 \times x \).

Quick Reference

ExpressionGivenResult
\( 5x \)\( x = 3 \)\( 15 \)
\( x + 2y \)\( x=4,\ y=5 \)\( 14 \)
\( \dfrac{x}{4} \)\( x = 12 \)\( 3 \)
\( x^2 + 1 \)\( x = 6 \)\( 37 \)

You're Ready

Question 1 of 5

Evaluate \( 6x - 4 \) when \( x = 3 \).

Question 2 of 5

Evaluate \( 3a + 2b \) when \( a = 5 \) and \( b = 4 \).

Question 3 of 5

Evaluate \( \dfrac{x}{3} + 5 \) when \( x = 12 \).

Question 4 of 5

Evaluate \( x^2 + 2x \) when \( x = 4 \).

Question 5 of 5

Evaluate \( 5x - 2y \) when \( x = -2 \) and \( y = 3 \).

Test-Day Strategy

1
Rewrite the expression with parentheses around each value before computing.
2
Slow down on negatives and exponents — these cause the most errors.
3
Estimate to eliminate wildly wrong answer choices quickly.

Skill Mastered