In Chapter 1.4, we wrote vectors as linear combinations of the standard basis vectors. Could we use a different pair of directions? In this section, we’ll see why perpendicular unit vectors make this especially convenient.
The standard basis¶
Recall the standard basis vectors from Chapter 1.4:
Every vector in is a linear combination of these two vectors. Its entries give the coefficients.


The standard basis vectors in .
For example,
To do geometry in , it is useful to consider other such pairs of vectors. The key properties of are:
length one,
orthogonal to each other.
These two properties will let us find coefficients using dot products, even when the directions are tilted.
Recall from Chapter 1.5 that a unit vector has length one. We can turn any nonzero vector into a unit vector by dividing by its length: .
Building an orthonormal basis¶
First, let’s check the lengths of two vectors.
The vector
has length one since
A unit vector can point in a different direction. For example, the vector
has length one since


Examples of unit vectors in : and . These vectors both have length one, but they are not orthogonal to each other.
To make an orthonormal basis, we need two unit vectors that are also perpendicular. Let
Both vectors have length one, and their dot product is
By Chapter 1.6, they are orthogonal. This pair is an orthonormal basis of .


The pair is an orthonormal basis of .
We can choose a different pair of perpendicular unit directions. Let
Each vector has squared length , and
So is also an orthonormal basis. There are many choices of orthonormal basis, just as there are many choices of direction vector for a line.


An orthonormal basis is not unique.
Finding coefficients using dot products¶
An orthonormal basis gives us two perpendicular directions. Every vector can be written uniquely as a sum of multiples of those directions. How can we find the two coefficients?
Let be an orthonormal basis of .
Let be any vector in .
Then
for some scalars . The figure below shows this decomposition by completing a rectangle.


with respect to the orthonormal directions and .
The decomposition with respect to the orthonormal directions and .
But how do we find ?
The distributive and scalar-multiplication properties from Chapter 1.6 let us isolate one coefficient at a time. Take the dot product with :
Since is a unit vector,
Since and are orthogonal,
Therefore
Similarly,
So