The Timpson Lyceum seal

The Timpson Lyceum · Linear Algebra (2026)

Linear Transformations, Matrices, and Linear Models – Lecture 4 (Linear Algebra)

Overview

This lecture finishes Chapter 1 with three sections (1.8, 1.9 and 1.10). It starts by treating multiplication by a matrix as a function: a rule TT that takes vectors in Rn\mathbb{R}^n as inputs and returns vectors in Rm\mathbb{R}^m. Such a linear transformation respects addition and scaling, always sends 0\mathbf{0} to 0\mathbf{0}, and can project, shear, rotate, or stretch space. The central result is Theorem 10: every linear transformation from Rn\mathbb{R}^n to Rm\mathbb{R}^m is multiplication by a unique matrix, and that matrix can be read off from where the transformation sends the columns of the identity matrix. The pivot structure of that matrix then decides whether TT is onto and whether it is one-to-one. The lecture closes with two applied linear models: a diet problem and an electrical circuit.

Key Concepts

Function vocabulary

Transformations from Rn\mathbb{R}^n to Rm\mathbb{R}^m

A=[4−3132051],A[1111]=[58],A[14−13]=[00]A = \begin{bmatrix} 4 & -3 & 1 & 3 \\ 2 & 0 & 5 & 1 \end{bmatrix}, \qquad A\begin{bmatrix} 1 \\ 1 \\ 1 \\ 1 \end{bmatrix} = \begin{bmatrix} 5 \\ 8 \end{bmatrix}, \qquad A\begin{bmatrix} 1 \\ 4 \\ -1 \\ 3 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \end{bmatrix}

the map x↦Ax\mathbf{x} \mapsto A\mathbf{x} goes from R4\mathbb{R}^4 to R2\mathbb{R}^2.

Geometric examples

Linear transformations

(i)T(u+v)=T(u)+T(v)(ii)T(cu)=cT(u)\begin{aligned} &\text{(i)} \quad T(\mathbf{u} + \mathbf{v}) = T(\mathbf{u}) + T(\mathbf{v}) \\ &\text{(ii)} \quad T(c\mathbf{u}) = cT(\mathbf{u}) \end{aligned} T(0)=T(0u)=0 T(u)=0T(\mathbf{0}) = T(0\mathbf{u}) = 0\,T(\mathbf{u}) = \mathbf{0} T(cu+dv)=cT(u)+dT(v)T(c\mathbf{u} + d\mathbf{v}) = cT(\mathbf{u}) + dT(\mathbf{v})

Linearity gives this by applying (i) and then (ii). In the other direction, c=d=1c = d = 1 recovers (i), and d=0d = 0 recovers (ii). In practice this single identity is the one checked.

T(c1v1+⋯+cpvp)=c1T(v1)+⋯+cpT(vp)T(c_1\mathbf{v}_1 + \cdots + c_p\mathbf{v}_p) = c_1T(\mathbf{v}_1) + \cdots + c_pT(\mathbf{v}_p) T(cu+dv)=3(cu+dv)=c(3u)+d(3v)=cT(u)+dT(v)\begin{aligned} T(c\mathbf{u} + d\mathbf{v}) &= 3(c\mathbf{u} + d\mathbf{v}) \\ &= c(3\mathbf{u}) + d(3\mathbf{v}) \\ &= cT(\mathbf{u}) + dT(\mathbf{v}) \end{aligned}

The matrix of a linear transformation (Theorem 10)

A=[T(e1)T(e2)⋯T(en)]A = \begin{bmatrix} T(\mathbf{e}_1) & T(\mathbf{e}_2) & \cdots & T(\mathbf{e}_n) \end{bmatrix} T(x)=x1T(e1)+⋯+xnT(en)=[T(e1)⋯T(en)]xT(\mathbf{x}) = x_1T(\mathbf{e}_1) + \cdots + x_nT(\mathbf{e}_n) = \begin{bmatrix} T(\mathbf{e}_1) & \cdots & T(\mathbf{e}_n) \end{bmatrix}\mathbf{x}

Building geometric matrices from T(ej)T(\mathbf{e}_j)

