Vectors#

Solution to Exercise 3.1

(a)   \(2\vec{u} + \vec{w} = 2\begin{pmatrix} 2 \\ 3 \end{pmatrix} + \begin{pmatrix} 1 \\ 6 \end{pmatrix} = \begin{pmatrix} 4 \\ 6 \end{pmatrix} + \begin{pmatrix} 1 \\ 6 \end{pmatrix} = \begin{pmatrix} 5 \\ 12 \end{pmatrix}\)

(b)   \(\vec{w} - \vec{u} = \begin{pmatrix} 1 \\ 6 \end{pmatrix} - \begin{pmatrix} 2 \\ 3 \end{pmatrix} = \begin{pmatrix} 1 - 2 \\ 6 - 3 \end{pmatrix} = \begin{pmatrix} -1 \\ 3 \end{pmatrix}\)

(c)   \(\hat{\vec{u}} = \dfrac{\vec{u}}{\|\vec{u}\|} = \dfrac{1}{\sqrt{13}} \begin{pmatrix} 2 \\ 3 \end{pmatrix} = \begin{pmatrix} \frac{2}{\sqrt{13}} \\ \frac{3}{\sqrt{13}} \end{pmatrix}\)

(d)   \(-\hat{\vec{v}} = -\dfrac{\vec{v}}{\|\vec{v}\|} = -\dfrac{1}{\sqrt{13}} \begin{pmatrix} 3 \\ -2 \end{pmatrix} = \begin{pmatrix} -\frac{3}{\sqrt{13}} \\ \frac{2}{\sqrt{13}} \end{pmatrix}\)

(e)   \(\dfrac{1}{2}\vec{v} = \dfrac{1}{2} \begin{pmatrix} 3 \\ -2 \end{pmatrix} = \begin{pmatrix} 3 / 2 \\ -2 / 2 \end{pmatrix}\)

(f)   \(\vec{v} - \vec{u} = \begin{pmatrix} 3 \\ -2 \end{pmatrix} - \begin{pmatrix} 2 \\ 3 \end{pmatrix}= \begin{pmatrix} 1 \\ -5 \end{pmatrix}\)

(g)   \(\vec{w} - \vec{u} = \begin{pmatrix} 1 \\ 6 \end{pmatrix} - \begin{pmatrix} 2 \\ 3 \end{pmatrix} = \begin{pmatrix} -1 \\ 3 \end{pmatrix}\)

(h)   \(\vec{u} \cdot \vec{w} = \begin{pmatrix} 2 \\ 3 \end{pmatrix} \cdot \begin{pmatrix} 1 \\ 6 \end{pmatrix} = 2 \times 1 + 3 \times 6 = 20\)

(i)   Using equation (3.4)

\[\begin{split} \begin{align*} (\vec{v} - \vec{u}) \cdot (\vec{w} - \vec{u}) &= \|(\vec{v} - \vec{u})\|\|(\vec{w} - \vec{u})\| \cos(\theta) \\ \begin{pmatrix} 1 \\ -5 \end{pmatrix} \cdot \begin{pmatrix} -1 \\ 3 \end{pmatrix} &= \left\| \begin{pmatrix} 1 \\ -5 \end{pmatrix} \right\| \left\| \begin{pmatrix} -1 \\ 3 \end{pmatrix} \right\| \cos(\theta) \\ -16 &= \sqrt{26} \sqrt{10} \cos(\theta) \\ \theta &= \cos^{-1} \left( \frac{-16}{\sqrt{260}} \right) \approx 3.0172 \end{align*} \end{split}\]

(j)   \(\vec{u} \cdot \vec{v} = \begin{pmatrix} 2 \\ 3 \end{pmatrix} \cdot \begin{pmatrix} 3 \\ -2 \end{pmatrix} = 2 \times 3 + 3 \times (-2) = 0\)

(k)   \(\vec{v} \times \vec{w} = \begin{vmatrix} \vec{i} & \vec{j} & \vec{k} \\ 3 & -2 & 0 \\ 1 & 6 & 0 \end{vmatrix} = 0\vec{i} - 0 \vec{j} + 20 \vec{k} = \begin{pmatrix} 0 \\ 0 \\ 20 \end{pmatrix}\)

Solution to Exercise 3.2

(a)   \(\vec{u} = 2 \begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix} + 7 \begin{pmatrix} 0 \\ 1 \\ 0 \end{pmatrix} + \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix} = 2 \vec{i} + 7 \vec{j} + \vec{k}\)

