Two vectors are perpendicular (orthogonal) when they meet at a right angle — like the east and north directions. But you cannot reach for a protractor in 3D, so you need an algebraic test.
The key idea: when two vectors are perpendicular, neither has any "shadow" along the other. Walk along one and you make zero progress in the direction of the other. The dot product measures exactly this overlap, so perpendicularity means the dot product vanishes.
a⊥b⟺a⋅b=0
Why? The dot product has two equal forms:
a⋅b=a1b1+a2b2+a3b3=∣a∣∣b∣cosθ.
When θ=90∘, cos90∘=0, so the product is zero regardless of the vectors' lengths.
Example. For a=(1,2,3) and b=(2,−1,0):
a⋅b=1(2)+2(−1)+3(0)=0,
so they are perpendicular. By contrast (2,1)⋅(1,3)=2+3=5=0, so those two are not.
Tip
In 2D, (x,y) and (y,−x) are always perpendicular — swap and negate. To build a vector perpendicular to a given a, solve a⋅x=0; there are infinitely many solutions, all lying in the plane across a. …
Two lines are perpendicular when the dot product of their direction ratios is zero, so reading the ratios from each symmetric form and setting that sum to zero gives an equation for the unknown. …