From the free course Relations and Functions Course Wiki on Lykke

1.3 Types of Functions

Key concepts: One-one Function (Injective) · Many-one Function · Onto Function (Surjective) · Bijective Function · Greatest Integer Function · Modulus Function · Signum Function

This section revisits various functions introduced in Class XI and then formally defines one-one (injective), many-one, onto (surjective), and bijective functions. It provides examples and counter-examples to clarify these concepts, discusses properties specific to finite sets, and includes problems to assess injectivity, surjectivity, and bijectivity.

1.3 Types of Functions

Understanding the fundamental classifications of functions is crucial for advanced mathematical concepts, particularly when delving into topics like inverse functions, calculus, and abstract algebra. Building upon the foundational knowledge of functions from Class XI, this section provides a rigorous treatment of key function types: One-one (Injective), Many-one, Onto (Surjective), and Bijective functions. We will explore their precise definitions, motivations, and implications, along with illustrative examples and a discussion of their properties on finite versus infinite sets. The concepts introduced here are directly applicable to problems found in Exercise 1.2, which often involve analyzing the injectivity, surjectivity, and bijectivity of various functions, including the Greatest Integer Function and the Modulus Function.

Review of Foundational Function Types

Before diving into the classifications based on mapping properties, it is beneficial to briefly recall some common real-valued functions studied previously. These functions serve as excellent examples and counter-examples when discussing injectivity and surjectivity.

Function Type Definition Domain (D) Range (R) Graph Characteristics
Identity Function f(x) = x R R Line y=x, passes through origin, slope 1.
Constant Function f(x) = c (where c is a constant) R {c} Horizontal line y=c.
Polynomial Function f(x) = a_n x^n + ... + a_0 R Varies Smooth, continuous curve; shape depends on degree.
Rational Function f(x) = P(x) / Q(x) (Q(x) ≠ 0) `R \ {x Q(x)=0}` Varies
Modulus Function `f(x) = x ` R
Signum Function f(x) = 1 if x > 0, 0 if x = 0, -1 if x < 0 R {-1, 0, 1} Step function with jumps at x=0.
Greatest Integer Function f(x) = ⌊x⌋ (floor function) R Z (integers) Step function, constant between integers, jumps at integers.

Injective Functions (One-one)

A function is injective or one-one if every distinct element in its domain maps to a distinct image in its codomain. In simpler terms, no two different inputs produce the same output.

Definition: One-one Function (Injective) A function f: X → Y is said to be one-one (or injective) if for all x₁, x₂ ∈ X, f(x₁) = f(x₂) implies x₁ = x₂. Equivalently, if x₁ ≠ x₂ implies f(x₁) ≠ f(x₂).

Why it Matters

The concept of injectivity is fundamental because it guarantees that each output corresponds to a unique input. This property is a prerequisite for a function to have an inverse, as an inverse function must be able to uniquely map an output back to its original input. Without injectivity, an inverse would not be well-defined, as a single output could correspond to multiple inputs. This is particularly critical for the existence of inverse trigonometric functions, where the domains of trigonometric functions must be restricted to ensure they become one-one (Lemh102).

How it Works

To prove a function f is one-one, one typically assumes f(x₁) = f(x₂) for arbitrary x₁, x₂ in the domain and then algebraically demonstrates that this assumption must lead to x₁ = x₂. If a counterexample can be found where f(x₁) = f(x₂) but x₁ ≠ x₂, then the function is not one-one.

Concrete Example

Consider the function f: R → R defined by f(x) = 2x + 3. To check if it's one-one: Assume f(x₁) = f(x₂). 2x₁ + 3 = 2x₂ + 3 Subtract 3 from both sides: 2x₁ = 2x₂ Divide by 2: x₁ = x₂ Since f(x₁) = f(x₂) implies x₁ = x₂, the function f(x) = 2x + 3 is one-one.

Many-one Functions

A function that is not one-one is called a many-one function. This means that there exist at least two distinct elements in the domain that map to the same image in the codomain.

Definition: Many-one Function A function f: X → Y is said to be many-one if there exist x₁, x₂ ∈ X such that x₁ ≠ x₂ but f(x₁) = f(x₂).

Why it Matters

Understanding many-one functions helps in identifying when a function cannot have a global inverse without domain restrictions. Trigonometric functions like sin(x) and cos(x) are classic examples of many-one functions over their natural domains (e.g., sin(0) = 0 and sin(π) = 0), necessitating domain restrictions to define their inverses (Lemh102).

Concrete Example

Consider the function f: R → R defined by f(x) = x². Let x₁ = 2 and x₂ = -2. Then x₁ ≠ x₂. However, f(x₁) = f(2) = 2² = 4 and f(x₂) = f(-2) = (-2)² = 4. Since f(2) = f(-2) but 2 ≠ -2, the function f(x) = x² is many-one.

