What is the usage of the Gram Schmidt process?
The Gram-Schmidt process is a method to convert
To understand this process, we must first understand the concept of orthonormal vectors.
What are orthonormal vectors?
Orthonormal vectors are defined as a combination of orthogonal and normalized vectors. Let's understand these individually.
Orthogonal vectors are perpendicular to each other, and their dot product equals zero. Suppose we have two orthogonal vectors:
and . Their dot product can be represented as:
Note: The angle between orthogonal vectors is
.
A normalized vector is a unit vector form of a vector. Suppose we have a vector
. Its normal form can be represented as:
Here
Note: The magnitude of a normalized vector is
.
Gram-Schmidt process
Before diving into the process, let's revise the concept of projection of a vector on another vector to understand the process better.
Projection of a vector on another vector
Projection of a vector onto another vector shows how much of the first vector points in the same direction as the second vector.
Suppose we have two vectors:
Mathematically, we can represent this as:
: Dot product between vectors and . : Square of the magnitude of .
Steps of Gram-Schmidt process
There are two steps involved in the process:
First, we find the orthogonal vectors for our given set of vectors.
We find the unit vectors( normalized form) of the orthogonal vectors.
1) Finding orthogonal vectors
For the given set of vectors
We represent this mathematically as:
For the first orthogonal vector where
the expression becomes:
Similarly, we find the third orthogonal vector where
using the expression:
In such a way, we find all the orthogonal vectors for our given vectors by simplifying the expression accordingly.
2) Finding normalized vectors
For the orthogonal vectors
For the first normalized vector where
the expression becomes:
Example
Let's solve an example using the Gram-Schmidt process now to calculate the orthonormal vectors for given vectors. Suppose we have two vectors such that:
Calculating orthogonal vectors:
Finding
:
Finding
:
We first calculate
. This is the projection of onto .
Here, we first take the ratio of the dot product of the two vectors (
Now finding
:
We have calculated
Calculating normalized vectors:
Finding
by taking the ratio of with its magnitude:
Finding
by taking the ratio of with its magnitude:
We converted our given vectors (
Conclusion
The Gram-Schmidt process is a valuable tool in linear algebra to transform vectors into orthogonal or orthonormal sets. This results in the simplification of vector calculation and is crucial in solving systems of equations, constructing bases, and improving signal processing.
Free Resources