Define \(C[a, b]\) be the set of all real-valued continuous functions defined on the interval \([a,b]\text{.}\)\(C[a,b]\) is a vector space with operations
\begin{equation*}
(f+g)(x)=f(x)+g(x)
\text{ and }
(c f)(x)=c[f(x)]\text{.}
\end{equation*}
Let \(\mathbf{u}, \mathbf{v}\text{,}\) and \(\mathbf{w}\) be vectors in a vector space \(V\text{,}\) and let \(c\) be any scalar. An inner product on \(V\) is a function that associates a real number \(\langle\mathbf{u}, \mathbf{v}\rangle\) with each pair of vectors \(\mathbf{u}\) and \(\mathbf{v}\) and satisfies the axioms listed below.
\(\langle\mathbf{v}, \mathbf{v}\rangle \geq 0\text{,}\) and \(\langle\mathbf{v}, \mathbf{v}\rangle=0\) if and only if \(\mathbf{v}=\mathbf{0}\text{.}\)
Let \(\mathbf{u}_{i}=\frac{\mathbf{w}_{i}}{\left\|\mathbf{w}_{i}\right\|}\text{.}\) Then \(B^{\prime \prime}=\left\{\mathbf{u}_{1}, \mathbf{u}_{2}, \ldots, \mathbf{u}_{n}\right\}\) is an orthonormal basis for \(W\text{.}\) Also, for \(k=1,2, \ldots, m\text{,}\)
The Gram-Schmidt process has a matrix interpretation called QR decomposition. For any \(m \times n\) matrix \(A\) with linearly independent columns (full column rank), we can factor \(A\) as the product of an orthogonal matrix and an upper triangular matrix.
Let \(A\) be an \(m \times n\) matrix with linearly independent columns. Then \(A\) can be factored as
\begin{equation*}
A = QR
\end{equation*}
where \(Q\) is an \(m \times n\) matrix with orthonormal columns, and \(R\) is an \(n \times n\) upper triangular matrix with positive diagonal entries.
Connection to Gram-Schmidt: If we apply the Gram-Schmidt process to the columns of \(A = [\mathbf{a}_1 | \mathbf{a}_2 | \cdots | \mathbf{a}_n]\text{,}\) we obtain orthonormal vectors \(\mathbf{q}_1, \mathbf{q}_2, \ldots, \mathbf{q}_n\text{.}\) These form the columns of \(Q = [\mathbf{q}_1 | \mathbf{q}_2 | \cdots | \mathbf{q}_n]\text{.}\)
Theorem5.3.6.Existence and Uniqueness of QR Decomposition.
Every \(m \times n\) matrix \(A\) with linearly independent columns has a QR decomposition \(A = QR\) where \(Q\) has is an orthogonal matrix and \(R\) is upper triangular matrix.
Connection to Previous Subsection: QR decomposition is precisely the matrix formulation of the Gram-Schmidt process. While Gram-Schmidt gives us the step-by-step procedure for orthogonalization, QR decomposition packages this into a compact matrix factorization. Both approaches: