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

Functions as Sets and Their Characteristics

College Depth 71 in the knowledge graph ☐ I know this ☆ Set as goal
1,927topics build on this
291prerequisites beneath it
See this on the map →
Binary Relations and Their PropertiesOrdered Pairs and Cartesian Products→→Adjoint FunctorsBasic Model Theory+22 more
functions mappings domain-codomain

Core Idea

A function f: A → B is a relation where each a ∈ A pairs with exactly one b ∈ B. Functions are entirely definable as subsets of A × B, making them fully set-theoretic objects. The domain A and codomain B are essential parts of a function's definition.

Explainer

You have seen functions in algebra — f(x) = 2x + 1, for example — but set theory demands a more precise account. What *is* a function, stripped of notation and intuition? The answer is: a function is a set of ordered pairs satisfying a particular constraint.

Given sets A and B, a function f: A → B is a subset of the Cartesian product A × B with the property that every element a ∈ A appears as the first component of exactly one pair in f. The pair (a, b) ∈ f means f(a) = b. This is not a new concept but a more explicit one: the "rule" of a function is nothing more than the set of all input-output pairs. This set-theoretic view makes functions first-class mathematical objects that can themselves be elements of sets, compared for equality, and reasoned about with the same tools used for any set.

The "exactly one b for each a" condition has two parts. First, every element of A must appear — no element of the domain is left unmapped. Second, no element of A can appear twice with different outputs — the mapping must be *deterministic*. If either condition fails, the relation is not a function. A relation where some inputs map to multiple outputs is called a multi-valued relation; a relation where some inputs have no output is called a partial function. Both are useful concepts, but neither is a function in the full sense.

The codomain B is a declared part of the function's identity. Two functions can have the same domain, the same input-output behavior, but different codomains — and they are formally different functions. This matters in practice: f: ℤ → ℤ defined by f(n) = n² and g: ℤ → ℕ defined by g(n) = n² have the same values everywhere but different codomains, which affects whether they can be surjective. The *image* of f — the set {f(a) | a ∈ A} — is a subset of the codomain that records which outputs are actually achieved. When the image equals the codomain, the function is surjective, a property you will formalize in the next topic.

Understanding functions as sets lets you apply all of set theory to them. Two functions are equal precisely when they are equal as sets — same domain, same codomain, same pairs. This foundation also prepares you for function composition, which you will see is simply a set-theoretic operation on relations, and for comparing the sizes of infinite sets via injections and surjections.

Practice Questions 3 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → One-to-One Correspondence → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Addition Within 10 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → 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 Through 10 → 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 → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → Variables in Logic → Set Notation Basics → Set Membership and Notation → Subsets and Proper Subsets → Indexed Families and Generalized Operations → Binary Relations and Their Properties → Functions as Sets and Their Characteristics

Longest path: 72 steps · 291 total prerequisite topics

Prerequisites (2)

Leads To (24)