a · b = |a| |b| cos θ = a₁b₁ + a₂b₂ + a₃b₃. So cos θ = (a · b)/(|a| |b|), and for non-zero vectors, a ⊥ b exactly when a · b = 0.
Key takeaways: a · b = |a||b| cos θ = a₁b₁ + a₂b₂ + a₃b₃. Find an angle from cos θ = (a · b)/(|a||b|), check the sign first, and set a · b = 0 for perpendicular vectors. Dot products of sums expand like algebra, with a · a = |a|².