Surjective Functions (Onto)

A function is surjective or onto if every element in its codomain is the image of at least one element in its domain. In other words, the range of the function is equal to its codomain.

Definition: Onto Function (Surjective) A function f: X → Y is said to be onto (or surjective) if for every y ∈ Y, there exists at least one x ∈ X such that f(x) = y. Equivalently, the range of f is equal to its codomain Y (i.e., Range(f) = Y).

Why it Matters

Surjectivity ensures that the function "covers" its entire intended output space. Like injectivity, it is a crucial condition for the existence of an inverse function. If a function is not onto, there would be elements in the codomain that are not mapped to by any element in the domain, making it impossible to define an inverse for those elements.

How it Works

To prove a function f: X → Y is onto, one typically takes an arbitrary element y from the codomain Y and then demonstrates that there exists an x in the domain X such that f(x) = y. This often involves solving the equation y = f(x) for x in terms of y and showing that the resulting x is always within the domain X.

Concrete Example

Consider the function f: R → R defined by f(x) = 2x + 3. Let y be an arbitrary element in the codomain R. We need to find an x ∈ R such that f(x) = y. y = 2x + 3 y - 3 = 2x x = (y - 3) / 2 Since y is a real number, (y - 3) / 2 will always be a real number. Thus, for every y in the codomain, there exists an x in the domain R such that f(x) = y. Therefore, f(x) = 2x + 3 is onto.

Not Onto Examples

A function is not onto if its range is a proper subset of its codomain. This means there are elements in the codomain that are never produced as outputs by the function.

Concrete Example

Consider the function f: R → R defined by f(x) = x². The codomain is R (all real numbers). The range of f(x) = x² is [0, ∞) (all non-negative real numbers), because x² can never be negative. Since Range(f) = [0, ∞) which is a proper subset of R, the function f(x) = x² is not onto when its codomain is R.

Bijective Functions (One-one and Onto)

A function that is both injective (one-one) and surjective (onto) is called a bijective function. These functions establish a perfect one-to-one correspondence between the elements of the domain and the elements of the codomain.

Definition: Bijective Function A function f: X → Y is said to be bijective if it is both one-one (injective) and onto (surjective).

Why it Matters

Bijective functions are of paramount importance because they are precisely the functions for which an inverse function f⁻¹ exists (Lemh102). An inverse function essentially "undoes" the original function, mapping elements from the codomain back to their unique original elements in the domain. This property is fundamental in many areas of mathematics, including solving equations, cryptography, and defining inverse trigonometric functions.

How it Works

To prove a function is bijective, one must prove both its injectivity and its surjectivity independently. If both conditions are met, the function is bijective.

Concrete Example

From our previous examples, the function f: R → R defined by f(x) = 2x + 3 was shown to be both one-one and onto. Therefore, f(x) = 2x + 3 is a bijective function.

Properties for Finite vs. Infinite Sets

A notable property emerges when considering functions defined on finite sets, which does not necessarily hold for infinite sets.

Key Property for Finite Sets For a finite set X, a function f: X → X is one-one if and only if it is onto.

This means if you have a function mapping a finite set to itself, proving it's one-one automatically implies it's onto, and vice-versa. This is because if every element maps to a distinct element, and the domain and codomain have the same finite size, then all elements of the codomain must be covered. Conversely, if all elements of the codomain are covered, and the domain and codomain have the same finite size, then no two elements can map to the same image.

Contrast with Infinite Sets

This property does not hold for infinite sets.

  • Example (One-one but not onto): Consider f: N → N (natural numbers) defined by f(x) = 2x.
    • One-one: If 2x₁ = 2x₂, then x₁ = x₂. So, it's one-one.
    • Not onto: The range of f is {2, 4, 6, ...}, which are the even natural numbers. This is a proper subset of the codomain N. Odd natural numbers (e.g., 1, 3, 5) are in the codomain but are not images of any x ∈ N.
  • Example (Onto but not one-one): Consider f: Z → N ∪ {0} (integers to non-negative integers) defined by f(x) = |x|.
    • Onto: For any y ∈ N ∪ {0}, we can choose x = y (if y ≥ 0) or x = -y (if y > 0). E.g., for y=5, f(5)=5 and f(-5)=5. So, it's onto.
    • Not one-one: f(2) = 2 and f(-2) = 2, but 2 ≠ -2. So, it's not one-one.
Property Finite Set X (f: X → X) Infinite Set (f: X → X or f: X → Y)
One-one ⇔ Onto Holds true Does NOT hold true
Implication Injectivity implies Surjectivity, and vice-versa. Injectivity does not imply Surjectivity, and vice-versa.
Reason Cardinality match ensures full mapping coverage. Infinite sets allow for subsets of the same cardinality, leading to "gaps" or "overlaps".

