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
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 is a linear transformation, then ." — Beezer — A First Course in Linear Algebra, Theorem LTTZZ, §LT
Matrix representation
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 for some invertible matrix ." — Hefferon — Linear Algebra, ch. 3 §III.1
Composition
Worked examples
Exercise list
44 exercises · 11 with worked solution (25%)
- Ex. 112.1Application
, . Verify that is linear and find its matrix.
- Ex. 112.2ApplicationAnswer key
, . Why is not a linear transformation?
- Ex. 112.3Application
, . Give a concrete counterexample to show that is not linear.
- Ex. 112.4Application
, . Show that it is linear and find its matrix.
- Ex. 112.5Application
, . Show that it is linear and find the matrix.
- Ex. 112.6Application
, . Find the matrix in basis . What is special about this matrix?
- Ex. 112.7Application
, . Show that it is linear and find the matrix in canonical bases.
- Ex. 112.8ApplicationAnswer key
, . Show that it is linear and write the matrix in the canonical basis of .
- Ex. 112.9Application
Fix . Define by . Show that is linear.
- Ex. 112.10Application
, . Is a linear transformation?
- Ex. 112.11Application
, . Show that it is linear and find the diagonal matrix in basis .
- Ex. 112.12Application
, for all . Show that is linear. What is its matrix in any basis?
- Ex. 112.13Application
Find the matrix of rotation by 45° in the plane. Verify that its determinant is 1.
- Ex. 112.14ApplicationAnswer key
Find the matrix of reflection across line . Verify that .
- Ex. 112.15Application
Find the matrix of orthogonal projection onto the -axis. Verify that (idempotence).
- Ex. 112.16ApplicationAnswer key
Find the matrix of orthogonal projection onto line . Verify idempotence.
- Ex. 112.17Application
Find the matrix of non-uniform scaling . What is the geometric meaning of the determinant?
- Ex. 112.18Application
Find the matrix of horizontal shear with factor 2: .
- Ex. 112.19Application
Composition: rotation by 30° followed by scaling by 2. Compute the product matrix .
- Ex. 112.20ApplicationAnswer key
Composition: reflection across line and then rotation by 90°. Compute the product matrix and identify the resulting transformation.
- Ex. 112.21Application
In , find the matrix of rotation by 90° around the -axis (-axis stays fixed).
- Ex. 112.22Application
In , find the matrix of orthogonal projection onto the -plane.
- Ex. 112.23Application
, . Find the matrix in canonical basis.
- Ex. 112.24Application
, (cross product with fixed ). Find the matrix.
- Ex. 112.25Application
, (reflection in -axis). Find in canonical basis and in basis . Confirm that they are similar.
- Ex. 112.26Application
Show that similar matrices have the same determinant and the same trace.
- Ex. 112.27ApplicationAnswer key
Show that if (similar), then for all . Conclude: nilpotence is invariant under similarity.
- Ex. 112.28ModelingAnswer key
In computer graphics, translation by in is not a linear transformation. How do homogeneous coordinates allow representing it as a linear transformation in ? Write the matrix.
- Ex. 112.29Modeling
Portfolio with assets, weights , expected returns . Is expected return a linear transformation in ? What about variance ?
- Ex. 112.30Modeling
Write the Toeplitz matrix that performs 1D linear convolution with kernel on a signal of length 5 (valid output, length 3).
- Ex. 112.31Modeling
In machine learning, a dense layer is . Which part is a linear transformation? Why adding does not make the layer linear? Where does the non-linearity of a neural network come from?
- Ex. 112.32Modeling
LTI system: , solution . Show that the map is a linear transformation. What is the matrix ?
- Ex. 112.33Modeling
The differentiation operator has a nilpotent matrix. Explain why , and what this means in terms of polynomials.
- Ex. 112.34Modeling
Why is ? What does this say about the space of all matrices?
- Ex. 112.35UnderstandingAnswer key
is a necessary condition for linearity. Give an example of with that is not linear. Why is not sufficient?
- Ex. 112.36Understanding
If represents in , explain the geometric meaning of formula . What does each factor do?
- Ex. 112.37Understanding
Explain, without computing, why matrix product is exactly composition . What is the relationship between matrix product definition and composition definition?
- Ex. 112.38UnderstandingAnswer key
Show that (the set of all linear transformations from to ) is itself a vector space, with operations and .
- Ex. 112.39ChallengeAnswer key
Find with (negative identity). Try rotation by 90°. What is the connection with complex numbers?
- Ex. 112.40Challenge
Prove: every linear transformation has form for some .
- Ex. 112.41Proof
Proof. Prove that composition of linear transformations is linear. Let and both be linear. Show that is linear.
- Ex. 112.42ProofAnswer key
Proof. Prove by induction that every linear transformation preserves arbitrary linear combinations: .
- Ex. 112.43Proof
Proof. Prove: linear is injective .
- Ex. 112.44Proof
Proof. Prove the linear extension theorem: given vector spaces (dim ) and , and vectors arbitrary, there exists unique linear transformation with for .
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.