施密特正交化详细计算步骤,线性代数必会方法
1. 假设有一组线性无关的向量组 $\{ \mathbf{v}_1, \mathbf{v}_2, \ldots, \mathbf{v}_n \}$,其中 $n$ 是向量的个数。
2. 选择第一个向量 $\mathbf{v}_1$ 作为第一个正交向量,即 $\mathbf{u}_1 = \mathbf{v}_1$。
3. 对于 $i = 2, 3, \ldots, n$,计算向量 $\mathbf{v}_i$ 在正交向量组 $\{ \mathbf{u}_1, \mathbf{u}_2, \ldots, \mathbf{u}_{i-1} \}$ 上的投影,并将 $\mathbf{v}_i$ 减去其在正交向量组上的投影,得到新的向量 $\mathbf{w}_i$。
投影公式为:
$$ \text{proj}_{\mathbf{u}_1, \mathbf{u}_2, \ldots, \mathbf{u}_{i-1}} \mathbf{v}_i = \sum_{j=1}^{i-1} \left( \frac{\mathbf{v}_i \cdot \mathbf{u}_j}{\mathbf{u}_j \cdot \mathbf{u}_j} \right) \mathbf{u}_j $$
其中,$\cdot$ 表示向量的点积。
4. 将 $\mathbf{w}_i$ 归一化,得到正交向量 $\mathbf{u}_i$:
$$ \mathbf{u}_i = \frac{\mathbf{w}_i}{\|\mathbf{w}_i\|} $$
其中,$\|\mathbf{w}_i\|$ 表示向量 $\mathbf{w}_i$ 的模。
5. 重复步骤 3 和 4,直到计算完所有的正交向量 $\mathbf{u}_1, \mathbf{u}_2, \ldots, \mathbf{u}_n$。
假设有一组线性无关的向量组 $\{ \mathbf{v}_1, \mathbf{v}_2, \mathbf{v}_3 \}$,其中:
$$ \mathbf{v}_1 = \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix}, \quad \mathbf{v}_2 = \begin{pmatrix} 4 \\ 5 \\ 6 \end{pmatrix}, \quad \mathbf{v}_3 = \begin{pmatrix} 7 \\ 8 \\ 9 \end{pmatrix} $$
1. 计算 $\mathbf{u}_1$:
$$ \mathbf{u}_1 = \mathbf{v}_1 = \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} $$
2. 计算 $\mathbf{w}_2$:
$$ \mathbf{w}_2 = \mathbf{v}_2 - \text{proj}_{\mathbf{u}_1} \mathbf{v}_2 = \begin{pmatrix} 4 \\ 5 \\ 6 \end{pmatrix} - \left( \frac{\begin{pmatrix} 4 \\ 5 \\ 6 \end{pmatrix} \cdot \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix}}{\begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} \cdot \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix}} \right) \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} = \begin{pmatrix} 4 \\ 5 \\ 6 \end{pmatrix} - \frac{32}{14} \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} = \begin{pmatrix} \frac{8}{7} \\ \frac{3}{7} \\ \frac{6}{7} \end{pmatrix} $$
3. 计算 $\mathbf{u}_2$:
$$ \mathbf{u}_2 = \frac{\mathbf{w}_2}{\|\mathbf{w}_2\|} = \frac{\begin{pmatrix} \frac{8}{7} \\ \frac{3}{7} \\ \frac{6}{7} \end{pmatrix}}{\sqrt{\left( \frac{8}{7} \right)^2 + \left( \frac{3}{7} \right)^2 + \left( \frac{6}{7} \right)^2}} = \begin{pmatrix} \frac{8}{\sqrt{61}} \\ \frac{3}{\sqrt{61}} \\ \frac{6}{\sqrt{61}} \end{pmatrix} $$
4. 计算 $\mathbf{w}_3$:
$$ \mathbf{w}_3 = \mathbf{v}_3 - \text{proj}_{\mathbf{u}_1, \mathbf{u}_2} \mathbf{v}_3 = \begin{pmatrix} 7 \\ 8 \\ 9 \end{pmatrix} - \left( \frac{\begin{pmatrix} 7 \\ 8 \\ 9 \end{pmatrix} \cdot \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix}}{\begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} \cdot \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix}} \right) \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} - \left( \frac{\begin{pmatrix} 7 \\ 8 \\ 9 \end{pmatrix} \cdot \begin{pmatrix} \frac{8}{\sqrt{61}} \\ \frac{3}{\sqrt{61}} \\ \frac{6}{\sqrt{61}} \end{pmatrix}}{\begin{pmatrix} \frac{8}{\sqrt{61}} \\ \frac{3}{\sqrt{61}} \\ \frac{6}{\sqrt{61}} \end{pmatrix} \cdot \begin{pmatrix} \frac{8}{\sqrt{61}} \\ \frac{3}{\sqrt{61}} \\ \frac{6}{\sqrt{61}} \end{pmatrix}} \right) \begin{pmatrix} \frac{8}{\sqrt{61}} \\ \frac{3}{\sqrt{61}} \\ \frac{6}{\sqrt{61}} \end{pmatrix} = \begin{pmatrix} \frac{7}{\sqrt{61}} \\ \frac{8}{\sqrt{61}} \\ \frac{9}{\sqrt{61}} \end{pmatrix} $$
5. 计算 $\mathbf{u}_3$:
$$ \mathbf{u}_3 = \frac{\mathbf{w}_3}{\|\mathbf{w}_3\|} = \frac{\begin{pmatrix} \frac{7}{\sqrt{61}} \\ \frac{8}{\sqrt{61}} \\ \frac{9}{\sqrt{61}} \end{pmatrix}}{\sqrt{\left( \frac{7}{\sqrt{61}} \right)^2 + \left( \frac{8}{\sqrt{61}} \right)^2 + \left( \frac{9}{\sqrt{61}} \right)^2}} = \begin{pmatrix} \frac{7}{\sqrt{61}} \\ \frac{8}{\sqrt{61}} \\ \frac{9}{\sqrt{61}} \end{pmatrix} $$
最终,我们得到了正交向量组 $\{ \mathbf{u}_1, \mathbf{u}_2, \mathbf{u}_3 \}$:
$$ \mathbf{u}_1 = \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix}, \quad \mathbf{u}_2 = \begin{pmatrix} \frac{8}{\sqrt{61}} \\ \frac{3}{\sqrt{61}} \\ \frac{6}{\sqrt{61}} \end{pmatrix}, \quad \mathbf{u}_3 = \begin{pmatrix} \frac{7}{\sqrt{61}} \\ \frac{8}{\sqrt{61}} \\ \frac{9}{\sqrt{61}} \end{pmatrix} $$
这样,我们就完成了施密特正交化的计算过程。


文章评论(0)