Case Study: Common Functions and their Properties

Let's analyze the injectivity and surjectivity of some common functions, often encountered in problems from Exercise 1.2.

1. Greatest Integer Function (f(x) = ⌊x⌋)

  • What it is: The function f: R → R (or f: R → Z) that assigns to each real number x the greatest integer less than or equal to x.
  • Injectivity: This function is many-one. For example, f(1.1) = 1 and f(1.5) = 1, but 1.1 ≠ 1.5.
  • Surjectivity: If the codomain is R, it is not onto, as its range is Z (the set of integers). Real numbers like 1.5 are in the codomain but are not images of any x. If the codomain is specified as Z, then it is onto, as every integer y is the image of x=y.

2. Modulus Function (f(x) = |x|)

  • What it is: The function f: R → R (or f: R → [0, ∞)) defined as f(x) = x if x ≥ 0 and f(x) = -x if x < 0.
  • Injectivity: This function is many-one. For example, f(2) = 2 and f(-2) = 2, but 2 ≠ -2.
  • Surjectivity: If the codomain is R, it is not onto, as its range is [0, ∞). Negative real numbers are in the codomain but are not images of any x. If the codomain is specified as [0, ∞), then it is onto.

3. Signum Function (f(x) = sgn(x))

  • What it is: The function f: R → R (or f: R → {-1, 0, 1}) defined as f(x) = 1 if x > 0, f(x) = 0 if x = 0, and f(x) = -1 if x < 0.
  • Injectivity: This function is many-one. For example, f(5) = 1 and f(100) = 1, but 5 ≠ 100.
  • Surjectivity: If the codomain is R, it is not onto, as its range is {-1, 0, 1}. Most real numbers are in the codomain but are not images of any x. If the codomain is specified as {-1, 0, 1}, then it is onto.
Function Type Domain (D) Codomain (Y) One-one? Onto? (for Y=R) Bijective? (for Y=R)
f(x) = 2x + 3 R R Yes Yes Yes
f(x) = x² R R No No No
f(x) = ⌊x⌋ R R No No No
`f(x) = x ` R R No
f(x) = sgn(x) R R No No No

Connecting to Inverse Functions

The classifications discussed here are not merely theoretical constructs; they have profound practical implications, especially for the existence of inverse functions. As stated in Lemh102, "the inverse of a function f, denoted by f⁻¹, exists if f is one-one and onto." This highlights why bijective functions are so significant: they are precisely the functions that are invertible. When a function is not bijective (i.e., it's many-one or not onto), its inverse cannot be defined over its natural domain and codomain. In such cases, as seen with trigonometric functions, specific restrictions on the domain and codomain are applied to create a new function that is bijective, thereby allowing the definition of an inverse (e.g., the principal value branches of inverse trigonometric functions).

Exercise 1.2: Injectivity, Surjectivity, Bijectivity

Exercise 1.2 typically presents a series of functions and asks the student to determine if they are injective, surjective, or bijective. This requires applying the formal definitions and proof techniques discussed. Common challenges include:

  • Algebraic manipulation: Correctly solving f(x₁) = f(x₂) for x₁ = x₂.
  • Domain and Codomain awareness: The properties of a function (one-one, onto) are highly dependent on its specified domain and codomain. A function that is not onto for f: R → R might become onto if its codomain is restricted to its range.
  • Counter-examples: Identifying specific values that violate injectivity or surjectivity (e.g., f(2)=f(-2) for f(x)=x²).
  • Understanding function behavior: Visualizing graphs or understanding the intrinsic nature of functions like ⌊x⌋ or |x| helps in quickly assessing their properties.
1.3 Types of Functions - Relations and Functions Course Wiki - diagram 1
1.3 Types of Functions - Relations and Functions Course Wiki - diagram 1
1.3 Types of Functions - Relations and Functions Course Wiki - diagram 2
1.3 Types of Functions - Relations and Functions Course Wiki - diagram 2
1.3 Types of Functions - Relations and Functions Course Wiki - diagram 3
1.3 Types of Functions - Relations and Functions Course Wiki - diagram 3

Source Materials

Study Relations and Functions Course Wiki on Lykke

This course page is free to open: signed out, you can read its first two sections, and signing in, on any plan, opens the rest. The free Lykke Chrome extension syncs your own Canvas courses, so ChatGPT, Claude and Muse can answer from your classes and deadlines. It only reads Canvas.

Add the free extensionSign in to open every section

All sections of Relations and Functions Course Wiki · Browse more course pages

1.3 Types of Functions — Relations and Functions Course Wiki | Lykke