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 71 in the knowledge graph ☐ I know this ☆ Set as goal
1,037topics build on this
322prerequisites beneath it
See this on the map →
Functions: Domain, Codomain, and Range→→Cardinality and CountabilityFunction Composition and Inverse Functions
functions injectivity surjectivity bijectivity

Core Idea

A function is injective (one-to-one) if different inputs map to different outputs. It is surjective (onto) if every element of the codomain is the range. A bijection is both injective and surjective, establishing a one-to-one correspondence between domain and codomain. Bijections are fundamental for comparing sizes of infinite sets.

Explainer

From your study of functions, you know that f: A → B assigns each element of the domain A exactly one element of the codomain B. The range is the set of elements that actually get hit. Now we ask two sharper questions: does the function use its domain without collisions, and does it cover the codomain without gaps?

A function is injective (one-to-one) if distinct inputs always produce distinct outputs: a ≠ a' implies f(a) ≠ f(a'). Equivalently, if f(a) = f(a'), then a = a' — working backward from equal outputs forces equal inputs. The function f(x) = x³ on R is injective, since different numbers cube to different values. The function f(x) = x² is not injective, since both 2 and −2 map to 4. Injectivity says the function is "collision-free" — no two domain elements get merged into one output.

A function is surjective (onto) if every element of the codomain is reached: for every b ∈ B, there exists a ∈ A with f(a) = b. Notice that surjectivity is about the codomain, not just the range — it says the range *equals* the codomain, leaving no element of B unhit. The function f: R → R given by f(x) = x³ is surjective (every real is a cube of something), but f: R → R given by f(x) = x² is not (negative numbers are never outputs). However, f: R → [0, ∞) with f(x) = x² is surjective — by shrinking the codomain to match the range, we can make the same formula surjective.

A bijection is both injective and surjective: a perfect pairing where every element on each side participates exactly once. Bijections are the mathematical notion of "same size," called cardinality. For finite sets this is intuitive — a bijection between {1, 2, 3} and {a, b, c} confirms they both have 3 elements. For infinite sets, bijections reveal surprising structure: the function n ↔ 2n pairs every integer with a distinct even integer, establishing a bijection between Z and the even integers. This means they have the same cardinality, even though one appears to be a proper subset of the other. This counterintuitive fact — that an infinite set can biject with a proper subset — is the defining feature of infinite sets, and it will be central when you study countability.

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 → Functions: Domain, Codomain, and Range → Injective, Surjective, and Bijective Functions

Longest path: 72 steps · 322 total prerequisite topics

Prerequisites (1)

Leads To (2)