Math ClubMath Club
v1 · padrão canônico

Lesson 112 — Linear transformations

Functions between vector spaces that preserve linear combination. Matrix representation in a basis. Change of basis. The fundamental operation that makes ML, 3D graphics, and signal processing possible.

Used in: Leistungskurs alemão (Lineare Algebra) · Math III Japanese · H2 Math Singapore · engineering graduation 1st semester

T(au+bv)=aT(u)+bT(v)T(au + bv) = a\,T(u) + b\,T(v)
Choose your door

Rigorous notation, full derivation, hypotheses

Rigorous definition

Linear transformations

"A linear transformation is a function that goes from one vector space to another and preserves the vector space operations of vector addition and scalar multiplication." — Beezer — A First Course in Linear Algebra, §LT

"If TT is a linear transformation, then T(0)=0T(0) = 0." — Beezer — A First Course in Linear Algebra, Theorem LTTZZ, §LT

Matrix representation

Vbase BWbase CTcoord. x em Bcoord. [T]x em C[T] ∈ M(m×n)

Diagram: T takes vectors from V (with basis B) to W (with basis C). In coordinates, the operation is multiplication by matrix [T].

Change of basis and similar matrices

"Two matrices that represent the same linear transformation in different bases are called similar matrices, and B=P1APB = P^{-1}AP for some invertible matrix PP." — Hefferon — Linear Algebra, ch. 3 §III.1

Composition

Worked examples

Exercise list

44 exercises · 11 with worked solution (25%)

