• NEET
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • Class 6-10
      • Class 6th
      • Class 7th
      • Class 8th
      • Class 9th
      • Class 10th
    • View All Options
      • Online Courses
      • Distance Learning
      • Hindi Medium Courses
      • International Olympiad
    • NEET
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE (Main+Advanced)
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE Main
      • Class 11th
      • Class 12th
      • Class 12th Plus
  • Classroom
  • NEW
    • NEET
      • 2025
      • 2024
      • 2023
      • 2022
    • JEE
      • 2025
      • 2024
      • 2023
      • 2022
    • Class 6-10
    • JEE Main
      • Previous Year Papers
      • Sample Papers
      • Result
      • Analysis
      • Syllabus
      • Exam Date
    • JEE Advanced
      • Previous Year Papers
      • Sample Papers
      • Mock Test
      • Result
      • Analysis
      • Syllabus
      • Exam Date
    • NEET
      • Previous Year Papers
      • Sample Papers
      • Mock Test
      • Result
      • Analysis
      • Syllabus
      • Exam Date
      • College Predictor
      • Counselling
    • NCERT Solutions
      • Class 6
      • Class 7
      • Class 8
      • Class 9
      • Class 10
      • Class 11
      • Class 12
    • CBSE
      • Notes
      • Sample Papers
      • Question Papers
    • Olympiad
      • NSO
      • IMO
      • NMTC
    • TALLENTEX
    • AOSAT
  • ALLEN E-Store
    • ALLEN for Schools
    • About ALLEN
    • Blogs
    • News
    • Careers
    • Request a call back
    • Book home demo
JEE PhysicsJEE Chemistry
Home
JEE Maths
Onto Function

Onto Function 

In mathematics, an onto function, also known as a surjective function, is a type of mapping where every element of the codomain has at least one corresponding element in the domain. This means the range of the function is equal to its codomain. Onto functions are essential in understanding advanced concepts like inverse functions and bijections. They are widely used in algebra, calculus, and real-world applications involving full data coverage or target mapping.

1.0Onto Function Definition

In mathematics, an onto function (also called a surjective function) is a type of function where every element of the codomain is mapped by at least one element of the domain.

In simple terms, a function f:A→B is onto if range(f) = codomain(B).

2.0What Is the Onto Function?

An onto function ensures that no element in the codomain is left unmapped. This makes it a surjective function. In set theory, it means for every b∈B, there exists at least one a ∈ A such that f(a) = b.

3.0Onto Function Formula

Let f: A→B. Then f is onto if:

∀b∈B, ∃a∈A such that f(a) = b 

This is the onto function condition for surjectivity.

4.0How Do You Know If a Function Is Onto?

To check if a function is onto:

  1. Solve the equation f(x) = y for x
  2. Verify whether a solution exists for every y in the codomain
  3. If every value in the codomain has a pre-image in the domain, the function is onto

5.0Onto Function Graph

In a graph of an onto function, every y-value in the codomain is covered by the graph. For real-valued functions, this means the range spans the entire codomain.

For example, the function:

f(x)=2x+3, where f:⊠→⊠

is onto because for every real number y, we can find an x∈X such that:

x=2y−3​ 

Hence, every y has a corresponding x: the function is onto.

6.0Onto Function Properties

  • Every onto function is also called a surjection
  • The codomain = range
  • Inverse functions exist only if the function is one-one and onto
  • Composition of two onto functions is also onto
  • Not all functions are onto; it depends on how domain and codomain are defined

7.0Solved Examples on Onto Function 

Example 1: Is the function f(x) = 2x + 3, defined as f:⊠→⊠, an onto function?

Solution:

To check if f is onto, solve for x in terms of y:

y=2x+3⇒x=2y−3​

Since for every y∈⊠, there exists an x∈⊠, the function is onto.

Answer: The function is onto.

Example 2: Check if f(x)=x2, defined as f:⊠→⊠, is an onto function.

Solution:
The range of f(x)=x2is[0,∞), not the entire codomain ⊠ .

