Linear algebra uses a small amount of set theory and logic. The main ideas are sets, elements, functions, relations, quantifiers, and proof. These notions give precise meaning to statements such as “let be a vector space,” “for every vector ,” and “there exists a unique solution.”
This appendix gives only the background needed for the rest of the book. It uses informal set theory, in the usual style of undergraduate mathematics.
A.1 Sets
A set is a collection of objects. The objects in a set are called its elements.
If is an element of a set , we write
If is not an element of , we write
For example, if
then
Sets are determined by their elements. The order in which the elements are written does not matter, and repeated entries do not change the set:
This is different from a vector, where order and repetition do matter. For example,
A.2 Common Sets of Numbers
The following sets occur throughout linear algebra.
| Symbol | Meaning |
|---|---|
| Natural numbers | |
| Integers | |
| Rational numbers | |
| Real numbers | |
| Complex numbers |
Different authors use different conventions for . Some include , while others begin with . When this distinction matters, it will be stated explicitly.
Linear algebra usually takes scalars from a field. The most common fields are
Thus many vector spaces in this book are real vector spaces or complex vector spaces.
A.3 Subsets
A set is a subset of a set if every element of is also an element of . We write
This means
For example,
If and , then is a proper subset of . Some authors write this as
Because notation varies, this book uses when equality is allowed.
A.4 The Empty Set
The empty set is the set with no elements. It is denoted by
The empty set is a subset of every set:
This statement is true because there is no element of that violates the condition for being in .
The empty set should not be confused with the set containing the empty set:
The first set has no elements. The second set has one element, namely .
A.5 Set Operations
Given two sets and , their union is the set of elements that belong to at least one of them:
Their intersection is the set of elements that belong to both:
Their difference is the set of elements in but not in :
For example, if
then
and
Two sets are disjoint if their intersection is empty:
A.6 Cartesian Products
The Cartesian product of two sets and is the set of all ordered pairs , where and :
For example, if
then
The order matters. In general,
The set is the Cartesian product
Its elements are ordered pairs
Similarly,
is the set of all ordered -tuples of real numbers.
A.7 Tuples
An ordered -tuple is a finite ordered list
The entries may repeat, and their order matters. Thus
is a valid tuple, and
Vectors in are often represented as tuples or as column arrays. The tuple
and the column vector
contain the same data, but the column form is better suited to matrix multiplication.
A.8 Functions
A function from a set to a set assigns to each element of exactly one element of . We write
The set is called the domain. The set is called the codomain.
If , then denotes the value of the function at .
For example,
defines a function from the real numbers to the real numbers.
A function must assign exactly one output to each input. A rule that assigns two different outputs to the same input is not a function.
A.9 Image and Preimage
Let
be a function.
The image of a subset is
The image of the whole domain is
This is also called the range of .
If , then the preimage of is
The notation does not require to have an inverse function. It means all inputs whose outputs lie in .
In linear algebra, if
is a linear map, then the image of is
The kernel of is the preimage of :
A.10 Injective, Surjective, and Bijective Functions
A function
is injective if different inputs always have different outputs. Equivalently,
An injective function is also called one-to-one.
The function is surjective if every element of the codomain is hit by the function. That is,
A surjective function is also called onto.
The function is bijective if it is both injective and surjective. A bijective function gives an exact pairing between the elements of and the elements of .
Bijective functions have inverse functions. If is bijective, then there exists a function
such that
for all , and
for all .
In linear algebra, an invertible linear transformation is a bijective linear transformation.
A.11 Relations
A relation from to is a subset of the Cartesian product .
If , then means that is related to .
A relation on a set is a subset of
Important examples include equality, order relations, and equivalence relations.
A relation on is an equivalence relation if it satisfies three properties.
| Property | Meaning |
|---|---|
| Reflexive | |
| Symmetric | |
| Transitive | and |
Equivalence relations divide a set into equivalence classes. In linear algebra, quotient spaces are built from equivalence classes of vectors.
A.12 Quantifiers
Mathematical statements often use quantifiers.
The universal quantifier means “for all”:
The existential quantifier means “there exists”:
For example,
means that every real number has a nonnegative square.
The statement
means that at least one real number has square .
There is also a uniqueness quantifier:
The statement
means that there exists exactly one element in for which the property holds.
A.13 Implication and Equivalence
An implication has the form
It means that if is true, then is true.
The converse is
The converse of a true statement may be false.
For example, if a square matrix is invertible, then its columns are linearly independent. The converse is also true in this case, but this must be proved separately.
Two statements and are equivalent if each implies the other:
This means
and
In mathematics, the phrase “if and only if” means logical equivalence.
A.14 Negation
The negation of a statement is written
It means that is false.
Negating quantified statements requires care.
The negation of
is
The negation of
is
For example, the negation of
is
A.15 Proof by Direct Argument
A direct proof begins with assumptions and uses definitions, known facts, and algebraic manipulation to reach the desired conclusion.
For example, suppose and are even integers. Then there exist integers and such that
Then
Since is an integer, is even.
This proof uses only the definition of evenness and elementary algebra.
A.16 Proof by Contrapositive
The contrapositive of
is
An implication and its contrapositive are logically equivalent.
To prove , it is often easier to prove the contrapositive.
For example, to prove that if is even, then is even, one may prove the contrapositive: if is odd, then is odd.
If is odd, then
for some integer . Thus
Therefore is odd. Hence, by contrapositive reasoning, if is even, then is even.
A.17 Proof by Contradiction
In proof by contradiction, one assumes that the desired conclusion is false and derives an impossibility.
For example, to prove that is irrational, assume that
where and are integers with no common factor and . Then
so
Thus is even, so is even. Write . Then
so
Thus is even, so is even. Hence both and are even, contradicting the assumption that they have no common factor.
Therefore is irrational.
A.18 Existence and Uniqueness
Many theorems in linear algebra have two parts: existence and uniqueness.
An existence proof shows that at least one object satisfies a property.
A uniqueness proof shows that no two distinct objects satisfy that property.
For example, to prove that the zero vector is unique, suppose and are both zero vectors in a vector space . By definition,
because is a zero vector. Also,
because is a zero vector. Therefore,
Thus the zero vector is unique.
A.19 Indexed Families
An indexed family is a collection of objects labeled by elements of an index set.
For example,
denotes a family of vectors indexed by the set .
If , then the family is finite:
Linear combinations are usually built from finite indexed families:
The summation notation means
Indexed notation is compact and becomes essential when working with matrices, bases, coordinates, and finite-dimensional spaces.
A.20 Mathematical Induction
Mathematical induction is a proof method for statements indexed by natural numbers.
To prove that a statement holds for all , prove two things.
| Step | Purpose |
|---|---|
| Base case | Prove |
| Induction step | Prove |
For example, prove that
for all .
For ,
So the base case holds.
Assume the formula holds for :
Then
Factor:
This is the desired formula for . Therefore, by induction,
for all .
A.21 Partitions
A partition of a set is a collection of nonempty subsets of such that each element of belongs to exactly one subset in the collection.
For example,
is a partition of
The blocks of a partition are disjoint and their union is the whole set.
Equivalence relations and partitions describe the same structure. Every equivalence relation determines a partition into equivalence classes, and every partition determines an equivalence relation.
This idea appears when constructing quotient vector spaces.
A.22 Finite and Infinite Sets
A set is finite if its elements can be counted by a natural number. A set with elements has cardinality , written
A set is infinite if it is not finite.
For example,
is finite, while
is infinite.
The set is infinite for every positive integer . A finite-dimensional vector space can still contain infinitely many vectors. The word finite-dimensional refers to the size of a basis, not to the number of vectors in the space.
A.23 Countability
An infinite set is countable if its elements can be listed in a sequence
The integers and rational numbers are countable. The real numbers are uncountable.
Most linear algebra in this book does not depend on advanced cardinality arguments. Still, the distinction between finite, countable, and uncountable sets helps clarify the difference between finite-dimensional and infinite-dimensional spaces.
A.24 Logical Form of Common Linear Algebra Statements
Many statements in linear algebra have a simple logical form.
For example, the statement “ spans ” means
such that
The statement “ is linearly independent” means
The statement “ is injective” means
Equivalently, for a linear transformation,
Writing definitions in logical form helps prevent ambiguity. It also makes proofs more systematic.
A.25 Summary
Set theory supplies the language of elements, subsets, functions, products, relations, and indexed families. Logic supplies the language of quantifiers, implication, equivalence, negation, and proof.
Linear algebra uses these tools constantly. A vector space is a set with operations. A subspace is a subset closed under those operations. A linear transformation is a function preserving those operations. A basis is a set of vectors satisfying spanning and independence conditions.
The main purpose of this appendix is not to develop set theory for its own sake. It is to make the statements and proofs of linear algebra precise.