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

Functions as Sets and Their Characteristics

College Depth 62 in the knowledge graph I know this Set as goal
1,896topics build on this
286prerequisites beneath it
See this on the map →
Binary Relations and Their PropertiesOrdered Pairs and Cartesian ProductsAdjoint FunctorsBasic Model Theory+23 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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Making 10 as an Addition StrategyAddition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts Through 10Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineOpposites and Additive InversesAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsVariables in LogicSet Notation BasicsSet Membership and NotationSubsets and Proper SubsetsIndexed Families and Generalized OperationsBinary Relations and Their PropertiesFunctions as Sets and Their Characteristics

Longest path: 63 steps · 286 total prerequisite topics

Prerequisites (2)

Leads To (25)