Substitution Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Substitution.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

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

If y=2xy = 2x, you can write 2x2x everywhere you see yyβ€”they're the same.

Read the full concept explanation β†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

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.

Sense of Study hint: Ask: Am I replacing a variable with an EQUAL expression everywhere it appears?

Worked Examples

Example 1

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

Answer

y=7y = 7

First step

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

Full solution

  1. 2
    Compute: y=6+1=7y = 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 xx with 2 to find the corresponding yy.

Example 2

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

Example 3

easy
Given f(x)=5βˆ’xf(x) = 5 - x, evaluate f(βˆ’2)f(-2) by substitution.

Example 4

medium
If y=xβˆ’4y = x - 4 and 2x+3y=72x + 3y = 7, use substitution to find xx.

Example 5

medium
Let u=x2u = x^2. Rewrite x4βˆ’5x2+6=0x^4 - 5x^2 + 6 = 0 in terms of uu and factor.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
Evaluate a+2ba + 2b when a=5a = 5 and b=βˆ’1b = -1.

Example 2

medium
If u=2vβˆ’1u = 2v - 1 and 3u+v=113u + v = 11, find vv.

Example 3

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

Example 4

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

Example 5

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

Example 6

easy
If x=3x=3 and z=x2z=x^2, find zz.

Example 7

easy
If b=βˆ’2b=-2, substitute into 4βˆ’b4-b.

Example 8

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

Example 9

easy
If t=xβˆ’1t=x-1, replace xx with 55 to find tt.

Example 10

easy
Given p=2p=2 and q=p+4q=p+4, then r=qβˆ’1r=q-1. Find rr.

Example 11

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

Example 12

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

Example 13

medium
If y=x+1y=x+1, substitute into y2y^2 and expand.

Example 14

medium
Given f(x)=3xβˆ’2f(x)=3x-2, find f(x+1)f(x+1) by substitution.

Example 15

medium
If s=t2s=t^2 and t=xβˆ’3t=x-3, express ss in terms of xx.

Example 16

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

Example 17

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

Example 18

challenge
If g(x)=x2g(x)=x^2 and h(x)=2xβˆ’1h(x)=2x-1, find g(h(x))g(h(x)) and evaluate it at x=2x=2.

Example 19

challenge
In ax+b=cax+b=c, substitute x=cβˆ’bax=\frac{c-b}{a} and verify it satisfies the equation (with aβ‰ 0a\ne0).

Example 20

medium
If y=xβˆ’2y=x-2, substitute into x+yx+y and simplify.

Example 21

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

Example 22

medium
If 3xβˆ’y=73x-y=7 and x=4x=4, substitute to find yy.

Example 23

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

Example 24

easy
Evaluate 3aβˆ’2b3a - 2b when a=4a = 4 and b=5b = 5.

Example 25

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

Example 26

easy
If a=12a = \frac{1}{2} and b=4b = 4, find abab.

Example 27

easy
Evaluate x2βˆ’4x^2 - 4 at x=6x = 6.

Example 28

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

Example 29

medium
If p=2q+1p = 2q + 1 and 3pβˆ’q=133p - q = 13, find qq.

Example 30

medium
If u=a+bu = a + b and v=aβˆ’bv = a - b, express u2βˆ’v2u^2 - v^2 in terms of aa and bb.

Example 31

medium
Given g(x)=4x+7g(x) = 4x + 7, find g(xβˆ’3)g(x - 3) as a simplified expression.

Example 32

medium
Given a=3a = 3, b=βˆ’1b = -1, find a2βˆ’2ab+b2a^2 - 2ab + b^2.

Example 33

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

Example 34

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

Example 35

hard
If x+1x=4x + \frac{1}{x} = 4, find x2+1x2x^2 + \frac{1}{x^2}.

Example 36

hard
Given f(x)=x2βˆ’2xf(x) = x^2 - 2x and g(x)=x+3g(x) = x + 3, find f(g(2))f(g(2)).

Example 37

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

Example 38

hard
Use the substitution u=x+1u = x + 1 to simplify (x+1)3βˆ’4(x+1)(x + 1)^3 - 4(x + 1) and factor the result in terms of uu.

Example 39

hard
Given the system 3xβˆ’y=23x - y = 2 and y=x2βˆ’2y = x^2 - 2, find all real xx.

Example 40

challenge
If x+y=4x + y = 4 and x3+y3=28x^3 + y^3 = 28, find xyxy.

Example 41

challenge
Let f(x)=x1βˆ’xf(x) = \frac{x}{1 - x}. Compute f(f(x))f(f(x)) and simplify.

Background Knowledge

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

equationsequal