algebraunstuck.com

Unit 1 · Function review & piecewise

Composition and inverse functions

About 18 minFree, no account needed
Goal
Evaluate compositions like f(g(x))f(g(x)) and find inverse functions by swapping xx and yy.

A composition f(g(x))f(g(x)) feeds the output of gg into ff. Work from the inside out: evaluate gg first, then hand its output to ff. It is not multiplication: f(g(x))f(g(x)) and f(x)⋅g(x)f(x)\cdot g(x) are different things.

Example 1

f(g(4)): work from the inside out, never multiply f and g

f(x)=x2+1,g(x)=2x−3,f(g(4))= ?f(x)=x^2+1,\quad g(x)=2x-3,\quad f(g(4))=\ ?
  1. Inside first: evaluate g(4)

    g(4)=2⋅4−3=5g(4)=2\cdot4-3=\mv{m}{5}
  2. The output 5 becomes the input of f

    f(g(4))=f(5)=(5)2+1f(g(4))=f(\mv{m}{5})=(\mv{m}{5})^2+1
  3. Simplify

    f(g(4))=26f(g(4))=26

Check: g(4) = 5 and f(5) = 25 + 1 = 26 ✓

An inverse f−1f^{-1} undoes ff: if f(4)=9f(4)=9, then f−1(9)=4f^{-1}(9)=4. To find it, write y=f(x)y=f(x), swap xx and yy, and solve for yy. Careful: f−1(x)f^{-1}(x) is not 1f(x)\frac{1}{f(x)}.

Example 2

An inverse function is not 1/f(x)—swap x and y

f(x)=2x+1x−3f(x)=\frac{\mv{numer}{\mv{yterm}{2x}+1}}{\mv{denom}{x-3}}
  1. Swap x and y; the original excludes input 3

    x=2y+1y−3\mv{left}{x}=\frac{\mv{numer}{\mv{yterm}{2y}+1}}{\mv{denom}{y-3}}
  2. Multiply by y − 3, then distribute

    xy−3x=2y+1\mv{left}{xy}-\mv{term}{3x}=\mv{numer}{\mv{yterm}{2y}+\mv{one}{1}}
  3. Collect y terms and factor out y

    y(x−2)=3x+1\mv{left}{y(x-2)}=\mv{sum}{\mv{term}{3x}+\mv{one}{1}}
  4. Divide by x − 2; the inverse excludes input 2

    f−1(x)=3x+1x−2, x≠2\mv{left}{f^{-1}(x)}=\frac{\mv{sum}{3x+1}}{\mv{opR}{x-2}},\ \hl{x\ne2}

Check: f(4) = 9 and f⁻¹(9) = 4 ✓

Practice

10 practice problems with hints, then a mastery check of 8 questions, right on this page.