3 added
3 removed
Original
2026-01-01
Modified
2026-02-28
1
-
<p>300 Learners</p>
1
+
<p>367 Learners</p>
2
<p>Last updated on<strong>December 10, 2025</strong></p>
2
<p>Last updated on<strong>December 10, 2025</strong></p>
3
<p>An onto function is a type of mapping where each element in the codomain set has a corresponding element in the domain set. In this article, we will discuss onto functions, its properties, composition, and how to represent it.</p>
3
<p>An onto function is a type of mapping where each element in the codomain set has a corresponding element in the domain set. In this article, we will discuss onto functions, its properties, composition, and how to represent it.</p>
4
<h2>What is an Onto Function?</h2>
4
<h2>What is an Onto Function?</h2>
5
<p>What Is Algebra? 🧮 | Simple Explanation with 🎯 Cool Examples for Kids | ✨BrightCHAMPS Math</p>
5
<p>What Is Algebra? 🧮 | Simple Explanation with 🎯 Cool Examples for Kids | ✨BrightCHAMPS Math</p>
6
<p>▶</p>
6
<p>▶</p>
7
<p>Functions represent relationships between two<a>sets</a>. A<a>function</a>f: A → B is said to be onto if every element in the codomain B is the image of at least one element in the domain.</p>
7
<p>Functions represent relationships between two<a>sets</a>. A<a>function</a>f: A → B is said to be onto if every element in the codomain B is the image of at least one element in the domain.</p>
8
<h2>Difference Between Onto and Into Function</h2>
8
<h2>Difference Between Onto and Into Function</h2>
9
<p>Functions can be classified as onto or into based on how the elements of the domain are mapped to elements in the codomain. With the help of the table below, let’s look at the differences between the functions.</p>
9
<p>Functions can be classified as onto or into based on how the elements of the domain are mapped to elements in the codomain. With the help of the table below, let’s look at the differences between the functions.</p>
10
<strong>Onto Function</strong><strong>Into Function</strong><p>A function is onto if every element in the co-domain is mapped to at least one element in the domain </p>
10
<strong>Onto Function</strong><strong>Into Function</strong><p>A function is onto if every element in the co-domain is mapped to at least one element in the domain </p>
11
<p>In an<a>into function</a>, at least one element in the co-domain is not mapped by any element in the domain.</p>
11
<p>In an<a>into function</a>, at least one element in the co-domain is not mapped by any element in the domain.</p>
12
<p>It is represented using the<a>symbol</a>↠</p>
12
<p>It is represented using the<a>symbol</a>↠</p>
13
<p>It is represented using the symbol ↣ </p>
13
<p>It is represented using the symbol ↣ </p>
14
<p>For example, let f: {1, 2, 3, 4} → {w, x, y, z}, where: f(1) = w, f(2) = x, f(3) = y, f(4) = z. Here, every element in the codomain is mapped to the function, so this is an onto function. </p>
14
<p>For example, let f: {1, 2, 3, 4} → {w, x, y, z}, where: f(1) = w, f(2) = x, f(3) = y, f(4) = z. Here, every element in the codomain is mapped to the function, so this is an onto function. </p>
15
<p>For example, let f:{1, 2, 3} → {w, x, y, z}, where: f(1) = w, f(2) = x, f(3) = y. Here, the element z is not mapped with f, so it is an into function. </p>
15
<p>For example, let f:{1, 2, 3} → {w, x, y, z}, where: f(1) = w, f(2) = x, f(3) = y. Here, the element z is not mapped with f, so it is an into function. </p>
16
<h2>Number of Onto Functions Formula</h2>
16
<h2>Number of Onto Functions Formula</h2>
17
<p>To calculate the<a>number</a>of onto functions from set A to set B, assume that set A has n elements and set B has m elements. Let: |A| = n |B| = m </p>
17
<p>To calculate the<a>number</a>of onto functions from set A to set B, assume that set A has n elements and set B has m elements. Let: |A| = n |B| = m </p>
18
<p>The<a>number</a>of onto functions from A to B can be calculated using the<a>formula</a>:</p>
18
<p>The<a>number</a>of onto functions from A to B can be calculated using the<a>formula</a>:</p>
19
<p>Number of onto functions = total number<a>of functions</a>- number of functions that are not onto</p>
19
<p>Number of onto functions = total number<a>of functions</a>- number of functions that are not onto</p>
20
<p>The total number of functions from A to B = \(m^n\)</p>
20
<p>The total number of functions from A to B = \(m^n\)</p>
21
<p>The number of onto functions = \(m^n - \binom{m}{1}(m-1)^n + \binom{m}{2}(m-2)^n - \dots + (-1)^m \binom{m}{m-1} 1^n \)</p>
21
<p>The number of onto functions = \(m^n - \binom{m}{1}(m-1)^n + \binom{m}{2}(m-2)^n - \dots + (-1)^m \binom{m}{m-1} 1^n \)</p>
22
<p>If n < m, there are no onto functions.</p>
22
<p>If n < m, there are no onto functions.</p>
23
<p>If n = m, then the number of onto functions is m! </p>
23
<p>If n = m, then the number of onto functions is m! </p>
24
<h3>Explore Our Programs</h3>
24
<h3>Explore Our Programs</h3>
25
-
<p>No Courses Available</p>
26
<h2>What are the Properties of Onto Function?</h2>
25
<h2>What are the Properties of Onto Function?</h2>
27
<p>A function is called onto if every element of the codomain is mapped to at least one element from the domain. The onto function follows certain properties; by understanding these properties, we can identify the functions. </p>
26
<p>A function is called onto if every element of the codomain is mapped to at least one element from the domain. The onto function follows certain properties; by understanding these properties, we can identify the functions. </p>
28
<ul><li>In an onto function, each element of the codomain is associated with at least one element from the domain; that is, no element in the codomain remains unmapped.</li>
27
<ul><li>In an onto function, each element of the codomain is associated with at least one element from the domain; that is, no element in the codomain remains unmapped.</li>
29
</ul><ul><li>If a function has a right inverse, then it must be onto.</li>
28
</ul><ul><li>If a function has a right inverse, then it must be onto.</li>
30
</ul><ul><li>In an onto function, the range and co-domain are equal.</li>
29
</ul><ul><li>In an onto function, the range and co-domain are equal.</li>
31
</ul><ul><li>Not all onto functions are one-to-one. </li>
30
</ul><ul><li>Not all onto functions are one-to-one. </li>
32
</ul><h2>Composition of Onto Function</h2>
31
</ul><h2>Composition of Onto Function</h2>
33
<p>The composition of a function in mathematics is an operation that combines two functions to create a new function. If any two functions are onto functions, then their composition is also onto. For example, if \(f: A → B\) and \(g: B → C\) are both onto, then their composition \(g∘fg \circ f: A → C\) is also onto.</p>
32
<p>The composition of a function in mathematics is an operation that combines two functions to create a new function. If any two functions are onto functions, then their composition is also onto. For example, if \(f: A → B\) and \(g: B → C\) are both onto, then their composition \(g∘fg \circ f: A → C\) is also onto.</p>
34
<p>This is because every element in C is mapped to B through the function g, and every element in B is mapped to A through the function f. So, composition \((g∘fg \circ f)\) has element C mapped to A. </p>
33
<p>This is because every element in C is mapped to B through the function g, and every element in B is mapped to A through the function f. So, composition \((g∘fg \circ f)\) has element C mapped to A. </p>
35
<h2>How to Represent Onto Function Graphically?</h2>
34
<h2>How to Represent Onto Function Graphically?</h2>
36
<p>Representing a function on a graph is the easiest way to compare the range with the co-domain. So, to verify whether the function is onto, we use a graph. A function is onto if every horizontal line intersects the graph at least once. This indicates that every value in the codomain is mapped to at least one element in the domain. </p>
35
<p>Representing a function on a graph is the easiest way to compare the range with the co-domain. So, to verify whether the function is onto, we use a graph. A function is onto if every horizontal line intersects the graph at least once. This indicates that every value in the codomain is mapped to at least one element in the domain. </p>
37
<h2>Relationship Between Onto Function and One-to-One Function</h2>
36
<h2>Relationship Between Onto Function and One-to-One Function</h2>
38
<p>Understanding one-to-one and onto functions is important when learning about inverse functions. A one-to-one function is also known as an<a>injective function</a>, and an onto function is also known as a<a>surjective function</a>. The main difference between these functions is that every co-domain is mapped with at least one domain, whereas in a one-to-one function, each element in the co-domain is mapped to a unique element in the domain.</p>
37
<p>Understanding one-to-one and onto functions is important when learning about inverse functions. A one-to-one function is also known as an<a>injective function</a>, and an onto function is also known as a<a>surjective function</a>. The main difference between these functions is that every co-domain is mapped with at least one domain, whereas in a one-to-one function, each element in the co-domain is mapped to a unique element in the domain.</p>
39
<p>If a function is both onto and one-to-one is called bijective. It means that each element in the domain is mapped to a unique element in the codomain. Each element in the codomain set is the image of some element from the domain set.</p>
38
<p>If a function is both onto and one-to-one is called bijective. It means that each element in the domain is mapped to a unique element in the codomain. Each element in the codomain set is the image of some element from the domain set.</p>
40
<h2>Tips and Tricks to Master Onto Function</h2>
39
<h2>Tips and Tricks to Master Onto Function</h2>
41
<p>Onto functions ensure that every element in the codomain is covered by at least one element from the domain. Practicing examples and visualizing mappings helps in mastering the concept.</p>
40
<p>Onto functions ensure that every element in the codomain is covered by at least one element from the domain. Practicing examples and visualizing mappings helps in mastering the concept.</p>
42
<ul><li>Always check that every element in the codomain has at least one pre-image in the domain. </li>
41
<ul><li>Always check that every element in the codomain has at least one pre-image in the domain. </li>
43
<li>Use diagrams or mappings to visualize how each element of the domain connects to the codomain. </li>
42
<li>Use diagrams or mappings to visualize how each element of the domain connects to the codomain. </li>
44
<li>Compare onto with into functions to clearly identify differences and avoid confusion. </li>
43
<li>Compare onto with into functions to clearly identify differences and avoid confusion. </li>
45
<li>Practice with real-life examples like seat allocation, resource distribution, and cryptography to strengthen understanding. </li>
44
<li>Practice with real-life examples like seat allocation, resource distribution, and cryptography to strengthen understanding. </li>
46
<li>Solve varied problems involving different<a>types of functions</a>to quickly recognize whether a function is onto.</li>
45
<li>Solve varied problems involving different<a>types of functions</a>to quickly recognize whether a function is onto.</li>
47
</ul><h2>Common Mistakes and How to Avoid Them in Onto Function</h2>
46
</ul><h2>Common Mistakes and How to Avoid Them in Onto Function</h2>
48
<p>Students often confuse different types of functions because of their similarities. This confusion can lead to mistakes. Here are common mistakes students made with the onto function and how to avoid them. </p>
47
<p>Students often confuse different types of functions because of their similarities. This confusion can lead to mistakes. Here are common mistakes students made with the onto function and how to avoid them. </p>
49
<h2>Real-World Applications of Onto Function</h2>
48
<h2>Real-World Applications of Onto Function</h2>
50
<p>An onto function is one in which every element of the co-domain is the image of at least one element from the domain. In real life, we use the onto function in different fields like science, technology, cryptography, etc. Let’s learn them in detail. </p>
49
<p>An onto function is one in which every element of the co-domain is the image of at least one element from the domain. In real life, we use the onto function in different fields like science, technology, cryptography, etc. Let’s learn them in detail. </p>
51
<ul><li>To schedule events, assign tasks, or resources, we use the onto function to ensure every need is met. For example, in schools to allocate seats to students we can use onto function where students (domain) and the seats(co-domain), so that each seat is assigned at least one student. </li>
50
<ul><li>To schedule events, assign tasks, or resources, we use the onto function to ensure every need is met. For example, in schools to allocate seats to students we can use onto function where students (domain) and the seats(co-domain), so that each seat is assigned at least one student. </li>
52
</ul><ul><li>In cryptography, a cryptographic system may use a function that maps messages to encrypted code so that every possible encrypted output is generated.</li>
51
</ul><ul><li>In cryptography, a cryptographic system may use a function that maps messages to encrypted code so that every possible encrypted output is generated.</li>
53
<li> In economics, we use onto function to model the distribution of resources to demand, to ensure it reaches all. </li>
52
<li> In economics, we use onto function to model the distribution of resources to demand, to ensure it reaches all. </li>
54
<li>Using an onto function ensures every seat, task, or resource is assigned at least once, such as allocating seats to students in a classroom.</li>
53
<li>Using an onto function ensures every seat, task, or resource is assigned at least once, such as allocating seats to students in a classroom.</li>
55
<li>Onto functions are used to map messages to encrypted codes so that every possible encrypted output is generated.</li>
54
<li>Onto functions are used to map messages to encrypted codes so that every possible encrypted output is generated.</li>
56
-
</ul><h3>Problem 1</h3>
55
+
</ul><h2>Download Worksheets</h2>
56
+
<h3>Problem 1</h3>
57
<p>Verify whether the function is onto or not. Let f: R → R be defined as f(x) = 2x + 3.</p>
57
<p>Verify whether the function is onto or not. Let f: R → R be defined as f(x) = 2x + 3.</p>
58
<p>Okay, lets begin</p>
58
<p>Okay, lets begin</p>
59
<p>The function f is onto </p>
59
<p>The function f is onto </p>
60
<h3>Explanation</h3>
60
<h3>Explanation</h3>
61
<p>The function f: R → R is defined by \(f(x) = 2x + 3\). </p>
61
<p>The function f: R → R is defined by \(f(x) = 2x + 3\). </p>
62
<p>Where x and y are real numbers. Assume f(x) = y then, </p>
62
<p>Where x and y are real numbers. Assume f(x) = y then, </p>
63
<p>\(2x + 3 = y\)</p>
63
<p>\(2x + 3 = y\)</p>
64
<p>\(x = \frac{(y - 3)}{2}\)</p>
64
<p>\(x = \frac{(y - 3)}{2}\)</p>
65
<p>As x ∈ R for every y ∈ R in \(x = \frac{(y -3)}{2} \)</p>
65
<p>As x ∈ R for every y ∈ R in \(x = \frac{(y -3)}{2} \)</p>
66
<p>So, f is an onto function</p>
66
<p>So, f is an onto function</p>
67
<p>Well explained 👍</p>
67
<p>Well explained 👍</p>
68
<h3>Problem 2</h3>
68
<h3>Problem 2</h3>
69
<p>Check if g is an onto function from C → D, where C = {1, 2, 3} and D = {4, 5}, and let g = {(1, 4), (2, 5), (3, 5)}</p>
69
<p>Check if g is an onto function from C → D, where C = {1, 2, 3} and D = {4, 5}, and let g = {(1, 4), (2, 5), (3, 5)}</p>
70
<p>Okay, lets begin</p>
70
<p>Okay, lets begin</p>
71
<p>The function g is onto</p>
71
<p>The function g is onto</p>
72
<h3>Explanation</h3>
72
<h3>Explanation</h3>
73
<p>Given, </p>
73
<p>Given, </p>
74
<p>C = {1, 2, 3}</p>
74
<p>C = {1, 2, 3}</p>
75
<p>D = {4, 5}</p>
75
<p>D = {4, 5}</p>
76
<p>g = {(1, 4), (2, 5), (3, 5)}</p>
76
<p>g = {(1, 4), (2, 5), (3, 5)}</p>
77
<p>Here, all the elements in set D are mapped with g; the function g is an onto function.</p>
77
<p>Here, all the elements in set D are mapped with g; the function g is an onto function.</p>
78
<p>Well explained 👍</p>
78
<p>Well explained 👍</p>
79
<h3>Problem 3</h3>
79
<h3>Problem 3</h3>
80
<p>Let f: R → R, f(x) = 2x and g: R → R, g(x) = x + 1. Is g∘f onto?</p>
80
<p>Let f: R → R, f(x) = 2x and g: R → R, g(x) = x + 1. Is g∘f onto?</p>
81
<p>Okay, lets begin</p>
81
<p>Okay, lets begin</p>
82
<p>The function\( g∘f\) is onto.</p>
82
<p>The function\( g∘f\) is onto.</p>
83
<h3>Explanation</h3>
83
<h3>Explanation</h3>
84
<p>Given,</p>
84
<p>Given,</p>
85
<p>\(f: R → R, f(x) = 2x\)</p>
85
<p>\(f: R → R, f(x) = 2x\)</p>
86
<p> \(g: R → R, g(x) = x + 1\)</p>
86
<p> \(g: R → R, g(x) = x + 1\)</p>
87
<p>So, \((g∘f)(x)=g(f(x))=g(2x)=2x+1(g \circ f)(x) = g(f(x)) = g(2x) = 2x + 1\)</p>
87
<p>So, \((g∘f)(x)=g(f(x))=g(2x)=2x+1(g \circ f)(x) = g(f(x)) = g(2x) = 2x + 1\)</p>
88
<p>A function is said to be onto when each element of the co-domain is mapped to at least one element from the domain. </p>
88
<p>A function is said to be onto when each element of the co-domain is mapped to at least one element from the domain. </p>
89
<p>Checking if x ∈ R in \(g∘f(x) = y\)</p>
89
<p>Checking if x ∈ R in \(g∘f(x) = y\)</p>
90
<p>That is, \(2x + 1 = y\)</p>
90
<p>That is, \(2x + 1 = y\)</p>
91
<p>\(2x = y - 1\)</p>
91
<p>\(2x = y - 1\)</p>
92
<p>\(x =\frac{ (y - 1)}{2}\)</p>
92
<p>\(x =\frac{ (y - 1)}{2}\)</p>
93
<p>So, the function \(g∘f\) is an onto function</p>
93
<p>So, the function \(g∘f\) is an onto function</p>
94
<p>Well explained 👍</p>
94
<p>Well explained 👍</p>
95
<h3>Problem 4</h3>
95
<h3>Problem 4</h3>
96
<p>If f: R → R, f(x) = 5x - 7, is f onto?</p>
96
<p>If f: R → R, f(x) = 5x - 7, is f onto?</p>
97
<p>Okay, lets begin</p>
97
<p>Okay, lets begin</p>
98
<p>Yes, the function f is onto.</p>
98
<p>Yes, the function f is onto.</p>
99
<h3>Explanation</h3>
99
<h3>Explanation</h3>
100
<p>For any y ∈ R, </p>
100
<p>For any y ∈ R, </p>
101
<p>\(5x - 7 = y\)</p>
101
<p>\(5x - 7 = y\)</p>
102
<p>\(5x = y - 7\)</p>
102
<p>\(5x = y - 7\)</p>
103
<p>\(x = \frac{(y - 7)}{5}\)</p>
103
<p>\(x = \frac{(y - 7)}{5}\)</p>
104
<p>Therefore, every real y is associated with x, such that f(x) = y. So f is an onto function.</p>
104
<p>Therefore, every real y is associated with x, such that f(x) = y. So f is an onto function.</p>
105
<p>Well explained 👍</p>
105
<p>Well explained 👍</p>
106
<h3>Problem 5</h3>
106
<h3>Problem 5</h3>
107
<p>Consider the function h: {1, 2, 3, 4} → {5, 6, 7, 8} defined as follows: h(1) = 5, h(2) = 6, h(3) = 7, and h(4) = 8. Verify if the function is onto?</p>
107
<p>Consider the function h: {1, 2, 3, 4} → {5, 6, 7, 8} defined as follows: h(1) = 5, h(2) = 6, h(3) = 7, and h(4) = 8. Verify if the function is onto?</p>
108
<p>Okay, lets begin</p>
108
<p>Okay, lets begin</p>
109
<p>The function h is onto</p>
109
<p>The function h is onto</p>
110
<h3>Explanation</h3>
110
<h3>Explanation</h3>
111
<p>Here, </p>
111
<p>Here, </p>
112
<p>h: {1, 2, 3, 4} → {5, 6, 7, 8} </p>
112
<p>h: {1, 2, 3, 4} → {5, 6, 7, 8} </p>
113
<p>D = {5, 6, 7, 8}</p>
113
<p>D = {5, 6, 7, 8}</p>
114
<p>Where, h(1) = 5</p>
114
<p>Where, h(1) = 5</p>
115
<p>h(2) = 6</p>
115
<p>h(2) = 6</p>
116
<p>h(3) = 7</p>
116
<p>h(3) = 7</p>
117
<p>h(4) = 8</p>
117
<p>h(4) = 8</p>
118
<p>The function is onto, as all the elements in D are mapped by h</p>
118
<p>The function is onto, as all the elements in D are mapped by h</p>
119
<p>Well explained 👍</p>
119
<p>Well explained 👍</p>
120
<h2>FAQs on Onto Function</h2>
120
<h2>FAQs on Onto Function</h2>
121
<h3>1.What is an onto function?</h3>
121
<h3>1.What is an onto function?</h3>
122
<p>A function is onto if every element of the co-domain is associated with the domain.</p>
122
<p>A function is onto if every element of the co-domain is associated with the domain.</p>
123
<h3>2.How to check if a function is onto?</h3>
123
<h3>2.How to check if a function is onto?</h3>
124
<p>To check whether a function is onto, start by writing the<a>equation</a>f(x) = y, where y is an arbitrary element of the co-domain B. Solve for x in<a>terms</a>of y, and then check whether the resulting x lies within the domain. If this is true for every y ∈ B, the function is onto.</p>
124
<p>To check whether a function is onto, start by writing the<a>equation</a>f(x) = y, where y is an arbitrary element of the co-domain B. Solve for x in<a>terms</a>of y, and then check whether the resulting x lies within the domain. If this is true for every y ∈ B, the function is onto.</p>
125
<h3>3.Can a function be onto and one-to-one?</h3>
125
<h3>3.Can a function be onto and one-to-one?</h3>
126
<p>Yes, the functions can be both onto and one-to-one. Such functions are known as bijections.</p>
126
<p>Yes, the functions can be both onto and one-to-one. Such functions are known as bijections.</p>
127
<h3>4.What is an into function?</h3>
127
<h3>4.What is an into function?</h3>
128
<p>An into function is a type of function in which at least one element in the co-domain is not mapped to the domain. </p>
128
<p>An into function is a type of function in which at least one element in the co-domain is not mapped to the domain. </p>
129
<h3>5.What is the relationship between range and co-domain in an onto function?</h3>
129
<h3>5.What is the relationship between range and co-domain in an onto function?</h3>
130
<p>In an onto function, the range is equal to the co-domain. That is, every element in the codomain is mapped by at least one element in the domain.</p>
130
<p>In an onto function, the range is equal to the co-domain. That is, every element in the codomain is mapped by at least one element in the domain.</p>
131
<h3>6.How can I help my child understand onto functions?</h3>
131
<h3>6.How can I help my child understand onto functions?</h3>
132
<p>Use real-life examples like assigning every seat to a student, distributing resources, or mapping messages to encrypted codes to show that all outputs are covered.</p>
132
<p>Use real-life examples like assigning every seat to a student, distributing resources, or mapping messages to encrypted codes to show that all outputs are covered.</p>
133
<h3>7.What are common mistakes children make with onto functions?</h3>
133
<h3>7.What are common mistakes children make with onto functions?</h3>
134
<p>Children often confuse onto with into functions or forget to check if every element of the codomain has a pre-image.</p>
134
<p>Children often confuse onto with into functions or forget to check if every element of the codomain has a pre-image.</p>
135
<h3>8.At what stage do children typically learn onto functions?</h3>
135
<h3>8.At what stage do children typically learn onto functions?</h3>
136
<p>Students are usually introduced to onto (and into) functions in middle or high school, around ages 12-15, depending on the curriculum.</p>
136
<p>Students are usually introduced to onto (and into) functions in middle or high school, around ages 12-15, depending on the curriculum.</p>
137
<h2>Jaskaran Singh Saluja</h2>
137
<h2>Jaskaran Singh Saluja</h2>
138
<h3>About the Author</h3>
138
<h3>About the Author</h3>
139
<p>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.</p>
139
<p>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.</p>
140
<h3>Fun Fact</h3>
140
<h3>Fun Fact</h3>
141
<p>: He loves to play the quiz with kids through algebra to make kids love it.</p>
141
<p>: He loves to play the quiz with kids through algebra to make kids love it.</p>