Find quantity of vector projection

  • Context: MHB 
  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Projection Vector
Click For Summary

Discussion Overview

The discussion revolves around calculating the projection of a vector onto a subspace in $\mathbb{R}^3$, specifically focusing on the vector projection and vector rejection concepts. Participants explore different approaches to find the values of expressions involving the components of the projected vector.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant calculates the projection of vector $v=(-1,1,2)$ onto the subspace $W$ orthogonal to $w_1=(-1,-1,1)$ and derives $(x,y,z)=\left( -\frac{2}{3},-\frac{2}{3},\frac{2}{3}\right)$, leading to $7x-11y+5z=6$.
  • Another participant points out that the initial projection was incorrectly calculated as onto $W^\perp$, suggesting the correct formula for projection onto $W$ is $v - \text{proj}_{W^\perp}v$.
  • Using the corrected formula, a participant finds $(x,y,z)=\left( -\frac{1}{3}, \frac{5}{3}, \frac{4}{3}\right)$ and calculates $7x-11y+5z=-14$.
  • In a separate example, a participant attempts to project onto a subspace spanned by two vectors and initially calculates $(x,y,z)=\left( -\frac{2}{3},-\frac{2}{3}, \frac{2}{3}\right)$, resulting in $2x+7y+3z=-4$, questioning the validity of the answer.
  • Another participant suggests that the projection should use the vector projection formula instead of the rejection formula, leading to a revised calculation of $(x,y,z)=\left( -\frac{1}{3}, \frac{5}{3}, \frac{4}{3}\right)$ and $2x+7y+3z=15$.

Areas of Agreement / Disagreement

Participants express differing views on the correct approach to calculating vector projections, with some agreeing on the need for different formulas depending on the context of the vectors involved. The discussion remains unresolved regarding the initial calculations and their correctness.

Contextual Notes

Participants highlight the importance of distinguishing between projections onto a subspace and its orthogonal complement, as well as the need for appropriate formulas based on the vectors' relationships.

evinda
Gold Member
MHB
Messages
3,741
Reaction score
0
Hello! (Wave)

Let $W$ be the subspace of $\mathbb{R}^3$ that is orthogonal to the vector $w_1=(-1,-1,1)$ and $p=(x,y,z)$ the projection of the vector $v=(-1,1,2)$ onto $W$. What is $7x-11y+5z$ equal to?I have thought the following:

$\text{proj}_Wv=\frac{\langle v, w_1\rangle}{\langle w_1, w_1\rangle} w_1 \Rightarrow (x,y,z)=\frac{(-1,1,2) \cdot (-1,-1,1)}{(-1,-1,1) \cdot (-1,-1,1)} (-1,-1,1) =\frac{1-1+2}{1+1+1}(-1,-1,1)=\frac{2}{3}(-1,-1,1)=\left( -\frac{2}{3},-\frac{2}{3},\frac{2}{3}\right)$

Then we get that

$$7x-11y+5z=7 \left( -\frac{2}{3}\right)-11\left( -\frac{2}{3}\right)+5\left( \frac{2}{3}\right)=6$$Have I done something wrong? Because the possible answers are $-4,-12,9,15,-14,13$.
 
Physics news on Phys.org
evinda said:
Hello! (Wave)

Let $W$ be the subspace of $\mathbb{R}^3$ that is orthogonal to the vector $w_1=(-1,-1,1)$ and $p=(x,y,z)$ the projection of the vector $v=(-1,1,2)$ onto $W$. What is $7x-11y+5z$ equal to?I have thought the following:

$\text{proj}_Wv=\frac{\langle v, w_1\rangle}{\langle w_1, w_1\rangle} w_1 \Rightarrow (x,y,z)=\frac{(-1,1,2) \cdot (-1,-1,1)}{(-1,-1,1) \cdot (-1,-1,1)} (-1,-1,1) =\frac{1-1+2}{1+1+1}(-1,-1,1)=\frac{2}{3}(-1,-1,1)=\left( -\frac{2}{3},-\frac{2}{3},\frac{2}{3}\right)$

