# Nakafa Framework: LLM
URL: /en/subject/high-school/11/mathematics/function-composition-inverse-function/injective-surjective-bijective-function
Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/high-school/11/mathematics/function-composition-inverse-function/injective-surjective-bijective-function/en.mdx
Output docs content for large language models.
---
export const metadata = {
  title: "Injective, Surjective, and Bijective Functions",
  description: "Master one-to-one, onto, and bijective function types with clear analogies. Understand mapping properties and inverse function requirements.",
  authors: [{ name: "Nabil Akbarazzima Fatih" }],
  date: "04/27/2025",
  subject: "Function Composition and Inverse Function",
};
## Understanding Function Mapping Properties
In mathematics, functions map elements from one set (the domain) to another set (the codomain). This mapping can be classified into several types based on how domain and codomain elements are connected. The three main types are injective, surjective, and bijective functions.
Let's assume we have a function .
## Injective Function (One-to-One)
A function is called **injective** or **one-to-one** if every distinct element in the domain  maps to a distinct element in the codomain . In other words, no two different domain elements can have the same image (output) in the codomain.
**Formal Definition:**
A function  is injective if for every , the following holds:
Or, equivalently (using the contrapositive):
**Analogy:** Imagine every student in a class (domain) must have a unique student ID number (codomain). No two students can have the same ID number. The mapping function from students to ID numbers is an injective function.
**Examples:**
- The function  for  is injective, because every distinct value of  will produce a distinct .
- The function  for  is **not** injective, because  and . There are two different inputs ( and ) that produce the same output ().
## Surjective Function (Onto)
A function is called **surjective** or **onto** if every element in the codomain  is the image of **at least one** element in the domain . In other words, there are no "unreachable" elements in the codomain that don't have a corresponding element in the domain. The range of a surjective function is equal to its codomain.
**Formal Definition:**
A function  is surjective if for every , there exists **at least one**  such that:
**Analogy:** Imagine every seat in a movie theater (codomain) must be occupied by at least one audience member (domain) when the movie starts. The mapping function from audience members to seats is surjective if all seats are filled.
**Examples:**
- The function  from  is surjective, because every real number  in the codomain is the cube of some real number  (specifically, ).
- The function  from  is **not** surjective, because there is no real number  that yields  (or any other negative number). Negative elements in the codomain have no corresponding element in the domain.
- However, if we restrict the codomain to  from  (non-negative real numbers), then this function becomes surjective.
## Bijective Function (One-to-One Correspondence)
A function is called **bijective** if it is both **injective and surjective**. This means that every element in the domain maps to a unique element in the codomain, and every element in the codomain has exactly one corresponding element in the domain.
A bijective function creates a perfect **one-to-one correspondence** between the elements of the domain and the codomain.
**Formal Definition:**
A function  is bijective if for every , there exists **exactly one**  such that:
**Analogy:** Imagine a perfect pairing between an equal number of men (domain) and women (codomain). Each man is paired with exactly one unique woman, and each woman is paired with exactly one unique man. This pairing function is bijective.
**Important:** A function can only have an **inverse function** if it is **bijective**.
**Examples:**
- The function  from  is bijective (injective and surjective).
- The function  from  is bijective (injective and surjective).
- The function  from  is not bijective (neither injective nor surjective).
- The function  from  is not bijective (injective but not surjective).
- The function  from  is not bijective (surjective but not injective).