Notes on Linear Algebra

David K. Zhang
Last Modified 2022-03-15

Definition: Vector Space, Vector, Scalar

Let F;0,1,F,+F,F\alg{F; 0, 1, -_F, +_F, \cdot_F} be a field. A vector space over FF is an algebraic structure V;0,V,+V,V\alg{V; \vo, -_V, +_V, \cdot_V} consisting of:

  • a set VV, called the underlying set;
  • a distinguished element 0V\vo \in V, called the zero vector;
  • a unary operation V:VV-_V: V \to V, written as vv\vv \mapsto -\vv, called vector negation;
  • a binary operation +V:V×VV+_V: V \times V \to V, written as (v,w)v+w(\vv, \vw) \mapsto \vv + \vw, called vector addition;
  • a binary operation V:F×VV\cdot_V: F \times V \to V, written as (a,v)av(a, \vv) \mapsto a \cdot \vv, called scalar multiplication;

satisfying the following requirements:

  • Additive structure: V;0,V,+V\alg{V; \vo, -_V, +_V} is an abelian group.
  • Identity: 1v=v1 \cdot \vv = \vv for all vV\vv \in V.
  • Multiplicative compatibility: (ab)v=a(bv)(a \cdot b) \cdot \vv = a \cdot (b \cdot \vv) for all a,bFa, b \in F and vV\vv \in V.
  • Left distributivity: a(v+w)=(av)+(aw)a \cdot (\vv + \vw) = (a \cdot \vv) + (a \cdot \vw) for all aFa \in F and v,wV\vv, \vw \in V.
  • Right distributivity: (a+b)v=(av)+(bv)(a + b) \cdot \vv = (a \cdot \vv) + (b \cdot \vv) for all a,bFa, b \in F and vV\vv \in V.

The elements of VV are called vectors, and the elements of FF are called scalars.

In these notes, we will use boldface upright letters, such as v\vv and w\vw, to denote vectors. On the other hand, scalars will be denoted by italic letters, such as aa and bb. This will allow us to distinguish vector variables from scalar variables at a glance. (This convention is commonly adopted in physics and engineering, but is uncommon in pure mathematics.)

Adopting this convention also provides another benefit: namely, we no longer need to distinguish between the operations of scalar addition +F:F×FF+_F: F \times F \to F and vector addition +V:V×VV+_V: V \times V \to V. Instead, we proceed with the implicit understanding that whenever the ++ sign occurs between two scalars, as in a+ba + b, it refers to scalar addition. Likewise, whenever it occurs between two vectors, as in v+w\vv + \vw, it refers to vector addition.

The same goes for the two multiplication operations F:F×FF\cdot_F: F \times F \to F and V:F×VV\cdot_V: F \times V \to V. Moving forward, these operations will be denoted by juxtaposition, as in abab and ava\vv. The requirement of multiplicative compatibility allows us to write abvab\vv without ambiguity, and the identity property allows us to freely insert and remove factors of 11.

As with groups, rings, and fields, it is common to denote a vector space V;0V,V,+V,V\alg{V; \vo_V, -_V, +_V, \cdot_V} simply by the name of its underlying set VV. Thus, we will often say “let VV be a vector space over a field FF.”

Definition: Linear Combination

Let VV be a vector space over a field FF, and let nNn \in \N. A linear combination of a finite sequence of vectors v1,v2,,vnV\vv_1, \vv_2, \dots, \vv_n \in V is a vector of the form

a1v1+a2v2++anvn a_1 \vv_1 + a_2 \vv_2 + \cdots + a_n \vv_n

where a1,a2,,anFa_1, a_2, \dots, a_n \in F. We call the sequence of scalars a1,a2,,ana_1, a_2, \dots, a_n the coefficients of the linear combination. For n=0n = 0, we define the unique linear combination of the empty sequence of vectors to be 0\vo.

Definition: Span

Let VV be a vector space over a field FF. The span of a subset SVS \subseteq V, denoted by spanS\vspan S, is the set of all linear combinations of all finite sequences of vectors in SS.

spanS{a1v1+a2v2++anvn:nN, a1,a2,,anF, v1,v2,,vnS} \vspan S \coloneqq \{ a_1 \vv_1 + a_2 \vv_2 + \cdots + a_n \vv_n : n \in \N,\ a_1, a_2, \dots, a_n \in F,\ \vv_1, \vv_2, \dots, \vv_n \in S \}

Because we defined 0\vo to be the unique linear combination of an empty set of vectors, we always have 0spanS\vo \in \vspan S for any subset SVS \subseteq V, including the empty set.

Definition: Linear Subspace

Let VV be a vector space over a field FF. A linear subspace of VV is a subset SVS \subseteq V that is closed under taking linear combinations, i.e., every linear combination of every finite sequence of vectors in SS is itself in SS.