Then we get that

$$7x-11y+5z=7 \left( -\frac{2}{3}\right)-11\left( -\frac{2}{3}\right)+5\left( \frac{2}{3}\right)=6$$Have I done something wrong? Because the possible answers are $-4,-12,9,15,-14,13$.

Hey evinda!

Your projection on $W$ is actually the projection on $W^\perp$.
Instead we should have:
$$\text{proj}_Wv=v-\text{proj}_{W^\perp}v=v - \frac{\langle v, w_1\rangle}{\langle w_1, w_1\rangle} w_1$$
(Thinking)
 
I like Serena said:
Hey evinda!

Your projection on $W$ is actually the projection on $W^\perp$.
Instead we should have:
$$\text{proj}_Wv=v-\text{proj}_{W^\perp}v=v - \frac{\langle v, w_1\rangle}{\langle w_1, w_1\rangle} w_1$$
(Thinking)

Ah! Is it known that this formula represents the projection of $v$ onto $W$ ? (Thinking)

Using this formula, I got that $(x,y,z)=\left( -\frac{1}{3}, \frac{5}{3}, \frac{4}{3}\right)$ and thus $7x-11y+5z=-14$.
 
evinda said:
Ah! Is it known that this formula represents the projection of $v$ onto $W$ ? (Thinking)

Using this formula, I got that $(x,y,z)=\left( -\frac{1}{3}, \frac{5}{3}, \frac{4}{3}\right)$ and thus $7x-11y+5z=-14$.

