ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Discrete Structures
    GE-167
    Progress0 / 67 topics
    Topics
    1. Mathematical Reasoning: Propositional and Predicate Logic2. Propositional Logic: Logical Operators3. Translations Between Symbolic Expressions and Formal English Expression4. Logical Equivalences5. Predicate Logic: Quantifiers6. Nested Quantification7. Equivalences in Predicate Logic8. Translations Between Symbolic Forms and Formal English9. Rules of Inference: Proof Methods and Strategies10. Direct Proof11. Proof by Contraposition12. Proof by Induction13. Proof by Implication14. Existence Proof15. Uniqueness Proofs16. Trivial Proofs17. Vacuous Proofs18. Sets: Notations and Set Operations19. Venn Diagrams20. Countable and Uncountable Sets21. Relations: Equivalence Relations and Partitions22. Partial Orderings23. Recurrence Relations24. Functions: Injective, Surjective, Bijective25. Special Types of Functions26. Function Composition27. Inverse Functions28. Recursive Functions29. Compositions30. Number Theory: Sequences and Series31. Counting: Inclusion and Exclusion Principle32. Pigeonhole Principle33. Permutations and Combinations34. Integers and Divisibility: Division Theorem35. Modular Arithmetic36. LCM and GCD37. Euclidean and Extended Euclidean Method38. Finding Solutions to Congruence39. Primes: Fundamental Theorem of Arithmetic40. Characterizations of Primes41. Mersenne Primes42. Induction: Weak Induction43. Strong Induction44. Recursion and Recurrences: Formulation of Recurrences45. Closed Formulas46. Counting: Product Rule and Sum Rule47. Principle of Inclusion-Exclusion48. Binomial Coefficients49. Pascal's Identity and Pascal’s Triangle50. Binomial Theorem51. Relations: Reflexive, Symmetric, Transitive, and Antisymmetric52. Equivalence Relations and Equivalence Classes53. Partial Orders54. Graph Theory: Terminologies55. Elements of Graph Theory56. Planar Graphs57. Graph Coloring58. Euler Graph59. Hamiltonian Path60. Rooted Trees61. Graph Traversals62. Handshaking Lemma and Corollary63. Special Families of Graphs64. Graph Isomorphism65. Planarity in Graphs66. Eulerian and Hamiltonian Graphs67. Trees in Graph Theory
    GE-167›Functions: Injective, Surjective, Bijective
    Discrete StructuresTopic 24 of 67

    Functions: Injective, Surjective, Bijective

    13 minread
    2,154words
    Intermediatelevel

    Functions: Injective, Surjective, Bijective

    In mathematics, a function is a relationship between two sets where every element of the domain is associated with exactly one element of the codomain. Functions play a crucial role in many branches of mathematics, such as algebra, calculus, and set theory. When discussing functions, it is important to understand the concepts of injective, surjective, and bijective functions. These terms describe different types of mappings between sets based on how elements of the domain are related to elements of the codomain.


    1. Definition of a Function

    A function fff from a set AAA (called the domain) to a set BBB (called the codomain) is a rule that assigns to each element a∈Aa \in Aa∈A exactly one element b∈Bb \in Bb∈B. This is written as:

    f:A→Bf: A \to Bf:A→B

    where f(a)=bf(a) = bf(a)=b means that the function fff maps the element aaa to the element bbb.


    2. Injective Functions (One-to-One)

    A function f:A→Bf: A \to Bf:A→B is injective (or one-to-one) if different elements in the domain map to different elements in the codomain. In other words, if f(a1)=f(a2)f(a_1) = f(a_2)f(a1​)=f(a2​), then it must follow that a1=a2a_1 = a_2a1​=a2​.

    Formal Definition:

    A function f:A→Bf: A \to Bf:A→B is injective if:

    ∀a1,a2∈A, f(a1)=f(a2)  ⟹  a1=a2.\forall a_1, a_2 \in A, \, f(a_1) = f(a_2) \implies a_1 = a_2.∀a1​,a2​∈A,f(a1​)=f(a2​)⟹a1​=a2​.

    Interpretation:

    An injective function ensures that no two distinct elements in the domain map to the same element in the codomain. Each element in the codomain can be "hit" at most once by the function.

    Example of Injective Function:

    Consider the function f:R→Rf: \mathbb{R} \to \mathbb{R}f:R→R defined by f(x)=2xf(x) = 2xf(x)=2x, where R\mathbb{R}R denotes the set of real numbers.

    • If f(x1)=f(x2)f(x_1) = f(x_2)f(x1​)=f(x2​), then 2x1=2x22x_1 = 2x_22x1​=2x2​, which implies x1=x2x_1 = x_2x1​=x2​.
    • Thus, fff is injective because no two different values of xxx map to the same output.

    Non-Example (Not Injective):

    Consider the function f:R→Rf: \mathbb{R} \to \mathbb{R}f:R→R defined by f(x)=x2f(x) = x^2f(x)=x2.

    • For x1=2x_1 = 2x1​=2 and x2=−2x_2 = -2x2​=−2, we have f(2)=f(−2)=4f(2) = f(-2) = 4f(2)=f(−2)=4, but 2≠−22 \neq -22=−2.
    • Therefore, f(x)=x2f(x) = x^2f(x)=x2 is not injective because two different values in the domain map to the same value in the codomain.

    3. Surjective Functions (Onto)

    A function f:A→Bf: A \to Bf:A→B is surjective (or onto) if every element in the codomain has at least one element in the domain that maps to it. In other words, the function "covers" the entire codomain.

    Formal Definition:

    A function f:A→Bf: A \to Bf:A→B is surjective if:

    ∀b∈B, ∃a∈A such that f(a)=b.\forall b \in B, \, \exists a \in A \text{ such that } f(a) = b.∀b∈B,∃a∈A such that f(a)=b.

    Interpretation:

    A surjective function ensures that every element of the codomain is "reached" by the function, meaning that the function maps to the entire codomain. Some elements in the domain might map to the same element in the codomain.

    Example of Surjective Function:

    Consider the function f:R→Rf: \mathbb{R} \to \mathbb{R}f:R→R defined by f(x)=x3f(x) = x^3f(x)=x3.

    • For every b∈Rb \in \mathbb{R}b∈R, we can find an a∈Ra \in \mathbb{R}a∈R such that f(a)=a3=bf(a) = a^3 = bf(a)=a3=b. Specifically, a=b3a = \sqrt[3]{b}a=3b​.
    • Therefore, f(x)=x3f(x) = x^3f(x)=x3 is surjective because every real number is the cube of some real number.

    Non-Example (Not Surjective):

    Consider the function f:R→Rf: \mathbb{R} \to \mathbb{R}f:R→R defined by f(x)=x2f(x) = x^2f(x)=x2.

    • The function cannot produce negative numbers because x2≥0x^2 \geq 0x2≥0 for all x∈Rx \in \mathbb{R}x∈R. Therefore, there is no x∈Rx \in \mathbb{R}x∈R such that f(x)=−1f(x) = -1f(x)=−1.
    • Hence, f(x)=x2f(x) = x^2f(x)=x2 is not surjective when the codomain is R\mathbb{R}R, because it does not "hit" all values in the codomain.

    4. Bijective Functions (One-to-One Correspondence)

    A function f:A→Bf: A \to Bf:A→B is bijective if it is both injective and surjective. In other words, a bijection is a function where every element of the domain is mapped to a unique element in the codomain, and every element of the codomain is mapped to some element in the domain.

    Formal Definition:

    A function f:A→Bf: A \to Bf:A→B is bijective if:

    • fff is injective: ∀a1,a2∈A,f(a1)=f(a2)  ⟹  a1=a2\forall a_1, a_2 \in A, f(a_1) = f(a_2) \implies a_1 = a_2∀a1​,a2​∈A,f(a1​)=f(a2​)⟹a1​=a2​,
    • fff is surjective: ∀b∈B,∃a∈A such that f(a)=b\forall b \in B, \exists a \in A \text{ such that } f(a) = b∀b∈B,∃a∈A such that f(a)=b.

    Interpretation:

    A bijective function establishes a one-to-one correspondence between the elements of the domain and the elements of the codomain. Each element of the domain is paired with exactly one element of the codomain, and each element of the codomain is paired with exactly one element of the domain.

    Example of Bijective Function:

    Consider the function f:R→Rf: \mathbb{R} \to \mathbb{R}f:R→R defined by f(x)=2x+3f(x) = 2x + 3f(x)=2x+3.

    • Injectivity: If f(x1)=f(x2)f(x_1) = f(x_2)f(x1​)=f(x2​), then 2x1+3=2x2+32x_1 + 3 = 2x_2 + 32x1​+3=2x2​+3, which simplifies to x1=x2x_1 = x_2x1​=x2​.
    • Surjectivity: For any b∈Rb \in \mathbb{R}b∈R, there exists an a=b−32∈Ra = \frac{b - 3}{2} \in \mathbb{R}a=2b−3​∈R such that f(a)=bf(a) = bf(a)=b.
    • Therefore, f(x)=2x+3f(x) = 2x + 3f(x)=2x+3 is bijective.

    Non-Example (Not Bijective):

    Consider the function f:R→Rf: \mathbb{R} \to \mathbb{R}f:R→R defined by f(x)=x2f(x) = x^2f(x)=x2.

    • This function is not injective because f(2)=f(−2)=4f(2) = f(-2) = 4f(2)=f(−2)=4, but 2≠−22 \neq -22=−2.
    • It is also not surjective because it cannot map to negative numbers.
    • Thus, f(x)=x2f(x) = x^2f(x)=x2 is not bijective when the domain and codomain are R\mathbb{R}R.

    5. Summary of Function Types

    • Injective (One-to-One): A function is injective if no two distinct elements in the domain map to the same element in the codomain. Formally: f(a1)=f(a2)  ⟹  a1=a2f(a_1) = f(a_2) \implies a_1 = a_2f(a1​)=f(a2​)⟹a1​=a2​.
    • Surjective (Onto): A function is surjective if every element in the codomain is mapped to by at least one element in the domain. Formally: ∀b∈B,∃a∈A\forall b \in B, \exists a \in A∀b∈B,∃a∈A such that f(a)=bf(a) = bf(a)=b.
    • Bijective (One-to-One Correspondence): A function is bijective if it is both injective and surjective. There is a one-to-one correspondence between the domain and codomain.

    6. Practical Examples

    • Injective but not Surjective: The function f:R→Rf: \mathbb{R} \to \mathbb{R}f:R→R defined by f(x)=2xf(x) = 2xf(x)=2x. It’s injective, but not surjective since not all real numbers can be reached (e.g., no xxx maps to an odd number).
    • Surjective but not Injective: The function f:R→Rf: \mathbb{R} \to \mathbb{R}f:R→R defined by f(x)=x2f(x) = x^2f(x)=x2. It’s surjective when the codomain is [0,∞)[0, \infty)[0,∞), but not injective because two different values (e.g., 2 and -2) can map to the same result.
    • Bijective: The function f:R→Rf: \mathbb{R} \to \mathbb{R}f:R→R defined by f(x)=2x+3f(x) = 2x + 3f(x)=2x+3. It is both injective and surjective, hence bijective.

    Understanding these properties helps in determining the structure and behavior of functions in various mathematical contexts.

    Previous topic 23
    Recurrence Relations
    Next topic 25
    Special Types of Functions

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time13 min
      Word count2,154
      Code examples0
      DifficultyIntermediate