Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Open In Colab Binder

Sorting blocks by color, dividing food into what we like and what we do not—classification is one of the ways we make sense of the world. Everyday operations such as “these things go together” and “those go somewhere else” offer an intuitive starting point for approaching the language of sets.

Between everyday classification and rigorous set notation lies one more step: stating these familiar operations precisely, in definitions that anyone can check word by word.

Yet humans spent two thousand years computing before turning back to write these familiar operations down in rigorous symbols.


Why such a long detour? Because computation ran into a crisis.

The central task of ancient mathematics was to compute particular cases: how large this field is, how much tax is owed, how long this hypotenuse is. The Nine Chapters on the Mathematical Art works this way, the Babylonian clay tablets work this way, and so do the Egyptian papyri. Greek geometry took a step further—Euclid proved properties of all triangles, not of one particular triangle—but it still relied on geometric intuition, and wherever a boundary blurred it let the picture do the talking.

In the nineteenth century the boundaries of intuition began to collapse. In 1872 Weierstrass constructed a function that is continuous everywhere and differentiable nowhere. Geometric intuition says such an object should not exist at all, and yet it can be proved from the rigorous definitions that it is continuous everywhere and differentiable at no point. Pictures could no longer be trusted. Mathematicians realized that a feeling for individual objects was no longer enough: they had to say precisely which class of things was under discussion, and then reason rigorously about that entire class.

Dedekind conceived the idea of the Dedekind cut in 1858 and published it in 1872, using it to redefine the real numbers—not by producing a formula to compute with, but by defining each real number as a partition of the set of rational numbers. This showed another way to build a number system: characterizing numbers through sets and their properties, rather than only supplying a computational procedure. Cantor followed close behind. In the 1870s he built set theory, giving this way of describing objects a general language: sets, and the mappings between them.

This is the historical turning point at which mathematics moved from computing particular cases to discussing the properties of an entire class of objects.


In the middle of the twentieth century, a group of French mathematicians pushed that turn to its extreme.

In 1935 a number of young French mathematicians, writing under the pen name “Nicolas Bourbaki,” began an enormously ambitious series of books, the Éléments de mathématique. The title pays homage to Euclid’s Elementa, but it carries a deliberate provocation. In Euclid’s day mathematics was a collection of many disciplines, so French normally writes the plural mathématiques; Bourbaki insisted on the singular mathématique—a declaration that mathematics is one subject, with a single foundation, and that the foundation is set theory. The name belongs to no real person but to a collective whose members included André Weil, Henri Cartan, and Jean Dieudonné, among the finest mathematicians of the day. Their goal was single-minded: to rewrite all of modern mathematics from the ground up in the language of set theory, leaving no place that appeals to intuition or leans on a picture.

Bourbaki’s influence was profound and contested. Admirers say the group gave twentieth-century mathematics a unified foundation of language; critics say the books are too abstract, that they expel every trace of geometric intuition, and that reading them feels like reading statutes. Either way, by making formalization the highest standard of mathematics, Bourbaki changed the face of mathematical education and research for good.

The structural viewpoint that Bourbaki emphasized also offers a point of entry for thinking about children’s cognition. The Swiss psychologist Jean Piaget observed that the classifying, ordering, and spatial operations that children gradually develop can be set side by side with the structural viewpoint of modern mathematics.

This comparison gives the chapter a point of departure: sets and mappings, abstract as they look, can be approached through the everyday activities of classifying, ordering, and matching. It suggests that abstract language can connect with everyday cognition; it does not mean that the full concept of a set, or its formal definition, is innate.


The task of this chapter is to build the foundation of that formal language.

Set theory is not an isolated chapter in this book; it is the bedrock language of the whole book. “A vector space is a set equipped with two operations satisfying eight axioms”—this sentence speaks about all vector spaces, not about one concrete example. Once a theorem has been proved from it, that theorem applies at once to Rn\mathbb{R}^n, to polynomial spaces, to function spaces, and to matrix spaces, with no need to redo the work for each example. This is something computation cannot do, and it is what the language of sets does most naturally.

Chapter Structure and Learning Objectives

§1.1 establishes the precise definition of a set, along with subsets, power sets, and the set operations (union, intersection, complement, and the Cartesian product). Simple as these operations look, they are the precondition for describing every later notion of “space” and “structure” precisely.

