5. Vectors

d. Dot Product

Recall the vector projections:

def_ProjAcutedef_ProjObtuse
where   p=projuv=vuu2u\vec p=\text{proj}_{\vec u}\vec v=\dfrac{\vec v\cdot\vec u}{|\vec u|^2}\,\vec u   and   q=projuv=vp\vec q=\text{proj}_{\perp\vec u}\vec v=\vec v-\vec p.

6. Scalar Projections

It is sometimes also useful to define scalar projections (also called components) of v\vec v parallel and perpendicular to u\vec u. These are the lengths of the vector projections with the exception that for an obtuse angle the parallel component is the negative of the length so that the sign of the component tells whether the projection is in the same or opposite direction as u\vec u. Thus:

Scalar Projections or Components
The component or scalar projection of the vector v\vec v parallel to the direction of u\vec u is denoted by compuv\text{comp}_{\vec u}\vec v while the component or scalar projection of the vector v\vec v perpendicular to the direction of u\vec u is denoted by compuv\text{comp}_{\perp\vec u}\vec v. compuv={projuvif θ is acuteprojuvif θ is obtuse(*)compuv=projuv\begin{aligned} \text{comp}_{\vec u}\vec v &=\begin{cases} |\text{proj}_{\vec u}\vec v|&\text{if } \theta \text{ is acute} \\ -|\text{proj}_{\vec u}\vec v|&\text{if } \theta \text{ is obtuse} \qquad \text{(*)} \end{cases} \\ \text{comp}_{\perp\vec u}\vec v &=|\text{proj}_{\perp\vec u}\vec v| \end{aligned}

Again we would like to have computational fomulas for the components.

Parallel and Perpenducular Scalar Projections
The component or scalar projection of v\vec v parallel to u\vec u is compuv=vcosθ=vuu \text{comp}_{\vec u}\vec v =|\vec v|\cos\theta =\dfrac{\vec v\cdot\vec u}{|\vec u|} The component or scalar projection of v\vec v perpenducular to u\vec u is compuv=vsinθ=v2(compuv)2 \text{comp}_{\perp\vec u}\vec v =|\vec v|\sin\theta =\sqrt{|\vec v|^2-\left(\text{comp}_{\vec u}\vec v\right)^2}

def_ProjAcutedef_ProjObtuse
where   p=projuv\vec p=\text{proj}_{\vec u}\vec v   and   q=projuv\vec q=\text{proj}_{\perp\vec u}\vec v.  

From the diagram, we have: cosθ={projuvvif θ is acuteprojuvvif θ is obtuseandsinθ=projuvv \cos\theta =\begin{cases} \dfrac{|\text{proj}_{\vec u}\vec v|}{|\vec v|}&\text{if } \theta \text{ is acute} \\ -\,\dfrac{|\text{proj}_{\vec u}\vec v|}{|\vec v|}&\text{if } \theta \text{ is obtuse} \end{cases} \qquad \text{and} \qquad \sin\theta=\dfrac{|\text{proj}_{\perp\vec u}\vec v|}{|\vec v|} since in the obtuse case the cosθ\cos\theta needs to be negative. Solving for the magnitudes of the projections, we have: projuv={vcosθif θ is acutevcosθif θ is obtuseandprojuv=vsinθ |\text{proj}_{\vec u}\vec v| =\begin{cases} |\vec v|\cos\theta&\text{if } \theta \text{ is acute} \\ -|\vec v|\cos\theta&\text{if } \theta \text{ is obtuse} \end{cases} \qquad \text{and} \qquad |\text{proj}_{\perp\vec u}\vec v|=|\vec v|\sin\theta Combining this with the definition (*) gives: compuv=vcosθandcompuv=vsinθ \text{comp}_{\vec u}\vec v=|\vec v|\cos\theta \qquad \text{and} \qquad \text{comp}_{\perp\vec u}\vec v=|\vec v|\sin\theta Notice that, in the obtuse case, the minus signs cancelled.

For the parallel component, we use the identity cosθ=vuvu\cos\theta=\dfrac{\vec v\cdot\vec u}{|\vec v|\,|\vec u|} to get: compuv=vuu \text{comp}_{\vec u}\vec v=\dfrac{\vec v\cdot\vec u}{|\vec u|}

For the perpendicular component, we use the Pythagorean identity in the diagram above to get: compuv=v2(compuv)2 \text{comp}_{\perp\vec u}\vec v =\sqrt{|\vec v|^2-\left(\text{comp}_{\vec u}\vec v\right)^2}

[×]

Find the components of the vector w=3,11\vec w=\left\langle -3,11\right\rangle parallel and perpendicular to the vector v=1,3\vec v=\left\langle 1,3\right\rangle. Is the angle between v\vec v and w\vec w acute or obtuse?

The parallel component is: compvw=wvv=3,111,31,3=3010=310\begin{aligned} \text{comp}_{\vec v}\vec w &=\dfrac{\vec w\cdot\vec v}{|\vec v|} =\dfrac{\left\langle -3,11\right\rangle\cdot\left\langle 1,3\right\rangle} {|\left\langle 1,3\right\rangle|} \\ &=\dfrac{30}{\sqrt{10}}=3\sqrt{10} \end{aligned} And the perpendicular component is: compvw=w2(compvw)2=9+12190=40=210\begin{aligned} \text{comp}_{\perp\vec v}\vec w &=\sqrt{|\vec w|^2-\left(\text{comp}_{\vec v}\vec w\right)^2} \\ &=\sqrt{9+121-90}=\sqrt{40}=2\sqrt{10} \end{aligned} Since compvw=310>0\text{comp}_{\vec v}\vec w=3\sqrt{10} \gt 0, the angle is acute.

We check. From a example on the previous page, we have projvw=3,9andprojvw=6,2 \text{proj}_{\vec v}\vec w=\left\langle 3,9\right\rangle \qquad \text{and} \qquad \text{proj}_{\perp\vec v}\vec w=\left\langle -6,2\right\rangle So the components are: compvw=±projvw=±9+81=±90=310\begin{aligned} \text{comp}_{\vec v}\vec w&=\pm|\text{proj}_{\vec v}\vec w| \\ &=\pm\sqrt{9+81}=\pm\sqrt{90}=3\sqrt{10} \end{aligned} (We need the plus sign since the angle is acute.) compvw=projvw=36+4=40=210\begin{aligned} \text{comp}_{\perp\vec v}\vec w&=|\text{proj}_{\perp\vec v}\vec w| \\ &=\sqrt{36+4}=\sqrt{40}=2\sqrt{10} \end{aligned} Also notice w=32+112=130|\vec w|=\sqrt{3^2+11^2}=\sqrt{130} and (compvw)2+(compvw)2=902+402=130 \sqrt{(\text{comp}_{\vec v}\vec w)^2+(\text{comp}_{\perp\vec v}\vec w)^2} =\sqrt{\sqrt{90}^{\,2}+\sqrt{40}^{\,2}}=\sqrt{130}

Computing the length of the perpendicular projection is another good way to compute the perpendicular component. However, computing the length of the parallel projection will not tell you if the parallel component is positive or negative. For that, you must compute the dot product or use geometry to see if the angle is acute or obtuse.

Find the components of the vector a=7,4\vec a=\left\langle 7,-4\right\rangle parallel and perpendicular to the vector b=1,2\vec b=\left\langle -1,2\right\rangle. Is the angle between b\vec b and a\vec a acute or obtuse?

Answer

compba=35\text{comp}_{\vec b}\vec a=-3\sqrt{5}

compba=25\text{comp}_{\perp\vec b}\vec a=2\sqrt{5}

The angle is obtuse.

[×]

Solution

The parallel component is: compba=abb=7,41,21,2=155=35\begin{aligned} \text{comp}_{\vec b}\vec a &=\dfrac{\vec a\cdot\vec b}{|\vec b|} =\dfrac{\left\langle 7,-4\right\rangle\cdot\left\langle -1,2\right\rangle} {|\left\langle -1,2\right\rangle|} \\ &=\dfrac{-15}{\sqrt{5}}=-3\sqrt{5} \end{aligned} And the perpendicular component is: compba=a2(compba)2=49+1645=20=25\begin{aligned} \text{comp}_{\perp\vec b}\vec a &=\sqrt{|\vec a|^2-\left(\text{comp}_{\vec b}\vec a\right)^2} \\ &=\sqrt{49+16-45}=\sqrt{20}=2\sqrt{5} \end{aligned} Since compba=35<0\text{comp}_{\vec b}\vec a=-3\sqrt{5} \lt 0, the angle is obtuse.

[×]

Check

We check. From the exercise on the previous page, we have projba=3,6andprojba=4,2 \text{proj}_{\vec b}\vec a=\left\langle 3,-6\right\rangle \qquad \text{and} \qquad \text{proj}_{\perp\vec b}\vec a=\left\langle 4,2\right\rangle So the components are: compba=±projba=±9+36=±45=35\begin{aligned} \text{comp}_{\vec b}\vec a&=\pm|\text{proj}_{\vec b}\vec a| \\ &=\pm\sqrt{9+36}=\pm\sqrt{45}=-3\sqrt{5} \end{aligned} (We need the minus sign since the angle is obtuse.) compba=projba=16+4=20=25\begin{aligned} \text{comp}_{\perp\vec b}\vec a&=|\text{proj}_{\perp\vec b}\vec a| \\ &=\sqrt{16+4}=\sqrt{20}=2\sqrt{5} \end{aligned}

[×]

© 2025 MYMathApps

Supported in part by NSF Grant #1123255