Skip to main content

Section 3.1 VA1: Basic Vector Operations

Handout VA1 Note Scaffold

When describing objects in three-space, we typically use three variables: \((x,y,z)\text{.}\) In visualizing points with three coordinates, it is standard to use the following configuration of coordinate axes and coordinate planes:
Note that the \(x,y,z\) axes are drawn in a specific orientation: using your right hand, imagine your thumb pointing in the direction of the \(x\) axis and your index finger in the direction of the \(y\) axis; the \(z\) axis then emanates away from your palm. This is known as the right hand rule for determining orientation.
By using a variety of relationships between the three variables, we describe a variety of different geometric objects in space. Let’s consider some of the following:
  1. \(\displaystyle z\geq 0\)
  2. \(\displaystyle z=0,\ x\leq 0, y\geq 0\)
  3. \(\displaystyle -1\leq y\leq 1\)
Given two points \(P_1(x_1,y_1,z_1)\) and \(P_2(x_2,y_2,z_2)\text{,}\) the distance between them is calculated by:
\begin{equation*} |P_1P_2|=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}. \end{equation*}
We can convince of ourselves of this using the Pythagorean theorem:
The sphere of radius \(a\) centred at \((x_0,y_0,z_0)\) is described by the equation:
\begin{equation*} (x-x_0)^2+(y-y_0)^2+(z-z_0)^2=a^2. \end{equation*}
In particular, if we remember how to complete the square, we can use this standard description to help us describe spheres. For instance, the equation \(x^2+y^2+z^2+3x-4z+1=0\) describes a sphere. This isn’t obvious, but it is more clear once we complete the square:

Definition 3.1.2.

In this course, vectors are quantities best described by directed line segments. The vector represented by the directed line segment \(\vec{AB}\) has initial point \(A\) and terminal point \(B\text{;}\) its length is denoted \(|\vec{AB}|\text{.}\) Vectors of the same length and direction are treated equal.
Algebraically, the vector in the plane with initial pont at the origin and terminal point \((v_1,v_2)\) is written:
\begin{equation*} \vec{v}=\langle v_1,v_2\rangle \end{equation*}
Likewise in three-space:
\begin{equation*} \vec{v}=\langle v_1,v_2,v_3\rangle. \end{equation*}
Note that, in this component form, two vectors are equal only if they have the same components.
If we take two points \(P(x_1,y_1,z_1)\) and \(Q(x_2,y_2,z_2)\text{,}\) then the position vector \(\vec{PQ}\) is equal to:
\begin{equation*} \vec{PQ}=\langle x_2-x_1,y_2-y_1,z_2-z_1\rangle. \end{equation*}
The magnitude or length of the vector \(\vec{v}=\langle v_1,v_2,v_3 \rangle\) is equal to:
\begin{equation*} |\vec{v}|=\sqrt{v_1^2+v_2^2+v_3^2} \end{equation*}
Note the special case: \(\vec{0}\)

Example 3.1.3.

Find the position vector \(\vec{PQ}\) and its length where \(P=(-3,4,1)\) and \(Q=(-5,2,2)\text{.}\)

Definition 3.1.4.

Let \(\vec{u}=\langle u_1,u_2,u_3\rangle\) and \(\vec{v}=\langle v_1,v_2,v_3\rangle\) be vectors and \(k\) a scalar. Then we add and scale vectors as follows:
Visually/Parrallelogram Law:
The vector \(-\vec{u}\) points in the opposite direction of \(\vec{u}\) with the same length. The difference \(\vec{u}-\vec{v}\) is defined by \(\vec{u}+(-\vec{v})\text{.}\)
Let \(\vec{u}\text{,}\) \(\vec{v}\text{,}\) \(\vec{w}\) be vectors and \(a\text{,}\) \(b\) be scalars.
  1. \(\displaystyle \vec{u} + \vec{v} = \vec{v} + \vec{u}\)
  2. \(\displaystyle \vec{u} + \vec{0} = \vec{u}\)
  3. \(\displaystyle 0\vec{u} = \vec{0}\)
  4. \(\displaystyle a(b\vec{u}) = (ab)\vec{u}\)
  5. \(\displaystyle (a + b)\vec{u} = a\vec{u} + b\vec{u}\)
  6. \(\displaystyle (\vec{u} + \vec{v}) + \vec{w} = \vec{u} + (\vec{v} + \vec{w})\)
  7. \(\displaystyle \vec{u} + (-\vec{u}) = \vec{0}\)
  8. \(\displaystyle 1\vec{u} = \vec{u}\)
  9. \(\displaystyle a(\vec{u} + \vec{v}) = a\vec{u} + a\vec{v}\)

