Chapter 1 studied vector spaces one at a time. This
chapter studies the functions between
vector spaces that respect addition and scaling. This
section defines them, collects examples from geometry,
matrices, calculus, and algebra, and proves the fact
that makes them manageable: a linear map is completely
determined by what it does to a basis.
Functions
that behave like matrices
Objects come first, then the maps between them that
respect their structure. For sets the maps are
functions; for groups they are homomorphisms (Definition 0.10.3).
For vector spaces the structure is addition and scalar
multiplication, so we want functions that respect those
two operations.
The standard example is a matrix. For ,
the rules of matrix multiplication (Theorem 0.9.4) give
Now look at three functions that are not given
by matrices at all.
- Differentiation on polynomials:
and .
- Trace on square matrices: and (Theorem 0.9.6).
- Rotation of the plane about the
origin: rotating a parallelogram gives a parallelogram,
so the rotation of a sum is the sum of the rotations,
and rotating a stretched arrow gives the stretched
rotated arrow.
The inputs are polynomials, matrices, and arrows, not
columns. Yet all three obey exactly the two rules that
matrices obey. Whatever we can prove from those two
rules alone will hold for all of them at once. So we
give the two rules a name.
A linear map is a function that preserves linear
combinations.
The
definition
In words: (LT1), additivity, says
that adding first and then applying gives the same result
as applying first
and then adding. The sum on the left is taken in ; the sum on the right
is taken in .
(LT2), homogeneity, says the same for
scaling: the scalar can be pulled out of
. Both conditions
must hold for every choice of vectors
and scalars, so one counterexample is enough to show
that a function is not linear.
The phrase “over the same field” matters. Scalars
from act on both
sides of (LT2), so both spaces must accept them. We will
see below that one function can be linear over and not linear over
. A general
linear map is always named , , or in this book, never
; a specific map
may get a letter that recalls what it does, such as
for
differentiation.
Examples
We check the examples against (LT1) and (LT2),
grouped by where they come from.
Matrices.
Solution. Let and . By the distributive law in Theorem 0.9.4, , which is
(LT1). By the scalar rule in the same theorem, , which is
(LT2). Hence
is linear.
We will use the name for this map
throughout the chapter. For and , the map sends the unit
square to the parallelogram spanned by and , the columns
of (Theorem 0.9.3).
Drag the tips of the two arrows to change .
Solution.
(a) The formula
is a matrix product: So for this matrix , and is linear by Example (Multiplication by a Matrix).
The same argument shows that every map whose output
entries are combinations of the input entries, with
constant coefficients and no constant terms, is
linear.
(b) By Theorem 1.5.2,
and . These are (LT1) and
(LT2).
Geometry.
Example
(Projection onto an Axis)
Show that , , is linear.
Solution. Let ,
, and . Then So (LT1) and (LT2) hold. The map drops each
point vertically onto the -axis, like a shadow
cast by light from straight above.
Example
(Rotation of the Plane)
Let , and let rotate each vector counterclockwise about
the origin by the angle . Find a formula
for , and
deduce that it is linear.
Solution. Write in polar coordinates. Rotating
adds to the
angle and keeps the length , so by the addition
formulas for sine and cosine, This is for , so is linear by Example (Multiplication by a Matrix).
Calculus. For a polynomial , define its (formal)
derivative as , where means added to itself times. Over this is the
derivative of calculus.
Example
(Differentiation)
Show that , , is linear. Show also that maps into for .
Solution. Let and
,
and . The
coefficient of in is , which is the coefficient of in . The
coefficient of in is , which
is the coefficient in . Both steps use
only the field axioms. Two polynomials with the same
coefficients are equal (Definition 0.8.1), so
(LT1) and (LT2) hold. If , the highest
power in is
at most , so
restricts to a
linear map .
Example
(Integration)
Show that , , is linear.
Solution. On coefficients, sends to , so it does map polynomials to
polynomials. By linearity of the integral from calculus,
for every . Hence is linear. (The
coefficient formula divides by ; over a field such
as , where
, it
breaks down.)
Algebra and sequences.
Example
(Multiplication by )
Show that , , is linear.
Solution. By the distributive laws
in Theorem 0.8.1, , and
because the product of polynomials is associative and
commutative and the constant is a polynomial. These
are (LT1) and (LT2).
Example
(Trace and Transpose)
Show that the trace and the transpose , , are linear.
Solution. For the trace, Theorem 0.9.6 (1) says
and , which are (LT1) and (LT2); the target
is , regarded as a
vector space over itself. For the transpose, the entry of is , the
entry of
; and
the entry of
is , the entry of .
Example
(The Shift Maps on Sequences)
On the space of sequences (Example (The Standard Vector Spaces)),
define the right shift and the
left shift Show that both are linear.
Solution. The operations on are termwise. The
entry in position of is , which
is the entry of ; in position both have . Similarly,
has
entries and , the entries of
. For
, the entry in
position of is
,
and of
is , as
required.
The right shift is the map promised in the warning of
Chapter 1, §8, on what changes in infinite dimension: it
matches
one-to-one with the sequences whose first entry is , respecting addition
and scaling. In the next section we measure exactly how
and fail to be
bijective.
Example
(Composition with a Fixed Function)
Let and be sets and a
function. Show that , , is
linear. Show also that , , is
linear.
Solution. The operations on
function spaces are pointwise (Example (The Standard Vector Spaces)).
For , and . So (LT1)
and (LT2) hold. The output is again a function, not a
number; linearity is about the function varying, while stays fixed.
For the second claim, write for ; in full, if , then
, a finite sum in . Linearity is now
read off the coefficients. The coefficients of are the , so by Theorem 0.8.1, and
in the same way. So is linear. (It
translates the graph of one unit to the left.)
One can also read as an instance of
with , once a
polynomial and the function it defines are identified;
that identification needs an argument, which Chapter 3
supplies.
The degenerate maps. Three maps are
always available: the identity on any space, the
inclusion of any subspace, and the zero map between any
two spaces. They look too simple to matter. They matter
because every general statement about linear maps must
be true for them, so they are the first test of any
conjecture.
Example
(Identity Map)
The identity , , is linear: and .
Example
(Inclusion Map)
If is a
subspace of , the
inclusion , , is linear, because the operations
of are those of
. Its formula is
the identity’s, but its codomain is bigger. For instance
is an inclusion.
Example
(Zero Map)
For any and
over , the zero map , , is linear: and
(Theorem 1.1.6).
Three
consequences of linearity
The two axioms already force several other rules. The
first is the quickest test for nonlinearity.
Theorem
2.1.1 (Linear Maps Send Zero to Zero)
Let be linear. Then .
Proof. By (LT1), .
Adding to both
sides gives .
The proof used only (LT1). Homogeneity with would also give it:
.
Theorem
2.1.2 (Linear Maps Preserve Negatives)
Let be linear. Then and for all .
Proof. By Theorem 1.1.7, .
So (LT2) gives , using Theorem 1.1.7 again
in . Then (LT1)
gives .
Checking two conditions separately is often longer
than necessary. One combined condition suffices.
Theorem
2.1.3 (One-Line Test for Linearity)
Let and be vector spaces over
, and let be a
function. Then is
linear if and only if
Proof. Suppose
is linear. By
(LT1) and then (LT2), .
Suppose the condition holds. Taking gives , which is (LT1).
Taking and gives , so .
Now taking gives , which is (LT2).
Finally, the slogan. Two applications of the axioms
handle a combination of two vectors; induction handles
any finite combination.
Theorem
2.1.4 (Linear Maps Preserve Linear
Combinations)
Let be linear, let and , where . Then
Proof. We use induction on . For both sides are
empty sums, so the claim is ,
which is Theorem 2.1.1. Let
and suppose
the claim holds for vectors. By (LT1), then the induction
hypothesis and (LT2), This completes the induction.
In words: to apply to a combination, apply
it to each vector and keep the same coefficients. This
is the property the slogan promised, and it is the
property every later theorem about linear maps uses.
Nonexamples
A function fails to be linear as soon as
one instance of (LT1) or (LT2) fails.
The cheapest instance to try is , by Theorem 2.1.1.
Example
(A Constant Function)
Is , , linear?
Solution. No. A linear map sends
to by Theorem 2.1.1, but
.
Example
(Translation)
Let be nonzero. Is the
translation , , linear?
Solution. No: , which is impossible for a linear map
by Theorem 2.1.1. This is
a minimal change of the identity map (Example (Identity Map)):
the formula differs only by the constant , and that
constant is exactly what breaks linearity. For the
record, (LT1) fails too: , while . Maps of the
form are called
affine; they are linear exactly when
.
Passing the zero test does not make a function
linear.
Example
(Squaring)
Is , , linear?
Solution. No. Here ,
so the quick test says nothing. But (LT2) fails for
and : , while . Compare with the projection of Example (Projection onto an Axis):
squaring the first entry is the one change, and it
destroys homogeneity.
Example
(Length)
Is , , linear?
Solution. No. Take and
. Then , but
,
so (LT2) fails. Length does satisfy , which agrees with only for
. Additivity
fails too: , but .
The last nonexample shows that linearity depends on
the field, not only on the function.
Example
(Complex Conjugation: the Field Matters)
Let , . Is linear when is regarded as a
vector space over ? Over ?
Solution. (LT1) holds in both
cases, since (Theorem 0.6.2).
Over : not linear.
The scalars are all complex numbers. Take and : then , but . So (LT2) fails.
Over : linear. Now
(LT2) is only required for real . For , , by Theorem 0.6.2 and
.
Warning. “Linear” here is
not the “linear function” of school. A function
has a
straight-line graph, but it is a linear map only when
: , and Theorem 2.1.1 demands
. In fact
every linear map has the form : by (LT2),
, so . And is
necessary but not sufficient for
linearity, as Example (Squaring)
shows.
Quick check. Which of these maps
are
linear? (i) ; (ii) ; (iii) .
Solution.
- (i) Linear: it is
with . (ii) Not linear: . (iii) Not linear, although : , but , so (LT2) fails.
Why this definition. Could one
condition be dropped? Complex conjugation on over satisfies (LT1) but
not (LT2), so additivity alone is not enough. (Over
, surprisingly,
additivity does imply homogeneity; see Exercise (C1: Over , Additivity Is Enough).)
Conversely, , (the real cube root),
satisfies (LT2), since for every real . But ,
while , so (LT1) fails. Neither condition
implies the other, and we need both to get Theorem 2.1.4. The
name comes from the case just described: the graph of a linear
map is a line through the origin.
A linear
map is determined by a basis
A function on an infinite set normally needs
infinitely many values to describe it. A linear map
needs far fewer. If is a basis of
, every is a
combination , and Theorem 2.1.4 forces
So the
vectors already fix every value of
. The converse
question is whether any choice of these
vectors comes
from a linear map. It does, and that is the theorem.
Idea. Uniqueness
is the computation above: any linear with these values must
be given by the formula. Existence asks
us to use the formula as a definition. The only
danger is that a vector might have two expressions ,
giving two candidate values; the basis rules that out,
because coordinates are unique. So: ① define from the
coordinates of ; ② check (LT1),
(LT2), using that coordinates respect the operations; ③
check ; ④ prove uniqueness by Theorem 2.1.4.
Proof. Existence. Let
. By
Theorem 1.5.1, there
are unique scalars
with ; they are
the entries of (Definition 1.5.2).
Define Since the scalars are unique, this assigns
exactly one vector of to each , so is a
well-defined function.
Let and , with and . By Theorem 1.5.2, . Hence, by the
definition of and
the vector space axioms in , By Theorem 2.1.3, is linear. Moreover,
, so
and .
Uniqueness. Let be any
linear map with for all . For , Theorem 2.1.4 gives
Since for every , the
functions are equal: . This proves the theorem.
The theorem has two halves, and they are used
differently. Uniqueness says that to check two
linear maps are equal, check them on a basis.
Existence says that to build a linear map,
choose the images of a basis freely. The same
holds for the infinite bases of Chapter 1, §8, because
every vector is still a unique finite
combination of basis vectors; we record this as Theorem 2.1.6 below.
In Chapter 4 this theorem turns into the matrix of a
linear map: once bases are fixed, the vectors , written in
coordinates, are the columns.
Theorem
2.1.6 (Linear Maps on an Arbitrary
Basis)
Let and be vector spaces over
, let be a basis of (possibly infinite, in
the sense of Theorem 1.8.2), and
for each let
be any vector. Then there is exactly one linear map
with for every .
Proof. Let . Since
spans and is independent,
is a
finite combination in
which only finitely many are nonzero,
and these coefficients are unique: two such expressions
differ by a finite combination of distinct elements of
equal to , whose
coefficients all vanish by independence. Define , a finite sum.
The coefficients of and of are and by
uniqueness, so is
linear, and because the coefficients of
are at and elsewhere. If is another linear map
with for all , then by Theorem 2.1.4. This
proves the theorem.
Example
(Finding a Formula from Values on a Basis)
Show that there is exactly one linear map
with and find .
Solution. First, is a
basis of . It
is independent: if , then and , so . It has entries,
so it is a basis (Theorem 1.6.4). By
Theorem 2.1.5, exactly
one such
exists.
To find it, write in the basis. Solving , that is and , gives and . By
the formula in the theorem, Check: and .
Example
(Too Many Conditions)
Is there a linear map with
Solution. No. As in Example (Finding a Formula from Values on a Basis),
is
a basis of :
if then and , so , and two independent vectors in a -dimensional space form
a basis (Theorem 1.6.4). By
Theorem 2.1.5, the
first two conditions already determine , and the third
condition must be checked against them, not imposed.
Since , any linear with the first two
values satisfies by Theorem 2.1.4. As
, no such exists. Had the third
value been , the answer would be yes, with exactly one
such map.
Example
(Recognizing Differentiation)
Show that the differentiation map is the only
linear map with
Solution. The list is a
basis of (Example (Standard Bases)).
The map is linear
(Example (Differentiation)),
and , , , , so has the four prescribed
values. By the uniqueness half of Theorem 2.1.5, every
linear with these
values equals .
Four values, the derivatives of the monomials, pin down
the derivative of every cubic.
Warning. The values must be
prescribed on a basis, or at least on an independent
list. On a dependent list, the values may
contradict each other. There is no
linear with and : since , (LT2)
forces . On the other hand, a list
that does not span leaves undetermined: many
linear maps satisfy alone.
Quick check. Let be
linear with and . Find .
Solution. Solving , that is and , gives and . Every has exactly one such expression, so is a
basis of .
Hence . Check: and .
We now have a supply of linear maps and a way to
build new ones from a basis. The next section attaches
to every linear map two subspaces that measure how far
it is from being injective and from being
surjective.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Define a linear
map over .
- (b) State the
theorem that says a linear map is determined by a basis,
including both existence and uniqueness.
- (c) True or false:
if
satisfies , then is linear. Justify your
answer.
- (d) True or false:
there is a linear map with and
.
Justify your answer.
- (e) True or false:
complex conjugation is linear over . Justify your
answer.
Solution.
(a) See Definition 2.1.1:
are vector
spaces over the same field , and and for all
and .
(b) See Theorem 2.1.5: if
is a basis of and are arbitrary, there is one and only one
linear with for all .
(c) False. ,
, sends to but is not
linear (Example (Squaring)).
(d) False. By
(LT2), .
(e) True. See Example (Complex Conjugation: the Field Matters):
for real , ,
and .
B. Practice
Exercise
(B1: Which Maps Are Linear?)
Determine which of the following functions are linear
maps over .
Justify your answer.
- (a) ,
.
- (b) ,
.
- (c) , .
- (d) , .
- (e) ,
.
- (f) , .
Solution.
(a) Linear. with ,
which is linear by Example (Multiplication by a Matrix).
(b) Not linear.
, contradicting Theorem 2.1.1.
(c) Not linear.
Take and : , but . So (LT2) fails. (Additivity fails
too: , but .)
(d) Linear. For
,
has degree at most , so . For and , by Example (Differentiation)
and the distributive law, . By
Theorem 2.1.3, is linear.
(e) Not linear,
although . , but .
(f) Linear. The
entry in position
of is ,
which is the entry in position of . By Theorem 2.1.3, is linear.
Exercise
(B2: A Formula from Values on a Basis)
- (a) Show that there
is exactly one linear map with and
.
Hence find
and a matrix
with .
- (b) Let be linear with , , and . Find
.
Solution.
(a) The list
is
independent: if , then and , so and then . It has entries,
so it is a basis (Theorem 1.6.4). By
Theorem 2.1.5, exactly
one such exists.
Solving , that is and , gives and . Hence Check: and . Hence with .
(b) The
polynomials are nonzero of distinct degrees, so they
are independent (Theorem 1.4.4);
there are of them, so they form a basis
(Theorem 1.6.4). By
(LT1) and Theorem 2.1.2, and . By Theorem 2.1.4,
Exercise
(B3: Evaluation and Integration)
- (a) Prove that , , is linear.
- (b) Prove that , , is linear.
- (c) Hence find
and .
Solution.
(a) Let and . By Theorem 0.8.5, , where is the product of the
constant polynomial with , whose value at is . So , and is linear by Theorem 2.1.3.
(b) By linearity
of the integral, . So , and is linear by Theorem 2.1.3.
(c) On the basis:
,
,
,
and ,
,
. By Theorem 2.1.4,
C. Going deeper
Exercise
(C1: Over ,
Additivity Is Enough)
Let and be vector spaces over
, and let be
additive: for all .
- (a) Prove that for every and .
- (b) Prove that for every .
- (c) Prove that for every . Deduce that
is linear.
Hint: for (c), apply (b) to the vector .
Solution.
(a) We use
induction on . For
: the proof of
Theorem 2.1.1 used
only additivity, so ,
that is, . If , then by additivity .
(b) Let . By additivity
and , , so , using (a).
Every integer is
or for some
.
(c) Let with and . By (b) applied
to the vector , and then to
, Multiplying by gives
. So (LT2)
holds for every scalar , and with additivity, which is (LT1), is linear.
Exercise
(C2: Over ,
Additivity Is Not Enough)
- (a) Give an additive
map
that is not linear over , and explain which
step of Exercise (C1: Over , Additivity Is Enough)
fails for it.
- (b) Let and be vector spaces over
. Regarding them
also as spaces over , let be
linear over , and suppose
for all . Prove
that is linear
over .
Solution.
(a) Complex
conjugation is additive and not -linear (Example (Complex Conjugation: the Field Matters)).
The argument of Exercise (C1: Over , Additivity Is Enough)
still shows for rational , and that is true for
conjugation. What fails is that the rational numbers are
not all the scalars: nothing in that argument reaches a
scalar like ,
which is not built from by adding, subtracting,
multiplying, and dividing.
(b) (LT1) holds
because is linear
over . For
(LT2), let with , and . By the vector space axioms, . Using (LT1), then -homogeneity, then the
hypothesis, Hence
is linear over .