August 5, 2025
\[\vec{v} = \left[\begin{array}{r} v_1 \\ v_2 \\ \vdots \\ v_n \end{array}\right] \text{(column vector)} \qquad \vec{u} = \left[\begin{array}{r} u_1 & u_2 & \cdots & u_n \end{array}\right] \quad \text{(row vector)}\]
Example: Consider the vectors \(\vec{v} = \begin{bmatrix} 1\\ -8\\ 3/2\end{bmatrix}\) and \(\vec{u} = \begin{bmatrix} -11 & 17 & 0 & \pi\end{bmatrix}\)
We can turn a column vector into a row vector (and vice-versa) by taking its transpose.
We denote the transpose operation via the superscript \(^T\).
Consider the vector \(\vec{v}\) and its transpose below.
\[\vec{v} = \begin{bmatrix} v_1\\ v_2\\ \vdots \\ v_n\end{bmatrix} \qquad \vec{v}^T = \begin{bmatrix} v_1 & v_2 & \cdots & v_n\end{bmatrix}\]
Example: For each of the vectors below, construct the transpose.
\[\vec{v}^T = \begin{bmatrix} 1/2 & -11 & 3 & 0 & 8\end{bmatrix}\]
\[\vec{u}^T = \begin{bmatrix} 8\\ -1\end{bmatrix}\]
Addition and subtraction of vectors is done component-wise:
\[\vec{u} + \vec{v} = \begin{bmatrix} u_1 + v_1 \\ u_2 + v_2\\ \vdots \\ u_n + v_n \end{bmatrix} \quad \vec{u} - \vec{v} = \begin{bmatrix} u_1 - v_1 \\ u_2 - v_2\\ \vdots\\ u_n - v_n \end{bmatrix}\]
Example: Consider the vectors \(\vec{u}\), \(\vec{v}\), and \(\vec{w}\) below. For those that are compatible, compute the sums and differences of the vectors. For those that are not compatible, describe why.
\[\vec{u} = \begin{bmatrix} -5\\ 0\\ 8\\ 1\end{bmatrix}~~~~~\vec{v} = \begin{bmatrix} 1\\ -1\\ 1\end{bmatrix}~~~~~\vec{w} = \begin{bmatrix} 1\\ 0\\ 0\\ -9\end{bmatrix}\]
Example: Consider the vectors \(\vec{u}\), \(\vec{v}\), and \(\vec{w}\) below. For those that are compatible, compute the sums and differences of the vectors. For those that are not compatible, describe why.
\[\vec{u} = \begin{bmatrix} -5\\ 0\\ 8\\ 1\end{bmatrix}~~~~~\vec{v} = \begin{bmatrix} 1\\ -1\\ 1\end{bmatrix}~~~~~\vec{w} = \begin{bmatrix} 1\\ 0\\ 0\\ -9\end{bmatrix}\]
\[\vec{u} + \vec{w} = \begin{bmatrix} -5\\ 0\\ 8\\ 1\end{bmatrix} + \begin{bmatrix} 1\\ 0\\ 0\\ -9\end{bmatrix} = \begin{bmatrix} -4\\ 0\\ 8\\ -8\end{bmatrix}\]
Example: Consider the vectors \(\vec{u}\), \(\vec{v}\), and \(\vec{w}\) below. For those that are compatible, compute the sums and differences of the vectors. For those that are not compatible, describe why.
\[\vec{u} = \begin{bmatrix} -5\\ 0\\ 8\\ 1\end{bmatrix}~~~~~\vec{v} = \begin{bmatrix} 1\\ -1\\ 1\end{bmatrix}~~~~~\vec{w} = \begin{bmatrix} 1\\ 0\\ 0\\ -9\end{bmatrix}\]
Multiplying a vector by a scalar stretches, shrinks, and/or reflects the vector. For example if \(a\) is a scalar and \(\vec{v}\) is a vector, then
\[a \vec{v} = \begin{bmatrix} a v_1 \\ a v_2\\ \vdots\\ av_n \end{bmatrix}\]
Example: Consider the vector \(\vec{v} = \begin{bmatrix} 2\\ 1\end{bmatrix}\) and scalars \(a_1 = 3\), \(a_2 = 0.5\), and \(a_3 = -1.5\).
Example: Consider the vector \(\vec{v} = \begin{bmatrix} 2\\ 1\end{bmatrix}\) and scalars \(a_1 = 3\), \(a_2 = 0.5\), and \(a_3 = -1.5\).
Example: Consider the vectors \(\vec{u} = \begin{bmatrix} 9\\ 0\\ 3\end{bmatrix}\) and \(\vec{v} = \begin{bmatrix} -12\\ -6\end{bmatrix}\), along with scalars \(a_1 = -3\) and \(a_2 = 1/3\). Construct the following vectors.
\[(i)~~a_1\vec{u}~~~~~~~~(ii)~~a_1\vec{v}~~~~~~~~(iii)~~a_2\vec{u}~~~~~~~~(iv)~~a_2\vec{v}\]
We can define multiple types of vector products here.
Dot Product: Given two vectors \(\vec{u}\) and \(\vec{v}\) of the same size, we can define the dot product of \(\vec{u}\) and \(\vec{v}\) to be
\[\vec{u}\cdot \vec{v} = \begin{bmatrix} u_1\\ u_2\\ \vdots\\ u_n\end{bmatrix}\cdot \begin{bmatrix} v_1\\ v_2\\ \vdots\\ v_n\end{bmatrix} = u_1v_1 + u_2v_2 + \cdots + u_nv_n\]
Dot Product: Given two vectors \(\vec{u}\) and \(\vec{v}\) of the same size, we can define the dot product of \(\vec{u}\) and \(\vec{v}\) to be
\[\vec{u}\cdot \vec{v} = u_1v_1 + u_2v_2 + \cdots + u_nv_n\]
Example: For each pair of vectors below, compute the dot product.
\[\vec{u_1} \cdot \vec{u_2} = 2\left(8\right) + \left(-3\right)\left(-4\right) = 16 + 12 = 28\]
Dot Product: Given two vectors \(\vec{u}\) and \(\vec{v}\) of the same size, we can define the dot product of \(\vec{u}\) and \(\vec{v}\) to be
\[\vec{u}\cdot \vec{v} = u_1v_1 + u_2v_2 + \cdots + u_nv_n\]
We’ll find many uses for the dot product between two vectors. For example,
\[\vec{x}\cdot\vec{x} = x_1^2 + x_2^2 + \cdots + x_n^2 = \left|\left|\vec{x}\right|\right|^2\]
So, \(\left|\left|\vec{x}\right|\right| = \sqrt{\vec{x}\cdot\vec{x}}\)
Example: Find the magnitude of each vector \(\vec{u} = \begin{bmatrix} 3\\ 4\end{bmatrix}\) and \(\vec{v} = \begin{bmatrix} 1\\ -3\\ 5\end{bmatrix}\)
Dot Product: Given two vectors \(\vec{u}\) and \(\vec{v}\) of the same size, we can define the dot product of \(\vec{u}\) and \(\vec{v}\) to be
\[\vec{u}\cdot \vec{v} = u_1v_1 + u_2v_2 + \cdots + u_nv_n\]
We’ll find many uses for the dot product between two vectors. For example,
\[\cos\left(\theta\right) = \frac{\vec{u}\cdot\vec{v}}{||\vec{u}||||\vec{v}||}\]
Dot Product: Given two vectors \(\vec{u}\) and \(\vec{v}\) of the same size, we can define the dot product of \(\vec{u}\) and \(\vec{v}\) to be
\[\vec{u}\cdot \vec{v} = u_1v_1 + u_2v_2 + \cdots + u_nv_n\]
We’ll find many uses for the dot product between two vectors. For example,
\[\cos\left(\theta\right) = \frac{\vec{u}\cdot\vec{v}}{||\vec{u}||||\vec{v}||}\]
Which is particularly useful to quickly determine whether two vectors are orthogonal (they meet at a \(90^\circ\) angle).
Example: Determine whether \(\vec{u} = \begin{bmatrix} 1\\ 3\\ 11\end{bmatrix}\) and \(\vec{v} = \begin{bmatrix} -4\\ 5\\ -1\end{bmatrix}\) are orthogonal.
Cross Product: When in three dimensions, we can define the cross product between two vectors \(\vec{u}\) and \(\vec{v}\).
\[\vec{u} \times \vec{v} = \begin{bmatrix} u_1\\ u_2\\ u_3\end{bmatrix}\times \begin{bmatrix} v_1\\ v_2\\ v_3\end{bmatrix} = \begin{bmatrix} u_2 v_3 - u_3 v_2 \\ u_3 v_1 - u_1 v_3 \\ u_1 v_2 - u_2 v_1 \end{bmatrix}\]
Note: Since there are two opposing directions such a vector could point in, we use the “right-hand rule” to determine which direction the cross-product points.
Example: For each pair of vectors below, compute the cross-product.
. . .
There’s an additional vector product, called an outer-product, but we’ll wait until we discuss matrices next time in order to define it.
. . .
We’ll also briefly revisit the inner-product at that time.
While division exists for scalars, and we’ve taken advantage of it as an operation that “undoes” multiplication, division by vectors is not a defined operation.
The \(\ell_2\) (Euclidean) norm of a vector \(\vec{v}\) measures its magnitude, and is given by
\[\|\vec{v}\| = \sqrt{\left(\vec{v}\cdot\vec{v}\right)} = \sqrt{\left(v_1^2 + v_2^2 + \cdots + v_n^2\right)}\]
Example: You saw two examples when we first encountered the inner-product, but calculate the length of the vector \(\vec{v} = \begin{bmatrix} 2\\ 0\\ -4\\ 5\end{bmatrix}\) for practice.
With the vector operations defined above, we can define a few special classes of vector that we’ll encounter later in our course (but that you may have already encountered elsewhere).
Unit Vectors: A vector of magnitude \(1\), that is a vector \(\vec{v}\) such that \(||\vec{v}|| = 1\), is called a unit vector.
Constructing a Unit Vector: Given any vector \(\vec{w}\), which is not the zero-vector, we can construct the unit vector pointing in the direction of \(\vec{w}\) using
\[\vec{u_w} = \frac{\vec{w}}{||\vec{w}||}\]
Example: Given the vector \(\vec{v} = \begin{bmatrix} 2\\ 8\\ -3\end{bmatrix}\), construct a unit vector pointing in the same direction as \(\vec{v}\).
With the vector operations defined above, we can define a few special classes of vector that we’ll encounter later in our course (but that you may have already encountered elsewhere).
Normal Vectors: A vector \(\vec{n}\) that is orthogonal (perpendicular) to a surface or another vector is called a normal vector.
To find vectors normal to a given vector, we remember that \(\vec{v}\) and \(\vec{n}\) are orthogonal if \(\vec{v}\cdot \vec{n} = 0\).
Examples: We’ll wait on the construction of orthogonal/normal vectors for now, but…
We’ve covered quite a bit of ground here, including how to…
add and subtract vectors of compatible size
compute different types of products involving vectors
calculate the magnitude (length, or \(\ell_2\)-norm) of a vector
determine the angle between two vectors, including whether two vectors are orthogonal
identify and construct unit vectors
identify normal vectors
\[\Huge{\text{Start Homework 1}}\] \[\Huge{\text{on MyOpenMath}}\]
\(\Huge{\text{Matrices and Arithmetic}}\)