Definition 3.1.5.

A unit vector is a vector of length \(1\text{.}\)
A few standard unit vectors are: \(\vec{i},\vec{j},\vec{k}\text{:}\)
Assume that \(\vec{v}\neq\vec{0}\text{;}\) how do \(\vec{v}\) and \(\frac{1}{|\vec{v}|}\vec{v}\) relate to each other?

Example 3.1.6.

If \(\vec{v}=3\vec{i}-4\vec{j}\) represents a velocity, express it as a product of speed (its magnitude) and its direction:

Definition 3.1.7.

The dot product \(\vec{u}\bullet\vec{v}\) of vectors \(\vec{u}=\langle u_1,u_2,u_3\rangle\) and \(\vec{v}=\langle v_1,v_2,v_3\rangle\) is the scalar:
\begin{equation*} \vec{u}\bullet\vec{v}=u_1v_1+u_2v_2+u_3v_3 \end{equation*}
In particular, the length of a vector is related to its self-dot-product:
\begin{equation*} \vec{u}\bullet\vec{u}= \end{equation*}
As an example:
Given \(\vec{u},\vec{v}\text{,}\) we have:
\begin{equation*} \cos\theta=\frac{\vec{u}\bullet\vec{v}}{|\vec{u}||\vec{v}|} \end{equation*}
In particular, the dot-product helps use calculate angles between two vectors!

Example 3.1.8.

Find the angle \(\theta\) in the triangle \(ABC\) determined by \(A=(0,0), B=(3,5), C=(5,2)\text{.}\)
Given that \(\vec{u}\bullet\vec{v}=|\vec{u}||\vec{v}|\cos\theta\text{,}\) what happens when the vectors are orthogonal? (perpendicular)
The dot product enjoys many algebraic properties: If \(\vec{u}\text{,}\) \(\vec{v}\text{,}\) and \(\vec{w}\) are any vectors and \(c\) is a scalar, then
  1. \(\displaystyle \vec{u} \cdot \vec{v} = \vec{v} \cdot \vec{u}\)
  2. \(\displaystyle (c\vec{u}) \cdot \vec{v} = \vec{u} \cdot (c\vec{v}) = c(\vec{u} \cdot \vec{v})\)
  3. \(\displaystyle \vec{u} \cdot (\vec{v} + \vec{w}) = \vec{u} \cdot \vec{v} + \vec{u} \cdot \vec{w}\)
  4. \(\displaystyle \vec{u} \cdot \vec{u} = |\vec{u}|^2\)
  5. \(\displaystyle \vec{0} \cdot \vec{u} = 0\)
Consider the following problem: Given vectors \(\vec{u}\) and \(\vec{v}\text{,}\) we want the vector projection of \(\vec{u}\) onto \(\vec{v}\text{.}\) This is the β€œshadow” of \(\vec{u}\) on the vector \(\vec{v}\text{;}\) it points in the direction of \(\vec{v}\) and should have magnitude equal to \(|\vec{u}|\cos\theta\) as shown:
Thus
\begin{gather*} \textrm{proj}_\vec{v}(\vec{u})=(|\vec{u}|\cos\theta)\frac{\vec{v}}{|\vec{v}|}= \left(\frac{\vec{u}\bullet\vec{v}}{|\vec{v}|}\right)\frac{\vec{v}}{|\vec{v}|}= \left(\frac{\vec{u}\bullet\vec{v}}{|\vec{v}|^2}\right)\vec{v} \end{gather*}
The number \(|\vec{u}|\cos\theta=\vec{u}\bullet\frac{\vec{v}}{|\vec{v}|}\) is called the scalar component of \(\vec{u}\) in the direction of \(\vec{v}\text{.}\)

