#Orthogonal Projection Matrix
231 messages · Page 1 of 1 (latest)
- Do not ping the Moderators, unless someone is breaking the rules.
- Do not ping the Helper Moderators, unless there is a conflict between helpers.
- Do not ping other members randomly for help.
- Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
- Wait patiently for a helper to come along.
- If the Helper has answered your question, remember to thank them with the Mathematics Ranks bot and close the thread with:
+close
Feel free to nominate the person for helper of the week in #helper-nominations
If you're happy with the help you got here, and the server overall, you can contribute financially as well:
unfortunately my professor has not gone over anything like this in class :/
i should say i'm working on 4a.a
my guess is so show something is the sum of proj_{e1}(v) + proj_{e2}(v)
or something like that
This may be useful to you.
https://math.stackexchange.com/questions/112728/how-do-i-exactly-project-a-vector-onto-a-subspace/112743#112743
would i be able to find the columns of that matrix with that? bc as far as i know that's the equation for a vector in w
Well, do you know how you can represent dot products with matrices?
oh shoot
In any case, you can try to adapt that to the formula in the post I shared above.
I haven't done it myself, but it should work.
i'll try that, thank you! can i leave this open while i try it?
Of course!
oh one more question, should i be saying the vector (in the link you sent) should be a matrix?
i believe i understood you wrong bc i'm stuck
bc for a 2 by 2 matrix (a, b, c, d) i got that v in the basis w is a + d, which doesnt sound right at all
Hm...
Try stacking vectors in some way.
As in, by rows or columns.
or maybe i should be doing a vector in R3 actually
Then it will be a matrix.
i'll try a matrix 3 x 2 matrix (v1, u1, v2, u2, v3, u3)
oh i see what i did wrong
i used e1 and e2 in terms of R2 instead of R3
okay so i got the projection of v in W is (u1, v1) + (u2, v2)
What are u1, v1, u2 and v2, again?
theyre the original entries from the original matrix i used
(v1 u1)
(v2 u2)
(v3 u3)
i stacked 2 arbitrary vectors in R3
i have a feeling that wasnt the right thing to do now 💀
Oh, that's what you mean.
i think i found a theorem we havent gone over in class that might help?
the dash is how they denote a dot product
since W has an orthogonal basis
just need to show its orthonormal maybe?
Yeah, orthonomality is needed, I believe.
perfect!
oh well we know its orthonormal bc theyre bases
so their magnitude must be 1?
and its given that theyre orthogonal?
no wait thats not right
oh wait we know W is orthonormal bc they have the std basis vectors have magnitude 1 and are orthogonal
yep that makes sense
and so each of those results being summed up can be a column in our matrix?
or would sum ui*ui^t be our matrix
hmm, okay
But, as you can see here, the vectors do need to be normalized.
yeah exactly
Oh, I found a version where that's not needed.
In that case the matrix becomes U(U^T U)^(-1) U^T.
ill try that way bc ive seen that equation mentioned before
possibly!
hm i think i just want to go with U^TU
i just dont know how to derive that honestly
Yeah, same. I did derive it some time ago myself, but I don't quite remember how to do that now.
thats super fair
I wonder if it's possible to reason about the properties of this matrix just from this form.
As in, only 0 and 1 as eigenvalues, etc.
thats what the next question is about
i have to show that the only possible eigenvalues are 0 and 1
and that A^2 = A
this is hurting my head though, im so confused
wait i think i did this wrong
if {b1,...,bk} are the orthonormal bases
and n = 3
wait no nvm
we're doing that rn
my only issue is we have now have the matrix of W terms of W, which is just [e1 e2]
i just want to say rhats the matrix 😭
Well, this one is actually easy if you use A = U(U^T U)^(-1) U^T.
As for eigenvectors/-values... Well, maybe geometric interpretation can help?
Any vector in the subspace stays where it was, while every vector perpendicular to it becomes zero.
Yeah, I see.
bc i have to use my previous work
I'm a bit rusty on the theoretical linear algebra stuff, as I don't really use it specifically. I just use formulas.
I'm a chemical technology student, so the applications are more important for me, usually.
i wish! this is an elementary linear algebra class
On a theoretical standpoint, this is the characterization of a projection
a linear map f: V -> V is a projection if and only if f² = f
exactly
But I'm assuming that you don't have access to basic linalg?
nope
my professor is very focused on proofs, which is very different from the other professors
anyway, i need to work on this matrix problem
What do you realistically have access to?
as in, how do you define a projection, and how do you define an orthogonal projection?
well we have a projectionon a vector in an orthogonal basis as the sum of the projections in each basis on that vector
you kind of have something circular here
so you define orthogonal projections only?
as in, you don't concretely define projections even
that is... exotic
Why? That's also how I learned about projections.
Well, (I am biased but) I find it quite atypical to start from orthogonal projections, without going through projections in general
since when you start with linear algebra, you might not have a good idea of the geometry of the vector space you work with
meaning that a notion of orthogonality might not be properly defined
well we know what orthogonality is
but that matters not, I'm here to help you out
First of all, to show that if A is an orthogonal projection matrix, then A^2 = A
thats a future problem
and i need to finish the one im working on now to be able to do it 😭
Alright so
4b?
for 4a, I think you can pretty much eyeball it, let me explain
you have a vector in 3D, say v = [x, y, z]
and you want a transformation that projects v on Span(e1, e2), i.e. that sets the third coordinate to zero and leaves the other two as is
so its [e1 e2 0]?
Moreover, if you do (4a) using the most fundamental approach - seeing the action on orts - you can even find out what the eigenvectors are.
pretty much, yeah, but you gotta verify that your guess is correct
okay, so i can verify by computing U*U^T and see if that gets us the same answer as proj_w(v) in equation 4?
.
well if U U^T is your projection matrix, you have to verify that: [x, y, 0]^T = U U^T v = <e1, v>e1 + <e2, v> e2 + <0, v> 0
which leads to question 4b
if you have a vector v, then if you express v in a certain basis B, the orthogonal projection will set some of the coordinates in that specific basis to zero, and leave the rest as is
and that v is still [x, y, 0]^T?
nah, I think question 4b wants you to generalize
that makes more sense
v = [x1, ..., x_n] in the standard basis
but it can be, say, v ~ [y_1, ..., y_n] in another basis
yes yes
and a projection would just seek to set some of the y_i to zero
the question is, which basis?
yes
Think about that, and it'll give you good answer elements for question 4b
i dont know how we would continue i'll be honest
we know that it needs to somehow have orthogonal columns in it i think?
since the 0 blocks
You can always construct an orthogonal basis of any subspace, the question revolves entirely on how
we havent learned about the grant schmidt process yet unfortunately

