Chapter 14
Medium

Vectors in 2D/3D

00 · Symbol Glossary

$\vec{v}$v arrow — directed quantity

A quantity with both a magnitude (size) and a direction — drawn as an arrow. The arrow notation v\vec{v} distinguishes a directed quantity from a plain number like xx or tt, which carries size only.

$\langle a, b\rangle$component form (2D)

A directed quantity written as an ordered pair: aa is how far it points in the horizontal direction, bb how far in the vertical direction. Angle brackets (not the round parentheses used for a point, Chapter 13) mark this as a displacement — "go aa across, bb up" — not a location.

$\langle a,b,c\rangle$component form (3D)

The same idea extended to three-dimensional space: a third component cc for displacement along a third, mutually perpendicular direction.

$\lVert\vec{v}\rVert$magnitude of v — length

The length of the arrow — always a non-negative number, computed by extending the Pythagorean theorem to however many components v\vec{v} has.

$\hat{\imath},\ \hat{\jmath},\ \hat{k}$i-hat, j-hat, k-hat — standard unit vectors

Fixed reference arrows of length 11, pointing along the horizontal, vertical, and (in 3D) depth directions respectively. Any directed quantity can be rebuilt from scaled copies of these three: a,b,c=aı^+bȷ^+ck^\langle a,b,c\rangle = a\hat{\imath}+b\hat{\jmath}+c\hat{k}.

$\vec{a}\cdot\vec{b}$dot product

An operation combining two directed quantities into a single plain number, measuring how aligned their directions are.

$\vec{a}\times\vec{b}$cross product

An operation (3D only) combining two directed quantities into a new directed quantity, perpendicular to both, whose length measures the area of the parallelogram they frame.

$\vec{r}(t)$r of t — position as a directed quantity

A directed quantity from the origin to a moving point, built from the parametric coordinate functions of Chapter 13: r(t)=x(t),y(t)\vec{r}(t) = \langle x(t), y(t)\rangle. Differentiating it in Section 05 recovers the direction and rate of motion along the curve.


01 · Directed Quantities

Some quantities are fully described by a single number: temperature, mass, the value f(3)f(3). Others need more — "the wind is blowing" is incomplete without also saying which way and how hard. A quantity with both a size and a direction is called a directed quantity, or vector, and is drawn as an arrow.

Definition — Vector (Directed Quantity)

A vector v\vec{v} is a quantity possessing both a magnitude v0\lVert\vec{v}\rVert\geq0 and a direction. Two arrows represent the same vector if they have the same length and point the same way — regardless of where they are drawn; only the displacement they encode matters, not their starting point.

Definition — Component Form

Placing a vector's tail at the origin, its tip lands at some point (a,b)(a,b) (in the plane) or (a,b,c)(a,b,c) (in space). The component form records exactly that displacement:

v=a,b(2D)v=a,b,c(3D)\vec{v} = \langle a, b\rangle \quad \text{(2D)} \qquad \vec{v} = \langle a, b, c\rangle \quad \text{(3D)}
A vector is a displacement, not a location

3,4\langle 3, 4\rangle drawn from the origin ends at the point (3,4)(3,4) — but the same arrow, slid to start at (1,1)(1,1), ends at (4,5)(4,5) instead, and is still the same vector 3,4\langle3,4\rangle, because it represents the same "go 3 across, 4 up" instruction. A point is a fixed location; a vector is an instruction for how to move.


02 · Combining Vectors: Sum and Scalar Multiple

Two operations combine directed quantities: adding two of them together, and scaling a single one by a plain number.

Definition — Vector Sum and Scalar Multiple
a1,b1+a2,b2=a1+a2, b1+b2ca,b=ca, cb\langle a_1,b_1\rangle + \langle a_2,b_2\rangle = \langle a_1+a_2,\ b_1+b_2\rangle \qquad c\langle a,b\rangle = \langle ca,\ cb\rangle

(with an analogous third component in 3D). cc is a plain number — no direction of its own — that stretches, shrinks, or reverses v\vec{v}.

