Mathwords logoMathwords

Substitution — Definition, Formula & Examples

Substitution is a method for solving a system of equations by isolating one variable in one equation and then replacing (substituting) that expression into the other equation. This reduces the system to a single equation with one unknown, which you can solve directly.

Given a system of two equations in two unknowns, the substitution method proceeds by solving one equation for one variable in terms of the other, then substituting that expression into the remaining equation to obtain a single equation in one variable. The resulting value is then used to determine the other variable, yielding the unique solution (x,y)(x, y) of the system, provided the system is consistent and independent.

How It Works

Start by picking whichever equation is easiest to solve for one variable — ideally one where a variable already has a coefficient of 1 or −1. Solve that equation for the chosen variable so you have something like y=expression in xy = \text{expression in } x. Next, replace every occurrence of yy in the other equation with that expression. You now have one equation in one unknown; solve it. Finally, plug the value you found back into the expression from step one to get the other variable.

Worked Example

Problem: Solve the system: 2x+y=102x + y = 10 and xy=2x - y = 2.
Step 1: Isolate a variable: The second equation is easy to solve for xx.
x=y+2x = y + 2
Step 2: Substitute into the other equation: Replace xx with (y+2)(y + 2) in the first equation.
2(y+2)+y=102(y + 2) + y = 10
Step 3: Solve the single-variable equation: Distribute and combine like terms, then solve for yy.
2y+4+y=10    3y=6    y=22y + 4 + y = 10 \implies 3y = 6 \implies y = 2
Step 4: Back-substitute: Plug y=2y = 2 back into x=y+2x = y + 2.
x=2+2=4x = 2 + 2 = 4
Answer: The solution is (x,y)=(4,2)(x, y) = (4, 2).

Another Example

Problem: Solve the system: y=3x1y = 3x - 1 and 2x+5y=272x + 5y = 27.
Step 1: Identify the isolated variable: The first equation already gives yy in terms of xx.
y=3x1y = 3x - 1
Step 2: Substitute: Replace yy in the second equation.
2x+5(3x1)=272x + 5(3x - 1) = 27
Step 3: Solve for $x$: Expand and simplify.
2x+15x5=27    17x=32    x=32172x + 15x - 5 = 27 \implies 17x = 32 \implies x = \frac{32}{17}
Step 4: Find $y$: Substitute x=3217x = \frac{32}{17} back into y=3x1y = 3x - 1.
y=3 ⁣(3217)1=96171717=7917y = 3\!\left(\frac{32}{17}\right) - 1 = \frac{96}{17} - \frac{17}{17} = \frac{79}{17}
Answer: The solution is (x,y)=(3217,7917)(x, y) = \left(\frac{32}{17},\, \frac{79}{17}\right).

Why It Matters

Substitution is one of the first systematic problem-solving techniques you learn in Algebra 1 and Algebra 2. It appears again in precalculus when solving nonlinear systems and in calculus through u-substitution for integrals. Fields like economics, engineering, and computer science routinely model constraints as systems of equations, and substitution remains the go-to approach whenever one relationship is already solved for a single variable.

Common Mistakes

Mistake: Forgetting to distribute when substituting an expression with more than one term.
Correction: Always place the substituted expression in parentheses. For example, replacing xx with (y+2)(y + 2) in 2x2x gives 2(y+2)2(y + 2), not 2y+22y + 2.
Mistake: Substituting back into the same equation you used to isolate the variable.
Correction: You must substitute into the other equation. Plugging back into the same equation produces a tautology like 0=00 = 0 and gives no useful information.