Two vectors having the same direction are at an angle . If they have opposite direction, then their angle is , which corresponds to . The angle (or ), lying right between these two, has a special significance.
Let be an inner product space. Two vectors and of are perpendicular to each other if . In this case, we write .
In this definition and/or may be the zero vector.
Because , the vector is perpendicular to if and only if is perpendicular to . In other words: the perpendicularity relation is symmetric.
In with the standard inner product, for each and with the vectors and are perpendicular to each other. In addition, each of these vectors has length . These properties are called orthonormality and will later play an important role for inner product spaces.
When and are distinct from the zero vector, then it follows from that the angle between the two vectors satisfies , so (that is, ). This corresponds to the case of the plane which we discussed.
By means of the definition of angles, we can place the Pythagorean theorem in a formal setting.
Let be an inner product space.
- The vectors and are perpendicular to each other if and only if
- If the vectors are mutually perpendicular, that is to say: if , then
In order to prove the first part, we use the properties of the inner product and work out :
Since and are perpendicular by assumption, we have . When we use this in the above expression, we find .
In order to prove the other implication we assume that . This implies that , so and consequently . This proves the first statement.
The second statement follows by induction from the first. The full proof is left to the reader.
If we look at the vector space with the standard inner product, we get the Pythagorean theorem as we know it. If the vectors and are perpendicular to each other, then, according to the theorem, . The vector is of course the vector of the Pythagorean theorem.
The fact that the second statement contains no 'if and only if', can be understood by looking at the following counterexample. Take the vectors , , and . We have and so the equality of the statement holds. However, the inner product is equal to and so the vectors and are not perpendicular!
Provide a vector of the inner product space (with the standard inner product), which is distinct from the zero vector and perpendicular to the vector
The answer is not unique.
A vector is perpendicular to if and only if . This means that we must have This is a single linear equation with three unknowns, so we can simply choose values for and (not both equal to so as to avoid the zero vector for an answer) and solve the resulting linear equation in .
We take and . This gives the equation , which has solution . We then find the vector
The solution is not unique; each solution of distinct from the zero vector is a good answer.