Calculating Vector Distance in R^n Using Dot Product - Homework Solution

  • Thread starter Thread starter phrygian
  • Start date Start date
  • Tags Tags
    Vectors
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
phrygian
Messages
77
Reaction score
0

Homework Statement



Let x and y be vectos in R^n such that ||x|| = ||y|| = 1 and x^T * y = 0. Use Eq. (1) to show that ||x-y|| = sqrt(2).

Homework Equations



Eq. (1): ||x|| = sqrt(x^T * X)

The Attempt at a Solution



I could figure this out knowing that the dot product of the vectors is zero so the are perpendicular, the two sides of the triangle are 1 so the distance is sqrt(2) but this problem wants the answer to be found with Eq. (1) and I don't know how to do that and how to find ||x-y||.

Thanks for the help
 
Physics news on Phys.org
phrygian said:

Homework Statement



Let x and y be vectos in R^n such that ||x|| = ||y|| = 1 and x^T * y = 0. Use Eq. (1) to show that ||x-y|| = sqrt(2).

Homework Equations



Eq. (1): ||x|| = sqrt(x^T * X)

The Attempt at a Solution



I could figure this out knowing that the dot product of the vectors is zero so the are perpendicular, the two sides of the triangle are 1 so the distance is sqrt(2) but this problem wants the answer to be found with Eq. (1) and I don't know how to do that and how to find ||x-y||.

Thanks for the help
Your formula says that ||x- y||= [itex]\sqrt{(x- y)^T(x- y)}= \sqrt{x^Tx- x^Ty- y^Tx+ y^Ty}[/itex]. Both [itex]x^Ty[/itex] and [itex]y^Tx[/itex] are 0.