Vectors in 2D/3D
00 · Symbol Glossary
A quantity with both a magnitude (size) and a direction — drawn as an arrow. The arrow notation distinguishes a directed quantity from a plain number like or , which carries size only.
A directed quantity written as an ordered pair: is how far it points in the horizontal direction, how far in the vertical direction. Angle brackets (not the round parentheses used for a point, Chapter 13) mark this as a displacement — "go across, up" — not a location.
The same idea extended to three-dimensional space: a third component for displacement along a third, mutually perpendicular direction.
The length of the arrow — always a non-negative number, computed by extending the Pythagorean theorem to however many components has.
Fixed reference arrows of length , pointing along the horizontal, vertical, and (in 3D) depth directions respectively. Any directed quantity can be rebuilt from scaled copies of these three: .
An operation combining two directed quantities into a single plain number, measuring how aligned their directions are.
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.
A directed quantity from the origin to a moving point, built from the parametric coordinate functions of Chapter 13: . 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 . 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.
A vector is a quantity possessing both a magnitude 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.
Placing a vector's tail at the origin, its tip lands at some point (in the plane) or (in space). The component form records exactly that displacement:
drawn from the origin ends at the point — but the same arrow, slid to start at , ends at instead, and is still the same vector , 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.
(with an analogous third component in 3D). is a plain number — no direction of its own — that stretches, shrinks, or reverses .
Walking along (2 east, 5 north, in some fixed units) and then along (4 east, 1 south) lands at the combined displacement — 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.
03 · The Dot Product
where 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.
, : . A dot product of means (since ) — 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.
For , :
Each component pattern skips the matching index: the first component uses only the nd and rd components of ; the second uses only the rd and st; the third uses only the st and nd.
The result is perpendicular to both and , with — the area of the parallelogram framed by the two directed quantities.
For , : .
Now swap the order: .
Why it breaks: unlike the dot product (, 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 swaps the minuend and subtrahend in every component.
Consequence: — in fact 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 can be repackaged as a single directed quantity that changes with — bundling both coordinate functions into one object.
traces the same curve as Chapter 13's , viewed as a directed quantity from the origin to the moving point. Each component of is differentiated exactly as in Chapter 02 — componentwise.
points in the direction the curve is currently heading at parameter value — tangent to the path, not perpendicular to it. If is interpreted as time, is the instantaneous velocity: its direction is which way motion is heading, and its magnitude 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.
For and : a tempting shortcut is .
Why it breaks: , so the actual magnitude is , not . 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: here — in general (equality only when point in the same direction), so magnitudes never simply add unless direction is accounted for.
06 · Exercises
Add corresponding components; scale every component by the given constant.
, . . .
Compute and for , .
Multiply matching components and sum; the sign of the result reveals whether the angle between the vectors is acute, right, or obtuse.
, . . Positive, so the angle between them is acute (less than ).
Compute for , , and state whether the angle between them is acute, right, or obtuse.
Apply the component-skipping pattern from Section 04 for each of the three output components.
, . First: . Second: . Third: . .
Compute for , .
Differentiate each component of the position vector separately, then compute the magnitude of the resulting velocity vector.
. (Chapter 02, Section 09). At : . Speed: — constant speed at every , in fact, since always.
Find the velocity vector and speed of at .
Recall which operation from this chapter changes sign when its two inputs are swapped, and by how much.
The cross product anticommutes: (Section 04's FailBlock). The dot product commutes: , 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 () while the cross product is not.
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 and (units: fractional position change in two assets). Combined daily adjustment: . Magnitude of the combined adjustment: .
Two trading signals produce daily directional position adjustments and across two assets. Find the combined daily adjustment and its magnitude.
07 · Chapter Summary
| Concept | Formula / Rule |
|---|---|
| Vector | Directed quantity: magnitude + direction, drawn as an arrow |
| Component form | (2D) or (3D) — a displacement, not a location |
| Magnitude | |
| Sum / scalar multiple | Componentwise addition; scale every component by |
| Dot product | ; commutes |
| Cross product (3D) | , perpendicular to both; anticommutes: |
| Vector-valued function | ; = velocity, = 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.