Facebook Pixel
Mathos AI logo

Composite and Inverse Functions

Composite and Inverse Functions

In advanced math, functions can interact in various ways. Two of the most important concepts are composite functions (combining two functions) and inverse functions (reversing a function).

Composite Functions

Composing two functions means plugging the output of one function directly into the input of another. The composition of ff and gg is denoted by (fg)(x)(f \circ g)(x) and is defined as:

(fg)(x)=f(g(x))(f \circ g)(x) = f(g(x))

This tells you to evaluate g(x)g(x) first, and then plug that result into f(x)f(x).

Example 1: Evaluating at a specific number If f(x)=2x+1f(x) = 2x + 1 and g(x)=x2g(x) = x^2, find (fg)(3)(f \circ g)(3).

  1. First, find g(3)g(3): g(3)=32=9g(3) = 3^2 = 9.
  2. Next, plug this result into ff: f(9)=2(9)+1=18+1=19f(9) = 2(9) + 1 = 18 + 1 = 19. So, (fg)(3)=19(f \circ g)(3) = 19.

Example 2: Finding a composite function Using the same functions, find (gf)(x)(g \circ f)(x). Here, we plug the entire function f(x)f(x) into g(x)g(x): (gf)(x)=g(f(x))=g(2x+1)(g \circ f)(x) = g(f(x)) = g(2x + 1) =(2x+1)2=4x2+4x+1= (2x + 1)^2 = 4x^2 + 4x + 1

Inverse Functions

An inverse function, denoted as f1(x)f^{-1}(x), reverses the input-output relationship of the original function f(x)f(x). If f(x)f(x) turns an xx into a yy, then f1(x)f^{-1}(x) turns that yy back into the original xx.

For a function to have an inverse, it must be one-to-one, meaning every output is paired with exactly one input (it passes the horizontal line test).

How to find an inverse function:

  1. Replace f(x)f(x) with yy.
  2. Swap xx and yy.
  3. Solve the equation for yy.
  4. Replace yy with f1(x)f^{-1}(x).

Example 3: Finding an inverse function Find the inverse of f(x)=3x1x+2f(x) = \frac{3x - 1}{x + 2}.

  1. Replace f(x)f(x) with yy: y=3x1x+2y = \frac{3x - 1}{x + 2}
  2. Swap xx and yy: x=3y1y+2x = \frac{3y - 1}{y + 2}
  3. Solve for yy: Multiply both sides by (y+2)(y + 2): x(y+2)=3y1x(y + 2) = 3y - 1 Distribute the xx: xy+2x=3y1xy + 2x = 3y - 1 Move all terms containing yy to one side: xy3y=2x1xy - 3y = -2x - 1 Factor out yy: y(x3)=2x1y(x - 3) = -2x - 1 Divide by (x3)(x - 3): y=2x1x3y = \frac{-2x - 1}{x - 3}
  4. Replace yy with f1(x)f^{-1}(x): f1(x)=2x1x3f^{-1}(x) = \frac{-2x - 1}{x - 3}