Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

So my question has two parts:

a) Let L be a line given by y=2x, find the projection of $\vec{x}$=$\begin{bmatrix}5\\3\end{bmatrix}$ onto the line L.

So, for this one:

proj$_L$($\vec{x}$) = $\frac{\vec{x}\bullet \vec{y}}{\vec{y}\bullet \vec{y}}$$\times \vec{y}$ = $\frac{(\begin{bmatrix}5\\3\end{bmatrix} \bullet \begin{bmatrix}2\\1\end{bmatrix}}{(\begin{bmatrix}2\\1\end{bmatrix} \bullet \begin{bmatrix}2\\1\end{bmatrix}} ) \times \begin{bmatrix}2\\1\end{bmatrix}$ = $\frac{13}{5} \times \begin{bmatrix}2\\1\end{bmatrix}$ = \begin{bmatrix}5.2\\2.6\end{bmatrix}

b) using the above, find the sitance between L and the terminal point of x.

Here is where I am stuck... my instinct is to just do:

$\begin{bmatrix}5\\3\end{bmatrix} - \begin{bmatrix}5.2\\2.6\end{bmatrix}$ = $\begin{bmatrix}-.2\\.4\end{bmatrix}$

but I'm sure this is incorrect... how would I solve this?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Yes, yes, almost done. You need the length of this distance vector, use Pythagorean theorem.

One moment, your line is $y=2x$, then it rather contains $\pmatrix{1\\2}$ than $\pmatrix{2\\1}$ (and its normalvector is $\pmatrix{2\\-1}$)..

share|improve this answer
    
So I would take the dot product of the projection and the vector x, and then divide that by the length of the vectors? (aka (proj DOT x) / (||proj||*||x||)) ? –  gfppaste Nov 29 '12 at 0:48
    
Your $\vec y$ is rather $\pmatrix{1\\2}$. It will give a bit different solution. Then calculate the difference vector and its length by $||v||=\sqrt{v\cdot v}$. Unless I miscalculated, the distance is $\displaystyle\frac7{\sqrt5}$. –  Berci Nov 29 '12 at 0:52
    
how did you arrive at $\frac{7}{\sqrt{5}}$ ? I know where the $\sqrt{5}$ came from, but how did you arrive at 7 in the numerator? –  gfppaste Nov 29 '12 at 1:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.