I don't understand one step in this proof of the triangle inequality (number 1 below).
I.e. we have the equality $|x+y|^2 =|x|^2+2xy+|y|^2$, but how can we then conclude $|x+y|^2 \leq|x|^2+2|xy|+|y|^2$?
Let $x,y \in \mathbb{R}$ and let $|x|$ be the absolute value of $x$. Then: $$ |x+y|\leq|x|+|y| $$ Proof: \begin{align} |x+y|^2 &= (x+y)^2 \\ &=x^2+2xy+y^2 \\ &= |x|^2+2xy +|y|^2 \\ &\leq |x|^2+2|xy|+|y|^2 \tag{1}\\ &=|x|^2+2|x||y|+|y|^2 \\ &= (|x|+|y|)^2 \end{align}
Thanks!