To evaluate a two-variable expression, substitute the assigned value for each variable separately. The two letters do not have to represent the same number.

Printable evaluating two-variable expressions practice:

PDF set 1, PDF set 2, PDF set 3, Additional practice PDF.

Online practice: Topic quiz 1, Topic quiz 2.

The short practice below has step-by-step solutions. The printable files provide additional questions.

Method and restrictions

Write both assignments first. Substitute into every occurrence, evaluate grouped expressions and powers, then finish the arithmetic. In xy, the letters indicate multiplication.

Worked example 1

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

  1. Substitute the entire assigned inputs: \(2 \left(4\right) - 3 \left(-2\right)\).
  2. Multiply or divide: \(2 \cdot 4 - 3 \left(-2\right)\) = \(8 - 3 \left(-2\right)\).
  3. Multiply or divide: \(8 - 3 \left(-2\right)\) = \(8 - \left(-6\right)\).
  4. Multiply or divide: \(8 - \left(-6\right)\) = \(8 + 6\).
  5. Add or subtract: \(8 + 6\) = \(14\).
  6. The expression has value \(14\).

Worked example 2

Evaluate \(x^{2} + y^{2}\) when \(x\) = \(-3\), \(y\) = \(4\).

  1. Substitute the entire assigned inputs: \(\left(-3\right)^{2} + \left(4\right)^{2}\).
  2. Evaluate the power or reciprocal: \(\left(-3\right)^{2} + 4^{2}\) = \(9 + 4^{2}\).
  3. Evaluate the power or reciprocal: \(9 + 4^{2}\) = \(9 + 16\).
  4. Add or subtract: \(9 + 16\) = \(25\).
  5. The expression has value \(25\).

Common mistakes to avoid

Do not replace both variables with the first value given. A fraction with x - y in the denominator excludes x = y even if the numerator is also zero.

Short practice: try before opening the solutions

  1. Evaluate \(\frac{x + y}{x - y}\) when \(x\) = \(7\), \(y\) = \(3\).
  2. Evaluate \(x y - 2 y\) when \(x\) = \(-2\), \(y\) = \(5\).
  3. Evaluate \(2 \left(x + y\right)^{2}\) when \(x\) = \(1\), \(y\) = \(-4\).
Show step-by-step solutions

Practice 1

Evaluate \(\frac{x + y}{x - y}\) when \(x\) = \(7\), \(y\) = \(3\).

  1. Substitute the entire assigned inputs: \(\frac{\left(7\right) + \left(3\right)}{\left(7\right) - \left(3\right)}\).
  2. Add or subtract: \(\frac{7 + 3}{7 - 3}\) = \(\frac{10}{7 - 3}\).
  3. Add or subtract: \(\frac{10}{7 - 3}\) = \(\frac{10}{4}\).
  4. Multiply or divide: \(\frac{10}{4}\) = \(\frac{5}{2}\).
  5. The expression has value \(\frac{5}{2}\).

Practice 2

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

  1. Substitute the entire assigned inputs: \(\left(-2\right) \left(5\right) - 2 \left(5\right)\).
  2. Multiply or divide: \(\left(-2\right) 5 - 2 \cdot 5\) = \(-10 - 2 \cdot 5\).
  3. Multiply or divide: \(-10 - 2 \cdot 5\) = \(-10 - 10\).
  4. Add or subtract: \(-10 - 10\) = \(-20\).
  5. The expression has value \(-20\).

Practice 3

Evaluate \(2 \left(x + y\right)^{2}\) when \(x\) = \(1\), \(y\) = \(-4\).

  1. Substitute the entire assigned inputs: \(2 \left(\left(1\right) + \left(-4\right)\right)^{2}\).
  2. Add or subtract: \(2 \left(1 - 4\right)^{2}\) = \(2 \left(-3\right)^{2}\).
  3. Evaluate the power or reciprocal: \(2 \left(-3\right)^{2}\) = \(2 \cdot 9\).
  4. Multiply or divide: \(2 \cdot 9\) = \(18\).
  5. The expression has value \(18\).

Related skills and resources