Summarize this article:
Last updated on October 17, 2025
A many-one function is a function that maps two or more elements of the domain to the same element in the codomain. Many one function is written as f: x → y, such that two or more elements of the set x are related to a single element of the set y. We will learn more about one function in this article.
A many-to-one function is a type of mathematical function where multiple inputs from the domain can have the same output in the codomain. In other words, a function is called many-to-one when two or more different inputs produce the same output. A function f: A → B is many-to-one if there exist at least two distinct elements, a1 and a2, in set A such that f (a1) = f (a2).
Example:
Set A = {1, 2, 3, 4} and set B = {x, y}
If f = {(1, x), (2, x), (3, x), (4, y)}
Here, 1, 2, and 3 give the same output as x. So, it is known as a many-to-one function.
Functions can be classified into how the inputs, i.e., domain, are connected to the outputs, i.e., codomain. The table given below shows the difference between a one-to-one function and a many-to-one function.
Feature |
One-to-One Function |
Many-to-One Function |
Definition |
Every input is connected to a different output. No two inputs have the same result. |
Two or more different inputs give the same output. |
Inputs and Outputs |
Each input matches only one unique output. |
Different inputs can be connected to one common output. |
Horizontal Line Test |
A horizontal line crosses the graph only once. |
A horizontal line can cross the graph more than once. |
Example |
f(x) = x, f(x) = x3 |
f(x) = x2, f(x) = sin(x) |
A many-to-one function is a type of function where more than one input gives the same output. These functions have some special properties that make them easy to identify. The important properties of many one functions are:
At least two different inputs from the domain have the same output in the codomain of this function.
The number of elements in the domain is greater than the number of elements in the codomain.
A single value from the codomain can be the result of more than one input from the domain.
The number of distinct outputs (the range) is less than or equal to the number of inputs (the domain), but the codomain can be larger than the range.
A function is called a constant function if all inputs from the domain produce the same single output value.
Graph of Many to One Function
Follow the steps below to see if a graph is one-to-one or many-to-one:
Step 1: Draw a horizontal line (parallel to the x-axis) across the graph.
Step 2: If the line touches the graph in more than one spot, that means different inputs are giving the same output — so it’s a many-to-one function.
Looking at the graph above, the horizontal line crosses the curve at two points, which means the function is many-to-one.
Many one functions are commonly seen in our daily lives, as many real-world situations involve grouping different inputs into a single result. They are used in various fields like education, business, science, and technology. Here are some of them explained below.
When studying or solving problems related to many one functions, students often make simple errors due to confusion about the domain, co-domain, or mapping rules. Given below are some common mistakes and ways to avoid them:
Let A = {1, 2, 3, 4} and B = {x , y}. Define f: A → B as f = {(1, x), (2, x), (3, y), (4, y)}. Is f a many-to-one function?
Yes, f is a many-to-one function
Here, the inputs 1 and 2 have the result as x, and inputs 3 and 4 both map to y. Since at least two elements in A have the same output in B, this is a many-to-one function.
For the function f(x) = x2, where x ∈ {-2, 0, 1, 2}, is the function many-to-one?
Yes, f(x) = x2 is a many-to-one function
Evaluating,
f(-2) = 4
f(-1) = 1
f(0) = 0
f(1) = 1
f(2) = 4
Here, f(-2) = f(2) and f(-1) = f(1). Since different inputs give the same outputs, the function is many-to-one.
Let sets be: A = {cat, dog, bird, rabbit} and B = {mammal, bird}. A function is defined as: f = {(cat, mammal), (dog, mammal), (rabbit, mammal), (bird, bird)}. Is this a many-to-one function?
Yes, it is a many-to-one function.
The inputs cat, dog, and rabbit all map to the same output: mammal. Since different inputs give the same output, this is a many-to-one function.
Check if the function f(x) = x2 is many-to-one, for x ∈ {-2, -1, 0, 1, 2}.
Yes, f(x) = x2 is a many-to-one function.
Evaluating:
f(-2) = 4
f(-1) = 1
f(0) = 0
f(1) = 1
f(2) = 4
Here, different inputs like -2 and 2 both give 4. Also, -1 and 1 both give 1.
This means multiple inputs share outputs, so it’s a many-to-one function.
Let sets be: A = {X, Y, Z} and B = {Red}. Function is defined as f = {(X, Red), (Y, Red), (Z, Red)}. What type of function is this?
It is a many-to-one function.
All inputs give only one output (Red). That makes it a constant function, which is a special type of many-to-one function.
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.