Skip to content

Lec 04-16-2026: Scalar Multiplication & Vector Subtraction | MATH 245

In our last lecture, we ended off with vector addition (tail-to-tip). Before we discuss vector subtraction, we’ll discuss scalar multiplication.

What does it mean to multiply a vector by a number? Intuitively, it should stretch or shrink the vector - and possibly flip its direction.

Def: Given a vector u⃗=[xy]∈R2\vec{u} = \begin{bmatrix} x \\ y \end{bmatrix} \in \mathbb{R}^2, and a real number cc, we define the scalar multiple of u⃗\vec{u} by cc, denoted by cu⃗c\vec{u}, to be

cu⃗=[cxcy]c\vec{u} = \begin{bmatrix} cx \\ cy \end{bmatrix}

Ex: Suppose u⃗=[11]\vec{u} = \begin{bmatrix} 1 \\ 1 \end{bmatrix}. Find 2u⃗2\vec{u}, 3u⃗3\vec{u}, 12u⃗\frac{1}{2}\vec{u}, −u⃗-\vec{u}.

2u⃗=2[11]=[22]2\vec{u} = 2\begin{bmatrix} 1 \\ 1 \end{bmatrix} = \begin{bmatrix} 2 \\ 2 \end{bmatrix} 3u⃗=3[11]=[33]3\vec{u} = 3\begin{bmatrix} 1 \\ 1 \end{bmatrix} = \begin{bmatrix} 3 \\ 3 \end{bmatrix}
12u⃗=12[11]=[1212]\tfrac{1}{2}\vec{u} = \tfrac{1}{2}\begin{bmatrix} 1 \\ 1 \end{bmatrix} = \begin{bmatrix} \tfrac{1}{2} \\[4pt] \tfrac{1}{2} \end{bmatrix} −u⃗=−1u⃗=−1[11]=[−1−1]-\vec{u} = -1\vec{u} = -1\begin{bmatrix} 1 \\ 1 \end{bmatrix} = \begin{bmatrix} -1 \\ -1 \end{bmatrix}

Geometrically, what does cu⃗c\vec{u} do to u⃗\vec{u}? Let’s plot the vectors above.

LaTeX diagram

Geometrically, multiplying by a positive scalar c>0c > 0 stretches or shrinks u⃗\vec{u} while keeping it on the same ray - all of u⃗\vec{u}, 2u⃗2\vec{u}, 3u⃗3\vec{u}, 12u⃗\frac{1}{2}\vec{u} point in the same direction. Multiplying by c<0c < 0 reverses the direction and scales by ∣c∣|c|, so −u⃗-\vec{u} points exactly opposite to u⃗\vec{u} with the same length.

Since vector subtraction is defined as u⃗−v⃗=u⃗+(−1)v⃗\vec{u} - \vec{v} = \vec{u} + (-1)\vec{v}, we can compute it by combining scalar multiplication and vector addition. Here is a worked example that mixes both operations.

Ex: Given u⃗=[1−2]\vec{u} = \begin{bmatrix} 1 \\ -2 \end{bmatrix} & v⃗=[2−5]\vec{v} = \begin{bmatrix} 2 \\ -5 \end{bmatrix}, find 4u⃗−3v⃗4\vec{u} - 3\vec{v}.

Sol 1: (Long Method)

4u⃗−3v⃗=4u⃗+(−3)v⃗=4[1−2]+(−3)[2−5]=[4−8]+[−615]=[−27]\begin{align*} 4\vec{u} - 3\vec{v} &= 4\vec{u} + (-3)\vec{v} \\ &= 4\begin{bmatrix} 1 \\ -2 \end{bmatrix} + (-3)\begin{bmatrix} 2 \\ -5 \end{bmatrix} \\ &= \begin{bmatrix} 4 \\ -8 \end{bmatrix} + \begin{bmatrix} -6 \\ 15 \end{bmatrix} = \begin{bmatrix} -2 \\ 7 \end{bmatrix} \end{align*}

Sol 2: (Component-wise Subtraction)

