Unit 2 of 8 · about 4 hours · derive
Linear maps, span, independence and change of basis
Coordinates describe a vector; they are not the vector itself. Keeping that distinction prevents wrong transposes and explains why a better basis can simplify the same map.
You'll be able to
- Construct a matrix representation from the images of an ordered basis and derive the matrix for a composition.
- Distinguish spanning, independence and being a basis, including uniqueness of coordinates.
- Derive the change-of-coordinates formula with separate input and output bases.
Covers
Read
In this order, only the parts listed
0 of 2 done
- Independence and matrix representationsMIT 18.06 - Linear Algebra
Video Lecture 9, Independence, basis, and dimension; Lecture 30, Linear transformations and their matrices; Lecture 31, Change of basis; image compression
In Lecture 31, stop after change of basis; leave image compression for SVD. These are video numbers, not calendar session numbers.
- Basis change as a compositionMathematics for Machine Learning
Chapter 2, sections 2.5 to 2.6 (pp. 40 to 48) for definitions, then 2.7.1 to 2.7.2 (pp. 50 to 58), especially Theorem 2.20 and its proof on pp. 54 to 55
Read the basis-change proof line by line. Leave kernel/image in 2.7.3 for the next unit.
Focus on
- Spanning gives existence of coordinates; independence gives uniqueness. Both are needed for a basis.
- Column is the output coordinate vector of the image of input basis vector . Composition acts right to left on column vectors.
- If and , then the new representation is . Only an endomorphism with the same basis change at both ends gives .
Common mistakes · 3
- contains the new basis vectors in old coordinates, not the reverse conversion. The inverse belongs on the output conversion.
- A spanning list may contain redundant vectors. Its coefficients need not be unique.
- An affine map with a nonzero offset is not a linear map even when implemented with a matrix multiplication.
Try it yourself
Closed-book, before checking anything
dtype=np.float64, without random draws; compute C=np.linalg.solve(T,A@S) and np.linalg.norm(T@(C@z)-A@(S@z),2). The reference difference is 0.0; require it below 1e-12 rather than asserting floating-point equality.Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.Why does a basis give unique coordinates?Answer
Spanning gives at least one expansion. Subtracting two expansions gives a zero linear combination. Independence forces every difference of coefficients to be zero. The two basis assumptions are used in different steps.
2.For and , which matrix represents composed with ?Answer
: . If is by , must have columns; with of shape by the result is by .
3.Why is using instead of wrong in general?Answer
A basis matrix need only be invertible, not orthogonal. For , , while . Only orthonormal basis columns imply .
Practice
- MML Exercise 2.20: bases on both sides of a linear map
Chapter 2, Exercise 2.20(a) to (f), printed pp. 68 to 69
Draw the two bases and solve the coordinate conversions before multiplying matrices. Part (f) checks the same output by two coordinate routes.
You're done when
You solve Exercise 2.20 through its two output routes and can derive the order without memorizing it.
Only when you can do this without notes.
Leads to
Notes
Resources · 2 for this unit, 6 more in the section
- MIT 18.06 - Linear AlgebraMIT OpenCourseWare · primary
Follow lectures 1-10, 14-17, 21-22, 25, 27, 29-31 and 33 with matching problems. This is the ordered first pass.
- Mathematics for Machine LearningDeisenroth, Faisal & Ong · reference
Use Chapters 2-4 and §10.2 to check notation or re-derive a result. Do not treat it as a second course.
Also in this section
- MIT 6.042J - Proof strandMIT OpenCourseWare · required
Study textbook Chapters 1 and 3, §§4.1-4.4 and §§5.1-5.4 with matching Unit 1 problems. Leave the rest of the course.
- MIT 18.065 - Applied matrix bridgeMIT OpenCourseWare · required
Use lectures 3-10 after 18.06 for SVD, PCA, low-rank approximation, matrix norms and solver difficulty.
- Introduction to Applied Linear AlgebraBoyd & Vandenberghe · support
Sample Chapters 1-13 and the extra exercises for computational practice in fitting, least squares and pseudoinverses.
- Essence of Linear Algebra3Blue1Brown · optional
Open only when a geometric picture is missing; it does not replace derivation or problem solving.
- NumPy broadcasting and matmul shape rulesNumPy Developers · reference
Read General broadcasting rules and Broadcastable arrays, then
matmulNotes for stacked matrices and one-dimensional promotion. These close the pool's array-semantics gap. - Fundamentals of Numerical Computation: conditioning and operation countsDriscoll & Braun · reference
Python edition, section 2.8 through Residual and backward error for the fixed-matrix perturbation bound; section 2.5.3 for triangular-solve and LU flop counts. Use Exercise 2.8.7 for a condition-number proof, not the unseeded Hilbert experiment.