Substitution: Definition, Method and Examples

MathPublished

Substitution in Algebra: Evaluate and Test Expressions

Substitution means replacing a variable with its given numerical value. Write the replacement clearly, use parentheses for a negative value or multi-part expression, then follow the order of operations to evaluate or test the result.


In algebra, letters represent unknown or changing values. Once you know the specific value of a letter, you can substitute it into the mathematical statement to calculate a final result. Understanding how to handle variables and constants makes this process straightforward.

What is substitution in algebra?

Substitution in algebra is the process of removing a letter from an expression and putting a number in its exact place.


When you substitute values into expressions, you transform an abstract algebraic statement into an arithmetic calculation. This allows you to evaluate by substitution to find a single numerical answer.


Always replace the variable with the exact value provided.


Every time the chosen variable appears in the algebraic expressions, it must be replaced by the same number.

A diagram showing the variable x equals 5 being substituted into the expression 2x plus 3, mapping to 2 times 5 plus 3, which results in 13.

Replace a variable accurately

When you replace a variable, you must maintain the correct mathematical operations.

Algebra often uses hidden multiplication. When a number and a letter are placed next to each other, it means they are multiplied together. Knowing how to identify terms factors coefficients and constants prevents common calculation errors.


If you evaluate the expression 4x4x when x=3x = 3, you must multiply 44 by 33. You do not simply write the digits next to each other to make 4343.

A comparison showing the correct substitution of x equals 3 into 4x as 4 times 3 equals 12, alongside an incorrect example showing 43 crossed out in red.

Use parentheses for negative values

Whenever you plug in values that are negative, wrap the substituted number in parentheses.

Parentheses protect the negative sign and ensure the correct operations apply to the entire number. This is especially important when substituting negative numbers into expressions with exponents.


Exponents apply only to what is immediately before them.


For example, if you evaluate x2x^2 for x=−5x = -5, writing −52-5^2 without parentheses means −(5×5)-(5 \times 5), which is −25-25. Writing (−5)2(-5)^2 correctly squares the entire negative number, which is (−5)×(−5)=25(-5) \times (-5) = 25.

Evaluate an expression

After you substitute the values, you must calculate the result in the correct mathematical sequence.


Algebra substitution relies entirely on the order of operations. You must resolve parentheses, exponents, multiplication and division, and finally addition and subtraction, in that exact order.

A flowchart demonstrating the evaluation of the expression 50 minus 2y squared for y equals 4. Steps show substituting 4, squaring it to get 16, multiplying by 2 to get 32, and subtracting from 50 to get 18.

Check a value in an equation or formula

Substitution allows you to test if a specific number makes an equation true.

An equation states that two expressions are equal. To check a candidate solution, evaluate by substituting the number into both sides of the equation. If both sides evaluate to the identical result, the number is a valid solution.


You also use substitution to evaluate formulas in mathematics and science. Replace the known variables with their measurements, then calculate the remaining unknown value.

Worked examples

These examples demonstrate how to correctly evaluate by substituting positive numbers, negative numbers, and checking solutions in formulas.


Example 1: Evaluating a multi-step expression


Question: Evaluate the expression 3x+103x + 10 when x=4x = 4.


Method:

  1. Replace the variable xx with the number 44 using parentheses.
  2. Multiply the coefficient by the substituted value.
  3. Add the remaining constant.

Answer: 3(4)+10=12+10=223(4) + 10 = 12 + 10 = 22.


Check: Work backward from 2222 by subtracting 1010 to get 1212, then dividing by 33 to confirm x=4x = 4.


Example 2: Substituting negative numbers


Question: Evaluate the expression 5a−b25a - b^2 when a=2a = 2 and b=−3b = -3.


Method:

  1. Substitute the values, placing the negative value for bb inside parentheses.
  2. Evaluate the exponent first: square the negative number.
  3. Multiply the coefficient by aa.
  4. Subtract the result of the exponent from the multiplication.

Answer: 5(2)−(−3)2=10−9=15(2) - (-3)^2 = 10 - 9 = 1.


Check: Verify (−3)2(-3)^2 is positive 99, and ensure the subtraction sign in the original expression was kept.


Example 3: Checking a solution in a word problem context


Question: A rectangle has an area of 5454 square units and a length of 99 units. Does a width of 66 units satisfy the area formula A=lwA = lw?


Method:

  1. State the standard formula to be tested.
  2. Substitute the proposed length and width into the right side of the equation.
  3. Calculate the resulting product.
  4. Compare the result to the stated area on the left side.

Answer: A=(9)(6)=54A = (9)(6) = 54. Since 54=5454 = 54, the width of 66 units is correct.


Check: In many math word problems, checking solutions by substituting values back into the formula ensures the dimensions physically make sense.

Common mistakes

Avoiding these errors will help you substitute values into expressions correctly.

  • Ignoring hidden multiplication. Writing 7x7x as 7575 when x=5x = 5 is incorrect. It must be 7×5=357 \times 5 = 35.
  • Dropping negative signs. If an expression is −x-x and x=−4x = -4, the correct substitution is −(−4)-(-4), which becomes positive 44.
  • Applying exponents incorrectly. Evaluating 2x22x^2 when x=3x = 3 means 2×(32)=182 \times (3^2) = 18, not (2×3)2=36(2 \times 3)^2 = 36. Exponents happen before multiplication.

Frequently asked questions

Here are answers to common questions about substitution in algebra.


Does substitution solve an equation?

Substitution itself does not solve an equation. It evaluates an expression or tests a specific number to see if it makes an equation true.


Why are parentheses necessary?

Parentheses maintain the proper boundaries around a number. They ensure negative signs are included when applying exponents and prevent multiplication from looking like multi-digit numbers.


Can I substitute a fraction or decimal?

Yes, you can substitute any real number, including fractions and decimals, into an algebraic expression. The rules and order of operations remain exactly the same.

Practice questions

Question

A flowchart starting with the expression 4x minus 5 and x equals 6. An arrow leads to 4 times 6 minus 5, then to 24 minus 5, and finally to a question mark box.

Evaluate the expression shown in the visual flowchart. What is the final result?

  • 1919

  • 2424

  • 11

  • 99

Answer:

1919

Question

Evaluate the expression y2−3yy^2 - 3y when y=−2y = -2.

  • 1010

  • −2-2

  • 22

  • −10-10

Answer:

1010

Question

A balance scale with the expression 3x plus 2 on the left plate and the number 14 on the right plate. A text label above says Test x equals 4.

Based on the visual, does substituting x=4x = 4 balance the equation 3x+2=143x + 2 = 14?

  • Yes, because both sides evaluate to 1414.

  • No, because the left side evaluates to 1818.

  • No, because the left side evaluates to 1212.

  • Yes, because both sides evaluate to 1616.

Answer:

Yes, because both sides evaluate to 1414.

Question

A triangle with a horizontal base labeled b equals 8 and a vertical dashed height labeled h equals 5. The formula for area is A equals 1 over 2 times b times h.

Substitute the given dimensions into the area formula shown in the visual. What is the area of the triangle?

  • 2020

  • 4040

  • 1313

  • 2626

Answer:

2020

Question

A student evaluates the expression 6m6m when m=3m = 3 and gets a result of 6363. What is the mathematical error?

  • The student should have added the numbers to get 99.

  • The student divided instead of multiplying to get 22.

  • The student squared the number instead of multiplying.

  • The student placed the digits next to each other instead of multiplying.

Answer:

The student placed the digits next to each other instead of multiplying.