Step by step
The question
Question: are (1, 2, 2) and (2, 1, −1) orthogonal?
Orthogonal means perpendicular: at a right angle.
Two vectors are orthogonal exactly when their dot product is 0.
1 Find the dot product
Matching entries multiplied, then added: 1 × 2 + 2 × 1 + 2 × (−1).
We work out each times.
Then we add: u • v = 2.
2 Compare with 0
The dot product is 2, not 0.
So the vectors are not orthogonal.
Careful!
Only a dot product of exactly 0 means orthogonal.
Any other number, even a small one, means not.
3 Check
Let's check with Pythagoras.
At a right angle, the length of u squared plus the length of v squared equals the length of u plus v, squared.
The length squared is the entries squared, added.
For u: 9.
For v: 6.
u plus v: (3, 3, 1).
Its length squared: 19.
9 plus 6 is 15, not 19.
Pythagoras fails: no right angle.
So the answer is right!
Let's look back.
First: find the dot product.
Then: compare with 0.
Last: check.