You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a generalization of Pythagoras' theorem to $n$ dimensions.
For example, the length of a two dimensional vector $[ x, y ]$ is
the length of the hypotenuse of the right-angle triangle formed by the
points $(x, 0), (0, y), (x, y)$. This length is $\sqrt{x^2 + y^2}$.
For a point in three dimensions ${x, y, z}$, consider the right-angle
triangle formed by $(x, y, 0), (0, 0, z), (x, y, z)$. The hypotenuse
is length $\sqrt{L{ [ x, y ] }^2 + z^2} = \sqrt{ x^2 + y^2 + z^2
}$.
From the definition of vector length and the dot product, the square
root of the dot product of the vector with itself gives the vector
length:
$$\| \vec{v} | = \sqrt{ \vec{v} \cdot \vec{v} }$$
Properties of dot products {#dot-product-properties}
Consider the triangle formed by the two vectors $\vec{v}$ and
$\vec{w}$. The lengths of the sides of the triangle are $| \vec{v} |, |
\vec{w} |, | \vec{v} - \vec{w} |$. When $\vec{v}$ and $\vec{w}$ are
perpendicular, this is a right-angled triangle with hypotenuse length $| \vec{v}
By the converse of Pythagoras'
theorem, if $|
\vec{v} |^2 + | \vec{w} |^2 \ne | \vec{v} - \vec{w} |^2$ then vectors
$`vec{v}$ and $\vec{w}$ do not form a right angle and are not perpendicular.