Example 3.1.9.

Find the vector projection of \(\vec{u}=6\vec{i}+3\vec{j}+2\vec{k}\) onto \(\vec{v}=\vec{i}-2\vec{j}-2\vec{k}\text{.}\)
Note: By design, \(\vec{u}-\textrm{proj}_\vec{v}(\vec{u})\) is orthogonal to \(\textrm{proj}_\vec{v}(\vec{u})\) (and \(\vec{v}\)); this can be verified by calculating dot-products:
In particular, we can decompose \(\vec{u}\) into a sum of two vectors: one parallel to \(\vec{v}\) and one orthogonal to it
\begin{align*} \vec{u} =\amp \end{align*}
One physical interpretation is as follows. Let \(\vec{d}\) denote a displacement vector of some object being acted upon by the Force vector \(\vec{F}\text{.}\) Then the length of \(\textrm{proj}_{\vec{d}}(\vec{F})\) represents the work done by the Force and is equal to \(\vec{F}\bullet\vec{d}\text{.}\)

Problem 3.1.10 VA1 Representative Assessment.

Consider the following three Euclidean vectors:
\begin{align*} \vec{u}\amp =\langle 1,3,2\rangle \\ \vec{v}\amp =\langle -1,4,2\rangle \\ \vec{w}\amp =\langle 0,6,1\rangle \end{align*}

(a)

Express the vector \(2\vec{u}-\vec{v}-2\vec{w}\) as a single Euclidean vector.
Solution.
We find that:
\begin{align*} 2\vec{u}-\vec{v}-2\vec{w} \amp =2\langle 1,3,2\rangle-\langle -1,4,2\rangle-2\langle 0,6,1\rangle\\ \amp =\langle 2,6,4\rangle+\langle 1,-4,-2\rangle +\langle 0,-12,-2\rangle\\ \amp =\langle 3,-10,0\rangle \end{align*}

(b)

Calculate the following:
Solution.
We find that
\begin{align*} \vec{u}\bullet\vec{w} \amp =\langle 1,3,2\rangle\bullet\langle 0,6,1\rangle\\ \amp =1\cdot 0+3\cdot 6+2\cdot 1\\ \amp =20 \end{align*}
We calculate:
\begin{align*} ||\vec{v}|| \amp =\sqrt{\vec{v}\bullet\vec{v}}\\ \amp =\sqrt{(-1)^2+4^2+2^2}\\ \amp =\sqrt{21} \end{align*}

(c)

Determine the angle between \(\vec{u}\) and \(\vec{w}\text{.}\)
Solution.
We know that
\begin{equation*} \cos\theta=\frac{\vec{u}\bullet\vec{w}}{||\vec{u}||\cdot ||\vec{w}||}. \end{equation*}
We have previously determined \(\vec{u}\bullet\vec{w}=20\text{,}\) so
\begin{equation*} \cos\theta=\frac{20}{||\vec{u}||\cdot ||\vec{w}||}=\frac{20}{\sqrt{14}\sqrt{37}} \end{equation*}
It follows that the angle we seek is
\begin{equation*} \arccos\left(\frac{20}{\sqrt{14}\sqrt{37}}\right). \end{equation*}

(d)

Calculate \(\textrm{proj}_\vec{w}(\vec{u})\text{.}\)
Solution.
We have \(\textrm{proj}_\vec{w}(\vec{u})=\left(\frac{\vec{u}\bullet\vec{w}}{||\vec{w}||\cdot ||\vec{w}||}\right)\vec{w}\) Thus, the projection is:
\begin{equation*} \frac{20}{37}\vec{w}=\langle 0, \frac{120}{37}, \frac{20}{37}\rangle \end{equation*}