4u⃗−3v⃗=4[1−2]−3[2−5]=[4−8]−[6−15]=[−27]\begin{align*} 4\vec{u} - 3\vec{v} &= 4\begin{bmatrix} 1 \\ -2 \end{bmatrix} - 3\begin{bmatrix} 2 \\ -5 \end{bmatrix} \\ &= \begin{bmatrix} 4 \\ -8 \end{bmatrix} - \begin{bmatrix} 6 \\ -15 \end{bmatrix} = \begin{bmatrix} -2 \\ 7 \end{bmatrix} \end{align*}

Geometrically, we understand vector addition (Tail-to-Tip method from last time). Since u⃗−v⃗=u⃗+(−v⃗)\vec{u} - \vec{v} = \vec{u} + (-\vec{v}), vector subtraction is: negate v⃗\vec{v} (flip its direction), then add tail-to-tip.

Ex: Geometrically, what is vector subtraction?

u⃗+v⃗\vec{u} + \vec{v}

LaTeX diagram

u⃗−v⃗=u⃗+(−v⃗)\vec{u} - \vec{v} = \vec{u} + (-\vec{v})

LaTeX diagram

Taking both diagrams together, we get a cleaner geometric interpretation of u⃗−v⃗\vec{u} - \vec{v}:

LaTeX diagram

If we have two vectors u⃗\vec{u} & v⃗\vec{v} whose initial point is the origin, then u⃗−v⃗\vec{u} - \vec{v} is the vector whose initial point is the tip of v⃗\vec{v} & terminal point is the tip of u⃗\vec{u}. In other words, u⃗−v⃗\vec{u} - \vec{v} points from the tip of v⃗\vec{v} to the tip of u⃗\vec{u}.

Vectors in Rn\mathbb{R}^n behave similarly.

Rn={[x1x2⋮xn]  |  x1,x2,…,xn∈R}\mathbb{R}^n = \left\{ \begin{bmatrix} x_1 \\ x_2 \\ \vdots \\ x_n \end{bmatrix} \;\middle|\; x_1, x_2, \ldots, x_n \in \mathbb{R} \right\}

Def: Let u⃗,v⃗∈Rn\vec{u}, \vec{v} \in \mathbb{R}^n where u⃗=[u1u2⋮un]\vec{u} = \begin{bmatrix} u_1 \\ u_2 \\ \vdots \\ u_n \end{bmatrix} & v⃗=[v1v2⋮vn]\vec{v} = \begin{bmatrix} v_1 \\ v_2 \\ \vdots \\ v_n \end{bmatrix}. Then,

u⃗+v⃗=[u1u2⋮un]+[v1v2⋮vn]=[u1+v1u2+v2⋮un+vn]&cu⃗=c[u1u2⋮un]=[cu1cu2⋮cun]where c∈R\vec{u} + \vec{v} = \begin{bmatrix} u_1 \\ u_2 \\ \vdots \\ u_n \end{bmatrix} + \begin{bmatrix} v_1 \\ v_2 \\ \vdots \\ v_n \end{bmatrix} = \begin{bmatrix} u_1 + v_1 \\ u_2 + v_2 \\ \vdots \\ u_n + v_n \end{bmatrix} \qquad \& \qquad c\vec{u} = c\begin{bmatrix} u_1 \\ u_2 \\ \vdots \\ u_n \end{bmatrix} = \begin{bmatrix} cu_1 \\ cu_2 \\ \vdots \\ cu_n \end{bmatrix} \quad \text{where } c \in \mathbb{R}

These vector operations satisfy the same familiar rules as regular number arithmetic - the same properties you relied on in algebra still hold.

Thm: For all vectors u⃗\vec{u}, v⃗\vec{v} & w⃗\vec{w} in Rn\mathbb{R}^n & for all scalars cc, dd, we have:

  • u⃗+v⃗=v⃗+u⃗\vec{u} + \vec{v} = \vec{v} + \vec{u}
  • (u⃗+v⃗)+w⃗=u⃗+(v⃗+w⃗)(\vec{u} + \vec{v}) + \vec{w} = \vec{u} + (\vec{v} + \vec{w})
  • u⃗+0⃗=u⃗\vec{u} + \vec{0} = \vec{u}; 0⃗\vec{0} is the vector whose entries are all 0’s.
  • u⃗+(−u⃗)=0⃗\vec{u} + (-\vec{u}) = \vec{0}
  • c(u⃗+v⃗)=cu⃗+cv⃗c(\vec{u} + \vec{v}) = c\vec{u} + c\vec{v}
  • (c+d)u⃗=cu⃗+du⃗(c + d)\vec{u} = c\vec{u} + d\vec{u}
  • c(du⃗)=(cd)u⃗c(d\vec{u}) = (cd)\vec{u}
  • 1u⃗=u⃗1\vec{u} = \vec{u}

