Skip to content

Lec 04-16-2026: Scalar Multiplication & Vector Subtraction

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 cuc\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 2u2\vec{u}, 3u3\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]=[11]-\vec{u} = -1\vec{u} = -1\begin{bmatrix} 1 \\ 1 \end{bmatrix} = \begin{bmatrix} -1 \\ -1 \end{bmatrix}

Geometrically, what does cuc\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}, 2u2\vec{u}, 3u3\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 uv=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=[12]\vec{u} = \begin{bmatrix} 1 \\ -2 \end{bmatrix} & v=[25]\vec{v} = \begin{bmatrix} 2 \\ -5 \end{bmatrix}, find 4u3v4\vec{u} - 3\vec{v}.

Sol 1: (Long Method)

4u3v=4u+(3)v=4[12]+(3)[25]=[48]+[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)

4u3v=4[12]3[25]=[48][615]=[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 uv=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

uv=u+(v)\vec{u} - \vec{v} = \vec{u} + (-\vec{v})

LaTeX diagram

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

LaTeX diagram

If we have two vectors u\vec{u} & v\vec{v} whose initial point is the origin, then uv\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, uv\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={[x1x2xn]  |  x1,x2,,xnR}\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,vRn\vec{u}, \vec{v} \in \mathbb{R}^n where u=[u1u2un]\vec{u} = \begin{bmatrix} u_1 \\ u_2 \\ \vdots \\ u_n \end{bmatrix} & v=[v1v2vn]\vec{v} = \begin{bmatrix} v_1 \\ v_2 \\ \vdots \\ v_n \end{bmatrix}. Then,

u+v=[u1u2un]+[v1v2vn]=[u1+v1u2+v2un+vn]&cu=c[u1u2un]=[cu1cu2cun]where cR\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+cvc(\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)uc(d\vec{u}) = (cd)\vec{u}
  • 1u=u1\vec{u} = \vec{u}

The length (or norm or magnitude) of a vector is an intuitive idea. Let’s show the progression from R2R3Rn\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=v23^2 + 4^2 = \|\vec{v}\|^2 v=32+42\|\vec{v}\| = \sqrt{3^2 + 4^2} 9+16=v29 + 16 = \|\vec{v}\|^2 25=v225 = \|\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=v213+62=v222+32+62=v2v=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=[w1wn]\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 cvc\vec{v}?

cv=c[v1v2vn]=[cv1cv2cvn]=(cv1)2+(cv2)2++(cvn)2=c2(v12+v22++vn2)=c2v12+v22++vn2=cv\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=cv\|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=cv\|c\vec{v}\| = |c|\,\|\vec{v}\|, so we need c5=1|c| \cdot 5 = 1, giving c=15=1vc = \frac{1}{5} = \frac{1}{\|\vec{v}\|}. Applying this:

v^=1vv=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 uv\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 uv\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 uv\vec{u} - \vec{v}, using the three side lengths u\|\vec{u}\|, v\|\vec{v}\|, and uv\|\vec{u} - \vec{v}\|.

In any triangle ABCABC, we have the following:

a2=b2+c22bccos(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=b2x2x^2 + h^2 = b^2 \implies h^2 = b^2 - x^2

From the right right triangle (legs cxc - x and hh, hypotenuse aa):

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