Skewed axes make coordinates hard; square axes make them two dot products. Watch two skewed arrows straighten up.
Two arrows made perpendicular
Shrink, take away the shadow, shrink again.
Two arrows, a_1 = (2, 1) and a_2 = (1, 2), not at a right angle.
Describe this picture
The plane with two arrows, and . First shrinks to length 1, becoming . Then the shadow of on the line of , , is drawn and taken away, leaving , which slides to start at the origin and stands at a right angle to , marked. That leftover shrinks to length 1, becoming . Finally the point appears, and its two coordinates along and , 6.261 and 1.342, are drawn as dashed shadows and read out. The picture has no control.
Square axes are easier
Suppose you want the coordinates of the point along the arrows and : how many of each make ? You have to solve two equations, as in Two pictures of a linear system. The answer is 2 and 1, but it took a solve.
Along perpendicular arrows of length 1 there is nothing to solve. Each coordinate is the length of a shadow, from Projections, and a shadow on a unit arrow is one dot product. In the picture at the top of the page, the two coordinates of along and are
Check with lengths: , which is . The right-angle rule holds because the axes are square.
Orthonormal
Arrows that are all at right angles to each other and all of length 1 are orthonormal. In symbols,
The symbol , with two subscripts, is the Kronecker delta. Signal processing’s impulse has square brackets; the two are told apart that way. Put orthonormal arrows side by side as the columns of a matrix , and the rule becomes : entry of is . Any vector is then the sum of its shadows:
“Orthogonal” alone means at right angles; “orthonormal” adds length 1. The difference matters. The arrows and are at a right angle, but they are not of length 1.
Orthogonal matrices
A square matrix with orthonormal columns is called an orthogonal matrix, an old name that really means orthonormal columns. For it, , and it keeps every length:
From the top picture, . It is the rotation by 26.57°, which is 0.4636 radians: its first column points at that angle. It sends to , whose squared length is , the same as before.
Rotations and reflections are the orthogonal matrices of the plane. The reflection is one too: its columns and have length 1 and are at a right angle.
Gram–Schmidt
What if the arrows you have are skewed? The Gram–Schmidt process straightens them one at a time, and the picture at the top of the page shows it in two dimensions:
- Shrink the first arrow to length 1: .
- From the second arrow, take away its shadow on . The shadow is , and what is left, , is at a right angle to .
- Shrink what is left to length 1. Its length is , so .
For more arrows, each new arrow loses its shadows on all the ‘s found so far, then shrinks to length 1:
Watch it in three dimensions with , and .
Making arrows perpendicular
Each arrow loses its shadows on the ones already straightened, then shrinks to length 1.
Three skewed arrows: a_1 = (1, 1, 0), a_2 = (1, 0, 1), a_3 = (0, 1, 1).
Describe this picture
A slowly turning view of three skewed arrows from the origin, , and , each in its own colour, with a faint plane through the first two. First shrinks to length 1 and is renamed . Then the shadow of on is drawn as a dashed arrow, and taken away: slides to the remainder , a dotted ghost marking where it was, and shrinks to length 1 as . Then casts two dashed shadows, on and on , both are taken away, and the remainder shrinks to . At the end three perpendicular unit arrows stand at the origin, with small squares marking the right angles. The plane through the first two arrows stays the same throughout. The step buttons move from stage to stage, forwards and backwards. After the clip, an Order toggle, “a1, a2, a3” or “a2, a1, a3”, swaps the first two arrows and runs the process again; the unit arrows come out different, starting with .
The numbers are short. First, . The shadow of on it is , which leaves , of length , so . The shadows of on and are and , which leaves , of length , so . Check: is proportional to , and to .
Two things to notice. The order matters: start with instead, and becomes , so all three results change. In two dimensions, starting with gives . And the first new arrows always span the same line, plane or space as the first old ones. Gram–Schmidt changes the axes, never the space they cover.
If an arrow lies in the space of the earlier ones, nothing is left after its shadows are taken away. With and then , the second leaves , which cannot be shrunk to length 1. That is how Gram–Schmidt notices dependent arrows.
Worked example
- Two arrows. and give and .
- Coordinates. has coordinates and along them, and .
- A test. Are and orthonormal? Yes: lengths 1, dot product .
- Lengths kept. for every orthogonal .
- Three arrows. , , give , and .
- A Fourier basis. The four arrows , , and are at right angles, with squared lengths 4, 2, 2 and 4. So the coordinates of along them are , , and : that is . Scaled to length 1, the coordinates become , and their squares add up to 16, the squared length of .
Where you’ll meet this
The discrete Fourier transform and the discrete cosine transform are orthonormal bases, up to a scale. A JPEG image is cut into blocks of 64 pixels, and each block’s 64 coefficients are 64 dot products with the cosine basis; their squares add up to the block’s energy. A phone that turns its motion sensor’s readings into the screen’s directions uses an orthogonal matrix, so no length is distorted.
In signal processing · orthonormal bases
The discrete cosine transform is an orthonormal basis of eight cosines, and keeping its first few coefficients is a projection. In Fourier series coefficients, the coefficients are shadows on harmonics that are at right angles to each other, and Parseval’s relation is item 6 above: the squares of the coordinates add up to the squared length. Signal entries there count from 0, so the arrow is the samples to .
Recording the shadows and lengths of Gram–Schmidt gives a factorisation of the matrix of arrows, the subject of QR factorisation.
Reference card
| Quantity | Formula | Notes |
|---|---|---|
| Orthonormal | right angles, length 1 | |
| As a matrix | columns are the | |
| Coordinates | one dot product each | |
| Orthogonal matrix | square with | rotations, reflections |
| Lengths kept | and angles | |
| Gram–Schmidt | , | order matters |
| Dependent arrow | no new direction |