4.5.36 · D1Linear Algebra (Full)

Foundations — QR decomposition

2,045 words9 min readBack to topic

This page assumes you have seen nothing. We build every symbol the parent note uses, one at a time, each resting on the previous. Read top to bottom.


0. What is a vector, really?

The picture: a single straight arrow from the origin. Nothing more.

Figure — QR decomposition

Why the topic needs it. The parent note writes — those are just the arrows we start with. Everything QR does is rearrange arrows, so "arrow = list of numbers" is line one.


1. A matrix as a stack of column-arrows

The picture: separate arrows, each described by numbers. The parent's example has (arrows in 3D space) and (two arrows).

Why the topic needs it. QR is a statement about columns. Reading as a stack of column-arrows is the whole mental switch that makes the rest visual.


2. Length of an arrow: the norm

Why the topic needs it. The parent writes and "normalize" — both are about length. You cannot shrink an arrow to length 1 without first knowing its length.


3. The dot product — the single most important tool here

Figure — QR decomposition

Why the topic needs it. Every in the parent note is a dot product. And "orthonormal columns," "," and "perpendicular" all cash out as dot products being zero. Learn this and half of QR is already yours.


4. Projection — the "shadow" of one arrow on another

Figure — QR decomposition

Let us actually check that last claim, because it is the trick the whole parent page runs on. Take the dot product of with : What we did: subtracted the shadow. Why: to kill any overlap with . What it looks like: the leftover arrow stands at a perfect right angle to . This is exactly the parent's "remove what's already explained" step.

Why the topic needs it. The parent's is subtract-the-shadow. Projection is the engine of Gram–Schmidt, which is the engine of QR — see Orthonormal bases and projections.


5. Orthonormal — perpendicular and length 1

The picture: arrows like the clean corner of a room — up, right, forward — each of length 1, all at right angles. That is the "clean coordinate frame" the parent keeps mentioning.

Why the topic needs it. The in has orthonormal columns. That is what makes preserve lengths and angles (a rotation/reflection).


6. The identity matrix and what means

Why the topic needs it. This is the parent's definition of . Now you can read it instead of memorizing it.


7. Upper-triangular — zeros below the diagonal

Why the topic needs it. in is upper-triangular. The parent proves why (each uses only earlier 's); here you just need to recognize the shape. The sibling LU decomposition uses triangular matrices too.


8. Linear independence — "no arrow is redundant"

The picture: three arrows that genuinely reach into three different directions, not all squashed onto one line or one plane.

Why the topic needs it. It is the one requirement in the parent's definition ( has linearly independent columns). This is where Gram-Schmidt process would break down without it.


Prerequisite map

Vector = arrow of numbers

Matrix = stack of column arrows

Norm = length

Dot product = same-direction number

Projection = shadow

Orthonormal = perpendicular unit arrows

Q has orthonormal columns

Q transpose Q equals I

R diagonal = leftover lengths

Upper triangular shape

Linear independence

QR decomposition A equals QR

Read it as: arrows feed everything; the dot product feeds projection and orthonormality; those two build ; leftover lengths build ; together they are .


Equipment checklist

Test yourself — each line is question ::: answer. Cover the right side.

What is a vector, in one phrase?
An arrow from the origin, recorded as a list of coordinate numbers.
What do and mean in ?
= rows (length of each column-arrow), = columns (how many arrows).
How do you compute the length ?
— Pythagoras on the coordinates.
What single number does give, and what does it measure?
One number, ; how much the arrows point the same way.
What dot-product value means "perpendicular"?
Zero.
What is the projection of onto a unit vector ?
— the shadow of along .
After subtracting the shadow, , what is ?
Exactly — the leftover is perpendicular to .
What does "orthonormal" split into?
Orthogonal (perpendicular, dot product 0) + normalized (length 1).
Why is just a restatement of "orthonormal columns"?
Entry of is , which is on the diagonal and off it — the pattern of .
What does upper-triangular mean and why is it convenient?
All entries below the diagonal are ; lets you solve by back-substitution, one unknown at a time.
Why does QR need linearly independent columns?
So each leftover , giving and a valid normalization (no divide-by-zero).

When every line above is easy, head back to QR decomposition and the derivation will read like plain English.