Linear-Algebra-Done-Right · Unit 5 · Video 2 · Interactive Practice

Sums, Scalar Multiples and Products of Linear Maps

IKey Formulas

FormulaNameMeaning
(S+T)(v)=Sv+Tv(S + T)(v) = Sv + Tv,  (λT)(v)=λ(Tv)\ (\lambda T)(v) = \lambda(Tv)Sum and scalar multiple in L(V,W)\mathcal{L}(V, W)Computed one vector at a time, in WW; both results are again linear
(ST)(u)=S(Tu)(ST)(u) = S(Tu)Product of linear mapsT∈L(U,V)T \in \mathcal{L}(U, V), S∈L(V,W)S \in \mathcal{L}(V, W), ST∈L(U,W)ST \in \mathcal{L}(U, W): TT acts first, then SS
((TD)p)(x)=x2p′(x)((TD)p)(x) = x^2 p'(x),  ((DT)p)(x)=x2p′(x)+2x p(x)\ ((DT)p)(x) = x^2 p'(x) + 2x\,p(x)Not commutativeThe product rule adds 2x p(x)2x\,p(x), so TD≠DTTD \neq DT
T(0)=0T(0) = 0Every linear mapf(x)=mx+bf(x) = mx + b is a linear map R→R\mathbf{R} \to \mathbf{R}   ⟺  b=0\iff b = 0

Key Insight: L(V,W)\mathcal{L}(V, W) is a vector space because every axiom reduces to the same axiom in WW, checked at each vv; its additive identity is the zero map and the additive inverse of TT is (−1)T(-1)T.

IISums and Scalar Multiples, One Vector at a Time

For S(x,y)=(2x,y)S(x, y) = (2x, y) and T(x,y)=(−y,x)T(x, y) = (-y, x), the map S+λTS + \lambda T sends vv to Sv+λ(Tv)Sv + \lambda(Tv).

IIITDTD Versus DTDT on Polynomials

With Dp=p′Dp = p' and (Tp)(x)=x2p(x)(Tp)(x) = x^2 p(x), the two orders differ by exactly 2x p(x)2x\,p(x).

IVWhy 2x+12x + 1 Is Not a Linear Map

For f(x)=mx+bf(x) = mx + b, additivity fails by exactly bb, so ff is linear only when f(0)=b=0f(0) = b = 0.

💡 The same test rules out cosine: cos⁡0=1≠0\cos 0 = 1 \neq 0. Passing it proves nothing, though: T(0)=0T(0) = 0 is necessary for linearity, not sufficient.

VQuiz Questions

Problem 1 · Evaluate a Linear Combination of Maps

Given: S,T∈L(R2,R2)S, T \in \mathcal{L}(\mathbf{R}^2, \mathbf{R}^2) with S(x,y)=(x+2y, 3x)S(x, y) = (x + 2y,\ 3x) and T(x,y)=(y, x−y)T(x, y) = (y,\ x - y). Find (S+2T)(1,1)(S + 2T)(1, 1).

✅ Correct! S(1,1)=(3,3)S(1, 1) = (3, 3) and 2 T(1,1)=2(1,0)=(2,0)2\,T(1, 1) = 2(1, 0) = (2, 0), so the sum is (5,3)(5, 3).
❌ Not quite. (4,3)=S(1,1)+T(1,1)(4, 3) = S(1, 1) + T(1, 1) is (S+T)(1,1)(S + T)(1, 1); the scalar 22 multiplies T(1,1)T(1, 1).
❌ Not quite. (7,6)=2 S(1,1)+T(1,1)(7, 6) = 2\,S(1, 1) + T(1, 1) is (2S+T)(1,1)(2S + T)(1, 1); in S+2TS + 2T the 22 belongs to TT.
❌ Not quite. (8,6)=2(S+T)(1,1)(8, 6) = 2(S + T)(1, 1): the 22 scales only TT, not SS.
Show solution

By the definitions of sum and scalar multiple, (S+2T)(v)=Sv+2(Tv)(S + 2T)(v) = Sv + 2(Tv), computed at the single vector v=(1,1)v = (1, 1):

S(1,1)=(1+2⋅1, 3⋅1)=(3,3),T(1,1)=(1, 1−1)=(1,0)S(1, 1) = (1 + 2 \cdot 1,\ 3 \cdot 1) = (3, 3), \qquad T(1, 1) = (1,\ 1 - 1) = (1, 0) (S+2T)(1,1)=(3,3)+2(1,0)=(3,3)+(2,0)=(5,3)(S + 2T)(1, 1) = (3, 3) + 2(1, 0) = (3, 3) + (2, 0) = (5, 3)

Problem 2 · Which Map Acts First?

Given: D,T∈L(P(R))D, T \in \mathcal{L}(\mathcal{P}(\mathbf{R})) with Dp=p′Dp = p' and (Tp)(x)=x2p(x)(Tp)(x) = x^2 p(x), and p(x)=x2+1p(x) = x^2 + 1. Find (DT)p(DT)p.

✅ Correct! Tp=x4+x2Tp = x^4 + x^2, and differentiating gives 4x3+2x4x^3 + 2x.
❌ Close, but… 2x3=x2⋅(2x)2x^3 = x^2 \cdot (2x) is (TD)p(TD)p. In DTDT the right-hand factor TT acts first: multiply by x2x^2, then differentiate.
❌ Not quite. TT multiplies the constant term too: x2⋅1=x2x^2 \cdot 1 = x^2, whose derivative 2x2x is missing.
❌ Not quite. 2x=Dp2x = Dp leaves out TT; first form Tp=x2(x2+1)Tp = x^2(x^2 + 1).
Show solution

