Problem on finding a vector projection
$\newcommand{\bfA}{\mathbf{A}}$ $\newcommand{\bfB}{\mathbf{B}}$ $\newcommand{\bfC}{\mathbf{C}}$ $\newcommand{\bfF}{\mathbf{F}}$ $\newcommand{\bfI}{\mathbf{I}}$ $\newcommand{\bfa}{\mathbf{a}}$ $\newcommand{\bfb}{\mathbf{b}}$ $\newcommand{\bfc}{\mathbf{c}}$ $\newcommand{\bfd}{\mathbf{d}}$ $\newcommand{\bfe}{\mathbf{e}}$ $\newcommand{\bfi}{\mathbf{i}}$ $\newcommand{\bfj}{\mathbf{j}}$ $\newcommand{\bfk}{\mathbf{k}}$ $\newcommand{\bfn}{\mathbf{n}}$ $\newcommand{\bfr}{\mathbf{r}}$ $\newcommand{\bfu}{\mathbf{u}}$ $\newcommand{\bfv}{\mathbf{v}}$ $\newcommand{\bfw}{\mathbf{w}}$ $\newcommand{\bfx}{\mathbf{x}}$ $\newcommand{\bfy}{\mathbf{y}}$ $\newcommand{\bfz}{\mathbf{z}}$
Compute the vector projection of $\bfi$ onto $\bfi + \bfj$.
Solution
Recall that
Vector projections
The vector projection of $\bfx$ onto $\bfv$ is the vector given by the multiple of $\bfv$ obtained by dropping down a perpendicular line from $\bfx$.
Instead of just recalling the formula for $\text{proj}_\bfv \bfx$, we will construct it.
Suppose the angle between $\bfx$ and $\bfv$ is $\theta$. Then,
Vector projections
The vector projection $\text{proj}_\bfv \bfx$ is the vector of length $\left| \bfx \right| \cos \theta$ that is in the direction of $\bfv$.
Recall that
Definition of the direction of a vector
The direction of $\bfv$ is given by $\text{dir } \bfv = \frac{\bfv}{\left| \bfv \right|}.$
Building a vector from its length and direction
To construct a vector $\bfy$ from its length $\left|\bfy\right|$ and direction $\text{dir } \bfy$, use the same formula: $\bfy = \left| \bfy \right| \text{ dir } \bfy.$
The vector of length $\left| \bfx \right| \cos \theta$ that is in the direction of $\bfv$ is $$\text{proj}_\bfv \bfx = \left| \bfx \right| \cos \theta \frac{\bfv}{\left| \bfv \right|}.$$
Dot product angle formula
To express this formula in terms of dot products, we recall that $$\bfx \cdot \bfy = \left|\bfx\right| \left|\bfv \right| \cos \theta.$$
Hence we arrive at the formula for vector projection: $$\text{proj}_\bfv \bfx = (\bfx \cdot \bfv) \frac{\bfv}{\left| \bfv \right|^2}.$$
Direct computation of dot product
Length of a vector
With $\bfx = \bfi$ and $\bfv = \bfi + \bfj$, we compute that \begin{align}
\bfx \cdot \bfv &= 1, \\
\left| \bfv \right| &= \sqrt{2}.
\end{align}
Hence, $$\text{proj}_\bfv \bfx = \frac{\bfi + \bfj}{2}.$$
Related topics
Multivariable calculus
(147 problems)
Vectors
(55 problems)
Length of a vector
(32 problems)
Direction of a vector
(9 problems)
The direction of a vector $\mathbf{x}$ is defined by $\text{dir } \mathbf{x} = \frac{\mathbf{x}}{| \mathbf{x} | }.$
(4 problems)
To construct $\bfx$ from its length and direction, write: $\bfx = \left| \bfx \right| \text{ dir } \bfx.$
(4 problems)
Dot product
(41 problems)
Dot product is defined by $\langle x_1, x_2, x_3 \rangle \cdot \langle y_1, y_2, y_3 \rangle = x_1 y_1 + x_2 y_2 + x_3 y_3.$
(21 problems)
$\mathbf{x} \cdot \mathbf{y} = \left | \mathbf{x} \right | \left | \mathbf{y} \right | \cos \theta$.
(8 problems)
The vector projection of $\bfx$ onto $\bfv$ is $$\text{proj}_{\bfv}\ \bfx = (\bfx\cdot \bfv) \frac{\bfv}{\left| \bfv \right|^2}.$$
(4 problems)