Kahibaro
Discord Login Register

Composite and Inverse Functions

Function Composition

In earlier chapters you have seen what a function is and how to work with function notation. Here we focus on combining functions to build new ones, and on “undoing” functions using inverses.

Function composition is a way of feeding the output of one function into another. The result is a new function.

Suppose you have two functions $f$ and $g$.

To compose them, you let the output of $g$ become the input of $f$.

The composition of $f$ with $g$ is written as:

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

Read this as “$f$ of $g$ of $x$.”

The order matters:

In general:
$$
f \circ g \neq g \circ f
$$

so composition is usually not commutative.

How to Compute a Composition

To compute $(f \circ g)(x)$:

  1. Start with $g(x)$.
  2. Take the formula for $f(x)$.
  3. Wherever $f$ has its input variable, replace it with the entire expression $g(x)$.
  4. Simplify if needed.

Example: Let $f(x) = 2x + 3$ and $g(x) = x^2$.

Now use $f$’s rule, replacing $x$ by $x^2$:

$$
f(x^2) = 2(x^2) + 3 = 2x^2 + 3.
$$

So $(f \circ g)(x) = 2x^2 + 3$.

Use $g$’s rule, replacing $x$ by $2x + 3$:

$$
g(2x + 3) = (2x + 3)^2.
$$

So $(g \circ f)(x) = (2x + 3)^2$, which is different from $2x^2 + 3$.

Composition and Domain

The composition $(f \circ g)(x)$ makes sense only when:

So the domain of $f \circ g$ is all $x$ for which $x$ can be safely plugged into $g$, and then $g(x)$ can be safely plugged into $f$.

Example: Let

For $(f \circ g)(x) = f(g(x)) = \dfrac{1}{\sqrt{x} - 1}$:

$\sqrt{x} \ne 1$ means $x \ne 1$.

So the domain of $f \circ g$ is:
$$
x \ge 0,\quad x \ne 1.
$$

For $(g \circ f)(x) = g(f(x)) = \sqrt{\dfrac{1}{x - 1}}$:

Analyzing when $\dfrac{1}{x-1} \ge 0$ shows that $x > 1$.

So the domain of $g \circ f$ is:
$$
x > 1.
$$

The domains of $f \circ g$ and $g \circ f$ can be very different.

Composition as “Do This, Then That”

Sometimes functions model steps in a process.

Example: Temperature conversion.

The composition $K \circ C$ converts directly from Fahrenheit to Kelvin:

$$
(K \circ C)(F) = K(C(F)) = C(F) + 273.15
= \frac{5}{9}(F - 32) + 273.15.
$$

Now $(K \circ C)(F)$ is one function that does both conversions in one step.

This idea—breaking a complicated process into simpler function steps, or combining steps into a composition—is frequently used in modeling problems.


Inverse Functions

An inverse function, if it exists, “undoes” the action of the original function.

If $f$ sends $x$ to $y$, an inverse function $f^{-1}$ sends $y$ back to $x$.

Symbolically, if $f$ has an inverse:

Composed, this means:

whenever these expressions are defined.

Both of these are examples of composition:
$$
f^{-1} \circ f = \text{identity on the domain of } f, \\
f \circ f^{-1} = \text{identity on the domain of } f^{-1}.
$$

The “identity” function on some set is the function that returns its input:
$$
\text{id}(x) = x.
$$

When Does an Inverse Function Exist?

A function $f$ has an inverse function (on its domain) exactly when:

In more formal terms:

If $f$ is one-to-one, we can reverse the process: each output came from exactly one input, so we can solve backward and define $f^{-1}$.

If $f$ is not one-to-one, you can often restrict its domain to a smaller interval where it becomes one-to-one, and then define an inverse on that restricted domain.

Example idea (without full trigonometry details): $\sin x$ is not one-to-one on all real numbers, but if you restrict to $[-\frac{\pi}{2}, \frac{\pi}{2}]$, it becomes one-to-one there, and an inverse $\arcsin x$ can be defined on that interval.

How to Find an Inverse Function (Algebraically)

To find $f^{-1}$ from a formula for $f$:

  1. Write $y = f(x)$.
  2. Solve this equation for $x$ in terms of $y$.
  3. Swap the roles of $x$ and $y$: replace the $y$ with $x$ and the solved-for $x$ with $f^{-1}(x)$.

This gives the formula $y = f^{-1}(x)$.

Example: Let $f(x) = 3x - 5$.

  1. Write:
    $$
    y = 3x - 5.
    $$
  2. Solve for $x$:
    $$
    y = 3x - 5 \quad \Rightarrow \quad y + 5 = 3x \quad \Rightarrow \quad x = \frac{y + 5}{3}.
    $$
  3. Swap $x$ and $y$:
    $$
    y = \frac{x + 5}{3}.
    $$

So:
$$
f^{-1}(x) = \frac{x + 5}{3}.
$$

You can check using composition:

Both compositions give the identity, confirming that this is truly the inverse.

Nonlinear Example

Let $f(x) = (x - 2)^3$.

  1. Write:
    $$
    y = (x - 2)^3.
    $$
  2. Solve for $x$:
    $$
    \sqrt[3]{y} = x - 2 \quad \Rightarrow \quad x = \sqrt[3]{y} + 2.
    $$
  3. Swap $x$ and $y$:
    $$
    y = \sqrt[3]{x} + 2.
    $$

So:
$$
f^{-1}(x) = \sqrt[3]{x} + 2.
$$

Again, you can verify by composition if desired.

Domain and Range Switching

If $f$ has an inverse $f^{-1}$, then:

So $f$ and $f^{-1}$ swap domain and range with each other.

Example: Let $f(x) = x^3$, with domain all real numbers.

The inverse is $f^{-1}(x) = \sqrt[3]{x}$.

Here, domain and range of $f$ and $f^{-1}$ are both $\mathbb{R}$, so swapping doesn’t visibly change anything, but the principle still holds.

If a function’s range is more limited, that restriction becomes the inverse’s domain.

Example: Suppose $f(x) = \sqrt{x}$ with domain $[0, \infty)$.

If instead you restrict $f(x) = e^x$ to domain $\mathbb{R}$, its range is $(0, \infty)$, so the inverse $\ln x$ has domain $(0, \infty)$.

Graphs of Inverse Functions

Graphically, the graphs of $f$ and $f^{-1}$ are mirror images of each other across the line $y = x$.

Each point $(a, b)$ on the graph of $f$ corresponds to the point $(b, a)$ on the graph of $f^{-1}$.

This matches the idea that:

A common visual test for whether a function has an inverse (without restricting the domain) is the “horizontal line test”:

(You can still often restrict the domain to make it one-to-one.)


Composition and Inverses Together

Composition and inverse functions are closely connected:

These equations say: composing a function with its inverse (in either order) gives the identity function on the appropriate set.

This property is what you check when you want to confirm you have found the correct inverse.

Conversely, if you can find a function $g$ such that:

then $g$ is the inverse of $f$ on that set, and you can write $g = f^{-1}$.


Practical Skills from This Chapter

From this chapter, you should be able to:

These ideas will be used heavily in later topics, including logarithms, trigonometric functions, and calculus.

Views: 11

Comments

Please login to add a comment.

Don't have an account? Register now!