§1.2 introduces the notion of a mapping, generalizing the traditional idea of a “function” from correspondences between numbers to correspondences between arbitrary sets. The section unfolds in three layers. §1.2.1 supplies the basic vocabulary: mapping, domain, codomain, range, and composition. §1.2.2 takes up the preimage—the reverse analysis of a mapping: given an output, which inputs produce it? §1.2.3 uses that idea to classify mappings as injective, surjective, and bijective, and gives a unified characterization in terms of the size of preimage sets. Linear transformations, matrix multiplication, and the choice of a coordinate system are all, mathematically, special cases of mappings.

§1.3 is the chapter summary; it reviews the theoretical thread and ties it to the chapters that follow. The preimage will reappear in set form again and again—in the solution sets of linear systems in Chapter 6, and in the definition of eigenspaces in Chapter 8. The classification of mappings returns in algebraic dress in Chapter 4, in the rank-nullity theorem for linear mappings.

By the end of this chapter you will possess a set of tools for speaking. Every chapter that follows builds with those tools.


1.1 Foundations of Set Theory

We begin with the most basic notions, laying a solid mathematical foundation for the central theories of linear algebra: vector spaces, linear transformations, and everything built on them.

1.1.1 Definition and Representation of Sets

A set may be presented in either of the following ways:

  1. Roster notation: list all of the elements directly, as in A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\}

  2. Set-builder notation: describe the set by a property or logical condition that its elements satisfy, as in B={x∣x is a positive even number less than 10}B = \{x | x \text{ is a positive even number less than } 10\}

1.1.2 Relations and Operations Between Sets

The most common way to prove that two sets are equal is double inclusion: prove A⊆BA \subseteq B and B⊆AB \subseteq A separately, and once both hold we have A=BA = B. To prove a single inclusion A⊆BA \subseteq B, the standard template is one sentence long—take an arbitrary x∈Ax \in A and derive x∈Bx \in B. The example below demonstrates that template in its most basic setting.

1.2. Foundations of Mappings

Linear algebra begins with multivariable linear functions, that is, with linear mappings. Elementary as this class of functions is, it lays the groundwork for understanding far more intricate mathematical ideas. As you go further, you will find that other kinds of functions also have their place in linear algebra.

1.2.1. Definition and Basic Notions of a Mapping

A function may be written as f:X→Yf: X \rightarrow Y, y=f(x)y = f(x), where x∈Xx \in X and y∈Yy \in Y.

Forming a composite mapping may be understood as “apply ff first, then apply gg.”

1.2.2 The Preimage

1.2.3 Types of Mappings

Characteristic features of a bijection:

  • every element of the domain is mapped to a unique element of the range

  • every element of the range has exactly one preimage

A Unified Theory of Preimages and Types of Mappings

We have now understood the types of mappings from two angles, the traditional definitions and the preimage characterizations. In fact these two formulations reveal a deeper unity in the theory of mappings:

The geometric tests in the table below apply only to real-valued functions of a real variable.

Type of mappingTraditional defining featurePreimage characterizationGeometric testExample
General mappingeach xx corresponds to a unique yypreimages may be empty or largeany graph of a functionf:R→R, f(x)=x2f: \mathbb{R} \to \mathbb{R},\ f(x) = x^2
Injectivef(x0)=f(x1)⇒x0=x1f(x_0) = f(x_1) \Rightarrow x_0 = x_1card⁡(f−1[{y}])≤1\operatorname{card}(f^{-1}[\{y\}]) \leq 1a horizontal line meets it at most oncef:R→R, f(x)=2x+1f: \mathbb{R} \to \mathbb{R},\ f(x) = 2x+1
Surjectiveevery y∈Yy \in Y has a preimagef−1[{y}]≠∅f^{-1}[\{y\}] \neq \emptysetcovers the whole codomainf:R→R, f(x)=x3f: \mathbb{R} \to \mathbb{R},\ f(x) = x^3
Bijectiveboth injective and surjectivecard⁡(f−1[{y}])=1\operatorname{card}(f^{-1}[\{y\}]) = 1for a real-valued function of a real variable, each horizontal line at a height y∈Yy\in Y meets the graph exactly oncef:R→(0,∞), f(x)=exf: \mathbb{R} \to (0,\infty),\ f(x) = e^x

1.3 Chapter Summary

Review of the Theoretical Thread

