Intuition The one core idea
QR decomposition takes a bunch of crooked arrows (the columns of a matrix A ) and rebuilds them out of a clean set of perpendicular arrows (Q ) plus a recipe of how much of each (R ). Everything on the parent page is just naming the perpendicular directions and writing down the recipe, so this page defines every arrow, dot, and symbol you need before any of that makes sense.
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.
Definition Vector — an arrow with a list of numbers
A vector is an arrow that starts at the origin (the corner point O ) and ends at some spot. We record it as a list of numbers — its coordinates . We write it bold: a . In 3D, a = ( a 1 , a 2 , a 3 ) means "go a 1 along the first axis, a 2 along the second, a 3 along the third."
The picture: a single straight arrow from the origin. Nothing more.
Why the topic needs it. The parent note writes a 1 , a 2 , … — those are just the arrows we start with. Everything QR does is rearrange arrows, so "arrow = list of numbers" is line one.
Definition Matrix, seen as columns
A matrix is a rectangular grid of numbers. But the way QR uses it, a matrix is just several vectors standing side by side , each one a column:
A = [ a 1 ∣ a 2 ∣ ⋯ ∣ a n ] .
Each vertical bar separates one column-arrow from the next.
Definition The size symbols
m and n
When we write A ∈ R m × n , read it as: "A is a matrix of real numbers (R ) with m rows and n columns." So each column-arrow lives in m -dimensional space, and there are n of them.
m = how long each arrow's coordinate list is (the height).
n = how many arrows there are (the width).
The picture: n separate arrows, each described by m numbers. The parent's example A has m = 3 (arrows in 3D space) and n = 2 (two arrows).
Why the topic needs it. QR is a statement about columns . Reading A as a stack of column-arrows is the whole mental switch that makes the rest visual.
Definition Norm — how long the arrow is
The norm ∥ a ∥ is the straight-line length of the arrow, measured with the Pythagorean theorem:
∥ a ∥ = a 1 2 + a 2 2 + ⋯ + a m 2 .
Intuition Why squares and a square root?
In flat space the distance from corner to tip of a right triangle is side 2 + side 2 (Pythagoras). A vector's coordinates are exactly those perpendicular sides, so squaring, adding, and rooting gives its length. We pick this tool — not, say, "add the numbers" — because only Pythagoras gives the true straight-line distance.
Why the topic needs it. The parent writes r k k = ∥ u k ∥ and "normalize" — both are about length. You cannot shrink an arrow to length 1 without first knowing its length.
Definition Dot product — multiply matching slots and add
The dot product of two vectors is one number:
a ⋅ b = a ⊤ b = a 1 b 1 + a 2 b 2 + ⋯ + a m b m .
The little ⊤ ("transpose") just means "lay the arrow on its side so the multiplication lines up" — for our purposes a ⊤ b is the dot product, one number out.
Intuition What the dot product
sees
Geometrically, a ⊤ b = ∥ a ∥ ∥ b ∥ cos θ , where θ is the angle between the arrows. So the dot product answers: "how much do these two arrows point the same way?"
Point the same way (θ = 0 , cos θ = 1 ): big positive number.
Perpendicular (θ = 9 0 ∘ , cos θ = 0 ): exactly zero .
Point opposite (θ = 18 0 ∘ , cos θ = − 1 ): big negative number.
Why the topic needs it. Every r ik = q i ⊤ a k in the parent note is a dot product. And "orthonormal columns," "Q ⊤ Q = I ," and "perpendicular" all cash out as dot products being zero . Learn this and half of QR is already yours.
Definition Projection — how far along one direction another arrow reaches
The projection of a onto a unit direction q (length 1) is:
proj q a = ( q ⊤ a ) q .
The number q ⊤ a says how far along q to go; multiplying by q turns that number back into an arrow pointing along q .
Intuition It's literally a shadow
Shine a light straight down onto the line through q . The shadow a casts on that line is the projection. The leftover part — arrow minus shadow — points straight away from q , i.e. perpendicular to it.
Let us actually check that last claim, because it is the trick the whole parent page runs on. Take the dot product of q with u :
q ⊤ u = q ⊤ a − ( q ⊤ a ) = 1 q ⊤ q = q ⊤ a − q ⊤ a = 0.
What we did: subtracted the shadow. Why: to kill any overlap with q . What it looks like: the leftover arrow u stands at a perfect right angle to q . This is exactly the parent's "remove what's already explained" step.
Why the topic needs it. The parent's u 2 = a 2 − ( q 1 ⊤ a 2 ) q 1 is subtract-the-shadow. Projection is the engine of Gram–Schmidt, which is the engine of QR — see Orthonormal bases and projections .
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.
ortho = right angles, normal = length one. Orthonormal = perpendicular unit arrows.
Why the topic needs it. The Q in A = QR has orthonormal columns. That is what makes Q preserve lengths and angles (a rotation/reflection).
Definition Identity matrix
I
I is the matrix with 1 's down the diagonal and 0 's everywhere else. It is the "do nothing" matrix: I x = x .
I 2 = [ 1 0 0 1 ] .
Q ⊤ Q = I is exactly "orthonormal columns"
The entry in row i , column j of Q ⊤ Q is the dot product q i ⊤ q j . Section 5 said those dot products are 1 when i = j and 0 otherwise — which is precisely the pattern of I . So the compact symbol Q ⊤ Q = I is just "all my columns are perpendicular unit arrows," written in one breath.
Why the topic needs it. This is the parent's definition of Q . Now you can read it instead of memorizing it.
Definition Upper-triangular matrix
A matrix is upper-triangular when every entry below the main diagonal is 0 . All the numbers live on or above the diagonal, forming a triangle in the top-right:
R = r 11 0 0 r 12 r 22 0 r 13 r 23 r 33 .
Intuition Why "triangular" is the friendly shape
Look at the bottom row: it has only one nonzero entry, so an equation using it solves instantly for one unknown. Then the row above uses that answer to get the next — this is back-substitution , a chain of one-variable solves. No messy simultaneous algebra. That is why the parent's least-squares step R x = Q ⊤ b is "trivial."
Why the topic needs it. R in A = QR is upper-triangular. The parent proves why (each a k uses only earlier q 's); here you just need to recognize the shape. The sibling LU decomposition uses triangular matrices too.
Definition Linearly independent columns
Columns are linearly independent when no column can be built by stretching and adding the others — none of them is redundant. Equivalently, none of them collapses to zero after you strip away all the shadows of the earlier ones.
The picture: three arrows that genuinely reach into three different directions, not all squashed onto one line or one plane.
Intuition Why QR demands it
If a 2 were just a stretched copy of a 1 , then after removing its shadow nothing would be left — u 2 = 0 , length 0 , and you cannot normalize (divide by zero!). Independence guarantees every ∥ u k ∥ > 0 , which is why the parent can promise a positive diagonal r k k > 0 .
Why the topic needs it. It is the one requirement in the parent's definition (A has linearly independent columns). This is where Gram-Schmidt process would break down without it.
Vector = arrow of numbers
Matrix = stack of column arrows
Dot product = same-direction number
Orthonormal = perpendicular unit arrows
Q has orthonormal columns
R diagonal = leftover lengths
QR decomposition A equals QR
Read it as: arrows feed everything; the dot product feeds projection and orthonormality; those two build Q ; leftover lengths build R ; together they are A = QR .
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 m and n mean in A ∈ R m × n ? m = rows (length of each column-arrow), n = columns (how many arrows).
How do you compute the length ∥ a ∥ ? a 1 2 + ⋯ + a m 2 — Pythagoras on the coordinates.
What single number does a ⊤ b give, and what does it measure? One number, ∥ a ∥∥ b ∥ cos θ ; how much the arrows point the same way.
What dot-product value means "perpendicular"? Zero.
What is the projection of a onto a unit vector q ? ( q ⊤ a ) q — the shadow of a along q .
After subtracting the shadow, u = a − ( q ⊤ a ) q , what is q ⊤ u ? Exactly 0 — the leftover is perpendicular to q .
What does "orthonormal" split into? Orthogonal (perpendicular, dot product 0) + normalized (length 1).
Why is Q ⊤ Q = I just a restatement of "orthonormal columns"? Entry ( i , j ) of Q ⊤ Q is q i ⊤ q j , which is 1 on the diagonal and 0 off it — the pattern of I .
What does upper-triangular mean and why is it convenient? All entries below the diagonal are 0 ; lets you solve by back-substitution, one unknown at a time.
Why does QR need linearly independent columns? So each leftover u k = 0 , giving r k k = ∥ u k ∥ > 0 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.