The Gram–Schmidt orthonormalization process is a procedure for orthonormalizing a set of vectors in an inner product space, most often the Euclidean space Rn provided with the standard inner product, in mathematics, notably linear algebra and numerical analysis. Let us explore the Gram Schmidt orthonormalization process with a solved example in this article.

What is Gram Schmidt Orthonormalization Process?

Let V be a k-dimensional subspace of Rn. Begin with any basis for V, we look at how to get an orthonormal basis for V.

Allow {v1,…,vk} to be a non-orthonormal basis for V. We’ll build {u1,…,uk} repeatedly until {u1,…,up} is an orthonormal basis for the span of {v1,…,vp}.

We just use u1=1/ ∥v1∥ for p=1.

u1,…,up-1 is assumed to be an orthonormal basis for the span of v1,…,vp.

Note that for i=1,…,p1, we require a vector d such that ∥d∥=1, uiâ‹…d=0, and that vp may be expressed as a linear combination of u1,…,up-1, d. For the time being, we’ll ignore the requirement ∥d∥=1 and work for d in the following system:

u1. d = 0

u2.d = 0

…

…

…

up-1.d = 0

λ1u1⋯⋅⋯λp−1up−1+αd = vp

λ1,…,λp−1 and d1,…,dn are the variables here. However, the system’s final equation isn’t linear. However, since vp is not inside the range of u1,…,up−1, we cannot have α=0 for any solution. Considering that α≠0, we can solve for the system by substituting u=αd.

(1/α)u1⋅u=0

(1/α)u2⋅u=0

…

…

…

(1/α)up-1⋅u=0

λ1u1⋯⋅⋯λp−1up−1+u = vp

or, in other words:

u1â‹…u = 0

u2â‹…u = 0

up-1â‹…u = 0

λ1u1⋯⋅⋯λp−1up−1+u = vp

We can construct u = vp−(λ1u1+⋯+λp−1up−1) using the last equation. By plugging this into the ith equation i∈{1,…,p−1}, we get

ui ⋅ (vp−(λ1u1+⋯+λp−1up−1))=0

which is equivalent to ui⋅vp=λi. As a result, we must

u = vp−((u1⋅vp)u1 + (u2⋅vp)u2 + ⋯ +(up−1⋅vp)up−1).

It’s worth noting that u≠0. As a result, we can take up=(1 / ∥u∥)u.

The following is a summary of the procedure:

u1=(1/||v1||). v1

u2 = (1/||e2||). e2 where e2=v2−(u1⋅v2)u1

u3 = (1/||e3||). e3 where e3=v3−((u1⋅v3)u1+(u2⋅v3)u2)

…

…

ui = (1/||ei||). ei, where ei=vi−((u1⋅vi)u1+(u2⋅vi)u2+⋯+(ui−1⋅vi)ui−1))

…

…

…

uk = (1/||ek||). ek where ek=vk−((u1⋅vk)u1+(u2⋅vk)u2+⋯+(uk−1⋅vk)uk−1))

Also, read:

Gram Schmidt Orthonormalization Process Example

Example:

Assume that

\(\begin{array}{l}v_{1}= \begin{bmatrix}1 \\1 \\1 \\1\end{bmatrix}, v_{2}=\begin{bmatrix}1 \\1 \\-1 \\-1\end{bmatrix}, v_{3}=\begin{bmatrix}0 \\-1 \\2 \\1\end{bmatrix}\end{array} \)
.

Apply the Gram Schmidt process to {v1, v2, v3}.

Solution:

As we know,

\(\begin{array}{l}u_{1}=\frac{1}{||v_{1}||} = \frac{1}{2}\begin{bmatrix}1 \\1 \\1 \\1\end{bmatrix}\end{array} \)

Now,

\(\begin{array}{l}e_{2}= v_{2}-(u_{1}.v_{2})u_{1}= \begin{bmatrix}1 \\1 \\-1 \\-1\end{bmatrix} – (0)u_{1}= \begin{bmatrix}1 \\1 \\-1 \\-1\end{bmatrix}\end{array} \)

Hence,

\(\begin{array}{l}u_{2}= \frac{1}{2}\begin{bmatrix}1 \\1 \\-1 \\-1\end{bmatrix}\end{array} \)

v2 and u1 are already orthogonal at this point. By simply normalizing v2, u2 can be obtained.

Now,

\(\begin{array}{l}e_{3}=v_{3}-(u_{1}.v_{3})u_{1}-(u_{2}.v_{3})u_{2}\end{array} \)
\(\begin{array}{l}e_{3}=\begin{bmatrix}0 \\-1 \\2 \\1\end{bmatrix}-u_{1}-(-2)u_{2}\end{array} \)
\(\begin{array}{l}e_{3}=\begin{bmatrix}0 \\-1 \\2 \\1\end{bmatrix}- \frac{1}{2}\begin{bmatrix}1 \\1 \\1 \\1\end{bmatrix}+\begin{bmatrix}1 \\1 \\-1 \\-1\end{bmatrix}\end{array} \)
\(\begin{array}{l}e_{3}=\begin{bmatrix}1/2 \\-1/2 \\1/2 \\-1/2\end{bmatrix}\end{array} \)

As, ||e3|| = 1 and now we have

\(\begin{array}{l}u_{3}=\begin{bmatrix}1/2 \\-1/2 \\1/2 \\-1/2\end{bmatrix}\end{array} \)

As a result, for the span ({v1, v2, v3}), {u1, u2, u3} is an orthonormal basis.

Keep visiting BYJU’S – The Learning App and download the app to learn all Maths-related concepts easily by exploring more videos.

Frequently Asked Questions on Gram Schmidt Orthonormalization Process

Q1

What is meant by the Gram Schmidt orthonormalization process?

The Gram–Schmidt orthonormalization process is a technique for orthonormalizing a collection of vectors in an inner product space, usually the Euclidean space Rn with the standard inner product.

Q2

What is the purpose of the Gram-Schmidt process?

The Gram-Schmidt process is a collection of procedures that converts a collection of linearly independent vectors into a collection of orthonormal vectors that cover the same space as the original set.

Q3

Give an example of how the Gram Schmidt procedure is used.

The QR decomposition is obtained by applying the Gram–Schmidt process to the column vectors of a full column rank matrix.

Comments

Leave a Comment

Your Mobile number and Email id will not be published.

*

*