TransformationT(e1)T(\mathbf{e}_1)T(e2)T(\mathbf{e}_2)Standard matrix
Rotate 90∘90^\circ counterclockwise(0,1)(0, 1)(−1,0)(-1, 0)[0−110]\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}
Rotate 90∘90^\circ clockwise(0,−1)(0, -1)(1,0)(1, 0)[01−10]\begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}
Rotate 180∘180^\circ(−1,0)(-1, 0)(0,−1)(0, -1)[−100−1]\begin{bmatrix} -1 & 0 \\ 0 & -1 \end{bmatrix}
Reflect across the x1x_1-axis(1,0)(1, 0)(0,−1)(0, -1)[100−1]\begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}
Reflect across the x2x_2-axis(−1,0)(-1, 0)(0,1)(0, 1)[−1001]\begin{bmatrix} -1 & 0 \\ 0 & 1 \end{bmatrix}
A=[cos⁡θ−sin⁡θsin⁡θcos⁡θ]A = \begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}

Setting θ=90∘\theta = 90^\circ or θ=180∘\theta = 180^\circ recovers the rows of the table above.

A=[0−10100001]A = \begin{bmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix}

Onto and one-to-one

Property of TTColumns of AAPivot pattern of AA
Onto Rm\mathbb{R}^mSpan Rm\mathbb{R}^mA pivot in every row
One-to-oneLinearly independentA pivot in every column
T(x1,x2)=[3x1+x25x1+7x2x1+3x2]=[315713][x1x2]T(x_1, x_2) = \begin{bmatrix} 3x_1 + x_2 \\ 5x_1 + 7x_2 \\ x_1 + 3x_2 \end{bmatrix} = \begin{bmatrix} 3 & 1 \\ 5 & 7 \\ 1 & 3 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \end{bmatrix}

This is a matrix transformation from R2\mathbb{R}^2 to R3\mathbb{R}^3, so it is linear.

Linear models (Section 1.10)

x1[36520]+x2[51347]+x3[13741.1]=[33453]x_1\begin{bmatrix} 36 \\ 52 \\ 0 \end{bmatrix} + x_2\begin{bmatrix} 51 \\ 34 \\ 7 \end{bmatrix} + x_3\begin{bmatrix} 13 \\ 74 \\ 1.1 \end{bmatrix} = \begin{bmatrix} 33 \\ 45 \\ 3 \end{bmatrix}

Solving gives x1≈0.277x_1 \approx 0.277, x2≈0.392x_2 \approx 0.392, x3≈0.233x_3 \approx 0.233, or roughly 27.7 g of nonfat milk, 39.2 g of soy flour and 23.3 g of whey.

Worked Example

Finding a standard matrix from T(e1)T(\mathbf{e}_1) and T(e2)T(\mathbf{e}_2). A linear transformation T:R2→R3T : \mathbb{R}^2 \to \mathbb{R}^3 satisfies T(e1)=(5,−7,2)T(\mathbf{e}_1) = (5, -7, 2) and T(e2)=(−3,8,0)T(\mathbf{e}_2) = (-3, 8, 0). Find a formula for T(x)T(\mathbf{x}).

T(x)=x1T(e1)+x2T(e2)=x1[5−72]+x2[−380]=[5−3−7820][x1x2]\begin{aligned} T(\mathbf{x}) &= x_1T(\mathbf{e}_1) + x_2T(\mathbf{e}_2) \\ &= x_1\begin{bmatrix} 5 \\ -7 \\ 2 \end{bmatrix} + x_2\begin{bmatrix} -3 \\ 8 \\ 0 \end{bmatrix} = \begin{bmatrix} 5 & -3 \\ -7 & 8 \\ 2 & 0 \end{bmatrix}\begin{bmatrix} x_1 \\ x_2 \end{bmatrix} \end{aligned}

Knowing only these two images fixes the image of every vector in R2\mathbb{R}^2.

Range and preimages. Let

A=[1−335−17],u=[2−1],b=[32−5],c=[325]A = \begin{bmatrix} 1 & -3 \\ 3 & 5 \\ -1 & 7 \end{bmatrix},\quad \mathbf{u} = \begin{bmatrix} 2 \\ -1 \end{bmatrix},\quad \mathbf{b} = \begin{bmatrix} 3 \\ 2 \\ -5 \end{bmatrix},\quad \mathbf{c} = \begin{bmatrix} 3 \\ 2 \\ 5 \end{bmatrix}

