Source codeVideos

Command Palette

Search for a command to run...

Function Composition and Inverse Function

Injective, Surjective, and Bijective Functions

Understanding Function Mapping Properties

In mathematics, functions map elements from one set (the domain) to another set (the codomain). This mapping can be classified into several types based on how domain and codomain elements are connected. The three main types are injective, surjective, and bijective functions.

Let's assume we have a function f:XYf: X \to Y.

Injective Function (One-to-One)

A function is called injective or one-to-one if every distinct element in the domain XX maps to a distinct element in the codomain YY. In other words, no two different domain elements can have the same image (output) in the codomain.

Formal Definition:

A function f:XYf: X \to Y is injective if for every x1,x2Xx_1, x_2 \in X, the following holds:

f(x1)=f(x2)    x1=x2f(x_1) = f(x_2) \implies x_1 = x_2

Or, equivalently (using the contrapositive):

x1x2    f(x1)f(x2)x_1 \neq x_2 \implies f(x_1) \neq f(x_2)

Analogy: Imagine every student in a class (domain) must have a unique student ID number (codomain). No two students can have the same ID number. The mapping function from students to ID numbers is an injective function.

Examples:

  • The function f(x)=2xf(x) = 2x for xRx \in \mathbb{R} is injective, because every distinct value of xx will produce a distinct 2x2x.
  • The function g(x)=x2g(x) = x^2 for xRx \in \mathbb{R} is not injective, because g(2)=4g(2) = 4 and g(2)=4g(-2) = 4. There are two different inputs (22 and 2-2) that produce the same output (44).

Surjective Function (Onto)

A function is called surjective or onto if every element in the codomain YY is the image of at least one element in the domain XX. In other words, there are no "unreachable" elements in the codomain that don't have a corresponding element in the domain. The range of a surjective function is equal to its codomain.

Formal Definition:

A function f:XYf: X \to Y is surjective if for every yYy \in Y, there exists at least one xXx \in X such that:

f(x)=yf(x) = y

Analogy: Imagine every seat in a movie theater (codomain) must be occupied by at least one audience member (domain) when the movie starts. The mapping function from audience members to seats is surjective if all seats are filled.

Examples:

  • The function f(x)=x3f(x) = x^3 from RR\mathbb{R} \to \mathbb{R} is surjective, because every real number yy in the codomain is the cube of some real number xx (specifically, x=y3x = \sqrt[3]{y}).
  • The function g(x)=x2g(x) = x^2 from RR\mathbb{R} \to \mathbb{R} is not surjective, because there is no real number xx that yields g(x)=1g(x) = -1 (or any other negative number). Negative elements in the codomain have no corresponding element in the domain.
  • However, if we restrict the codomain to g(x)=x2g(x) = x^2 from R[0,)\mathbb{R} \to [0, \infty) (non-negative real numbers), then this function becomes surjective.

Bijective Function (One-to-One Correspondence)

A function is called bijective if it is both injective and surjective. This means that every element in the domain maps to a unique element in the codomain, and every element in the codomain has exactly one corresponding element in the domain.

A bijective function creates a perfect one-to-one correspondence between the elements of the domain and the codomain.

Formal Definition:

A function f:XYf: X \to Y is bijective if for every yYy \in Y, there exists exactly one xXx \in X such that:

f(x)=yf(x) = y

Analogy: Imagine a perfect pairing between an equal number of men (domain) and women (codomain). Each man is paired with exactly one unique woman, and each woman is paired with exactly one unique man. This pairing function is bijective.

Important: A function can only have an inverse function if it is bijective.

Examples:

  • The function f(x)=2xf(x) = 2x from RR\mathbb{R} \to \mathbb{R} is bijective (injective and surjective).
  • The function f(x)=x3f(x) = x^3 from RR\mathbb{R} \to \mathbb{R} is bijective (injective and surjective).
  • The function g(x)=x2g(x) = x^2 from RR\mathbb{R} \to \mathbb{R} is not bijective (neither injective nor surjective).
  • The function h(x)=exh(x) = e^x from RR\mathbb{R} \to \mathbb{R} is not bijective (injective but not surjective).
  • The function k(x)=x3xk(x) = x^3 - x from RR\mathbb{R} \to \mathbb{R} is not bijective (surjective but not injective).