Substitution Examples: 46 Problems with Answers

Worked examples of Substitution to try before you open each solution, then practice problems with answers.

Worked Examples

Example 1

easy
If y=3x+1 and x=2, find y.
Show solution

Answer

y=7

First step

1.
Replace x with 2 in the expression: y=3(2)+1.

Full solution

  1. 2.
    Compute: y=6+1=7.
  2. 3.
    Substitution replaces a variable with its known value.
Substitution means replacing a variable with an equivalent value or expression. Here we replace x with 2 to find the corresponding y.

Example 2

medium
If y=x+3 and 2x+y=9, use substitution to solve for x.

Example 3

easy
Given f(x)=5−x, evaluate f(−2) by substitution.

Example 4

medium
If y=x−4 and 2x+3y=7, use substitution to find x.

Example 5

medium
Let u=x2. Rewrite x4−5x2+6=0 in terms of u and factor.

Practice Problems

Try each one, then open the solution to compare your method.

Example 1

easy
Evaluate a+2b when a=5 and b=−1.

Example 2

medium
If u=2v−1 and 3u+v=11, find v.

Example 3

easy
If y=2x and x=4, find y.

Example 4

easy
Given a=5, substitute into a+3.

Example 5

easy
If y=x+1, substitute to express 2y in terms of x.

Example 6

easy
If x=3 and z=x2, find z.

Example 7

easy
If b=−2, substitute into 4−b.

Example 8

easy
If u=3v and v=2, find u.

Example 9

easy
If t=x−1, replace x with 5 to find t.

Example 10

easy
Given p=2 and q=p+4, then r=q−1. Find r.

Example 11

medium
If y=2x, substitute to eliminate y from 3y+x=14, then solve for x.

Example 12

medium
Given a=b+2 and a+b=10, substitute to find b.

Example 13

medium
If y=x+1, substitute into y2 and expand.

Example 14

medium
Given f(x)=3x−2, find f(x+1) by substitution.

Example 15

medium
If s=t2 and t=x−3, express s in terms of x.

Example 16

medium
Given 2x+y=7 and y=3, substitute to find x.

Example 17

challenge
Given x+y=6 and xy=8, use substitution to find both values of x.

Example 18

challenge
If g(x)=x2 and h(x)=2x−1, find g(h(x)) and evaluate it at x=2.

Example 19

challenge
In ax+b=c, substitute x=c−ba and verify it satisfies the equation (with a≠0).

Example 20

medium
If y=x−2, substitute into x+y and simplify.

Example 21

medium
Given a=2b and b=t+1, express a in terms of t.

Example 22

medium
If 3x−y=7 and x=4, substitute to find y.

Example 23

easy
If m=4n and n=7, find m.

Example 24

easy
Evaluate 3a−2b when a=4 and b=5.

Example 25

easy
If h=2k+3 and k=5, find h.

Example 26

easy
If a=12 and b=4, find ab.

Example 27

easy
Evaluate x2−4 at x=6.

Example 28

medium
Given f(x)=x2+1, find f(2a) as an expression in a.

Example 29

medium
If p=2q+1 and 3p−q=13, find q.

Example 30

medium
If u=a+b and v=a−b, express u2−v2 in terms of a and b.

Example 31

medium
Given g(x)=4x+7, find g(x−3) as a simplified expression.

Example 32

medium
Given a=3, b=−1, find a2−2ab+b2.

Example 33

medium
If m=n+4 and n=2t, express m in terms of t.

Example 34

medium
Given f(x)=2x+5, find x such that f(x)=17.

Example 35

hard
If x+1x=4, find x2+1x2.

Example 36

hard
Given f(x)=x2−2x and g(x)=x+3, find f(g(2)).

Example 37

hard
Solve the system y=x2 and y=2x+3 by substitution.

Example 38

hard
Use the substitution u=x+1 to simplify (x+1)3−4(x+1) and factor the result in terms of u.

Example 39

hard
Given the system 3x−y=2 and y=x2−2, find all real x.

Example 40

challenge
If x+y=4 and x3+y3=28, find xy.

Example 41

challenge
Let f(x)=x1−x. Compute f(f(x)) and simplify.

What to focus on

Core idea: Substitution replaces every occurrence of a variable with an equal value or expression.

Common stuck point: The procedure for substitution is the easy part; the trap is dropping parentheses around the substituted expression. Asking "Am I replacing a variable with an EQUAL expression everywhere it appears?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Ask yourself: Am I replacing a variable with an EQUAL expression everywhere it appears?

Concept recap

Replacing every occurrence of a variable or sub-expression with an equivalent value or expression throughout a problem.

Substitution resembles sending on a substitute player: the replacement takes the exact position the starter left, and the rules of the game don't change. The algebra version is stricter, since the substitute must be exactly equal to what it replaces, and it goes on as one whole unit, which is why it goes in parentheses.

Read the full lesson on Substitution

Substitution is covered with related ideas in the guide Solving Systems of Equations: Substitution, Elimination, and Matrices.

Background knowledge

These ideas may be useful before you work through the harder examples.

equationsequal