Summarize this article:
Last updated on October 16, 2025
An injective function, or one-to-one function, is a function where each input is mapped to a unique output. In this article, we will learn about injective functions, their properties, graphs, and how to identify them.
In mathematics, a function is a relationship between one input and one output. A function is said to be injective if every element in the domain maps to a unique element in the codomain, that is, no two different inputs have the same output. A function f: A → B is injective if, for all x1, x2 ∈ A, whenever f(x1) = f(x2), then x1 = x2.
Difference Between Injective and Surjective Functions
In mathematics, two important types of functions are injective and surjective. They differ in the way the elements of the domain are associated with the elements in the codomain. In this section, we will learn how injective and surjective functions differ.
Injective Function |
Surjective Function |
An injective function maps every element of the domain to a unique element in the codomain, where no two inputs share the same output. |
A surjective function is one in which every element of the codomain is mapped to at least one element from the domain. |
It is represented as f: A ↣ B |
It is represented as f: A↠B |
Every input is mapped to different outputs |
Multiple inputs are mapped to the same output |
Here, not all elements in the codomain are mapped |
Every element in the codomain should be mapped |
For example, f(x) = 2x (R → R) |
For example, f(x) = x2 (R → R+) is not surjective unless codomain is adjusted. |
Injective functions have specific properties that help students identify and analyze them. Some of the key properties are:
Graph of Injective Function
The graph of an injective function is used to visually represent the function. If a function is injective, its graph will pass the horizontal line test, which means that no horizontal line intersects the graph more than once.
To check whether the graph is injective or not, we use the horizontal line test. In the horizontal line test, we will check how many times a horizontal line crosses the graph.
How to Identify an Injective Function?
To check whether the function is injective, we use an algebraic method or the horizontal line test. Now let’s learn them in detail.
Algebraic Method
In the algebraic method, we will check whether the function has different inputs for the same output. In other words, check if f(x1) = f(x2) and show that x1 = x2.
For example, for f(x) = 2x + 3
Assuming f(x1) = f(x2)
2x1 + 3 = 2x2 + 3
Then x1 = x2
So, the function is injective
Horizontal Line Test
To check whether the function is injective, we use the horizontal line test. To check, follow these steps:
Step 1: First, represent the function in a graph
Step 2: Draw a horizontal line across the graph and check how many times the graph intersects the graph. If the line touches the graph once, the function is an injective function. If it intersects more than once, the function is not injective.
Injective functions are used to understand the uniqueness and accuracy in various fields. In this section, we will learn about how it is used in real life.
Understanding and learning the injection function is an important concept in algebra, calculus, and advanced mathematics. However, students make errors when working with an injective function. Here are a few common mistakes and ways to avoid them in an injective function.
Determine whether the function f(x) = 2x + 3 is injective.
The function f(x) = 2x + 3 is injective
Checking if f(x1) = f(x2) and show that x1 = x2, to verify whether the function is injective
Let f(x1) = f(x2)
Then, 2x1 + 3 = 2x2 + 3
2x1 = 2x2 + 3 -3
2x1 = 2x2
Dividing by 2: x1 = x2
Since, x1 = x2, the function is injective
Check whether the function k(x) = ex is injective.
Yes, the function is injective
The value of ex increases for all real x
So, if k(x1) = k(x2)
ex1 = ex2
Thus, x1 = x2
So, the function k(x) is injective
Is the function g(x) = x2 - 4x + 4 injective?
No, the function g(x) is not injective
Given, g(x) = x2 - 4x + 4
Simplifying g(x): g(x) = (x - 2)2
Finding the value of g(x) by substituting x with real numbers
g(1) = (1 - 2)2 = 1
g(2) = (2 - 2)2 = 0
g(3) = (3 - 2)2 = 1
Here, the values of g(1) and g(3) are the same, so the function g(x) is not injective.
Check whether the function h(x) = sin x is injective on the interval [0, π].
No, the function h(x) is not injective
To check whether the function h(x) is injective on [0, π]
For example, sin(π/6) = ½
sin(5π/6) = ½
As, the value sin(π/6) and sin(5π/6) are same, so the function is not injective
Check if the function r(x) = |x| is injective
No, the function r(x) is not injective
To determine if a function is injective, we check whether it maps distinct inputs to distinct outputs.
Here, r(x) = |x|
If x = 2, r(2) = |2| = 2
If x = -2, r(-2) = |-2| = 2
Since the output is the same for two distinct inputs, the function is not injective.
Jaskaran Singh Saluja is a math wizard with nearly three years of experience as a math teacher. His expertise is in algebra, so he can make algebra classes interesting by turning tricky equations into simple puzzles.
: He loves to play the quiz with kids through algebra to make kids love it.