Unit 7: Exponential and General Functions

Topic 5

Composition and Inverses of Functions

Functions can be combined to form new ones, or reversed to find inverses. Composition means applying one function to the output of another:
(fg)(x)=f(g(x)).(f \circ g)(x) = f(g(x)).
The order matters — generally f(g(x))g(f(x))f(g(x)) \ne g(f(x)).
An inverse function, written f1(x)f^{-1}(x), reverses the action of ff. It “undoes” f(x)f(x), so:
f1(f(x))=xandf(f1(x))=x.f^{-1}(f(x)) = x \quad \text{and} \quad f(f^{-1}(x)) = x.
To find an inverse algebraically:
  1. Replace f(x)f(x) with yy.
  2. Swap xx and yy.
  3. Solve for yy.
  4. Replace yy with f1(x)f^{-1}(x).
A function has an inverse only if it is one-to-one (each input gives a unique output). Graphically, a function and its inverse are reflections across the line y=xy = x.

Core Skills

  • Evaluate compositions like f(g(x))f(g(x)) and g(f(x))g(f(x)).
  • Understand order in function composition.
  • Find inverses algebraically using variable swap and solve.
  • Recognize inverse pairs in tables or graphs.
  • Test if two functions are inverses using f(g(x))=xf(g(x)) = x.

Example 1: Function Composition

If f(x)=2x+3f(x) = 2x + 3 and g(x)=x1,g(x) = x - 1, find:
(fg)(x)=f(g(x))=f(x1)=2(x1)+3=2x+1.(f \circ g)(x) = f(g(x)) = f(x - 1) = 2(x - 1) + 3 = 2x + 1.
(gf)(x)=g(f(x))=g(2x+3)=(2x+3)1=2x+2.(g \circ f)(x) = g(f(x)) = g(2x + 3) = (2x + 3) - 1 = 2x + 2.
f(g(x))=2x+1,  g(f(x))=2x+2\boxed{f(g(x)) = 2x + 1,\; g(f(x)) = 2x + 2}

Example 2: Composition with Quadratic Function

If f(x)=x2f(x) = x^2 and g(x)=3x+2,g(x) = 3x + 2,
(fg)(x)=f(3x+2)=(3x+2)2=9x2+12x+4.(f \circ g)(x) = f(3x + 2) = (3x + 2)^2 = 9x^2 + 12x + 4.
(gf)(x)=g(x2)=3x2+2.(g \circ f)(x) = g(x^2) = 3x^2 + 2.
f(g(x))=9x2+12x+4,  g(f(x))=3x2+2\boxed{f(g(x)) = 9x^2 + 12x + 4,\; g(f(x)) = 3x^2 + 2}

Example 3: Finding an Inverse

Find the inverse of f(x)=3x5.f(x) = 3x - 5. Step 1: Replace f(x)f(x) with yy: y=3x5.y = 3x - 5. Step 2: Swap xx and yy:
x=3y5.x = 3y - 5.
Step 3: Solve for yy:
3y=x+5y=x+53.3y = x + 5 \Rightarrow y = \frac{x + 5}{3}.
f1(x)=x+53\boxed{f^{-1}(x) = \frac{x + 5}{3}}

Example 4: Verifying Inverses

Given f(x)=2x+7f(x) = 2x + 7 and g(x)=x72,g(x) = \frac{x - 7}{2}, check if they are inverses. Compute f(g(x))f(g(x)):
f(g(x))=2(x72)+7=x7+7=x.f(g(x)) = 2\left(\frac{x - 7}{2}\right) + 7 = x - 7 + 7 = x.
and g(f(x))g(f(x)):
g(f(x))=(2x+7)72=2x2=x.g(f(x)) = \frac{(2x + 7) - 7}{2} = \frac{2x}{2} = x.
f and g are inverses\boxed{f \text{ and } g \text{ are inverses}}

Example 5: Nonlinear Inverse

Find the inverse of f(x)=x+43.f(x) = \dfrac{x + 4}{3}.
y=x+43x=y+43.y = \frac{x + 4}{3} \quad \Rightarrow \quad x = \frac{y + 4}{3}.
Multiply both sides by 3:
3x=y+4y=3x4.3x = y + 4 \Rightarrow y = 3x - 4.
f1(x)=3x4\boxed{f^{-1}(x) = 3x - 4}

Example 6: Graphical Idea (description only)

Graph f(x)=2x+1f(x) = 2x + 1 and its inverse f1(x)=x12f^{-1}(x) = \frac{x - 1}{2}. They intersect at the point where x=yx = y.

Key Takeaways

  • Composition means applying one function to another.
  • Order matters: f(g(x))g(f(x))f(g(x)) \neq g(f(x)) in general.
  • To find an inverse, swap xx and yy and solve for yy.
  • The graph of an inverse reflects across y=xy = x.
  • Verify inverses using composition: f(g(x))=g(f(x))=x.f(g(x)) = g(f(x)) = x.