Example — Adding displacements

Walking along u=2,5\vec{u}=\langle2,5\rangle (2 east, 5 north, in some fixed units) and then along v=4,1\vec{v}=\langle4,-1\rangle (4 east, 1 south) lands at the combined displacement u+v=2+4, 5+(1)=6,4\vec{u}+\vec{v} = \langle2+4,\ 5+(-1)\rangle = \langle6,4\rangle — geometrically, placing the tail of the second arrow at the tip of the first, the combined arrow runs from the very start straight to the very end.

Step-by-step — Compute $\lVert\vec{v}\rVert$ for $\vec{v}=\langle-3,0,4\rangle$
1
Square each component: (3)2=9(-3)^2=9, 02=00^2=0, 42=164^2=16.
2
Sum the squares: 9+0+16=259+0+16=25.
3
Take the square root (extending the Pythagorean theorem to three components): v=25=5\lVert\vec{v}\rVert = \sqrt{25}=5.

03 · The Dot Product

Definition — Dot Product
ab=a1b1+a2b2+a3b3equivalentlyab=abcosθ\vec{a}\cdot\vec{b} = a_1b_1+a_2b_2+a_3b_3 \qquad \text{equivalently} \qquad \vec{a}\cdot\vec{b} = \lVert\vec{a}\rVert\,\lVert\vec{b}\rVert\cos\theta

where θ\theta is the angle between the two directed quantities when their tails are placed together. The result is a plain number, not a new directed quantity.

Example — Sign of the dot product reveals alignment

a=1,0\vec{a}=\langle1,0\rangle, b=0,1\vec{b}=\langle0,1\rangle: ab=1(0)+0(1)=0\vec{a}\cdot\vec{b} = 1(0)+0(1)=0. A dot product of 00 means θ=90°\theta=90° (since cos90°=0\cos90°=0) — the two directions are perpendicular.


04 · The Cross Product (3D)

The dot product collapses two directed quantities into a plain number. The cross product instead produces a new directed quantity — one perpendicular to both original ones, defined only in three dimensions.

Definition — Cross Product

For a=a1,a2,a3\vec{a}=\langle a_1,a_2,a_3\rangle, b=b1,b2,b3\vec{b}=\langle b_1,b_2,b_3\rangle:

a×b=a2b3a3b2,  a3b1a1b3,  a1b2a2b1\vec{a}\times\vec{b} = \langle\, a_2b_3-a_3b_2,\ \ a_3b_1-a_1b_3,\ \ a_1b_2-a_2b_1\,\rangle

Each component pattern skips the matching index: the first component uses only the 22nd and 33rd components of a,b\vec a,\vec b; the second uses only the 33rd and 11st; the third uses only the 11st and 22nd.

The result a×b\vec{a}\times\vec{b} is perpendicular to both a\vec{a} and b\vec{b}, with a×b=absinθ\lVert\vec{a}\times\vec{b}\rVert = \lVert\vec{a}\rVert\lVert\vec{b}\rVert\sin\theta — the area of the parallelogram framed by the two directed quantities.

Step-by-step — Compute $\vec{a}\times\vec{b}$ for $\vec{a}=\langle1,2,0\rangle$, $\vec{b}=\langle0,3,1\rangle$
1
First component — skip index 1, use indices 2,3: a2b3a3b2=(2)(1)(0)(3)=20=2a_2b_3-a_3b_2 = (2)(1)-(0)(3) = 2-0=2.
2
Second component — skip index 2, use indices 3,1: a3b1a1b3=(0)(0)(1)(1)=01=1a_3b_1-a_1b_3 = (0)(0)-(1)(1) = 0-1=-1.
3
Third component — skip index 3, use indices 1,2: a1b2a2b1=(1)(3)(2)(0)=30=3a_1b_2-a_2b_1 = (1)(3)-(2)(0)=3-0=3.
4
Assemble: a×b=2,1,3\vec{a}\times\vec{b} = \langle2,-1,3\rangle.
5
Verify perpendicularity using the dot product (Section 03): a(a×b)=1(2)+2(1)+0(3)=22+0=0\vec{a}\cdot(\vec{a}\times\vec{b}) = 1(2)+2(-1)+0(3) = 2-2+0=0 ✓; b(a×b)=0(2)+3(1)+1(3)=03+3=0\vec{b}\cdot(\vec{a}\times\vec{b}) = 0(2)+3(-1)+1(3) = 0-3+3=0 ✓. Both dot products are 00, confirming a×b\vec{a}\times\vec{b} is perpendicular to both original directed quantities.
❌ Assuming the cross product commutes like the dot product

