I dont know if it has been asked before in this forum, but I couldnt find any such thread hence I am asking it here! I am simplifying an expression involving matrices and vectors, in my simplification, I have utilized, $\|x-y\|^2=\|x\|^2+\|y\|^2-2\|x\|\|y\|$. Is it correct way to proceed? If not, then how else can I write $\|x-y\|^2$?
2026-04-03 00:00:57.1775174457
Is it valid to write, $\|x-y\|^2=\|x\|^2+\|y\|^2-2\|x\|\|y\|$?
137 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
In general, the answer is no.
Assuming the given norm doesn't result from an inner product, we can approach it as next.
The RHS can be rewritten as \begin{align*} \|x\|^{2} + \|y\|^{2} - 2\|x\|\|y\| = (\|x\|-\|y\|)^{2} \end{align*} Consequently, the proposed result holds when \begin{align*} \|x-y\|^{2} = (\|x\| - \|y\|)^{2} \Longleftrightarrow \|x - y\| = |\|x\| - \|y\|| \end{align*} Moreover, according to the triangle inequality, we have that \begin{align*} \|x\| = \|x -y + y\| \leq \|x-y\| + \|y\| \Longrightarrow \|x-y\| \geq \|x\|-\|y\| \end{align*} Similarly, one obtains that $\|x-y\| \geq \|y\|-\|x\|$, that is to say, $\|x-y\| \geq |\|x\|-\|y\||$.
Therefore the proposed relation holds when $\|x-y\|$ attains its minimum value $|\|x\| - \|y\||$.
On the other hand, if it does come from an inner product, we have that \begin{align*} \|x-y\|^{2} = \langle x-y,x-y\rangle & = \langle x,x\rangle - \langle x,y\rangle - \langle y,x\rangle + \langle y,y\rangle\\\\ & = \|x\|^{2} - \langle x,y\rangle - \overline{\langle x,y\rangle} + \|y\|^{2}\\\\ & = \|x\|^{2} - 2\text{Re}\langle x,y\rangle + \|y\|^{2} \end{align*}
Hopefully it helps.