Note that the empty set V\varnothing \subseteq V is not a linear subspace! The requirement of closure under linear combinations includes the empty linear combination, which the empty set fails to satisfy, since 0\vo \notin \varnothing. Because of this requirement, a linear subspace must always contain the zero vector.

Pairwise Linear Combinations Suffice

Theorem: Let VV be a vector space over a field FF. A subset SVS \subseteq V is a linear subspace of VV if and only if SS has the following two properties:

  • Contains the zero vector: 0S\vo \in S.
  • Closed under pairwise linear combinations: For all a,bFa, b \in F and v,wS\vv, \vw \in S, we have av+bwSa\vv + b\vw \in S.

Proof sketch: We prove by induction on nNn \in \N that SS is closed under taking nn-ary linear combinations. The first property handles the base case n=0n = 0, and the second property handles the inductive step, using the fact that an nn-ary linear combination can be written as a binary linear combination of a vector and an (n1)(n-1)-ary linear combination.

Definition: Affine Combination

Let VV be a vector space over a field FF, and let nNn \in \N. An affine combination of a finite sequence of vectors v1,v2,,vnV\vv_1, \vv_2, \dots, \vv_n \in V is a vector of the form a1v1+a2v2++anvna_1 \vv_1 + a_2 \vv_2 + \cdots + a_n \vv_n where the coefficients a1,a2,,anFa_1, a_2, \dots, a_n \in F satisfy a1+a2++an=1a_1 + a_2 + \cdots + a_n = 1.

Note that, unlike linear combinations, there is no such thing as an empty affine combination. The sum of an empty sequence of scalars is 00, and by the definition of a field, 010 \ne 1.

Definition: Affine Span, Affine Hull

Let VV be a vector space over a field FF. The affine span or affine hull of a subset SVS \subseteq V, denoted by affS\aff S, is the set of all affine combinations of all finite sequences of vectors in SS.

Definition: Affine Set

Let VV be a vector space over a field FF. An affine set in VV is a subset SVS \subseteq V that is closed under taking affine combinations, i.e., every affine combination of every finite sequence of vectors in SS is itself in SS.

Because there are no empty affine combinations, the empty set V\varnothing \in V does (vacuously) qualify as an affine set.

Definition: Conic Combination

Let VV be a vector space over an ordered field (F,<)(F, <), and let nNn \in \N. A conic combination of a finite sequence of vectors v1,v2,,vnV\vv_1, \vv_2, \dots, \vv_n \in V is a vector of the form a1v1+a2v2++anvna_1 \vv_1 + a_2 \vv_2 + \cdots + a_n \vv_n where the coefficients a1,a2,,anFa_1, a_2, \dots, a_n \in F are all nonnegative, i.e., ai0a_i \ge 0 for all i{1,2,,n}i \in \{1, 2, \dots, n \}.

Definition: Conic Hull

Let VV be a vector space over an ordered field (F,<)(F, <). The conic hull of a set SVS \subseteq V, denoted by coneS\cone S, is the set of all conic combinations of all finite sequences of vectors in SS.

Definition: Cone

Let VV be a vector space over an ordered field (F,<)(F, <). A cone in VV is a subset SVS \subseteq V that is closed under scalar multiplication by nonnegative scalars, i.e., if aFa \in F satisfies a0a \ge 0 and vS\vv \in S, then avSa\vv \in S.

Note that a cone is not necessarily closed under taking conic combinations!

Definition: Convex Combination

Let VV be a vector space over an ordered field (F,<)(F, <), and let nNn \in \N. A convex combination of a finite sequence of vectors v1,v2,,vnV\vv_1, \vv_2, \dots, \vv_n \in V is a vector of the form a1v1+a2v2++anvna_1 \vv_1 + a_2 \vv_2 + \cdots + a_n \vv_n where the coefficients a1,a2,,anFa_1, a_2, \dots, a_n \in F satisfy a1+a2++an=1a_1 + a_2 + \cdots + a_n = 1 and are all nonnegative, i.e., ai0a_i \ge 0 for all i{1,2,,n}i \in \{1, 2, \dots, n \}.

Definition: Convex Hull

Let VV be a vector space over an ordered field (F,<)(F, <). The convex hull of a set SVS \subseteq V, denoted by convS\conv S, is the set of all convex combinations of all finite sequences of vectors in SS.

Definition: Convex Set

Let VV be a vector space over an ordered field (F,<)(F, <). A convex set in VV is a subset SVS \subseteq V that is closed under taking convex combinations, i.e., every convex combination of every finite sequence of vectors in SS is itself in SS.

Definition: Real Vector Space, Complex Vector Space

A real vector space is a vector space over the field R\R of real numbers. Similarly, a complex vector space is a vector space over the field C\C of complex numbers.