(DT)p=D(Tp)(DT)p = D(Tp), so TT acts first:

(Tp)(x)=x2(x2+1)=x4+x2,(DT)p=(x4+x2)′=4x3+2x(Tp)(x) = x^2(x^2 + 1) = x^4 + x^2, \qquad (DT)p = (x^4 + x^2)' = 4x^3 + 2x

Check with the product rule: x2p′(x)+2x p(x)=x2(2x)+2x(x2+1)=2x3+2x3+2x=4x3+2xx^2 p'(x) + 2x\,p(x) = x^2(2x) + 2x(x^2 + 1) = 2x^3 + 2x^3 + 2x = 4x^3 + 2x. The other order gives (TD)p=x2⋅2x=2x3(TD)p = x^2 \cdot 2x = 2x^3, which differs by 2x p(x)=2x3+2x2x\,p(x) = 2x^3 + 2x.

Problem 3 · Both Orders on R²

Given: S,T∈L(R2,R2)S, T \in \mathcal{L}(\mathbf{R}^2, \mathbf{R}^2) with S(x,y)=(x+y, y)S(x, y) = (x + y,\ y) and T(x,y)=(y, x)T(x, y) = (y,\ x). Find (ST)(1,2)(ST)(1, 2) and (TS)(1,2)(TS)(1, 2).

What is (ST)(1, 2)?

What is (TS)(1, 2)?

✅ Correct! (ST)(1,2)=(3,1)(ST)(1, 2) = (3, 1) but (TS)(1,2)=(2,3)(TS)(1, 2) = (2, 3), so ST≠TSST \neq TS even though both products are defined.
❌ Close, but… (2,3)(2, 3) is (TS)(1,2)(TS)(1, 2). In STST the map TT acts first: T(1,2)=(2,1)T(1, 2) = (2, 1), then apply SS.
❌ Not quite. Apply both maps, TT first: (ST)(1,2)=S(T(1,2))=S(2,1)(ST)(1, 2) = S\big(T(1, 2)\big) = S(2, 1).
❌ Close, but… (3,1)(3, 1) is (ST)(1,2)(ST)(1, 2). In TSTS the map SS acts first: S(1,2)=(3,2)S(1, 2) = (3, 2), then apply TT.
❌ Not quite. Apply both maps, SS first: (TS)(1,2)=T(S(1,2))=T(3,2)(TS)(1, 2) = T\big(S(1, 2)\big) = T(3, 2).
Show solution

The product is composition, with the right-hand factor acting first.

(ST)(1,2)=S(T(1,2))=S(2,1)=(2+1, 1)=(3,1)(ST)(1, 2) = S\big(T(1, 2)\big) = S(2, 1) = (2 + 1,\ 1) = (3, 1) (TS)(1,2)=T(S(1,2))=T(1+2, 2)=T(3,2)=(2,3)(TS)(1, 2) = T\big(S(1, 2)\big) = T(1 + 2,\ 2) = T(3, 2) = (2, 3)

In general (ST)(x,y)=S(y,x)=(x+y, x)(ST)(x, y) = S(y, x) = (x + y,\ x) and (TS)(x,y)=T(x+y, y)=(y, x+y)(TS)(x, y) = T(x + y,\ y) = (y,\ x + y): two different linear maps.

Problem 4 · Spot the Linear Map

Exactly one of these functions is a linear map. Which one?

✅ Correct! Each coordinate of hh is a fixed combination ax+byax + by of the inputs, so hh is additive and homogeneous.
❌ Not quite. f(0)=1≠0f(0) = 1 \neq 0, and every linear map sends 00 to 00.
❌ Not quite. g(0,0)=(0,1)≠(0,0)g(0, 0) = (0, 1) \neq (0, 0), so gg fails the T(0)=0T(0) = 0 test.
❌ Close, but… k(0,0)=(0,0)k(0, 0) = (0, 0), yet k(2,2)=(4,2)k(2, 2) = (4, 2) while 2 k(1,1)=(2,2)2\,k(1, 1) = (2, 2). Sending 00 to 00 is necessary for linearity, not sufficient.
Show solution

(a) is linear. For u=(x1,y1)u = (x_1, y_1), w=(x2,y2)w = (x_2, y_2) and λ∈R\lambda \in \mathbf{R}:

h(u+w)=(2(x1+x2)−(y1+y2), 5(x1+x2))=h(u)+h(w)h(u + w) = \big(2(x_1 + x_2) - (y_1 + y_2),\ 5(x_1 + x_2)\big) = h(u) + h(w) h(λu)=(2λx1−λy1, 5λx1)=λ h(u)h(\lambda u) = (2\lambda x_1 - \lambda y_1,\ 5\lambda x_1) = \lambda\, h(u)

(b) and (c) fail the quick test: f(0)=1f(0) = 1 and g(0,0)=(0,1)g(0, 0) = (0, 1).

(d) passes the quick test, k(0,0)=(0,0)k(0, 0) = (0, 0), but fails homogeneity: k(2(1,1))=k(2,2)=(4,2)≠(2,2)=2 k(1,1)k\big(2(1, 1)\big) = k(2, 2) = (4, 2) \neq (2, 2) = 2\,k(1, 1).

Solved: 0 / 4