Calculate Distance (Not Squared) between two vectors using Inner Product

596 Views Asked by At

I'm stuck on a Inner Product question:
Calculate the distance (non squared) between $x=[4 2 1]$ and $y=[0 1 0]$
using inner product defined as
enter image description here

Can someone kindly help with the solution?

1

There are 1 best solutions below

3
On BEST ANSWER

Hint: One you have computed the vector $v = x - y$, compute the square of the distance as $$ \|x - y\|^2 = \|v\|^2 = \langle v,v \rangle = v^T\pmatrix{2&1&0\\1&2&-1\\0&-1&2}v. $$ Because this is the square of the distance, you must find the square root of the resulting number to get your answer.