The length (or norm or magnitude) of a vector is an intuitive idea. Let’s show the progression from R2→R3→Rn\mathbb{R}^2 \to \mathbb{R}^3 \to \mathbb{R}^n.

Given v⃗=[34]\vec{v} = \begin{bmatrix} 3 \\ 4 \end{bmatrix}, let’s denote the length of v⃗\vec{v} by ∥v⃗∥\|\vec{v}\|. Can we find ∥v⃗∥\|\vec{v}\|?

LaTeX diagram

By the Pythagorean Theorem:

32+42=∥v⃗∥23^2 + 4^2 = \|\vec{v}\|^2 ∥v⃗∥=32+42\|\vec{v}\| = \sqrt{3^2 + 4^2} 9+16=∥v⃗∥29 + 16 = \|\vec{v}\|^2 25=∥v⃗∥225 = \|\vec{v}\|^2 ∥v⃗∥=5\|\vec{v}\| = 5

In general, if v⃗=[v1v2]\vec{v} = \begin{bmatrix} v_1 \\ v_2 \end{bmatrix}, then ∥v⃗∥=v12+v22\|\vec{v}\| = \sqrt{v_1^2 + v_2^2}.

If v⃗=[v1v2v3]\vec{v} = \begin{bmatrix} v_1 \\ v_2 \\ v_3 \end{bmatrix}, then ∥v⃗∥=v12+v22+v32\|\vec{v}\| = \sqrt{v_1^2 + v_2^2 + v_3^2}.

Ex: Given v⃗=[236]\vec{v} = \begin{bmatrix} 2 \\ 3 \\ 6 \end{bmatrix}, find ∥v⃗∥\|\vec{v}\|.

3D coordinate system (x, y, z axes) with vector v drawn from origin to (2,3,6); the horizontal leg along the xy-plane has length l (the xy-projection), and the vertical leg has length 6; a bird's-eye-view inset shows the xy-plane with legs 2 and 3 forming a right triangle with hypotenuse l

The strategy is to apply the Pythagorean Theorem twice. First, look straight down (bird’s eye view) at the xyxy-plane and find ℓ\ell, the length of the horizontal leg:

22+32=ℓ2  ⟹  ℓ=132^2 + 3^2 = \ell^2 \implies \ell = \sqrt{13}

Now treat the full vector as the hypotenuse of a right triangle with legs ℓ\ell and 66 (the zz-component), and apply the Pythagorean Theorem again:

ℓ2+62=∥v⃗∥213+62=∥v⃗∥222+32+62=∥v⃗∥2∥v⃗∥=22+32+62\begin{align*} \ell^2 + 6^2 &= \|\vec{v}\|^2 \\ 13 + 6^2 &= \|\vec{v}\|^2 \\ 2^2 + 3^2 + 6^2 &= \|\vec{v}\|^2 \\ \|\vec{v}\| &= \sqrt{2^2 + 3^2 + 6^2} \end{align*}

The pattern is clear: in R2\mathbb{R}^2 we summed 2 squared components; in R3\mathbb{R}^3 we summed 3. In Rn\mathbb{R}^n the pattern continues to nn components:

If w⃗=[w1⋮wn]\vec{w} = \begin{bmatrix} w_1 \\ \vdots \\ w_n \end{bmatrix}, then ∥w⃗∥=w12+⋯+wn2\|\vec{w}\| = \sqrt{w_1^2 + \cdots + w_n^2} (called the Euclidean norm).

Q: Given a vector v⃗\vec{v}, what is the length of cv⃗c\vec{v}?