Negative values like y = -1 have no real pre-image.

Answer: The function is not onto.

Example 3: Is f(x)=ex, defined as f:⊠→⊠, onto?

Solution:

The range of f(x)=exis(0,∞), so values like y = -1 are not covered.

Answer: The function is not onto.

Example 4: Let A = {1, 2, 3}, B = {a, b}, and f:A→B defined by Is f onto?

Solution:

Elements of B: a and b are both mapped from elements in A. Hence, the codomain is completely covered.

Answer: The function is onto.

Example 5: Check if f(x)=x+1x−1​, defined as f:⊠,{−1}→⊠,{1}, is onto.

Solution:
Let

y=x+1x−1​

Solve for x:

​y(x+1)=x−1⇒yx+y=x−1⇒yx−x=−1−y⇒x(y−1)=−1−y⇒x=y−1−1−y​​

The expression is valid for all y=1, which matches the codomain.

Answer: The function is onto.

8.0Practice Questions on Onto Functions

  1. Check if f(x)=x2+1,f:⊠→⊠, is onto.
  2. Is f(x)=ln(x),f:(0,∞)→⊠, an onto function?
  3. Define a mapping from set A = {1, 2, 3} to B = {a, b} that is onto.
  4. Prove f(x)=x+1x−1​,f:⊠,{−1}→⊠,, is onto.
  5. Differentiate between into and onto with proper sets and mappings.

9.0One-One and Onto Function (Bijective Function)

A function that is both one-one (injective) and onto (surjective) is called bijective.

Properties:

  • Each element of the codomain is mapped exactly once
  • A bijective function has an inverse
  • Useful in establishing one-to-one correspondence between sets

10.0Differences Between Onto and Into Functions

Feature

Onto Function (Surjective)

Into Function

Codomain

Completely covered by range

Not fully covered

Mapping

Every codomain element is hit

Some codomain elements are missed

Example

f(x) = x+1 over R

f(x)=x2 over R

Table of Contents


  • 1.0Onto Function Definition
  • 2.0What Is the Onto Function?
  • 3.0Onto Function Formula
  • 4.0How Do You Know If a Function Is Onto?
  • 5.0Onto Function Graph
  • 6.0Onto Function Properties
  • 7.0Solved Examples on Onto Function 
  • 8.0Practice Questions on Onto Functions
  • 9.0One-One and Onto Function (Bijective Function)
  • 10.0Differences Between Onto and Into Functions

Frequently Asked Questions

Functions where every element in the codomain is the image of at least one element from the domain.

A function is onto if it hits every target in the codomain at least once.

Solve f(x) = y and show that for every y, a real solution x exists.

No. A function can be one-one without covering the entire codomain.

Yes. Onto means each y is mapped, not necessarily uniquely.

Join ALLEN!

(Session 2025 - 26)


Choose class
Choose your goal
Preferred Mode
Choose State
  • About
    • About us
    • Blog
    • News
    • MyExam EduBlogs
    • Privacy policy
    • Public notice
    • Careers
    • Dhoni Inspires NEET Aspirants
    • Dhoni Inspires JEE Aspirants
  • Help & Support
    • Refund policy
    • Transfer policy
    • Terms & Conditions
    • Contact us
  • Popular goals
    • NEET Coaching
    • JEE Coaching
    • 6th to 10th
  • Courses
    • Online Courses
    • Distance Learning
    • Online Test Series
    • International Olympiads Online Course
    • NEET Test Series
    • JEE Test Series
    • JEE Main Test Series
  • Centers
    • Kota
    • Bangalore
    • Indore
    • Delhi
    • More centres
  • Exam information
    • JEE Main
    • JEE Advanced
    • NEET UG
    • CBSE
    • NCERT Solutions
    • Olympiad
    • NEET 2025 Results
    • NEET 2025 Answer Key
    • NEET College Predictor
    • NEET 2025 Counselling

ALLEN Career Institute Pvt. Ltd. © All Rights Reserved.

ISO