This chapter set out from a historical turning point: the nineteenth-century crisis in mathematics forced mathematicians to give up their reliance on geometric intuition and to seek a language capable of describing “an entire class of objects” precisely. Weierstrass’s pathological function and Dedekind’s cuts pointed jointly to the same answer—set theory.

§1.1 established the vocabulary of that language. The three properties of a set (definiteness, distinctness, unorderedness) are not fussy stipulations but the minimum required for “a class of objects” to be referred to unambiguously. The subset relation introduces the logic of whole and part; the power set gathers “all possible substructures” into a mathematical object in its own right. The Cartesian product A×BA \times B is the most crucial construction of all: it makes the pairing relation between two sets concrete as a set of ordered pairs, laying the structural groundwork for describing “correspondence” in the next step. Union, intersection, complement, and set difference constitute the algebra of sets, allowing us to manipulate and combine these objects—and it is exactly this capacity for manipulation that makes every later notion of “space” amenable to rigorous treatment.

§1.2 introduced mappings on top of the language of sets, answering the question of what structural connections can be established between two sets. Distinguishing the domain, codomain, image, and range of a mapping removes the confusion between “which values a function is allowed to take” and “which values it actually takes”; the associativity of composition then reveals the algebraic structure of the operation of composing mappings. The introduction of the preimage is especially profound: f−1[B]f^{-1}[B] is defined without requiring ff to be invertible, so that the question “given an output, what were the inputs?” can be posed in complete generality. Finally, taking the size of preimage sets as a unifying viewpoint, the three classes of mappings—injective (∣f−1[{y}]∣≤1|f^{-1}[\{y\}]| \leq 1), surjective (f−1[{y}]≠∅f^{-1}[\{y\}] \neq \emptyset), and bijective (∣f−1[{y}]∣=1|f^{-1}[\{y\}]| = 1)—acquire an internally consistent characterization rather than three unrelated definitions.

Connections to Other Chapters

This is the first chapter of the book, and it supplies the common linguistic foundation for everything that follows. The most direct bridges appear in §2 on vectors and §3 on linear transformations: a vector space is first of all a set, equipped with two operations satisfying particular axioms; a linear transformation is first of all a mapping between sets, together with the requirement that it preserve linear structure. Without the precise definition of “set” given in §1.1, the sentence “a vector space is a set” would be a metaphor rather than a mathematical statement.

The classification of mappings from §1.2 reappears in algebraic guise in §4: a linear mapping is injective exactly when its kernel contains only the zero vector, surjective exactly when its image equals the codomain, and bijective exactly when it is invertible—and the essence of the rank-nullity theorem is precisely an algebraic characterization of these three classes of mappings in finite-dimensional spaces. The notion of a preimage then takes bodily form in §6 as the structure of the solutions of a linear system: the solution set of the equation Ax=b\mathbf{A}\mathbf{x} = \mathbf{b} is exactly the preimage of {b}\{\mathbf{b}\} under the mapping x↦Ax\mathbf{x} \mapsto \mathbf{A}\mathbf{x}. In §8, the definition of an eigenspace—the set of all vectors satisfying Av=λv\mathbf{A}\mathbf{v} = \lambda\mathbf{v}—is likewise a special case of a preimage. The influence of the language of sets runs through the entire book.

The Role of This Chapter in the Book

The problem this chapter solves is that of supplying the whole book with an unambiguous way of speaking. It introduces no content belonging to “linear algebra” as such, and yet it is what makes every later statement of linear algebra possible. “A vector space is a set equipped with two operations satisfying eight axioms”—once every word of that sentence has a precise meaning, the theorems proved from it apply simultaneously to Rn\mathbb{R}^n, to polynomial spaces, to function spaces, and to matrix spaces, with no need to redo the derivation for each kind of object. This kind of once-and-for-all general argument is exactly where “discussing an entire class of objects” outstrips “computing individual examples.”

This chapter also opens a deeper question that runs through the whole book. At the level of sets, injectivity, surjectivity, and bijectivity characterize the preservation and the loss of information; at the level of linear algebra, the same question will be made concrete through algebraic quantities such as rank, kernel, and invertibility. A reader who carries a set-theoretic eye into the following chapters will recognize familiar structures inside every new definition: a subspace is a subset of a vector space, linear dependence is a constraint on linear-combination relations among sets, and an eigenspace is an algebraic instance of a preimage. Formal language is not an ornament on mathematics; it is the infrastructure that allows abstract reasoning to be transmitted precisely.

Concept Map