I am trying to prove whether or not that:
The triangle inequality holds; that is, for every vectors $x$ and $y$, $$||x+y|| \leq ||x|| + ||y||,$$ for the vector function $$||x|| = \sum_{i=1}^n x^2_i.$$
I have this written currently and was wondering if it was sufficient to say that this inequality does not hold.
\begin{align} ||x+y|| &= \sum\limits_{i=1}^n (x_i+y_i)^2 \\ &= \sum_{i=1}^n (x^2_i + 2x_iy_i + y^2_i) \\ &= \sum\limits_{i=i}^n x^2_i + \sum\limits_{i=i}^n2x_iy_i + \sum\limits_{i=i}^ny^2_i \\ &=||x|| + ||y|| + \sum\limits_{i=i}^n2x_iy_i \\ &\neq ||x|| + ||y||. \end{align}
I’m a C.S. student so proofs aren’t really my strongsuit.
This inequality is false, picking up where you left off you know that $$||x+y|| = ||x|| + ||y|| + \sum_{i=1}^n 2x_iy_i$$ For the triangle inequality to be true you would need $\sum_{i=1}^n 2x_iy_i\leq 0$, for all $x_i,y_i$. But this is false, for example if $n=2$, let $x = (1,1)$ and $y = (1,1)$ we have $$\sum_{i=1}^n 2x_iy_i = 2(1*1 + 1*1) = 4>0$$ (Notice we have $||x+y|| = 2^2+2^2 = 8>||x||+||y|| = 2+2 = 4$)