# Nakafa Framework: LLM
URL: /en/subject/high-school/11/mathematics/function-composition-inverse-function/inverse-function
Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/high-school/11/mathematics/function-composition-inverse-function/inverse-function/en.mdx
Output docs content for large language models.
---
import { FunctionIllustration } from "./illustration";
import { LineEquation } from "@repo/design-system/components/contents/line-equation";
import { getColor } from "@repo/design-system/lib/color";
export const metadata = {
  title: "Inverse Function",
  description: "Learn inverse functions step-by-step: definition, bijective requirements, finding formulas, and graph reflections. Master f⁻¹(x) with clear examples.",
  authors: [{ name: "Nabil Akbarazzima Fatih" }],
  date: "04/27/2025",
  subject: "Function Composition and Inverse Function",
};
## Understanding Inverse Functions
You often translate words or sentences from English to Indonesian, for example, when watching movies or reading news. This translation process is similar to how a function works: there is an input (English word) and an output (Indonesian word).
Consider the following illustration:
Here, the "Translation Machine" acts like a function that transforms "Mathematics" (input) into "Matematika" (output).
Now, what if we want to do the reverse? Translate "Matematika" back into "Mathematics"?
This reverse process is the basis of the **inverse function** concept.
## Definition of Inverse Function
An inverse function is a function that "reverses" the operation of an initial function. If function  maps element  from domain  to element  in codomain , then its inverse function, denoted as  (read "f inverse"), maps element  from  back to element  in .
Mathematically:
In other words, if  changes  to , then  changes  back to . The inverse function "undoes" the effect of the original function.
**Important:** The notation  does **not** mean  (multiplicative inverse or reciprocal). It is special notation for the inverse function.
## Condition for a Function to Have an Inverse
Not all functions have an inverse function. For a function  to have an inverse function , the function  must be **bijective**. A bijective function is both **injective** (one-to-one) and **surjective** (onto).
- **Injective (One-to-one):** Every distinct element in the domain maps to a distinct element in the codomain. No two different inputs produce the same output.
- **Surjective (Onto):** Every element in the codomain is the result of mapping from at least one element in the domain. All possible outputs occur.
If function  is not bijective, its inverse relation might exist, but that relation will not be a function.
## Determining the Formula for an Inverse Function
To find the formula for the inverse function  from a function , you can follow these steps:
1.  Replace  with .
2.  Swap the positions of the variables  and  in the equation.
3.  Solve the equation for  in terms of .
4.  Replace  with  to get the inverse function formula.
**Example:**
Find the inverse function of .
1.  Replace  with :
    
2.  Swap  and :
    
3.  Solve for :
    
      
      
    
4.  Replace  with :
    
So, the inverse function of  is .
## Graph of a Function and Its Inverse
The graph of the inverse function  is a reflection of the graph of the original function  across the line .
For example, let's look at the graph of , its inverse , and the identity line .
      Graph of  and its Inverse
    >
  }
  description={
    <>
      The graph shows the function , its inverse{" "}
      , and the line  as
      the line of reflection.
    >
  }
  data={[
    {
      // f(x) = 2x + 3
      points: Array.from({ length: 11 }, (_, i) => {
        const x = i - 5;
        return { x, y: 2 * x + 3, z: 0 };
      }),
      color: getColor("ORANGE"),
      labels: [
        {
          text: "f(x) = 2x + 3",
          at: 5,
          offset: [-2.5, 0, 0],
        },
      ],
    },
    {
      // f⁻¹(x) = (x - 3) / 2
      points: Array.from({ length: 11 }, (_, i) => {
        const x = i - 5;
        return { x, y: (x - 3) / 2, z: 0 };
      }),
      color: getColor("EMERALD"),
      labels: [
        {
          text: "f^{-1}(x) = (x-3)/2",
          at: 10,
          offset: [0.5, 0.5, 0],
        },
      ],
    },
    {
      // y = x (Identity Line)
      points: Array.from({ length: 11 }, (_, i) => {
        const x = i - 5;
        return { x, y: x, z: 0 };
      }),
      color: getColor("PINK"),
      labels: [
        {
          text: "y = x",
          at: 10,
          offset: [0.5, 0.5, 0],
        },
      ],
    },
  ]}
/>