(b)

\[\begin{split} \begin{align*} & \left( \begin{array}{ccc\|c} 1 & 0 & 1 & 2 \\ -1 & 2 & 0 & 7 \\ 0 & 0 & -1 & 1 \end{array} \right) \begin{array}{l} \\ R_2 + R_1 \\ \phantom{x} \end{array} & \longrightarrow & \left( \begin{array}{ccc\|c} 1 & 0 & 1 & 2 \\ 0 & 2 & 1 & 9 \\ 0 & 0 & -1 & 1 \end{array} \right) \begin{array}{l} \\ \frac{1}{2} R_2 \\ -R_3 \phantom{x} \end{array} \\ \\ \longrightarrow & \left( \begin{array}{ccc\|c} 1 & 0 & 1 & 2 \\ 0 & 1 & 1/2 & 9/2 \\ 0 & 0 & 1 & -1 \end{array} \right) \begin{array}{l} R_1 - R_3 \\ R_2 - \frac{1}{2} R_3 \\ \phantom{x} \end{array} & \longrightarrow & \left( \begin{array}{ccc\|c} 1 & 0 & 0 & 3 \\ 0 & 1 & 0 & 5 \\ 0 & 0 & 1 & -1 \end{array} \right) \begin{array}{l} R_1 - R_3 \\ R_2 - \frac{1}{2} R_3 \\ \phantom{x} \end{array} \\ \\ \end{align*} \end{split}\]

Therefore \(\vec{u} = 3 \vec{f}_1 + 5 \vec{f}_2 - \vec{f}_3\).

Solution to Exercise 3.3

(a)   If \(\vec{u}\) and \(\vec{v}\) are perpendicular then \(\vec{u} \cdot \vec{v} = 0\).

\[\begin{split} \begin{align*} \vec{u} \cdot \vec{v} &= 0 \\ \begin{pmatrix} 1 \\ k \\ -2 \end{pmatrix} \cdot \begin{pmatrix} 2 \\ -5 \\ 4 \end{pmatrix} &= 0 \\ 2 - 5 k - 8 &= 0 \\ -5k &= 6 \\ \therefore k &= -\frac{6}{5}. \end{align*} \end{split}\]

(b)  

\[\begin{split} \begin{align*} \vec{u} \cdot \vec{v} &= 0 \\ \begin{pmatrix} 1 \\ 0 \\ k + 2 \\ -1 \\ 2 \end{pmatrix} \cdot \begin{pmatrix} 1 \\ k \\ -2 \\ 1 \\ 2 \end{pmatrix} &= 0 \\ 1 - 2k - 2 - 1 + 2 &= 0 \\ -2k &= 0 \\ \therefore k &= 0. \end{align*} \end{split}\]

Solution to Exercise 3.4

\[\begin{split} \begin{align*} \vec{u} \cdot \vec{v} &= \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} \cdot \begin{pmatrix} -1 \\ 2 \\ -1 \end{pmatrix} = -1 + 4 - 3 = 0, \\ \vec{u} \cdot \vec{w} &= \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} \cdot \begin{pmatrix} 2 \\ -3 \\ 1 \end{pmatrix} = 2 - 6 + 3 = -1, \\ \vec{v} \cdot \vec{w} &= \begin{pmatrix} -1 \\ 2 \\ -1 \end{pmatrix} \cdot \begin{pmatrix} 2 \\ -3 \\ 1 \end{pmatrix} = -2 -6 -1 = -9. \end{align*} \end{split}\]

Therefore \(\vec{u} \perp \vec{v}\). The angle between \(\vec{u}\) and \(\vec{w}\) is

\[\begin{split} \begin{align*} \theta &= \cos^{-1} \left( \frac{\vec{u} \cdot \vec{w}}{\|\vec{u} \|\|\vec{w}\|} \right) \\ &= \cos^{-1} \left( \frac{-1}{\sqrt{14}\sqrt{14}}\right) \\ &= \cos^{-1}\left(\frac{-1}{14}\right) \approx 1.6423, \end{align*} \end{split}\]

and the angle between \(\vec{v}\) and \(\vec{w}\) is

\[\begin{split} \begin{align*} \theta &= \cos^{-1} \left( \frac{\vec{v} \cdot \vec{w}}{\|\vec{v} \|\|\vec{w}\|} \right) \\ &= \cos^{-1} \left( \frac{-9}{\sqrt{6}\sqrt{14}} \right) \approx 2.9515. \end{align*} \end{split}\]