A linear transformation T takes input vectors to output vectors and respects the two vector operations: T(v + w) = T(v) + T(w) and T(cv) = cT(v), or in one rule T(cv + dw) = cT(v) + dT(w). It can be described without coordinates. Projection onto a line and rotation by 45° are linear. Shifting the plane by a fixed v₀ is not (T(0) must be 0), and neither is taking the length, since T(−2v) would have to be −2T(v). Multiplying by a matrix, T(v) = Av, is always linear; (1 0; 0 −1) turns a house upside down, and a 2 × 3 matrix takes R³ to R². To know T it is enough to know T(v₁), …, T(vₙ) for a basis, because T(c₁v₁ + ⋯ + cₙvₙ) = c₁T(v₁) + ⋯ + cₙT(vₙ). Coordinates come from a basis. With an input basis v₁, …, vₙ and an output basis w₁, …, w_m, the matrix A of T has as column j the coefficients of T(vⱼ) in the w's; then A times input coordinates gives output coordinates. Projection onto a line, in the basis along and across the line (its eigenvectors), has matrix (1 0; 0 0) = Λ; in the standard basis, for the 45° line, it is (½ ½; ½ ½). The derivative from c₁ + c₂x + c₃x² to c₂ + 2c₃x has the 2 × 3 matrix (0 1 0; 0 0 2).
Linear algebra courses used to begin with linear transformations, so in a sense this lecture starts the course again (transcript, p. 1). A linear transformation makes sense without any matrix, and some people, physicists among them, prefer it without coordinates. But to compute, we bring in coordinates, and then every linear transformation leads to a matrix (p. 1).
Projection (pp. 1–2). Take a line in the plane and project every vectorv onto it. The output is T(v); transformation, map and mapping all mean the same: a rule from inputs to outputs, like a function (p. 2). No axes are needed (p. 2). A linear transformation respects the two operations on vectors (p. 2):
Linearity
T(v+w)=T(v)+T(w),T(cv)=cT(v)
In words
capital T the quantity v plus w, equals capital T (v) plus capital T (w), capital T (c v) equals c capital T (v)
Non-examples (pp. 2–4). Shifting the whole plane by a fixed vector, T(v)=v+v0, is not linear: doubling v adds only one v0, not two (pp. 2–3). In fact every linearT keeps zero fixed: with v=0 and c=3, T(0)=3T(0), so (p. 3)
The length, T(v)=∥v∥ from R3 to R1, also fails: it sends 0 to 0 and doubles when v doubles, but T(−2v) is 2∥v∥, not −2∥v∥ (pp. 3–4).
Rotation by 45° (pp. 4–5) is linear: doubling v doubles the rotated vector, and rotating v+w gives the sum of the rotations. A transformation acts on everything at once: rotate a house drawn in the plane (the picture on the cover of Strang's book) and the whole house turns (pp. 4–5).
keeps each x component and reverses each y component: the house, roof tip and door included, ends up upside down (p. 6). A transformation from R3 to R2 comes, for instance, from a 2×3matrix (pp. 7–8). Strang's aim is to show that there are no other examples: behind every linear transformation is a matrix (p. 8).
How much must you be told to know T(v) for everyv (p. 8)? Knowing T(v1) gives T on the line through v1; knowing T(v2) for an independent v2 gives it on the whole plane of their combinations (pp. 8–9). In general, the values on a basisv1,…,vn of the input space decide everything, because each v is a combination of the basis (p. 9):
Linearity on a basis
v=c1v1+⋯+cnvn⇒T(v)=c1T(v1)+⋯+cnT(vn)
In words
v equals c one v one plus and so on plus c sub n v n which gives capital T (v) equals c one capital T ( v one ) plus and so on plus c sub n capital T ( v n )
Coordinates come from a basis (pp. 9–10). The numbers c1,…,cn are the coordinates of v, and there is exactly one way to find them. We have always assumed the standard basis, in which v=(3,2,4) means 3 times the first coordinate vector, and so on; but another basis, for example the eigenvectors of a matrix, gives other coordinates (p. 10).
For T from Rn to Rm, choose an input basisv1,…,vn and an output basisw1,…,wm (pp. 10–11). The matrixA should take the coordinates of v in the input basis to the coordinates of T(v) in the output basis (p. 11). Strang works the projection example below first (pp. 11–14) and then states the general rule (pp. 15–16): column j of A holds the coefficients of T(vj),
capital T ( v one ) equals a one one w one plus a two one w two plus and so on plus a sub m 1 w sub m, capital T ( v sub j ) equals a one j w one plus and so on plus a sub m j w sub m
Then A times the input coordinates gives the output coordinates. It is right for the first basisvector, whose coordinates are (1,0,…,0), since A times that is column 1; likewise for every basisvector, and so, by linearity, for every vector (p. 16).
Projection in a good basis (pp. 11–14). Project the plane onto a line, with the same basis for inputs and outputs: v1 a unit vectoron the line, v2 a unit vectorperpendicular to it (p. 12). The projection leaves v1 alone and killsv2, so input coordinates (c1,c2) give output coordinates (c1,0) (pp. 12–13):
Projection in its eigenvector basis
A=(1000)=Λ,(1000)(c1c2)=(c10)
In words
capital A equals 1 0; 0 0 equals capital lambda, 1 0; 0 0 c one; c two equals c one; 0
These basisvectors are the projection's eigenvectors, with eigenvalues 1 and 0, so the matrix is the diagonalΛ (pp. 13–14). That is the choice a physicist forced to use coordinates would make (p. 14). In the standard basis(1,0), (0,1), projecting onto the 45° line gives the familiar P=aaT/aTa of chapter 4 (p. 14):
Same projection, standard basis
P=(21212121)
In words
capital P equals one half one half; one half one half
Both (1,0) and (0,1) project to (21,21) (p. 14). This matrix is not diagonal, though symmetric with P2=P; much of the course has worked in "the handiest basis" rather than the best one (p. 14).
The whole point, Strang says, is that matrices behave like the transformations: the inverse matrix goes with the inverse transformation, the product of matrices with the product of transformations. In his words, "matrix multiplication really came from linear transformations" (p. 18).
Worked example
Matrices of your own transformations
(a) Find the matrix of the reflection of the plane across the line y=x, first in the basisv1=(1,1)/2, v2=(1,−1)/2, then in the standard basis. (b) Find the matrix of d/dx from cubics (basis1,x,x2,x3) to quadratics (basis1,x,x2), and use it on p(x)=4−x+5x2+2x3.
(a) Eigenvector basis
The reflection keeps v1, which lies on the line, and reverses v2, which is perpendicular: T(v1)=v1, T(v2)=−v2. So A=(100−1), diagonal with the eigenvalues.
(a) Standard basis
(1,0) reflects to (0,1) and (0,1) to (1,0), so the columns give A=(0110): the swap permutation. Same transformation, different basis, different matrix.
(b) The derivative
T(1)=0, T(x)=1, T(x2)=2x, T(x3)=3x2, so the columns are (0,0,0), (1,0,0), (0,2,0), (0,0,3): A=000100020003. For p, A(4,−1,5,2)=(−1,10,6), that is p′(x)=−1+10x+6x2, which is right.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
A list of numbers written as a column, or more generally anything that can be added and multiplied by numbers. Explained in Orthogonal vectors and subspaces.
A set of independent vectors from which every vector in a space can be built, in exactly one way, as a combination. Explained in Independence, basis and dimension.
In a square matrix, the entries running from the top left corner to the bottom right; a diagonal matrix has zeros everywhere else. Explained in The four fundamental subspaces.
Unchanged by some swap, reflection or turn; for an expression in two quantities, unchanged when they are exchanged. Explained in Introduction to Fourier series.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).