2.1  Linear Maps

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.

2.1.1. 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 A∈Mm×n(F), the rules of matrix multiplication (Theorem 0.9.4) give A(x+y)=Ax+Ay,A(cx)=c(Ax)for all x,y∈Fn, c∈F. Now look at three functions that are not given by matrices at all.

  • Differentiation on polynomials: (p+q)′=p′+q′ and (cp)′=cp′.
  • Trace on square matrices: tr(A+B)=trA+trB and tr(cA)=ctrA (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.

2.1.2. The definition

Definition 2.1.1 (Linear Map)

Let V and W be vector spaces over the same field F. A function T:V→W is a linear map (or linear transformation) over F if

  • (LT1) T(u+v)=T(u)+T(v) for all u,v∈V, and
  • (LT2) T(cv)=cT(v) for all c∈F and all v∈V.

A linear map T:V→V from a space to itself is also called a linear operator on V. We often write Tv for T(v).

In words: (LT1), additivity, says that adding first and then applying T gives the same result as applying T first and then adding. The sum on the left is taken in V; the sum on the right is taken in W. (LT2), homogeneity, says the same for scaling: the scalar c can be pulled out of T. 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 F act on both sides of (LT2), so both spaces must accept them. We will see below that one function can be linear over R and not linear over C. A general linear map is always named T, S or R in this book, never f; a specific map may get a letter that recalls what it does, such as D for differentiation.

2.1.3. Examples

We check the examples against (LT1) and (LT2), grouped by where they come from.

Matrices.

Example (Multiplication by a Matrix)

Let A∈Mm×n(F). Show that TA:Fn→Fm, TA(x)=Ax, is a linear map.

Solution. Let x,y∈Fn and c∈F. By the distributive law in Theorem 0.9.4, TA(x+y)=A(x+y)=Ax+Ay=TA(x)+TA(y), which is (LT1). By the scalar rule in the same theorem, TA(cx)=A(cx)=c(Ax)=cTA(x), which is (LT2). Hence TA is linear.

We will use the name TA for this map throughout the chapter. For F=R and n=m=2, the map TA sends the unit square to the parallelogram spanned by Ae1 and Ae2, the columns of A (Theorem 0.9.3).

Diagram. Labels: x, y, A e_1, A e_2

The unit square (dashed) and its image under A=(2101).

Drag the tips of the two arrows to change A.

Example (Maps Given by Formulas in Coordinates)
  • (a) Show that T:F3→F2, T(a1,a2,a3)=(2a1+a3, a2−a1), is linear.
  • (b) Let B=(v1,…,vn) be a basis of a vector space V over F. Show that the coordinate map V→Fn, v↦[v]B, is linear.

Solution.

  • (a) The formula is a matrix product: (201−110)(a1a2a3)=(2a1+a3−a1+a2). So T=TA for this 2×3 matrix A, and T is linear by Example (Multiplication by a Matrix). The same argument shows that every map Fn→Fm whose output entries are combinations of the input entries, with constant coefficients and no constant terms, is linear.

  • (b) By Theorem 1.5.2, [u+v]B=[u]B+[v]B and [cv]B=c[v]B. These are (LT1) and (LT2).

Geometry.

Example (Projection onto an Axis)

Show that T:R2→R2, T(a1,a2)=(a1,0), is linear.

Diagram: Projection onto an Axis. Labels: x, y, (a_1,a_2), (a_1,0)

Solution. Let u=(a1,a2), v=(b1,b2) and c∈R. Then T(u+v)=(a1+b1,0)=(a1,0)+(b1,0)=T(u)+T(v),T(cu)=(ca1,0)=c(a1,0)=cT(u). So (LT1) and (LT2) hold. The map drops each point vertically onto the x-axis, like a shadow cast by light from straight above.

Example (Rotation of the Plane)

Let θ∈R, and let Rθ:R2→R2 rotate each vector counterclockwise about the origin by the angle θ. Find a formula for Rθ, and deduce that it is linear.

Diagram: Rotation of the Plane. Labels: x, y, (a_1,a_2), R_theta (a_1,a_2)

Solution. Write (a1,a2)=(rcos⁡φ,rsin⁡φ) in polar coordinates. Rotating adds θ to the angle and keeps the length r, so by the addition formulas for sine and cosine, Rθ(a1,a2)=(rcos⁡(φ+θ), rsin⁡(φ+θ))=(a1cos⁡θ−a2sin⁡θ, a1sin⁡θ+a2cos⁡θ). This is TA for A=(cos⁡θ−sin⁡θsin⁡θcos⁡θ), so Rθ is linear by Example (Multiplication by a Matrix).

Calculus. For a polynomial p=a0+a1x+⋯+anxn∈F[x], define its (formal) derivative as p′=a1+2a2x+⋯+nanxn−1, where kak means ak added to itself k times. Over R this is the derivative of calculus.

Example (Differentiation)

Show that D:F[x]→F[x], D(p)=p′, is linear. Show also that D maps F[x]≤n into F[x]≤n−1 for n≥1.

Solution. Let p=∑kakxk and q=∑kbkxk, and c∈F. The coefficient of xk−1 in D(p+q) is k(ak+bk)=kak+kbk, which is the coefficient of xk−1 in D(p)+D(q). The coefficient of xk−1 in D(cp) is k(cak)=c(kak), which is the coefficient in cD(p). 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 deg⁡p≤n, the highest power in p′ is at most xn−1, so D restricts to a linear map F[x]≤n→F[x]≤n−1.

Example (Integration)

Show that J:R[x]→R[x], J(p)(x)=∫0xp(t)dt, is linear.

Solution. On coefficients, J sends a0+a1x+⋯+anxn to a0x+a12x2+⋯+ann+1xn+1, so it does map polynomials to polynomials. By linearity of the integral from calculus, J(p+q)(x)=∫0x(p(t)+q(t))dt=J(p)(x)+J(q)(x),J(cp)(x)=∫0xcp(t)dt=cJ(p)(x) for every x∈R. Hence J is linear. (The coefficient formula divides by k+1; over a field such as F2, where 1+1=0, it breaks down.)

Algebra and sequences.

Example (Multiplication by x)

Show that M:F[x]→F[x], M(p)=xp, is linear.

Solution. By the distributive laws in Theorem 0.8.1, x(p+q)=xp+xq, and x(cp)=c(xp) because the product of polynomials is associative and commutative and the constant c is a polynomial. These are (LT1) and (LT2).

Example (Trace and Transpose)

Show that the trace tr:Mn(F)→F and the transpose Mm×n(F)→Mn×m(F), A↦A⊤, are linear.

Solution. For the trace, Theorem 0.9.6 (1) says tr(A+B)=trA+trB and tr(cA)=ctrA, which are (LT1) and (LT2); the target is F, regarded as a vector space over itself. For the transpose, the (i,j) entry of (A+B)⊤ is aji+bji, the (i,j) entry of A⊤+B⊤; and the (i,j) entry of (cA)⊤ is caji, the (i,j) entry of cA⊤.

Example (The Shift Maps on Sequences)

On the space FN of sequences (Example (The Standard Vector Spaces)), define the right shift and the left shift R(s0,s1,s2,…)=(0,s0,s1,…),L(s0,s1,s2,…)=(s1,s2,s3,…). Show that both are linear.

Solution. The operations on FN are termwise. The entry in position k≥1 of R(s+t) is sk−1+tk−1, which is the entry of R(s)+R(t); in position 0 both have 0=0+0. Similarly, R(cs) has entries 0=c⋅0 and csk−1, the entries of cR(s). For L, the entry in position k of L(s+t) is sk+1+tk+1, and of L(cs) is csk+1, as required.

The right shift is the map promised in the warning of Chapter 1, §8, on what changes in infinite dimension: it matches FN one-to-one with the sequences whose first entry is 0, respecting addition and scaling. In the next section we measure exactly how R and L fail to be bijective.

Example (Composition with a Fixed Function)

Let X and Y be sets and g:X→Y a function. Show that Cg:FY→FX, Cg(h)=h∘g, is linear. Show also that R[x]→R[x], p(x)↦p(x+1), is linear.

Solution. The operations on function spaces are pointwise (Example (The Standard Vector Spaces)). For t∈X, Cg(h+k)(t)=(h+k)(g(t))=h(g(t))+k(g(t))=(Cg(h)+Cg(k))(t), and Cg(ch)(t)=ch(g(t))=(cCg(h))(t). So (LT1) and (LT2) hold. The output is again a function, not a number; linearity is about the function h varying, while g stays fixed.

For the second claim, write σ:R[x]→R[x] for p(x)↦p(x+1); in full, if p=∑kakxk, then σ(p)=∑kak(x+1)k, a finite sum in R[x]. Linearity is now read off the coefficients. The coefficients of p+q are the ak+bk, so σ(p+q)=∑k(ak+bk)(x+1)k=σ(p)+σ(q) by Theorem 0.8.1, and σ(cp)=∑kcak(x+1)k=cσ(p) in the same way. So σ is linear. (It translates the graph of p one unit to the left.) One can also read σ as an instance of Cg with g(t)=t+1, 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 idV:V→V, v↦v, is linear: idV(u+v)=u+v=idV(u)+idV(v) and idV(cv)=cv=cidV(v).

Example (Inclusion Map)

If U is a subspace of V, the inclusion ι:U→V, ι(u)=u, is linear, because the operations of U are those of V. Its formula is the identity’s, but its codomain is bigger. For instance R[x]≤2→R[x] is an inclusion.

Example (Zero Map)

For any V and W over F, the zero map 0:V→W, v↦0W, is linear: 0W=0W+0W and 0W=c0W (Theorem 1.1.6).

2.1.4. Three consequences of linearity

The two axioms already force several other rules. The first is the quickest test for non-linearity.

Theorem 2.1.1 (Linear Maps Send Zero to Zero)

Let T:V→W be linear. Then T(0V)=0W.

Proof. By (LT1), T(0V)=T(0V+0V)=T(0V)+T(0V). Adding −T(0V) to both sides gives 0W=T(0V).

The proof used only (LT1). Homogeneity with c=0 would also give it: T(0V)=T(0v)=0T(v)=0W.

Theorem 2.1.2 (Linear Maps Preserve Negatives)

Let T:V→W be linear. Then T(−v)=−T(v) and T(u−v)=T(u)−T(v) for all u,v∈V.

Proof. By Theorem 1.1.7, −v=(−1)v. So (LT2) gives T(−v)=(−1)T(v)=−T(v), using Theorem 1.1.7 again in W. Then (LT1) gives T(u−v)=T(u+(−v))=T(u)+T(−v)=T(u)−T(v).

Checking two conditions separately is often longer than necessary. One combined condition suffices.

Theorem 2.1.3 (One-Line Test for Linearity)

Let V and W be vector spaces over F, and let T:V→W be a function. Then T is linear if and only if T(cu+v)=cT(u)+T(v)for all c∈F and all u,v∈V.

Proof. (⇒) Suppose T is linear. By (LT1) and then (LT2), T(cu+v)=T(cu)+T(v)=cT(u)+T(v).

(⇐) Suppose the condition holds. Taking c=1 gives T(u+v)=T(u)+T(v), which is (LT1). Taking u=v=0 and c=1 gives T(0)=T(0)+T(0), so T(0)=0. Now taking v=0 gives T(cu)=cT(u)+T(0)=cT(u), 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 T:V→W be linear, let v1,…,vk∈V and a1,…,ak∈F, where k≥0. Then T(a1v1+⋯+akvk)=a1T(v1)+⋯+akT(vk).

Proof. We use induction on k. For k=0 both sides are empty sums, so the claim is T(0)=0, which is Theorem 2.1.1. Let k≥1 and suppose the claim holds for k−1 vectors. By (LT1), then the induction hypothesis and (LT2), T(∑i=1k−1aivi+akvk)=T(∑i=1k−1aivi)+T(akvk)=∑i=1k−1aiT(vi)+akT(vk). This completes the induction.

In words: to apply T 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.

2.1.5. Non-examples

A function fails to be linear as soon as one instance of (LT1) or (LT2) fails. The cheapest instance to try is 0, by Theorem 2.1.1.

Example (A Constant Function)

Is T:R→R, T(x)=5, linear?

Solution. No. A linear map sends 0 to 0 by Theorem 2.1.1, but T(0)=5≠0.

Example (Translation)

Let b∈R2 be non-zero. Is the translation T:R2→R2, T(v)=v+b, linear?

Solution. No: T(0)=b≠0, 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 b, and that constant is exactly what breaks linearity. For the record, (LT1) fails too: T(u+v)=u+v+b, while T(u)+T(v)=u+v+2b. Maps of the form v↦Av+b are called affine; they are linear exactly when b=0.

Passing the zero test does not make a function linear.

Example (Squaring)

Is T:R2→R2, T(a1,a2)=(a12,0), linear?

Solution. No. Here T(0)=0, so the quick test says nothing. But (LT2) fails for v=(1,0) and c=2: T(2v)=T(2,0)=(4,0), while 2T(v)=2(1,0)=(2,0). Compare with the projection (a1,a2)↦(a1,0) of Example (Projection onto an Axis): squaring the first entry is the one change, and it destroys homogeneity.

Example (Length)

Is T:R2→R, T(x,y)=x2+y2, linear?

Solution. No. Take v=(1,0) and c=−1. Then T(−v)=1, but −T(v)=−1, so (LT2) fails. Length does satisfy T(cv)=|c|T(v), which agrees with cT(v) only for c≥0. Additivity fails too: T((1,0)+(0,1))=2, but T(1,0)+T(0,1)=2.

The last non-example shows that linearity depends on the field, not only on the function.

Example (Complex Conjugation: the Field Matters)

Let T:C→C, T(z)=z―. Is T linear when C is regarded as a vector space over C? Over R?

Solution. (LT1) holds in both cases, since z+w―=z―+w― (Theorem 0.6.2).

Over C: not linear. The scalars are all complex numbers. Take c=i and z=1: then T(i⋅1)=i―=−i, but iT(1)=i⋅1=i. So (LT2) fails.

Over R: linear. Now (LT2) is only required for real c. For c∈R, T(cz)=c―z―=cz―=cT(z), by Theorem 0.6.2 and c―=c.

Warning. “Linear” here is not the “linear function” of school. A function f(x)=mx+b has a straight-line graph, but it is a linear map R→R only when b=0: f(0)=b, and Theorem 2.1.1 demands f(0)=0. In fact every linear map T:R→R has the form T(x)=mx: by (LT2), T(x)=T(x⋅1)=xT(1), so m=T(1). And T(0)=0 is necessary but not sufficient for linearity, as Example (Squaring) shows.

Quick check. Which of these maps R2→R2 are linear? (i) (x,y)↦(y,x); (ii) (x,y)↦(x+y,1); (iii) (x,y)↦(xy,0).

Solution.

  • (i) Linear: it is TA with A=(0110). (ii) Not linear: (0,0)↦(0,1)≠0. (iii) Not linear, although 0↦0: (2,2)↦(4,0), but 2⋅T(1,1)=2(1,0)=(2,0), so (LT2) fails.

Why this definition. Could one condition be dropped? Complex conjugation on C over C satisfies (LT1) but not (LT2), so additivity alone is not enough. (Over Q, surprisingly, additivity does imply homogeneity; see Exercise (C1: Over Q, Additivity Is Enough).) Conversely, T:R2→R, T(x,y)=x3+y33 (the real cube root), satisfies (LT2), since c3x3+c3y33=cx3+y33 for every real c. But T(1,0)+T(0,1)=2, while T(1,1)=23, so (LT1) fails. Neither condition implies the other, and we need both to get Theorem 2.1.4. The name comes from the case R→R just described: the graph of a linear map is a line through the origin.

2.1.6. 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 B=(v1,…,vn) is a basis of V, every v∈V is a combination a1v1+⋯+anvn, and Theorem 2.1.4 forces T(v)=a1T(v1)+⋯+anT(vn). So the n vectors T(v1),…,T(vn) already fix every value of T. The converse question is whether any choice of these n vectors comes from a linear map. It does, and that is the theorem.

Theorem 2.1.5 (Linear Maps Are Determined by a Basis)

Let V and W be vector spaces over F, let B=(v1,…,vn) be a basis of V, and let w1,…,wn∈W be any vectors. Then there exists exactly one linear map T:V→W such that T(vi)=wifor i=1,…,n. It is given by T(a1v1+⋯+anvn)=a1w1+⋯+anwn for all a1,…,an∈F.

Idea. Uniqueness is the computation above: any linear T 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 ∑aivi, giving two candidate values; the basis rules that out, because coordinates are unique. So: ① define T(v) from the coordinates of v; ② check (LT1), (LT2), using that coordinates respect the operations; ③ check T(vi)=wi; ④ prove uniqueness by Theorem 2.1.4.

Proof. Existence. Let v∈V. By Theorem 1.5.1, there are unique scalars a1,…,an∈F with v=a1v1+⋯+anvn; they are the entries of [v]B (Definition 1.5.2). Define T(v):=a1w1+⋯+anwn. Since the scalars are unique, this assigns exactly one vector of W to each v∈V, so T:V→W is a well-defined function.

Let u,v∈V and c∈F, with [u]B=(b1,…,bn) and [v]B=(a1,…,an). By Theorem 1.5.2, [cu+v]B=c[u]B+[v]B=(cb1+a1,…,cbn+an). Hence, by the definition of T and the vector space axioms in W, T(cu+v)=∑i=1n(cbi+ai)wi=c∑i=1nbiwi+∑i=1naiwi=cT(u)+T(v). By Theorem 2.1.3, T is linear. Moreover, vi=0v1+⋯+1vi+⋯+0vn, so [vi]B=ei and T(vi)=wi.

Uniqueness. Let S:V→W be any linear map with S(vi)=wi for all i. For v=a1v1+⋯+anvn∈V, Theorem 2.1.4 gives S(v)=a1S(v1)+⋯+anS(vn)=a1w1+⋯+anwn=T(v). Since S(v)=T(v) for every v∈V, the functions are equal: S=T. 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 n vectors T(vi), written in coordinates, are the columns.

Theorem 2.1.6 (Linear Maps on an Arbitrary Basis)

Let V and W be vector spaces over F, let B be a basis of V (possibly infinite, in the sense of Theorem 1.8.2), and for each b∈B let wb∈W be any vector. Then there is exactly one linear map T:V→W with Tb=wb for every b∈B.

Proof. Let v∈V. Since B spans V and is independent, v is a finite combination v=∑b∈Babb in which only finitely many ab are non-zero, and these coefficients are unique: two such expressions differ by a finite combination of distinct elements of B equal to 0, whose coefficients all vanish by independence. Define Tv=∑b∈Babwb, a finite sum. The coefficients of v+u and of cv are ab+ab′ and cab by uniqueness, so T is linear, and Tb=wb because the coefficients of b are 1 at b and 0 elsewhere. If S is another linear map with Sb=wb for all b, then Sv=∑abSb=Tv 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 T:R2→R3 with T(1,1)=(1,2,0),T(1,−1)=(3,0,2), and find T(x,y).

Solution. First, ((1,1),(1,−1)) is a basis of R2. It is independent: if a(1,1)+b(1,−1)=0, then a+b=0 and a−b=0, so a=b=0. It has 2=dim⁡R2 entries, so it is a basis (Theorem 1.6.4). By Theorem 2.1.5, exactly one such T exists.

To find it, write (x,y) in the basis. Solving a(1,1)+b(1,−1)=(x,y), that is a+b=x and a−b=y, gives a=x+y2 and b=x−y2. By the formula in the theorem, T(x,y)=x+y2(1,2,0)+x−y2(3,0,2)=(2x−y, x+y, x−y). Check: T(1,1)=(1,2,0) and T(1,−1)=(3,0,2).

Example (Too Many Conditions)

Is there a linear map T:R2→R3 with T(1,0)=(2,3,4),T(1,1)=(3,4,5),T(2,3)=(4,5,6)?

Solution. No. As in Example (Finding a Formula from Values on a Basis), ((1,0),(1,1)) is a basis of R2: if a(1,0)+b(1,1)=0 then b=0 and a+b=0, so a=b=0, and two independent vectors in a 2-dimensional space form a basis (Theorem 1.6.4). By Theorem 2.1.5, the first two conditions already determine T, and the third condition must be checked against them, not imposed. Since (2,3)=−1⋅(1,0)+3⋅(1,1), any linear T with the first two values satisfies T(2,3)=−T(1,0)+3T(1,1)=−(2,3,4)+3(3,4,5)=(7,9,11) by Theorem 2.1.4. As (7,9,11)≠(4,5,6), no such T exists. Had the third value been (7,9,11), the answer would be yes, with exactly one such map.

Example (Recognizing Differentiation)

Show that the differentiation map D:R[x]≤3→R[x]≤2 is the only linear map T:R[x]≤3→R[x]≤2 with T(1)=0,T(x)=1,T(x2)=2x,T(x3)=3x2.

Solution. The list (1,x,x2,x3) is a basis of R[x]≤3 (Example (Standard Bases)). The map D is linear (Example (Differentiation)), and D(1)=0, D(x)=1, D(x2)=2x, D(x3)=3x2, so D has the four prescribed values. By the uniqueness half of Theorem 2.1.5, every linear T with these values equals D. 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 T:R2→R2 with T(1,0)=(1,0) and T(2,0)=(0,1): since (2,0)=2(1,0), (LT2) forces T(2,0)=2T(1,0)=(2,0)≠(0,1). On the other hand, a list that does not span leaves T undetermined: many linear maps satisfy T(1,0)=(1,0) alone.

Quick check. Let T:R2→R be linear with T(1,2)=3 and T(2,5)=1. Find T(x,y).

Solution. Solving a(1,2)+b(2,5)=(x,y), that is a+2b=x and 2a+5b=y, gives b=y−2x and a=5x−2y. Every (x,y) has exactly one such expression, so ((1,2),(2,5)) is a basis of R2. Hence T(x,y)=3(5x−2y)+1⋅(y−2x)=13x−5y. Check: 13−10=3 and 26−25=1.

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.

2.1.7. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define a linear map T:V→W over F.
  • (b) State the theorem that says a linear map is determined by a basis, including both existence and uniqueness.
  • (c) True or false: if T:V→W satisfies T(0)=0, then T is linear. Justify your answer.
  • (d) True or false: there is a linear map T:R2→R2 with T(1,1)=(1,0) and T(2,2)=(3,0). Justify your answer.
  • (e) True or false: complex conjugation C→C is linear over R. Justify your answer.

Solution.

  • (a) See Definition 2.1.1: V,W are vector spaces over the same field F, and T(u+v)=T(u)+T(v) and T(cv)=cT(v) for all u,v∈V and c∈F.

  • (b) See Theorem 2.1.5: if (v1,…,vn) is a basis of V and w1,…,wn∈W are arbitrary, there is one and only one linear T:V→W with T(vi)=wi for all i.

  • (c) False. T:R2→R2, T(a1,a2)=(a12,0), sends 0 to 0 but is not linear (Example (Squaring)).

  • (d) False. By (LT2), T(2,2)=2T(1,1)=(2,0)≠(3,0).

  • (e) True. See Example (Complex Conjugation: the Field Matters): for real c, cz―=cz―, and z+w―=z―+w―.

B. Practice

Exercise (B1: Which Maps Are Linear?)

Determine which of the following functions are linear maps over R. Justify your answer.

  • (a) T:R3→R2, T(x,y,z)=(x−2z, 3y).
  • (b) T:R2→R2, T(x,y)=(x+1, y).
  • (c) T:M2(R)→R, T(abcd)=ad−bc.
  • (d) T:R[x]≤2→R[x]≤3, T(p)=x2p′.
  • (e) T:R2→R, T(x,y)=xy.
  • (f) T:RN→RN, T(s0,s1,s2,…)=(s1−s0, s2−s1, s3−s2, …).

Solution.

  • (a) Linear. T=TA with A=(10−2030), which is linear by Example (Multiplication by a Matrix).

  • (b) Not linear. T(0,0)=(1,0)≠0, contradicting Theorem 2.1.1.

  • (c) Not linear. Take I2 and c=2: T(2I2)=2⋅2−0=4, but 2T(I2)=2⋅1=2. So (LT2) fails. (Additivity fails too: T(E11)+T(E22)=0+0=0, but T(E11+E22)=T(I2)=1.)

  • (d) Linear. For p∈R[x]≤2, p′ has degree at most 1, so x2p′∈R[x]≤3. For p,q and c∈R, by Example (Differentiation) and the distributive law, T(cp+q)=x2(cp′+q′)=cx2p′+x2q′=cT(p)+T(q). By Theorem 2.1.3, T is linear.

  • (e) Not linear, although T(0,0)=0. T(2(1,1))=T(2,2)=4, but 2T(1,1)=2.

  • (f) Linear. The entry in position k of T(cs+t) is (csk+1+tk+1)−(csk+tk)=c(sk+1−sk)+(tk+1−tk), which is the entry in position k of cT(s)+T(t). By Theorem 2.1.3, T is linear.

Exercise (B2: A Formula from Values on a Basis)
  • (a) Show that there is exactly one linear map T:R2→R2 with T(2,1)=(1,4) and T(1,1)=(0,3). Hence find T(x,y) and a matrix A with T=TA.
  • (b) Let S:R[x]≤2→R be linear with S(1)=1, S(1+x)=3 and S(1+x+x2)=6. Find S(a+bx+cx2).

Solution.

  • (a) The list ((2,1),(1,1)) is independent: if a(2,1)+b(1,1)=0, then 2a+b=0 and a+b=0, so a=0 and then b=0. It has 2=dim⁡R2 entries, so it is a basis (Theorem 1.6.4). By Theorem 2.1.5, exactly one such T exists. Solving a(2,1)+b(1,1)=(x,y), that is 2a+b=x and a+b=y, gives a=x−y and b=2y−x. Hence T(x,y)=(x−y)(1,4)+(2y−x)(0,3)=(x−y, x+2y). Check: T(2,1)=(1,4) and T(1,1)=(0,3). Hence T=TA with A=(1−112).

  • (b) The polynomials 1,1+x,1+x+x2 are non-zero of distinct degrees, so they are independent (Theorem 1.4.4); there are 3=dim⁡R[x]≤2 of them, so they form a basis (Theorem 1.6.4). By (LT1) and Theorem 2.1.2, S(x)=S(1+x)−S(1)=2 and S(x2)=S(1+x+x2)−S(1+x)=3. By Theorem 2.1.4, S(a+bx+cx2)=aS(1)+bS(x)+cS(x2)=a+2b+3c.

Exercise (B3: Evaluation and Integration)
  • (a) Prove that φ:R[x]→R, φ(p)=p(3), is linear.
  • (b) Prove that ψ:R[x]→R, ψ(p)=∫01p(t)dt, is linear.
  • (c) Hence find φ(a+bx+cx2) and ψ(a+bx+cx2).

Solution.

  • (a) Let p,q∈R[x] and c∈R. By Theorem 0.8.5, (cp+q)(3)=cp(3)+q(3), where cp is the product of the constant polynomial c with p, whose value at 3 is cp(3). So φ(cp+q)=cφ(p)+φ(q), and φ is linear by Theorem 2.1.3.

  • (b) By linearity of the integral, ∫01(cp(t)+q(t))dt=c∫01p(t)dt+∫01q(t)dt. So ψ(cp+q)=cψ(p)+ψ(q), and ψ is linear by Theorem 2.1.3.

  • (c) On the basis: φ(1)=1, φ(x)=3, φ(x2)=9, and ψ(1)=1, ψ(x)=12, ψ(x2)=13. By Theorem 2.1.4, φ(a+bx+cx2)=a+3b+9c,ψ(a+bx+cx2)=a+12b+13c.

C. Going deeper

Exercise (C1: Over Q, Additivity Is Enough)

Let V and W be vector spaces over Q, and let T:V→W be additive: T(u+v)=T(u)+T(v) for all u,v∈V.

  • (a) Prove that T(nv)=nT(v) for every n∈N and v∈V.
  • (b) Prove that T(nv)=nT(v) for every n∈Z.
  • (c) Prove that T(qv)=qT(v) for every q∈Q. Deduce that T is linear.

Hint: for (c), apply (b) to the vector qv.

Solution.

  • (a) We use induction on n. For n=0: the proof of Theorem 2.1.1 used only additivity, so T(0)=0, that is, T(0v)=0T(v). If T(nv)=nT(v), then by additivity T((n+1)v)=T(nv+v)=T(nv)+T(v)=nT(v)+T(v)=(n+1)T(v).

  • (b) Let n∈N. By additivity and T(0)=0, 0=T(nv+(−n)v)=T(nv)+T((−n)v), so T((−n)v)=−T(nv)=−nT(v)=(−n)T(v), using (a). Every integer is n or −n for some n∈N.

  • (c) Let q=m/n with m∈Z and n≥1. By (b) applied to the vector qv, and then to v, nT(qv)=T(nqv)=T(mv)=mT(v). Multiplying by 1n∈Q gives T(qv)=mnT(v)=qT(v). So (LT2) holds for every scalar q∈Q, and with additivity, which is (LT1), T is linear.

Exercise (C2: Over C, Additivity Is Not Enough)
  • (a) Give an additive map C→C that is not linear over C, and explain which step of Exercise (C1: Over Q, Additivity Is Enough) fails for it.
  • (b) Let V and W be vector spaces over C. Regarding them also as spaces over R, let T:V→W be linear over R, and suppose T(iv)=iT(v) for all v∈V. Prove that T is linear over C.

Solution.

  • (a) Complex conjugation T(z)=z― is additive and not C-linear (Example (Complex Conjugation: the Field Matters)). The argument of Exercise (C1: Over Q, Additivity Is Enough) still shows T(qz)=qT(z) for rational q, 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 i, which is not built from 1 by adding, subtracting, multiplying and dividing.

  • (b) (LT1) holds because T is linear over R. For (LT2), let c=a+bi∈C with a,b∈R, and v∈V. By the vector space axioms, cv=av+b(iv). Using (LT1), then R-homogeneity, then the hypothesis, T(cv)=T(av)+T(b(iv))=aT(v)+bT(iv)=aT(v)+biT(v)=(a+bi)T(v)=cT(v). Hence T is linear over C.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.