Application 27Understanding 4Modeling 7Challenge 2Proof 4
  1. Ex. 112.1Application

    T:R2R2T: \mathbb{R}^2 \to \mathbb{R}^2, T(x,y)=(2x,3y)T(x, y) = (2x,\, 3y). Verify that TT is linear and find its matrix.

  2. Ex. 112.2ApplicationAnswer key

    T:R2R2T: \mathbb{R}^2 \to \mathbb{R}^2, T(x,y)=(x+1,y)T(x, y) = (x + 1,\, y). Why is TT not a linear transformation?

  3. Ex. 112.3Application

    T:RRT: \mathbb{R} \to \mathbb{R}, T(x)=x2T(x) = x^2. Give a concrete counterexample to show that TT is not linear.

  4. Ex. 112.4Application

    T:R2R2T: \mathbb{R}^2 \to \mathbb{R}^2, T(x,y)=(y,x)T(x, y) = (y,\, x). Show that it is linear and find its 2×22 \times 2 matrix.

  5. Ex. 112.5Application

    T:R3R2T: \mathbb{R}^3 \to \mathbb{R}^2, T(x,y,z)=(x+y,y+z)T(x, y, z) = (x + y,\, y + z). Show that it is linear and find the 2×32 \times 3 matrix.

  6. Ex. 112.6Application

    D:P3P3D: \mathcal{P}_3 \to \mathcal{P}_3, D(p)=pD(p) = p'. Find the 4×44 \times 4 matrix in basis {1,x,x2,x3}\{1, x, x^2, x^3\}. What is special about this matrix?

  7. Ex. 112.7Application

    I:P2P3I: \mathcal{P}_2 \to \mathcal{P}_3, I(p)(x)=0xp(t)dtI(p)(x) = \int_0^x p(t)\,dt. Show that it is linear and find the 4×34 \times 3 matrix in canonical bases.

  8. Ex. 112.8ApplicationAnswer key

    T:M2M2T: \mathcal{M}_2 \to \mathcal{M}_2, T(A)=AT(A) = A^\top. Show that it is linear and write the 4×44 \times 4 matrix in the canonical basis of M2\mathcal{M}_2.

  9. Ex. 112.9Application

    Fix BMnB \in \mathcal{M}_n. Define T:MnMnT: \mathcal{M}_n \to \mathcal{M}_n by T(A)=ABT(A) = AB. Show that TT is linear.

  10. Ex. 112.10Application

    T:M2RT: \mathcal{M}_2 \to \mathbb{R}, T(A)=detAT(A) = \det A. Is TT a linear transformation?

  11. Ex. 112.11Application

    T:P2P2T: \mathcal{P}_2 \to \mathcal{P}_2, T(p)(x)=p(2x)T(p)(x) = p(2x). Show that it is linear and find the diagonal matrix in basis {1,x,x2}\{1, x, x^2\}.

  12. Ex. 112.12Application

    T:VWT: V \to W, T(v)=0T(v) = 0 for all vVv \in V. Show that TT is linear. What is its matrix in any basis?

  13. Ex. 112.13Application

    Find the 2×22 \times 2 matrix of rotation by 45° in the plane. Verify that its determinant is 1.

  14. Ex. 112.14ApplicationAnswer key

    Find the 2×22 \times 2 matrix of reflection across line y=xy = x. Verify that [T]2=I[T]^2 = I.

  15. Ex. 112.15Application

    Find the 2×22 \times 2 matrix of orthogonal projection onto the yy-axis. Verify that P2=PP^2 = P (idempotence).

  16. Ex. 112.16ApplicationAnswer key

    Find the 2×22 \times 2 matrix of orthogonal projection onto line y=xy = x. Verify idempotence.

  17. Ex. 112.17Application

    Find the matrix of non-uniform scaling (x,y)(3x,2y)(x,y) \mapsto (3x,\, 2y). What is the geometric meaning of the determinant?

  18. Ex. 112.18Application

    Find the matrix of horizontal shear with factor 2: T(x,y)=(x+2y,y)T(x, y) = (x + 2y,\, y).

  19. Ex. 112.19Application

    Composition: rotation by 30° followed by scaling by 2. Compute the product matrix [E2][R30][E_2][R_{30}].

  20. Ex. 112.20ApplicationAnswer key

    Composition: reflection across line y=xy = x and then rotation by 90°. Compute the product matrix and identify the resulting transformation.

  21. Ex. 112.21Application

    In R3\mathbb{R}^3, find the 3×33 \times 3 matrix of rotation by 90° around the zz-axis (zz-axis stays fixed).

  22. Ex. 112.22Application

    In R3\mathbb{R}^3, find the 3×33 \times 3 matrix of orthogonal projection onto the xyxy-plane.

  23. Ex. 112.23Application

    T:P2P2T: \mathcal{P}_2 \to \mathcal{P}_2, T(p)=p+pT(p) = p' + p. Find the 3×33 \times 3 matrix in canonical basis.

  24. Ex. 112.24Application

    T:R3R3T: \mathbb{R}^3 \to \mathbb{R}^3, T(v)=v×(1,1,1)T(v) = v \times (1,1,1) (cross product with fixed (1,1,1)(1,1,1)). Find the 3×33 \times 3 matrix.

  25. Ex. 112.25Application

    T:R2R2T: \mathbb{R}^2 \to \mathbb{R}^2, T(x,y)=(x,y)T(x,y) = (x, -y) (reflection in xx-axis). Find [T][T] in canonical basis and in basis B={(1,1),(1,1)}\mathcal{B}' = \{(1,1),\,(1,-1)\}. Confirm that they are similar.

  26. Ex. 112.26Application

    Show that similar matrices have the same determinant and the same trace.

  27. Ex. 112.27ApplicationAnswer key

    Show that if ABA \sim B (similar), then AkBkA^k \sim B^k for all k1k \geq 1. Conclude: nilpotence is invariant under similarity.

  28. Ex. 112.28ModelingAnswer key

    In computer graphics, translation by (a,b)(a, b) in R2\mathbb{R}^2 is not a linear transformation. How do homogeneous coordinates allow representing it as a linear transformation in R3\mathbb{R}^3? Write the 3×33 \times 3 matrix.

  29. Ex. 112.29Modeling

    Portfolio with nn assets, weights wRnw \in \mathbb{R}^n, expected returns μRn\mu \in \mathbb{R}^n. Is expected return rp=wμr_p = w^\top \mu a linear transformation in ww? What about variance σp2=wΣw\sigma_p^2 = w^\top \Sigma w?

  30. Ex. 112.30Modeling

    Write the Toeplitz 3×53 \times 5 matrix that performs 1D linear convolution with kernel k=(1,2,1)k = (1, 2, 1) on a signal of length 5 (valid output, length 3).

  31. Ex. 112.31Modeling

    In machine learning, a dense layer is y=Wx+by = Wx + b. Which part is a linear transformation? Why adding bb does not make the layer linear? Where does the non-linearity of a neural network come from?

  32. Ex. 112.32Modeling

    LTI system: x˙=Ax\dot{x} = Ax, solution x(t)=eAtx0x(t) = e^{At}x_0. Show that the map x0x(t)x_0 \mapsto x(t) is a linear transformation. What is the matrix eAte^{At}?

  33. Ex. 112.33Modeling

    The differentiation operator D:PnPnD: \mathcal{P}_n \to \mathcal{P}_n has a nilpotent matrix. Explain why Dn+1=0D^{n+1} = 0, and what this means in terms of polynomials.

  34. Ex. 112.34Modeling

    Why is dimL(V,W)=(dimV)(dimW)\dim \mathcal{L}(V, W) = (\dim V)(\dim W)? What does this say about the space of all m×nm \times n matrices?

  35. Ex. 112.35UnderstandingAnswer key

    T(0)=0T(0) = 0 is a necessary condition for linearity. Give an example of TT with T(0)=0T(0) = 0 that is not linear. Why is T(0)=0T(0) = 0 not sufficient?

  36. Ex. 112.36Understanding

    If A=[T]BA = [T]_{\mathcal{B}} represents TT in B\mathcal{B}, explain the geometric meaning of formula [T]B=P1AP[T]_{\mathcal{B}'} = P^{-1}AP. What does each factor do?

  37. Ex. 112.37Understanding

    Explain, without computing, why matrix product [T][S][T][S] is exactly composition TST \circ S. What is the relationship between matrix product definition and composition definition?

  38. Ex. 112.38UnderstandingAnswer key

    Show that L(V,W)\mathcal{L}(V, W) (the set of all linear transformations from VV to WW) is itself a vector space, with operations (T1+T2)(v)=T1(v)+T2(v)(T_1 + T_2)(v) = T_1(v) + T_2(v) and (aT)(v)=aT(v)(aT)(v) = a\,T(v).

  39. Ex. 112.39ChallengeAnswer key

    Find T:R2R2T: \mathbb{R}^2 \to \mathbb{R}^2 with T2=IT^2 = -I (negative identity). Try rotation by 90°. What is the connection with complex numbers?

  40. Ex. 112.40Challenge

    Prove: every linear transformation T:RRT: \mathbb{R} \to \mathbb{R} has form T(x)=axT(x) = ax for some aRa \in \mathbb{R}.

  41. Ex. 112.41Proof

    Proof. Prove that composition of linear transformations is linear. Let S:UVS: U \to V and T:VWT: V \to W both be linear. Show that TS:UWT \circ S: U \to W is linear.

  42. Ex. 112.42ProofAnswer key

    Proof. Prove by induction that every linear transformation preserves arbitrary linear combinations: T ⁣(civi)=ciT(vi)T\!\left(\sum c_i v_i\right) = \sum c_i T(v_i).

  43. Ex. 112.43Proof

    Proof. Prove: TT linear is injective     kerT={0}\iff \ker T = \{0\}.

  44. Ex. 112.44Proof

    Proof. Prove the linear extension theorem: given vector spaces VV (dim nn) and WW, and vectors w1,,wnWw_1, \ldots, w_n \in W arbitrary, there exists unique linear transformation T:VWT: V \to W with T(vi)=wiT(v_i) = w_i for i=1,,ni = 1, \ldots, n.

Sources

  • Beezer — A First Course in Linear Algebra — Rob Beezer · 2022 · EN · GNU FDL. §LT (Linear Transformations) and §ILT (Injective Linear Transformations). Primary source for this lesson.
  • Hefferon — Linear Algebra — Jim Hefferon · 4th ed. · EN · CC-BY-SA. Ch. 3 (Maps Between Spaces): geometric focus and examples of transformations of the plane.
  • Axler — Linear Algebra Done Right — Sheldon Axler · 4th ed. · EN · CC-BY-NC. §3A–§3B: linear maps as first-class objects; without determinants as foundation.

Updated on 2026-05-11 · Author(s): Clube da Matemática

Found an error? Open an issue on GitHub or submit a PR — open source forever.