Ok, what about: construct a basis (not even orthogonal) of a vector space?
i know that yes
sick
so the point is, you project on a subspace W
so what you want to do first of all is to get a basis of W composed of unit norm vectors
say, (w_1, ..., w_k)
yep
then you can complete it with some more vectors to make a basis of R^n
(w_1, ..., w_k, v_1, ..., v_l)
the point is that a projection on W will have no coordinate in v_1, ..., v_l
as it can be expressed directly as a linear combination of w_1, ..., w_k
and not just that, but the coordinates on w_1, ..., w_k don't change
yeah that makes sense
hm, okay
in this basis
well my immediate guess is to go (w_1, ... ,w_k, 0, 0, ... )
if you're listing the coordinates by column
then the first k columns wouldn't be w_1, ..., w_k no
i dont know i'll be completely honest
remember that this is a coordinate system
for example, x ~ [x_1, ..., x_k, ..., x_n] expressed in this basis
basically means that x = x_1 w_1 + ... + x_k w_k + ... + x_n v_l
the point is that now, the projection Px will be x_1 w_1 + ... + x_k w_k
oh yes that makes sense
so its new coordinates in that basis are [x_1, ..., x_k, 0, ..., 0]
so why was my original suggestion wrong?
Now question of the century: what matrix turns [x_1, ..., x_k, ..., x_n] into [x_1, ..., x_k, 0, ..., 0] ?
if you can answer that, then you got what you were looking for
it's similar to what we did earlier: what matrix turns [x, y, z] into [x, y, 0] ?
yeah, simple and easy
the question is just about presenting it a bit better than I did, with the tools of your lecture notes
simple and easy 😭
but that's the idea
you construct a basis of W, complete it however you want
then the projection matrix in that full basis is just that
for the reasons I specified
okay, please dont get mad, so my guess is if we have any orthonormal basis for W, the projection is always similar to that block matrix?
i'm so sorry if thats wrong
it doesn't matter if it's orthogonal or not
getting an orthonormal basis of W is done with the gram schmidt process
but you told me you can't use it
yeah unfortunately
so you just need a basis change even if the new basis is not orthonormal
basis changes are invertible
so it's fine
but yes, to answer your question, no matter the basis of W that is selected, and how it is completed
the projection matrix in that basis will look like that
you don't need to write the basis change matrix explicitly
as said in the question, it suffices to show what basis would lead to such a representation
Please thank the helpers who assisted you by clicking the buttons below. You can thank each helper only once. Once you're done, click "Close Post" to close this thread.
Thank you for your feedback! Rion has been awarded 1
. They now have 64
. They have 3
daily left for today.
Thank you for your feedback! LordDarpinger has been awarded 1
. They now have 910
. They have 2
daily left for today.
