The Cauchy–Schwarz inequality is $|\langle x,y\rangle|\le\|x\|\|y\|$. Equality holds iff the vectors are linearly dependent (including zero cases). For $x\ne0$, subtract the projection of $y$ onto $x$ and use nonnegativity of its squared norm. This inequality justifies the real angle formula and bounds correlations.