Recall the definition of the dot product of two vectors, introduced in DefinitionΒ 1.1.10, and the length of a vector as introduced in DefinitionΒ 1.1.3. The distance between two points \(\mathbf{x} = (x_1,\dots,x_n)\) and \(\mathbf{y} = (y_1,\cdots,y_n)\) is the length of the vector \(\mathbf{x} - \mathbf{y}\text{,}\) i.e.,
If \(\mathbf{x}\) is any non-zero vector, then the vector \(\mathbf{u} = \mathbf{x} / \| \mathbf{x} \|\) is the unit vector in the direction of \(\mathbf{x}\) (a unit vector is a vector of length one). Two vectors \(\mathbf{x}\) and \(\mathbf{y}\) are orthogonal or perpendicular if \(\mathbf{x} \cdot \mathbf{y} = 0\text{.}\)
Moreover, \(| \mathbf{x} \cdot \mathbf{y} | = \| \mathbf{x} \| \| \mathbf{y} \|\) only when \(\mathbf{x}\) and \(\mathbf{y}\) are scalar multiples of each other.
By Cauchy-Schwarz, \(|\mathbf{u}\cdot\mathbf{v}|\leq \|\mathbf{u}\|\|\mathbf{v}\|\text{.}\) Since both norms are nonzero, division gives \(-1\leq(\mathbf{u}\cdot\mathbf{v})/(\|\mathbf{u}\|\|\mathbf{v}\|)\leq 1\text{.}\) The value is \(0\) exactly when \(\mathbf{u}\cdot\mathbf{v}=0\text{,}\) which means the vectors are orthogonal.
Let \(\mathbf{x}\text{,}\)\(\mathbf{y}\text{,}\) and \(\mathbf{z}\) be vectors in \(\R^n\text{,}\) and let \(a\) be a scalar in \(\R\text{.}\) Then the following properties hold:
Suppose that \(\R^n = \spans \{ \mathbf{f}_1,\dots,\mathbf{f}_k \}\) for some vectors \(\mathbf{f}_i\text{.}\) If \(\mathbf{x} \in \R^n\text{,}\) and \(\mathbf{x} \cdot \mathbf{f}_i = 0\) for each \(i\text{,}\) then show \(\mathbf{x} = \mathbf{0}\text{.}\)
Since \(\R^n\) is spanned by the vectors \(\{ \mathbf{f}_1,\dots,\mathbf{f}_k \}\text{,}\) we can write \(\mathbf{x} = t_1 \mathbf{f}_1 + \cdots + t_k \mathbf{f}_k\) for some scalars \(t_1,\dots,t_k \in \R\text{.}\) But then
SubsectionOrthogonal sets and the expansion theorem
Definition4.1.6.Orthogonal and orthonormal sets.
A set of vectors \(\{ \mathbf{x}_1, \dots, \mathbf{x}_k \}\) is called an orthogonal set if the set does not contain the zero vector, and \(\mathbf{x}_i \cdot \mathbf{x}_j = 0\) for \(i \neq j\text{.}\) A set \(\{ \mathbf{x}_1, \dots, \mathbf{x}_k \}\) is called orthonormal if it is orthogonal and if in addition, \(\| \mathbf{x}_i \| = 1\) for each \(i\text{.}\)
Note that \(\{ \mathbf{x} \}\) is an orthogonal set if \(\mathbf{x} \neq \mathbf{0}\text{.}\) The standard basis \(\{ \mathbf{e}_1, \cdots, \mathbf{e}_n \}\) (see DefinitionΒ 1.3.8) is an important orthonormal set in \(\R^n\text{.}\)
Verify that these vectors form an orthogonal set in \(\R^4\text{.}\) Then find the orthonormal set obtained by βnormalizingβ these vectors, i.e., multiplying each vector by an appropriate constant to obtain a unit vector.
To verify that \(\{\mathbf{f}_1, \mathbf{f}_2, \mathbf{f}_3, \mathbf{f}_4\}\) form an orthogonal set, we need to check that \(\mathbf{f}_i \cdot \mathbf{f}_j = 0\) for all \(i \neq j\text{.}\) We calculate that
Let \(\{\mathbf{f}_1, \mathbf{f}_2, \ldots, \mathbf{f}_k\}\) be an orthogonal set in \(\R^n\text{.}\) To show the set is linearly independent (recalling DefinitionΒ 2.4.1), we must show the only solution to the linear equation
Since the set of vectors is orthogonal, \(\mathbf{f}_1 \cdot \mathbf{f}_j = 0\) for all \(j \neq 1\text{,}\) and \(\mathbf{f}_1 \cdot \mathbf{f}_1 = \| \mathbf{f}_1 \|^2\text{,}\) so we conclude that
Since \(\mathbf{f}_1 \neq \mathbf{0}\) (by definition, an orthogonal set cannot contain the zero vector), \(\|\mathbf{f}_1\|^2 > 0\text{,}\) and so it must be true that \(t_1 = 0\text{.}\) But now repeating this argument with \(1\) replaced by any index \(i\text{,}\) we conclude that \(t_i = 0\text{.}\) Therefore the set \(\{ \mathbf{f}_1, \dots, \mathbf{f}_k \}\) is linearly independent.
Let \(\{\mathbf{f}_1, \mathbf{f}_2, \ldots, \mathbf{f}_m\}\) be an orthogonal basis of a subspace \(U\) of \(\R^n\text{.}\) If \(\mathbf{v}\) is any vector in \(U\text{,}\) we have
Definition4.1.10.The Fourier expansion in an orthogonal basis.
Given an orthogonal basis \(\{ \mathbf{f}_1, \dots, \mathbf{f}_m \}\) for some subspace \(V\) of \(\R^n\text{,}\) the expansion of \(\mathbf{v} \in V\) as a linear combination of this basis is called the Fourier expansion of the vector \(\mathbf{v}\text{,}\) and the coefficients
Let \(\mathbf{v} = (a, b, c, d)\) be a vector in \(\R^4\text{.}\) Find the Fourier expansion of \(\mathbf{v}\) as a linear combination of the orthogonal basis \(\{\mathbf{f}_1, \mathbf{f}_2, \mathbf{f}_3, \mathbf{f}_4\}\) given in ActivityΒ 4.1.4.
\begin{align*}
\mathbf{v} \cdot \mathbf{f}_1 \amp = a \cdot 1 + b \cdot 1 + c \cdot 1 + d \cdot (-1) = a + b + c - d\\
\mathbf{v} \cdot \mathbf{f}_2 \amp = a \cdot 1 + b \cdot 0 + c \cdot 1 + d \cdot 2 = a + c + 2d\\
\mathbf{v} \cdot \mathbf{f}_3 \amp = a \cdot (-1) + b \cdot 0 + c \cdot 1 + d \cdot 0 = -a + c\\
\mathbf{v} \cdot \mathbf{f}_4 \amp = a \cdot (-1) + b \cdot 3 + c \cdot (-1) + d \cdot 1 = -a + 3b - c + d
\end{align*}