Example Problems
Last updated
Was this helpful?
Last updated
Was this helpful?
Show that the inner product defined above for as fulfills the 4 properties of an inner product.
Let and .
\begin{align*}\langle \vec{y}, \vec{x}\rangle &= y_1x_1 + y_2x_2 + \cdots + y_nx_n \\ &= x_1y_1 + y_2x_2 + \cdots + x_ny_n \\ &= \langle \vec{x}, \vec{y}\rangle\end{align*}
\begin{align*}\langle \vec{x}, \vec{y} + \vec{z}\rangle &= x_1(y_1 + z_1) + x_2(y_2 + z_2) + \cdots + x_n(y_n + z_n) \\ &= x_1y_1 + x_2y_2 + \cdots + x_ny_n + x_1z_1 + x_2z_2 + \cdots + x_nz_n \\ &= \langle \vec{x}, \vec{y}\rangle + \langle \vec{x}, \vec{z}\rangle\end{align*}
\begin{align*}\langle \alpha\vec{x}, \vec{y}\rangle &= \alpha x_1y_1 + \alpha x_2y_2 + \cdots + \alpha x_ny_n \\ &= \alpha(x_1y_1 + x_2y_2 + \cdots + x_ny_n) \\ &= \alpha \langle \vec{x}, \vec{y}\rangle\end{align*}
.
Since every component is squared, we know that . Let us check when . Since we are adding each component squared, all components must be in order for this sum to be as well, i.e. must be the zero vector. Therefore, .
The norm of a vector is its length. We denote the norm as .
For vectors in , to find the length of a vector , we use the Pythagorean theorem.
Therefore, we can express the inner product of with itself as the square of its norm:
Norms have to fulfill 3 properties for and :
Nonnegativity: , where if and only if
Scaling:
Triangle inequality: , where if and only if (i.e. when and are parallel)
We define the angle between 2 vectors using the following equation: