Linear Algebra - Projection of Vector

1 reply · 2K views · last reply
YoshiMoshi
Messages
233
Reaction score
10

Homework Statement



I feel like this is a easy question but it seems the answer key doesn't seem to be right.

So say I have 2 vectors

Two column vectors: u equals [1, 2, 3, 4] transposed as a column, and v equals [1, 0, -1, 0] as a column.


and I'm trying to find the projection of vector u perpendicular to the vector v

Homework Equations

The Attempt at a Solution



So I don't remember doing something like this before but I would assume that I start off by finding the projection of u in direction of v

Formula for the projection of vector u onto vector v: v-parallel equals the inner product of u and v divided by the squared norm of v, multiplied by v.

alright so this gives me
Handwritten-style equation computing a projection: (1(1) + 2(0) + 3(-1) + 4(0)) divided by (sqrt(1^2 + 2^2 + 3^2 + 4^2))^2, times the column vector (1, 2, 3, 4), equals -2/30 times that vector, which equals -1/15 times the vector.


So conceptually thinking I see that I have a vector u and a vector V|| sort of like this

Handwritten vector diagram with vector u drawn from a common origin, and vector v drawn horizontally to the right. Dashed lines show the component of u along v, labelled v parallel, and the component perpendicular to v, labelled v perpendicular.

So I can find the angle between u and V and I get 104.963 degrees

Handwritten calculation on paper: a row of a matrix reading 0 -4 0, then 1/0 leading to -2/(sqrt(3) sqrt(3)) = -sqrt(2/3)/sqrt(3)... the cosine of theta computed as -1/sqrt(15), giving theta = 104.963 degrees.


So to get the perpendicular component is it just

tan(theta) = (V perpendicular)/(V parallel)
so V perpendicular is
(V parallel)tan(theta) = V perpendicular?

Handwritten calculation: tan(104.963)° times (-1/15) times the column vector (1, 2, 3, 4), approximately equal to 4.354 times 10 to the power -3 times the column vector (1, 2, 3, 4). Above it, a dashed arrow labelled v with a v-parallel arrow.


I think is conceptually ok but I'm not sure because my answer key does V - V parallel which would appear to be wrong in my opinion because I don't see how that would give us V perpendicular, unless I'm not understanding what vector I'm looking for.

Thanks for any help.
 
I see that apparently the answer key is correct and see why never mind