I am asking this question for my son who is about finish the twelfth grade.
I have already seen this question, however that did not actually answer my query.
I have three vectors,
\begin{align*} \vec{A} &= 3\hat{i} - 2\hat{j} + \hat{k}\\ \vec{B} &= \hat{i} - 3\hat{j} + 5\hat{k}\\ \vec{C} &= 2\hat{i} + \hat{j} - 4\hat{k} \end{align*}
and I need to find out whether they can form a right angled triangle.
One way to attack the problem will be to find out the length of the vectors.
$|A|^2 = 9+4+1 = 14$
$|B|^2 = 1+9+25 = 35$
$|C|^2 = 4+1+16 = 21$
And then apply Pythagoras theorem,
$|B|^2 = |A|^2 + |C|^2 = 35$ .
Also, we need to check whether the angle between these $\vec{A}$ and $\vec{C}$ is a right angle,
$\vec{A}\cdot\vec{C} = 6-2-4 = 0$.
Now, what is wrong if I do not use Pythagoras and find out the three angles between the pairs of vectors and then simply check that one is a right angle and the sum of the three angles is $180^\circ$? Definitely at the same time I will need to check that the sum of two sides is larger than the largest side.