It's indeed a known formula and it's called vector rejection.
We can see why it works in this picture:
\begin{tikzpicture}[>=stealth',rotate=10]
%preamble \usetikzlibrary{arrows}
\draw[dashed] (3,0) -- (3,4);
\draw[dashed] (0,-1) -- (0,5) node
{$w_1^\perp$};
\draw[->] (0,0) -- (5,0) node[above] {$w_1$};
\draw[ultra thick,blue,->] (0,0) -- (3,4) node[above] {$v$};
\draw[->] (3,4) -- (0,4);
\draw[thick,->] (0,0) -- node
{$v-\frac{v\cdot w_1}{w_1\cdot w_1}w_1$} (0,4);
\draw[thick,->] (0,0) -- node[below] {$\frac{v\cdot w_1}{w_1\cdot w_1}w_1$} (3,0);
\end{tikzpicture}

The vector $\frac{v\cdot w_1}{w_1\cdot w_1}w_1$ is the so called vector projection.
From the picture we can see how we can construct the vector projection on the perpendicular space.
And if $w_1$ is a vector with length 1, these formulas simplify to $(v\cdot w_1)w_1$ respectively $v-(v\cdot w_1)w_1$. (Nerd)​
 
I like Serena said:
It's indeed a known formula and it's called vector rejection.
We can see why it works in this picture:
\begin{tikzpicture}[>=stealth']
%preamble \usetikzlibrary{arrows}
\draw[dashed] (3,0) -- (3,4);
\draw[dashed] (0,-1) -- (0,5) node
{$w_1^\perp$};
\draw[->] (0,0) -- (5,0) node[above] {$w_1$};
\draw[ultra thick,blue,->] (0,0) -- (3,4) node[above] {$v$};
\draw[->] (3,4) -- (0,4);
\draw[thick,->] (0,0) -- node
{$v-\frac{v\cdot w_1}{w_1\cdot w_1}w_1$} (0,4);
\draw[thick,->] (0,0) -- node[below] {$\frac{v\cdot w_1}{w_1\cdot w_1}w_1$} (3,0);
\end{tikzpicture}

The vector $\frac{v\cdot w_1}{w_1\cdot w_1}w_1$ is the so called vector projection.
From the picture we can see how we can construct the vector projection on the perpendicular space.
And if $w_1$ is a vector with length 1, these formulas simplify to $(v\cdot w_1)w_1$ respectively $v-(v\cdot w_1)w_1$. (Nerd)​


Ok, thanks a lot! (Smirk)​
 
With the same logic, I wanted to solve the following:

Let $W$ the subspace of $\mathbb{R}^3$ that is spanned by $w_1=(1,-1,0)$, $w_2=(1,1,2)$ and $p=(x,y,z)$ the projection of the vector $v=(-1,1,2)$ onto $W$. What is the number $2x+7y+3z$ equal to?

Using the formula, I got that

$$(x,y,z)=(-1,1,2)- \left( \frac{(-1,1,2) \cdot (1,-1,0)}{(1,-1,0) \cdot (1,-1,0)}(1,-1,0)+\frac{(-1,1,2) \cdot (1,1,2)}{(1,1,2) \cdot (1,1,2)}(1,1,2)\right)=\left( -\frac{2}{3},-\frac{2}{3}, \frac{2}{3}\right)$$

Then $2x+7y+3z=-4$. But this isn't a possible answer... (Worried)

Have I done something wrong? (Thinking)
 
evinda said:
With the same logic, I wanted to solve the following:

Let $W$ the subspace of $\mathbb{R}^3$ that is spanned by $w_1=(1,-1,0)$, $w_2=(1,1,2)$ and $p=(x,y,z)$ the projection of the vector $v=(-1,1,2)$ onto $W$. What is the number $2x+7y+3z$ equal to?

Using the formula, I got that

$$(x,y,z)=(-1,1,2)- \left( \frac{(-1,1,2) \cdot (1,-1,0)}{(1,-1,0) \cdot (1,-1,0)}(1,-1,0)+\frac{(-1,1,2) \cdot (1,1,2)}{(1,1,2) \cdot (1,1,2)}(1,1,2)\right)=\left( -\frac{2}{3},-\frac{2}{3}, \frac{2}{3}\right)$$

Then $2x+7y+3z=-4$. But this isn't a possible answer... (Worried)

Have I done something wrong? (Thinking)

This time round we have vectors that span $W$ instead of being perpendicular to $W$.
So we need the vector projection formula instead of the vector rejection formula.

Alternatively we can find the vector $n$ that is perpendicular to both $w_1$ and $w_2$, and then we can use the vector rejection formula. (Thinking)
 
I like Serena said:
This time round we have vectors that span $W$ instead of being perpendicular to $W$.
So we need the vector projection formula instead of the vector rejection formula.

Alternatively we can find the vector $n$ that is perpendicular to both $w_1$ and $w_2$, and then we can use the vector rejection formula. (Thinking)

Ah ok... So we have that $(x,y,z)=\frac{(-1,1,2) \cdot (1,-1,0)}{(1,-1,0) \cdot (1,-1,0)}(1,-1,0)+\frac{(-1,1,2) \cdot (1,1,2)}{(1,1,2) \cdot (1,1,2)} \cdot (1,1,2)=\left( -\frac{1}{3}, \frac{5}{3}, \frac{4}{3}\right)$ and thus $2x+7y+3z=15$, right? (Thinking)
 
evinda said:
Ah ok... So we have that $(x,y,z)=\frac{(-1,1,2) \cdot (1,-1,0)}{(1,-1,0) \cdot (1,-1,0)}(1,-1,0)+\frac{(-1,1,2) \cdot (1,1,2)}{(1,1,2) \cdot (1,1,2)} \cdot (1,1,2)=\left( -\frac{1}{3}, \frac{5}{3}, \frac{4}{3}\right)$ and thus $2x+7y+3z=15$, right? (Thinking)

Yep. (Nod)
 
  • #10
I like Serena said:
Yep. (Nod)

Nice... thank you (Smirk)
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
31
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
4
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K