Ran Wei/ Linear Algebra
中文
Linear Algebra · Reference

Common mistakes

Check the assumption or convention that changes the answer.

1

Vectors and equations

Giving the zero vector an angle

Its dot product with any vector is zero, but the angle formula requires dividing by its norm. Use the angle formula only for two nonzero vectors. Module 1

Dropping the augmented column

The two equations x+y=2x+y=2 and 2x+2y=52x+2y=5 reduce to a contradiction. Looking only at their coefficient matrix hides it. Carry the right-hand side through every row operation. Module 2

Multiplying transformations in reading order

A shear HH followed by a scale SS is SH.SH\mathclose{\text{.}} For H(x,y)=(x+y,y)H(x,y)=(x+y,y) and S(x,y)=(2x,y),S(x,y)=(2x,y)\mathclose{\text{,}} the input (0,1)(0,1) goes to (2,1).(2,1)\mathclose{\text{.}} Reversing the order gives (1,1).(1,1)\mathclose{\text{.}} Module 3

Counting generators as dimension

The vectors (1,1)T(1,1)^\mathsf T and (2,2)T(2,2)^\mathsf T span a line. Keep independent directions before counting. Module 4

2

Spaces and fits

Taking basis columns from the reduced matrix

The column space of (1212)\begin{pmatrix}1&2\\1&2\end{pmatrix} is the diagonal line. After row reduction the first column is (1,0)T.(1,0)^\mathsf T\mathclose{\text{.}} Use elimination to find indices, then take columns from the original matrix. Module 5

Using a determinant as an unsigned area factor

Reflection in the vertical axis has determinant −1.-1\mathclose{\text{.}} Areas stay the same and orientation reverses. Use the absolute determinant for ordinary area. Module 6

Replacing the squared norm in a projection by the norm

Projecting (3,4)T(3,4)^\mathsf T onto (2,0)T(2,0)^\mathsf T uses coefficient 6/4,6/4\mathclose{\text{,}} since the denominator is the direction’s dot product with itself. Module 7

Trusting a small residual as a sensitivity test

For A=(1101/1000),A=\begin{pmatrix}1&1\\0&1/1000\end{pmatrix}\mathclose{\text{,}} changing the data by (0,1/1000)T(0,1/1000)^\mathsf T changes the exact coefficients by (−1,1)T.(-1,1)^\mathsf T\mathclose{\text{.}} Both fits have zero residual. Check conditioning as well as fit. Module 8

3

Spectra and reconstruction

Assuming a repeated root supplies enough eigenvectors

The matrix (2102)\begin{pmatrix}2&1\\0&2\end{pmatrix} has eigenvalue 22 twice and an eigenspace of dimension one. Find its eigenspaces before trying to build an eigenbasis. Module 9

Reading definiteness from the diagonal alone

The symmetric matrix (1221)\begin{pmatrix}1&2\\2&1\end{pmatrix} has positive diagonal entries and eigenvalues 33 and −1.-1\mathclose{\text{.}} The quadratic form takes both signs. Test the eigenvalues or a valid definiteness criterion. Module 10

Using eigenvalue signs as singular-value signs

The matrix diag⁡(2,−3)\operatorname{diag}(2,-3) has singular values 3,2.3,2\mathclose{\text{.}} The negative sign is carried by a direction change in the decomposition. Module 11

Skipping the centring step in PCA

For points (9,0),(11,0),(9,0),(11,0)\mathclose{\text{,}} the raw sum of squared first coordinates is 202.202\mathclose{\text{.}} Subtracting their mean leaves (−1,0),(1,0),(-1,0),(1,0)\mathclose{\text{,}} with squared sum 2.2\mathclose{\text{.}} Centre the data so PCA measures variation about the mean. Module 12