Vocab
Variable
Math glossaryVariable
xx

A symbol whose value may vary or be unknown.

Learn more
Expression
Math glossaryExpression
2x+32x+3

A mathematical phrase without a top-level equality or inequality claim.

Learn more
Equation
Math glossaryEquation
2x+3=112x+3=11

A statement that two expressions are equal.

Learn more
Solution
Math glossarySolution
x=4x=4

A permitted value that makes a mathematical statement true.

Learn more
Inverse operation
Math glossaryInverse operation
x+33=xx+3-3=x

An operation that undoes another operation.

Learn more
Math glossary

Evaluating algebraic expressions by substitution

Replace every occurrence of the variable, preserve the expression's grouping, and simplify only after the substitution is complete.

LaTeX article Updated July 13, 2026

2a23bwhen a=2, b=52a^2-3b\quad\text{when }a=-2,\ b=5

Substitution is replacement, not multiplication

A variable holds a place in an expression. Evaluating means replacing that place with a supplied value everywhere it appears.

Write the replacement first and postpone arithmetic. That short line exposes missing replacements before they become calculation errors.

3xyx=4, y=23(4)(2)3x-y\quad\xrightarrow{x=4,\ y=-2}\quad3(4)-(-2)

Parentheses preserve the variable's role

If a negative value replaces a powered variable, the entire value becomes the base. Without parentheses, the exponent may attach to the number but not its sign.

The same rule applies when an expression replaces a variable. Group the whole replacement so multiplication, powers, and subtraction still act on the intended object.

x2x=3=(3)2=932x^2\big|_{x=-3}=(-3)^2=9\ne-3^2

Finish with ordinary order of operations

Once every variable has been replaced, the problem is numerical. Evaluate grouping and powers before products and sums.

Keep exact fractions until the final line when possible. Early decimal rounding can hide a correct structure behind an inaccurate approximation.

x+12x=5=62=3\frac{x+1}{2}\bigg|_{x=5}=\frac{6}{2}=3

Worked example

Common mistakes

  • Replacing only the first occurrence of a variable.
  • Substituting a negative value without parentheses.
  • Starting arithmetic before all replacements are visible.

Keep these ideas

  • Replace every occurrence.
  • Parentheses protect the input.
  • Simplify after substitution.