and T(x)=AxT(\mathbf{x}) = A\mathbf{x}, a map from R2\mathbb{R}^2 to R3\mathbb{R}^3.

Image of u\mathbf{u}. AuA\mathbf{u} is the combination of the columns weighted by the entries of u\mathbf{u}:

T(u)=u1a1+u2a2=2[13−1]−1[−357]=[51−9]\begin{aligned} T(\mathbf{u}) &= u_1\mathbf{a}_1 + u_2\mathbf{a}_2 \\ &= 2\begin{bmatrix} 1 \\ 3 \\ -1 \end{bmatrix} - 1\begin{bmatrix} -3 \\ 5 \\ 7 \end{bmatrix} = \begin{bmatrix} 5 \\ 1 \\ -9 \end{bmatrix} \end{aligned}

An x\mathbf{x} with T(x)=bT(\mathbf{x}) = \mathbf{b}. Row reduce [ A    b ][\,A \;\; \mathbf{b}\,]:

[1−33352−17−5]∼[1−33014−704−2]∼[1−3301−12000]∼[103201−12000]\begin{aligned} \left[\begin{array}{cc|c} 1 & -3 & 3 \\ 3 & 5 & 2 \\ -1 & 7 & -5 \end{array}\right] &\sim \left[\begin{array}{cc|c} 1 & -3 & 3 \\ 0 & 14 & -7 \\ 0 & 4 & -2 \end{array}\right] \sim \left[\begin{array}{cc|c} 1 & -3 & 3 \\ 0 & 1 & -\tfrac{1}{2} \\ 0 & 0 & 0 \end{array}\right] \sim \left[\begin{array}{cc|c} 1 & 0 & \tfrac{3}{2} \\ 0 & 1 & -\tfrac{1}{2} \\ 0 & 0 & 0 \end{array}\right] \end{aligned}

so x=(32,−12)\mathbf{x} = \left(\tfrac{3}{2}, -\tfrac{1}{2}\right). Check the first entry: 32(1)−12(−3)=3\tfrac{3}{2}(1) - \tfrac{1}{2}(-3) = 3. Both columns are pivot columns, so there is no free variable, and this is the only x\mathbf{x} whose image is b\mathbf{b}.

Is c\mathbf{c} in the range? Only the last entry has changed. The same row operations give

[1−33352−175]∼[1−33014−7048]∼[1−3301−120052]\begin{aligned} \left[\begin{array}{cc|c} 1 & -3 & 3 \\ 3 & 5 & 2 \\ -1 & 7 & 5 \end{array}\right] &\sim \left[\begin{array}{cc|c} 1 & -3 & 3 \\ 0 & 14 & -7 \\ 0 & 4 & 8 \end{array}\right] \sim \left[\begin{array}{cc|c} 1 & -3 & 3 \\ 0 & 1 & -\tfrac{1}{2} \\ 0 & 0 & \tfrac{5}{2} \end{array}\right] \end{aligned}

The last row says 0=520 = \tfrac{5}{2}, so the system is inconsistent and c\mathbf{c} is not in the range of TT. A 3×23 \times 2 matrix has at most two pivots, so it cannot have a pivot in every row, and TT cannot be onto R3\mathbb{R}^3.

A three-loop circuit. Applying Kirchhoff's voltage law to each loop gives one equation per loop current:

11I1−3I2−I3=30−3I1+6I2−I3=5−I2+3I3=−25⟹[11−3030−36−150−13−25]\begin{aligned} 11I_1 - 3I_2 \phantom{{}- I_3} &= 30 \\ -3I_1 + 6I_2 - I_3 &= 5 \\ -I_2 + 3I_3 &= -25 \end{aligned} \quad\Longrightarrow\quad \left[\begin{array}{ccc|c} 11 & -3 & 0 & 30 \\ -3 & 6 & -1 & 5 \\ 0 & -1 & 3 & -25 \end{array}\right]

Row reduction gives I1=3I_1 = 3 A, I2=1I_2 = 1 A and I3=−8I_3 = -8 A. The negative sign means the third current runs opposite to the direction assumed, at 8 A. As a check on the first loop, the shared branch carries I1−I2=2I_1 - I_2 = 2 A through its 3 Ω3\,\Omega resistor. The drops are 4(3)+4(3)+3(2)=304(3) + 4(3) + 3(2) = 30 volts, which match the 30 V battery.

Summary