∥cv⃗∥=∥c[v1v2⋮vn]∥=∥[cv1cv2⋮cvn]∥=(cv1)2+(cv2)2+⋯+(cvn)2=c2(v12+v22+⋯+vn2)=c2 v12+v22+⋯+vn2=∣c∣ ∥v⃗∥\begin{align*} \|c\vec{v}\| &= \left\| c \begin{bmatrix} v_1 \\ v_2 \\ \vdots \\ v_n \end{bmatrix} \right\| = \left\| \begin{bmatrix} cv_1 \\ cv_2 \\ \vdots \\ cv_n \end{bmatrix} \right\| = \sqrt{(cv_1)^2 + (cv_2)^2 + \cdots + (cv_n)^2} \\ &= \sqrt{c^2(v_1^2 + v_2^2 + \cdots + v_n^2)} = \sqrt{c^2}\,\sqrt{v_1^2 + v_2^2 + \cdots + v_n^2} = |c|\,\|\vec{v}\| \end{align*}

So ∥cv⃗∥=∣c∣ ∥v⃗∥\|c\vec{v}\| = |c|\,\|\vec{v}\| - scaling a vector by cc scales its length by ∣c∣|c|. This confirms our earlier geometric intuition: when c>0c > 0, the vector stretches or shrinks by a factor of cc; when c<0c < 0, the direction flips and the length scales by ∣c∣|c|.

Sometimes we care only about the direction of a vector, not its magnitude. To isolate direction, we can normalize v⃗\vec{v}: scale it down to length 1 while preserving its direction. The result is called a unit vector, denoted v^\hat{v}.

Ex: Given v⃗=[34]\vec{v} = \begin{bmatrix} 3 \\ 4 \end{bmatrix}, normalize v⃗\vec{v}.

LaTeX diagram

Recall ∥v⃗∥=5\|\vec{v}\| = 5. We want to find a scalar cc such that ∥cv⃗∥=1\|c\vec{v}\| = 1. Using the result from above, ∥cv⃗∥=∣c∣ ∥v⃗∥\|c\vec{v}\| = |c|\,\|\vec{v}\|, so we need ∣c∣⋅5=1|c| \cdot 5 = 1, giving c=15=1∥v⃗∥c = \frac{1}{5} = \frac{1}{\|\vec{v}\|}. Applying this:

v^=1∥v⃗∥v⃗=15[34]=[3/54/5]\hat{v} = \frac{1}{\|\vec{v}\|}\vec{v} = \frac{1}{5}\begin{bmatrix} 3 \\ 4 \end{bmatrix} = \begin{bmatrix} 3/5 \\ 4/5 \end{bmatrix}

This is the unit vector of v⃗\vec{v}: it points in the same direction as v⃗\vec{v}, but has length 1.

Goal: Given two vectors u⃗\vec{u} & v⃗\vec{v}, find a formula for the angle θ\theta between them directly from their components, without needing to draw a picture.

To do this, we will use the vector u⃗−v⃗\vec{u} - \vec{v} as the third side of the triangle formed by u⃗\vec{u} and v⃗\vec{v}, then apply the Law of Cosines. Recall given vectors u⃗\vec{u} & v⃗\vec{v}, the vector going from the tip of v⃗\vec{v} to the tip of u⃗\vec{u} is u⃗−v⃗\vec{u} - \vec{v}.

LaTeX diagram

We will now apply the Law of Cosines to the triangle formed by u⃗\vec{u}, v⃗\vec{v}, and u⃗−v⃗\vec{u} - \vec{v}, using the three side lengths ∥u⃗∥\|\vec{u}\|, ∥v⃗∥\|\vec{v}\|, and ∥u⃗−v⃗∥\|\vec{u} - \vec{v}\|.

In any triangle ABCABC, we have the following:

a2=b2+c2−2bccos⁡(A)a^2 = b^2 + c^2 - 2bc\cos(A)
Proof

We want to express a2a^2 in terms of bb, cc, and the angle AA. The trick is to drop a perpendicular (altitude) from vertex CC down to side ABAB, which splits the triangle into two right triangles. Calling the foot of the altitude HH, let x=AHx = AH (the horizontal distance from AA to HH) and h=CHh = CH (the height). Then we can apply the Pythagorean Theorem to each right triangle separately:

(Acute triangle)

LaTeX diagram

LaTeX diagram

From the left right triangle (legs xx and hh, hypotenuse bb):

x2+h2=b2  ⟹  h2=b2−x2x^2 + h^2 = b^2 \implies h^2 = b^2 - x^2

From the right right triangle (legs c−xc - x and hh, hypotenuse aa):

h2+(c−x)2=a2h^2 + (c - x)^2 = a^2