A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Injective, Surjective, and Bijective Functions

College Depth 73 in the knowledge graph ☐ I know this ☆ Set as goal
1,732topics build on this
330prerequisites beneath it
See this on the map →
Equivalence RelationsFunction Types and Bijections→→Bijection Principle in CountingCardinality and Countability+8 more
functions injective surjective

Core Idea

A function f: A → B is injective (one-to-one) if distinct inputs give distinct outputs; surjective (onto) if every element of B is mapped to; bijective if both. Bijections establish correspondences and are essential for comparing cardinalities.

Explainer

A function f: A → B assigns each element of A (the domain) exactly one element of B (the codomain). But the same definition allows very different behaviors: multiple inputs might map to the same output, or some outputs might never be hit at all. The properties of injectivity, surjectivity, and bijectivity classify functions by how thoroughly they respect the structure of their domain and codomain.

A function is injective (one-to-one) if no two distinct inputs produce the same output: if f(a₁) = f(a₂) then a₁ = a₂. Injectivity is a statement about the domain — the function doesn't "collapse" any distinct elements together. The contrapositive form is often used in proofs: to show injectivity, assume f(a₁) = f(a₂) and derive a₁ = a₂. For example, f(x) = 2x from ℝ to ℝ is injective: 2x₁ = 2x₂ immediately gives x₁ = x₂. The function f(x) = x² is not injective over ℝ because f(2) = f(−2) = 4.

A function is surjective (onto) if every element b ∈ B is the image of at least one element a ∈ A: for every b there exists a with f(a) = b. Surjectivity is a statement about the codomain — the function hits everything. Notice that surjectivity depends critically on how the codomain is defined. The function f(x) = x² is not surjective from ℝ to ℝ (negative numbers are never hit), but it is surjective from ℝ to [0, ∞). This is why the codomain is part of the function's definition.

A function is bijective if it is both injective and surjective — a perfect one-to-one correspondence between domain and codomain. Every element of B is hit by exactly one element of A. Bijections are the right notion of "same size" for sets: if a bijection exists between A and B, they have the same cardinality. This works even for infinite sets — the existence of a bijection between the natural numbers and the even numbers shows they have the same cardinality despite one being a proper subset of the other. A bijection is also exactly the condition under which the inverse function f⁻¹: B → A exists as a function.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Set Operations: Union, Intersection, and Complement → Cartesian Products and Relations → Partial Orders → Binary Relations → Equivalence Relations → Injective, Surjective, and Bijective Functions

Longest path: 74 steps · 330 total prerequisite topics

Prerequisites (2)

Leads To (10)