Say that two vectors s and t have a dot product that is zero.

• What can you say about the relative orientation of s and t?     s and t are orthogonal.
• What can you say about the lengths of s and t?     You can't say anything, not from what you know about the dot product, anyway.

# Orthogonality Detector and Length Calculator

When two vectors are orthogonal (to each other) then their dot product is zero, regardless of their lengths. The dot product detects orthogonality no matter what the lengths of the vectors.

The sign of the dot product of two vectors u and v depends on whether the angle between them is acute or obtuse. If the value of the dot produce is zero, then the vectors are perpendicular.

Now look at the dot product of a vector with itself:

v · v  =  |v||v|cos 0° = |v||v| 1.0 = |v|2

The dot product of a vector with itself yields the square of its length.

|v| = (v · v)

Used in this fashion, the dot product calculates length. Since the two properties of a vector are length and orientation, you might suspect that the dot product is useful.

### QUESTION 7:

Will |v|   =   (v · v) ever be negative?

Will it ever be zero?