For a=1,0,0\vec{a}=\langle1,0,0\rangle, b=0,1,0\vec{b}=\langle0,1,0\rangle: a×b=(0)(0)(0)(1), (0)(0)(1)(0), (1)(1)(0)(0)=0,0,1\vec{a}\times\vec{b} = \langle(0)(0)-(0)(1),\ (0)(0)-(1)(0),\ (1)(1)-(0)(0)\rangle = \langle0,0,1\rangle.

Now swap the order: b×a=(1)(0)(0)(0), (0)(0)(0)(0), (0)(0)(1)(1)=0,0,1\vec{b}\times\vec{a} = \langle(1)(0)-(0)(0),\ (0)(0)-(0)(0),\ (0)(0)-(1)(1)\rangle = \langle0,0,-1\rangle.

Why it breaks: unlike the dot product (ab=ba\vec{a}\cdot\vec{b}=\vec{b}\cdot\vec{a}, since ordinary multiplication of the matching components doesn't care about order), the cross product's component pattern flips sign when the two directed quantities are swapped — each term is a difference, and swapping a,b\vec a,\vec b swaps the minuend and subtrahend in every component.

Consequence: a×b=0,0,10,0,1=b×a\vec{a}\times\vec{b} = \langle0,0,1\rangle \neq \langle0,0,-1\rangle = \vec{b}\times\vec{a} — in fact b×a=(a×b)\vec{b}\times\vec{a} = -(\vec{a}\times\vec{b}) always. Order matters for the cross product; it never commutes except in the trivial case where the result is the zero vector.


05 · Vector-Valued Functions of a Parameter

Chapter 13's parametric curve x(t),y(t)x(t), y(t) can be repackaged as a single directed quantity that changes with tt — bundling both coordinate functions into one object.

Definition — Vector-Valued Function and Its Derivative
r(t)=x(t), y(t)r(t)=x(t), y(t)\vec{r}(t) = \langle x(t),\ y(t)\rangle \qquad \vec{r}\,'(t) = \langle x'(t),\ y'(t)\rangle

r(t)\vec{r}(t) traces the same curve as Chapter 13's x(t),y(t)x(t),y(t), viewed as a directed quantity from the origin to the moving point. Each component of r(t)\vec{r}\,'(t) is differentiated exactly as in Chapter 02 — componentwise.

Geometric meaning of the derivative

r(t)\vec{r}\,'(t) points in the direction the curve is currently heading at parameter value tt — tangent to the path, not perpendicular to it. If tt is interpreted as time, r(t)\vec{r}\,'(t) is the instantaneous velocity: its direction is which way motion is heading, and its magnitude r(t)\lVert\vec{r}\,'(t)\rVert is the speed — a single non-negative number, matching Chapter 02's ordinary derivative-as-rate-of-change idea, just carrying a direction alongside the rate now.

Step-by-step — Find the velocity and speed of $\vec{r}(t) = \langle t^2, t^3-3t\rangle$ at $t=2$
1
Differentiate each component (Chapter 02, power rule): x(t)=2tx'(t)=2t; y(t)=3t23y'(t)=3t^2-3.
2
Assemble the velocity vector: r(t)=2t, 3t23\vec{r}\,'(t) = \langle2t,\ 3t^2-3\rangle.
3
Substitute t=2t=2: r(2)=4, 9\vec{r}\,'(2) = \langle4,\ 9\rangle (matching Chapter 13, Section 01's slope example on this same curve: dydx=94\dfrac{dy}{dx}=\dfrac{9}{4}, exactly the ratio of these two components).
4
Compute the speed — the magnitude of the velocity vector (Section 02's formula): r(2)=42+92=16+81=979.85\lVert\vec{r}\,'(2)\rVert = \sqrt{4^2+9^2} = \sqrt{16+81}=\sqrt{97}\approx9.85.
❌ Confusing the magnitude of a sum with the sum of magnitudes

For u=3,0\vec{u}=\langle3,0\rangle and v=0,4\vec{v}=\langle0,4\rangle: a tempting shortcut is u+v=?u+v=3+4=7\lVert\vec u+\vec v\rVert \overset{?}{=} \lVert\vec u\rVert+\lVert\vec v\rVert = 3+4=7.

Why it breaks: u+v=3,4\vec u+\vec v = \langle3,4\rangle, so the actual magnitude is u+v=32+42=25=5\lVert\vec u+\vec v\rVert = \sqrt{3^2+4^2}=\sqrt{25}=5, not 77. Adding lengths ignores that the two directed quantities point in different directions — combining magnitudes directly only works when two vectors point the exact same way.

Consequence: 5<75 < 7 here — in general u+vu+v\lVert\vec u+\vec v\rVert \leq \lVert\vec u\rVert+\lVert\vec v\rVert (equality only when u,v\vec u,\vec v point in the same direction), so magnitudes never simply add unless direction is accounted for.


06 · Exercises

EXERCISE 14.1

Add corresponding components; scale every component by the given constant.

u=2,3,1\vec{u}=\langle2,-3,1\rangle, v=1,4,2\vec{v}=\langle-1,4,2\rangle. u+v=2+(1),3+4,1+2=1,1,3\vec u+\vec v = \langle2+(-1),\,-3+4,\,1+2\rangle = \langle1,1,3\rangle. 3u=6,9,33\vec u = \langle6,-9,3\rangle.

Compute u+v\vec u+\vec v and 3u3\vec u for u=2,3,1\vec u=\langle2,-3,1\rangle, v=1,4,2\vec v=\langle-1,4,2\rangle.

EXERCISE 14.2

Multiply matching components and sum; the sign of the result reveals whether the angle between the vectors is acute, right, or obtuse.

a=2,1,3\vec a=\langle2,-1,3\rangle, b=1,4,1\vec b=\langle1,4,1\rangle. ab=2(1)+(1)(4)+3(1)=24+3=1\vec a\cdot\vec b = 2(1)+(-1)(4)+3(1) = 2-4+3=1. Positive, so the angle between them is acute (less than 90°90°).

Compute ab\vec a\cdot\vec b for a=2,1,3\vec a=\langle2,-1,3\rangle, b=1,4,1\vec b=\langle1,4,1\rangle, and state whether the angle between them is acute, right, or obtuse.

EXERCISE 14.3

Apply the component-skipping pattern from Section 04 for each of the three output components.

a=3,0,1\vec a=\langle3,0,-1\rangle, b=1,2,2\vec b=\langle1,2,2\rangle. First: a2b3a3b2=0(2)(1)(2)=0+2=2a_2b_3-a_3b_2 = 0(2)-(-1)(2)=0+2=2. Second: a3b1a1b3=(1)(1)3(2)=16=7a_3b_1-a_1b_3=(-1)(1)-3(2)=-1-6=-7. Third: a1b2a2b1=3(2)0(1)=60=6a_1b_2-a_2b_1=3(2)-0(1)=6-0=6. a×b=2,7,6\vec a\times\vec b = \langle2,-7,6\rangle.

Compute a×b\vec a\times\vec b for a=3,0,1\vec a=\langle3,0,-1\rangle, b=1,2,2\vec b=\langle1,2,2\rangle.

EXERCISE 14.4

Differentiate each component of the position vector separately, then compute the magnitude of the resulting velocity vector.

r(t)=cost, sint\vec r(t) = \langle\cos t,\ \sin t\rangle. r(t)=sint, cost\vec r\,'(t) = \langle-\sin t,\ \cos t\rangle (Chapter 02, Section 09). At t=π2t=\dfrac\pi2: r(π2)=1,0\vec r\,'\left(\frac\pi2\right) = \langle-1, 0\rangle. Speed: r(π/2)=(1)2+02=1\lVert\vec r\,'(\pi/2)\rVert = \sqrt{(-1)^2+0^2}=1 — constant speed 11 at every tt, in fact, since r(t)=sin2t+cos2t=1\lVert\vec r\,'(t)\rVert=\sqrt{\sin^2t+\cos^2t}=1 always.

Find the velocity vector and speed of r(t)=cost, sint\vec r(t) = \langle\cos t,\ \sin t\rangle at t=π2t=\dfrac{\pi}{2}.

EXERCISE 14.5

Recall which operation from this chapter changes sign when its two inputs are swapped, and by how much.

The cross product anticommutes: a×b=(b×a)\vec a\times\vec b = -(\vec b\times\vec a) (Section 04's FailBlock). The dot product commutes: ab=ba\vec a\cdot\vec b=\vec b\cdot\vec a, since it is built from ordinary multiplication of matching components, and ordinary multiplication does not care about order.

Explain, using the definitions from Sections 03–04, why the dot product is symmetric in its two inputs (ab=ba\vec a\cdot\vec b=\vec b\cdot\vec a) while the cross product is not.

EXERCISE 14.6

A price and a hedge ratio each moving in a specific "direction" per unit of a driver quantity is naturally modeled as a directed quantity — combine two such quantities by adding components.

Two trading signals produce per-day directional adjustments s1=0.02,0.01\vec s_1 = \langle 0.02, -0.01\rangle and s2=0.03,0.04\vec s_2 = \langle -0.03, 0.04\rangle (units: fractional position change in two assets). Combined daily adjustment: s1+s2=0.020.03, 0.01+0.04=0.01, 0.03\vec s_1+\vec s_2 = \langle 0.02-0.03,\ -0.01+0.04\rangle = \langle-0.01,\ 0.03\rangle. Magnitude of the combined adjustment: s1+s2=(0.01)2+(0.03)2=0.0001+0.0009=0.0010.0316\lVert\vec s_1+\vec s_2\rVert = \sqrt{(-0.01)^2+(0.03)^2}=\sqrt{0.0001+0.0009}=\sqrt{0.001}\approx0.0316.

Two trading signals produce daily directional position adjustments s1=0.02,0.01\vec s_1=\langle0.02,-0.01\rangle and s2=0.03,0.04\vec s_2=\langle-0.03,0.04\rangle across two assets. Find the combined daily adjustment and its magnitude.


07 · Chapter Summary

ConceptFormula / Rule
VectorDirected quantity: magnitude + direction, drawn as an arrow
Component forma,b\langle a,b\rangle (2D) or a,b,c\langle a,b,c\rangle (3D) — a displacement, not a location
Magnitudev=a2+b2(+c2)\lVert\vec v\rVert = \sqrt{a^2+b^2(+c^2)}
Sum / scalar multipleComponentwise addition; scale every component by cc
Dot productab=aibi=abcosθ\vec a\cdot\vec b = \sum a_ib_i = \lVert\vec a\rVert\lVert\vec b\rVert\cos\theta; commutes
Cross product (3D)a×b\vec a\times\vec b, perpendicular to both; anticommutes: a×b=b×a\vec a\times\vec b=-\vec b\times\vec a
Vector-valued functionr(t)=x(t),y(t)\vec r(t)=\langle x(t),y(t)\rangle; r(t)\vec r\,'(t) = velocity, r(t)\lVert\vec r\,'(t)\rVert = speed

Next: Chapter 15 — Partial Derivatives, which extends the derivative to functions of more than one variable, using directed quantities to describe the direction of steepest change.