Triangle inequality

For any vectors x,y in an inner product space:

x+yx+y.

Derivation from Cauchy-Schwarz inequality
We compute:

x+y2=x+y,x+y=x2+2x,y+y2.

Apply Cauchy–Schwarz:

x,y|x,y|xy.

So,

x+y2x2+2xy+y2=(x+y)2.

Taking square roots gives:

x+yx+y.