Input vectors to find the orthonormal basis using the Gram-Schmidt process, with a step-by-step breakdown of the process.
Use this Gram-Schmidt calculator to orthonormalize a set of vectors step by step and find the orthonormal basis in an inner product space. This tool simplifies complex manual calculations and ensures accurate results.
The Gram-Schmidt process is a method in linear algebra to transform a set of linearly independent vectors into an orthonormal basis. This new set of vectors spans the same subspace as the original vectors but has the following properties:
This process is widely used in computer science, physics, statistics, machine learning, QR decomposition, and more.
The formula for orthogonalizing a vector is:
\(\ u_i = v_i - \sum_{j=1}^{i-1} \frac{v_i \cdot u_j}{\|u_j\|^2} u_j \)
Two vectors are orthogonal if their dot product is zero. For example, if \(\vec{u_1} \cdot \vec{v_1} = 0\), the vectors are perpendicular. Orthogonal vectors are easy to visualize in 2D or 3D, but the concept extends to higher dimensions.
An orthonormal basis is a set of vectors that are both orthogonal and of unit length. Using such a basis simplifies many vector operations, including:
Orthonormalize vectors \(\vec{V_1} = \begin{bmatrix} 1 \\ 1 \end{bmatrix}, \vec{V_2} = \begin{bmatrix} 2 \\ 1 \end{bmatrix}\) using Gram-Schmidt:
Step 1:
\(\vec{u_1} = \vec{v_1} = \begin{bmatrix} 1 \\ 1 \end{bmatrix}\)
\(\vec{e_1} = \frac{\vec{u_1}}{\|\vec{u_1}\|} = \begin{bmatrix} 0.71 \\ 0.71 \end{bmatrix}\)
Step 2: Project \(\vec{v_2}\) onto \(\vec{u_1}\):
\(\text{proj}_{\vec{u_1}} (\vec{v_2}) = \begin{bmatrix} 1.5 \\ 1.5 \end{bmatrix}\)
\(\vec{u_2} = \vec{v_2} - \text{proj}_{\vec{u_1}} (\vec{v_2}) = \begin{bmatrix} 0.5 \\ -0.5 \end{bmatrix}\)
\(\vec{e_2} = \frac{\vec{u_2}}{\|\vec{u_2}\|} = \begin{bmatrix} 0.71 \\ -0.71 \end{bmatrix}\)
Result:
\(\begin{bmatrix} 0.71 & 0.71 \\ 0.71 & -0.71 \end{bmatrix}\)
Start with linearly independent vectors, orthogonalize each by subtracting projections onto previous vectors, then normalize each vector. The resulting set forms the orthonormal basis.
Yes, but it produces zero vectors for dependent vectors, so a full orthonormal basis cannot be formed.
Orthogonal vectors are perpendicular. Orthonormal vectors are perpendicular and have unit length.
Order does not affect the subspace spanned, but it affects the decomposition pattern of vectors.
Related
Links
Home Conversion Calculator About Calculator Online Blog Hire Us Knowledge Base Sitemap Sitemap TwoEmail us at
Contact Us© Copyrights 2026 by Calculator-Online.net