Orthogonal and orthonormal basis
Introduction
An orthogonal basis is a basis of a vector space where all the vectors are linearly independent and orthogonal to each other (i.e., the dot product of any two vectors is 0).
An orthonormal basis is a basis of a vector space where all the vectors are orthogonal to each other and have a length of 1.
Scalar product
The scalar product of two vectors is calculated using the following formula:
where
Example
Let
be vectors. The scalar product of
The scalar product of
Orthogonal basis
Basis of vector space can be orthogonalized using the Gram-Schmidt process. To transform the basis into orthogonal basis we need to project each vector onto the subspace orthogonal to the previous vectors.
Given
So, let:
We need to find
Let:
then:
and therefore:
Example
Let
be vectors. The orthogonal basis of
The orthogonal basis of
Orthonormal basis
Orthogonal basis can be transformed into orthonormal basis by normalizing each vector in the basis.
Given
So, if
then
Formula for vector normalization:
where
Length of a vector is calculated using the following formula:
For example, given a vector
Example
Using previous example, we can calculate the orthonormal basis of
The orthonormal basis of
Vector decomposition
Given a vector space
In order to do that we need to know the orthogonal basis
After that we can project
where
Then we can calculate
Example
Let
With orthogonal basis:
And arbitrary vector
Let's decompose
