Linear Algebra - Projecting a vector onto another

TheTraveler

New member
Joined
May 7, 2022
Messages
4
Hi all!
I was studying a demonstration about vectors projections and it starts with this image:

projection.jpg

The demonstration starts solving by v|| and it says that:

[math]\mathbf{v}_\| = \mathbf{n}(\| \mathbf{v}_\|\| / \| \mathbf{n}\|)[/math]
and this is the unclear step.
I tried to unroll this step (which is not explained in the demonstration) and I thought about using the dot product:

[math]\mathbf{n} \cdot \mathbf{v}_\| = \|\mathbf{n}\| * \|\mathbf{v}_\|\| * \cos\theta[/math]
and, because the two vectors are parallels, the angle is 0 and the cosine is 1, so it results:

[math]\mathbf{n} \cdot \mathbf{v}_\| = \|\mathbf{n}\| * \|\mathbf{v}_\|\|[/math]
but from here on out I don't really understand how to proceed to obtain the first step. Any suggestion? I know it's probably a stupid thing but I cannot figure it out ?
 
Hi all!
I was studying a demonstration about vectors projections and it starts with this image:

View attachment 32627

The demonstration starts solving by v|| and it says that:

[math]\mathbf{v}_\| = \mathbf{n}(\| \mathbf{v}_\|\| / \| \mathbf{n}\|)[/math]
and this is the unclear step.
I tried to unroll this step (which is not explained in the demonstration) and I thought about using the dot product:

[math]\mathbf{n} \cdot \mathbf{v}_\| = \|\mathbf{n}\| * \|\mathbf{v}_\|\| * \cos\theta[/math]
and, because the two vectors are parallels, the angle is 0 and the cosine is 1, so it results:

[math]\mathbf{n} \cdot \mathbf{v}_\| = \|\mathbf{n}\| * \|\mathbf{v}_\|\|[/math]
but from here on out I don't really understand how to proceed to obtain the first step. Any suggestion? I know it's probably a stupid thing but I cannot figure it out ?
In my opinion, you have the correct picture in your mind. Dot product IS the projection of one vector onto the other.

Projection of A onto B = \(\displaystyle \frac{A \cdot B}{||B||}\)
 
In my opinion, you have the correct picture in your mind. Dot product IS the projection of one vector onto the other.

Projection of A onto B = \(\displaystyle \frac{A \cdot B}{||B||}\)

Thank you for the reply!
So in my case:

[math]\mathbf{proj_nv_\|} = \mathbf{v_\|} = \frac {\mathbf{v}_\| \cdot \mathbf{n}}{{\|\mathbf{n}\|^2}} \mathbf{n} = \frac{\|\mathbf{v}_\|\| \|\mathbf{n}\|}{\|\mathbf{n}\|^2}\mathbf{n} = \frac{\|\mathbf{v}_\|\|}{\|\mathbf{n}\|}\mathbf{n}[/math]
If so, the thing that got me confused is that the demonstration starts using the formula it wants to demonstrate but without making it explicit :D
 
Last edited:
I believe you are missing this formula: [math]\mathbf v_{||} = \mathbf n \frac{\mathbf v\cdot \mathbf n}{||\mathbf n||^2}[/math]
 
If so, the thing that got me confused is that the demonstration starts using the formula it wants to demonstrate but without making it explicit
It may be helpful if you show us everything it says up to the point you are asking about, so we can be sure we understand the context, and possibly correct some misunderstanding about the flow of thought. We need to know what is known at this point in the argument.
 
Ok, these are the concepts explained before the projection paragraph:
- Zero vector
- Negating a vector
- Magnitude
- Vector multiplication by a scalar
- Normalization
- Vector addition and subtraction
- Distance formula
- Dot product

After the last point, the book starts to explaine the projection:


proj.jpg

Only at the end it shows the projecting formula, so I miss from where the demonstration starts
 
V|| and n are in the same direction.
So V|| is a scalar multiple of n. That is V|| = kn, for some scalar n.

Now vector n has some length and if we divide n by its length, then we get a vector of length 1 in the direction of vector n (and vector V||). We can accomplish this as n/|n|. So we have a vector n/|n| whose length is 1. But we do not want the length in the end to be 1, we want it to be the length of V||, namely |V|||. Now (n/|n|) |V||| = (|n|/ |V|||)n has a length of |V|||. So V = (|n|/ |V|||)n
 
V|| and n are in the same direction.
So V|| is a scalar multiple of n. That is V|| = kn, for some scalar n.

Now vector n has some length and if we divide n by its length, then we get a vector of length 1 in the direction of vector n (and vector V||). We can accomplish this as n/|n|. So we have a vector n/|n| whose length is 1. But we do not want the length in the end to be 1, we want it to be the length of V||, namely |V|||. Now (n/|n|) |V||| = (|n|/ |V|||)n has a length of |V|||. So V = (|n|/ |V|||)n

Hi Steven, thank you for the reply!
I knew I was missing a simple thing: so it's just a combination of normalization and multiplication by a scalar.
I was so focused on the dot product that I didn't think about anything else ?
Thank you all!
 
I was studying a demonstration about vectors projections and it starts with this image:
View attachment 32627
If each of [imath]{\bf{v}}~\&~{\bf{n}}[/imath][imath][/imath] is a non-zero vector then [imath]{\bf{v}}[/imath] can be resolved into the
sum of two vectors, one, [imath]{\bf{v_{||}}}[/imath], parallel to [imath]{\bf{n}}[/imath] the other,[imath]{\bf{v_{\bot}}}[/imath], perpendicular to [imath]{\bf{n}}[/imath].
This is taken from Introduction to Vector Analysis by Davis & Snider
that is to say that [imath]{\bf{v}}={\bf{v_{||}}}+{\bf{v_{\bot}}}[/imath] moreover [imath]\bf{v}=\alpha{\bf{v_{||}}}~\text{ and }~\bf{v}{\bf{\cdot v_{\bot}}}=0[/imath].
If the notation [imath]\|\bf{v}\|[/imath] stands for the length of [imath]\bf{v}[/imath][imath][/imath][imath][/imath][imath][/imath] then [imath] \|\bf{v}_{\|}\|=\dfrac{|\bf{v}\cdot\bf{n}|}{\|\bf{n}\|}[/imath] and [imath] \|\bf{v}_{\bot}\|=\dfrac{\|\bf{v}\times\bf{n}\|}{\|\bf{n}\|}[/imath]
[imath][/imath][imath][/imath][imath][/imath][imath][/imath]
 
Hi Steven, thank you for the reply!
I knew I was missing a simple thing: so it's just a combination of normalization and multiplication by a scalar.
I was so focused on the dot product that I didn't think about anything else ?
Thank you all!
Just understand that what you call normalization is also a scalar. That scalar is (1/|n|)
 
@Subhotosh Khan in post number 7 above, on the 2nd line can you please change that very last letter, n, to a k. Also in my last line, please replace (|n|/ |V||) which is written twice with (|V||/|n|)
Then remove this post.
Thank you!
 
Top