Course index · Chapter 4 · Leon, Linear Algebra with Applications, 8th ed.

Linear transformations, hands-on

A matrix is a machine that moves the whole plane. Test whether a map is linear by watching what it does to a grid, see the kernel collapse to the origin, build a standard matrix by dragging the images of e₁ and e₂, animate a figure with homogeneous coordinates, and watch one operator take different matrices in different bases.

≔

Definitions, animated

The chapter's definitions and key theorems. Animations are paced for following step by step; use the speed buttons under a video to change the pace. Jump to a card here.
4.1

Definition and examples

Linear maps, kernel and range

A mapping L from a vector space V into a vector space W is a linear transformation if L(αv1 + βv2) = αL(v1) + βL(v2) for all vectors and scalars. Equivalently, L respects sums and scalar multiples separately. Every matrix gives one, LA(x) = Ax; so do differentiation and integration of functions.

Two quick tests for “not linear”: L(0) ≠ 0 (a translation), or a single pair where scaling or adding fails (a norm, a product of coordinates).

Linearity tester

Examples 4.1.1–4.1.6 · Exercises 4.1.1, 4.1.3 · Test B 1
domain: drag x and y
image of the grid under L: thick arrow L(αx + βy), dashed αL(x) + βL(y)
Try this
  • For each linear map, the image grid has straight, parallel, evenly spaced lines and keeps the origin. Check it.
  • For the translation, set α = β = 0: then αx + βy = 0, and the two sides differ by a.
  • For ‖x‖e₁, additivity can hold by luck. Set α = −1 and β = 0 to break homogeneity (Example 4.1.6).

Kernel and range

Examples 4.1.11, 4.1.12 · Exercises 4.1.17, 4.1.21–4.1.22 · Test B 3, 4
m (rows) n (columns)

4.2

Matrix representations

Columns are images of basis vectors

Every linear L : ℝn → ℝm is multiplication by the m × n matrix whose jth column is L(ej) (Theorem 4.2.1). With other ordered bases E and F, the representing matrix has columns [L(vj)]F, and then [L(v)]F = A[v]E (Theorem 4.2.2).

Doing L1 first and L2 second is represented by A2A1: the matrix of the first step stands on the right.

Build the standard matrix

Theorem 4.2.1 · Example 4.2.2 · Exercises 4.2.1, 4.2.5 · Test A 4
first L₁
then L₂
Try this
  • Drag the tips of L(e₁) and L(e₂). The matrix columns follow, and the letter F is carried along.
  • Make the two columns parallel. The F collapses onto a line: the matrix is singular.
  • When does the F come out mirror-reversed? Compare with the sign of det A.

Computer graphics in homogeneous coordinates

Application 4.2.1 · Exercises 4.2.9, 4.2.10 · Test B 7
translate by
    Try this
    • Rotate by 60° and then translate, then do it in the opposite order. Same matrices, different product, different picture.
    • The last row of every product stays (0 0 1). Why does that keep points of the form (x₁, x₂, 1)?

    Matrix in other bases by row reduction

    Theorem 4.2.3 · Corollary 4.2.4 · Example 4.2.6 · Exercise 4.2.18
    dim of domain n dim of codomain m
    4.3

    Similarity

    One operator, many matrices

    If A represents a linear operator in one basis and B represents it in another, with S the transition matrix from the second basis to the first, then B = S−1AS (Theorem 4.3.1). Matrices related this way are similar. Similar matrices have the same determinant, trace and rank, because they describe the same map.

    Choosing the basis well can make B diagonal (Example 4.3.2). That is the subject of Chapter 6.

    Similarity explorer

    Section 4.3 opening example · Example 4.3.2 · Exercises 4.3.1, 4.3.2
    Try this
    • Read column j of B off the picture: count steps along u₁ and u₂ to reach L(uj).
    • Find a basis in which B is diagonal: each uj must be sent to a multiple of itself.