Vectors (Precalculus)

⚡ Key Takeaways

Vectors are mathematical objects with both magnitude and direction, written v⃗=⟨a,b⟩\vec{v} = \langle a, b \rangle. Key result: any vector can be decomposed into components, added tip-to-tail, scaled by numbers, and combined via dot products to find angles and projections. Applies to: physics (force, velocity), navigation, computer graphics, and any quantity needing direction. Originated: 19th century, formalized by Hamilton, Grassmann, and Gibbs/Heaviside.

💡 The Core Insight

A vector encodes "how much" and "which way" in a single object. Once you express it in components relative to perpendicular axes, all geometric operations — adding, scaling, rotating, measuring angles — reduce to ordinary arithmetic on those components. The bridge between the arrow picture and the number picture is what makes vectors powerful.

Formal Statement

DefinitionVector and Components

A vector in the plane is an ordered pair of real numbers, its components:

1
v⃗=⟨a,b⟩\quad \vec{v} = \langle a, b \rangle

Derivation hint: aa is the horizontal displacement, bb the vertical displacement, from the vector's tail to its tip. Here aa and bb are scalars (plain numbers). The same vector may be written using standard unit vectors ı^=⟨1,0⟩\hat{\imath} = \langle 1, 0\rangle and ȷ^=⟨0,1⟩\hat{\jmath} = \langle 0, 1\rangle:

2
v⃗=a ı^+b ȷ^\quad \vec{v} = a\,\hat{\imath} + b\,\hat{\jmath}

Derivation hint: scale ı^\hat{\imath} by aa, ȷ^\hat{\jmath} by bb, and add the results component-wise. The magnitude (length, norm) of v⃗\vec{v} is

3
∥v⃗∥=a2+b2\quad \|\vec{v}\| = \sqrt{a^2 + b^2}

Derivation hint: apply the Pythagorean theorem to the right triangle with legs aa and bb.

DefinitionComponent Form from Two Points

If a vector runs from initial point P=(x1,y1)P=(x_1,y_1) to terminal point Q=(x2,y2)Q=(x_2,y_2), then

4
PQ⃗=⟨x2−x1,  y2−y1⟩\quad \vec{PQ} = \langle x_2 - x_1,\; y_2 - y_1\rangle

Derivation hint: subtract initial coordinates from terminal coordinates — "tip minus tail."

DefinitionOperations: Addition, Scalar Multiplication

For u⃗=⟨u1,u2⟩\vec{u} = \langle u_1, u_2\rangle, v⃗=⟨v1,v2⟩\vec{v} = \langle v_1, v_2\rangle, and scalar kk:

5
u⃗+v⃗=⟨u1+v1,  u2+v2⟩\quad \vec{u} + \vec{v} = \langle u_1 + v_1,\; u_2 + v_2\rangle

Derivation hint: place vectors tip-to-tail; the resultant runs from the first tail to the last tip — equivalent to adding components.

6
ku⃗=⟨ku1,  ku2⟩\quad k\vec{u} = \langle k u_1,\; k u_2\rangle

Derivation hint: scaling stretches length by ∣k∣|k|; negative kk reverses direction.

DefinitionDot Product

The dot product (scalar product) of two vectors is

7
u⃗⋅v⃗=u1v1+u2v2\quad \vec{u}\cdot\vec{v} = u_1 v_1 + u_2 v_2

Derivation hint: multiply matching components and sum — the result is a scalar, not a vector. It also satisfies the geometric form:

8
u⃗⋅v⃗=∥u⃗∥ ∥v⃗∥cos⁡θ\quad \vec{u}\cdot\vec{v} = \|\vec{u}\|\,\|\vec{v}\|\cos\theta

Derivation hint: apply the Law of Cosines to the triangle formed by u⃗\vec{u}, v⃗\vec{v}, and u⃗−v⃗\vec{u}-\vec{v}, then simplify.

TheoremDirection Angle and Unit Vector

Any nonzero vector v⃗=⟨a,b⟩\vec{v} = \langle a, b\rangle makes a direction angle θ\theta with the positive xx-axis given by

9
θ=tan⁡−1 ⁣(ba)(adjusted by quadrant)\quad \theta = \tan^{-1}\!\left(\frac{b}{a}\right)\quad(\text{adjusted by quadrant})

Derivation hint: θ\theta is the angle of the right triangle whose opposite side is bb and adjacent side is aa. The corresponding unit vector (length 1, same direction) is

10
u^=v⃗∥v⃗∥=⟨a∥v⃗∥,  b∥v⃗∥⟩\quad \hat{u} = \frac{\vec{v}}{\|\vec{v}\|} = \left\langle \frac{a}{\|\vec{v}\|},\; \frac{b}{\|\vec{v}\|}\right\rangle

Derivation hint: divide each component by the magnitude so the new length is ∥v⃗∥/∥v⃗∥=1\|\vec{v}\|/\|\vec{v}\| = 1.

Why It Holds / Derivation

ProofGeometric form of the dot product

We show that u⃗⋅v⃗=∥u⃗∥ ∥v⃗∥cos⁡θ\vec{u}\cdot\vec{v} = \|\vec{u}\|\,\|\vec{v}\|\cos\theta.

Step 1. Form the triangle whose two sides are u⃗\vec{u} and v⃗\vec{v} emanating from a common point, with θ\theta the angle between them. The third side is the vector u⃗−v⃗\vec{u} - \vec{v}.

Step 2. Apply the Law of Cosines to this triangle, where the side opposite θ\theta has length ∥u⃗−v⃗∥\|\vec{u}-\vec{v}\|:

11
∥u⃗−v⃗∥2=∥u⃗∥2+∥v⃗∥2−2∥u⃗∥ ∥v⃗∥cos⁡θ\quad \|\vec{u}-\vec{v}\|^2 = \|\vec{u}\|^2 + \|\vec{v}\|^2 - 2\|\vec{u}\|\,\|\vec{v}\|\cos\theta

Derivation hint: this is the standard Law of Cosines with sides ∥u⃗∥,∥v⃗∥\|\vec u\|,\|\vec v\| and included angle θ\theta.

Step 3. Expand the left side using components, with u⃗−v⃗=⟨u1−v1,u2−v2⟩\vec{u}-\vec{v}=\langle u_1-v_1, u_2-v_2\rangle:

12
∥u⃗−v⃗∥2=(u1−v1)2+(u2−v2)2\quad \|\vec{u}-\vec{v}\|^2 = (u_1-v_1)^2 + (u_2-v_2)^2

Derivation hint: apply equation [3] to the difference vector.

Step 4. Multiply out: u12−2u1v1+v12+u22−2u2v2+v22u_1^2 - 2u_1v_1 + v_1^2 + u_2^2 - 2u_2v_2 + v_2^2. Group ∥u⃗∥2=u12+u22\|\vec u\|^2 = u_1^2+u_2^2 and ∥v⃗∥2=v12+v22\|\vec v\|^2 = v_1^2+v_2^2, leaving −2(u1v1+u2v2)-2(u_1v_1 + u_2v_2).

Step 5. Substitute into [11]. The ∥u⃗∥2\|\vec u\|^2 and ∥v⃗∥2\|\vec v\|^2 terms cancel on both sides, giving:

13
−2(u1v1+u2v2)=−2∥u⃗∥ ∥v⃗∥cos⁡θ\quad -2(u_1v_1+u_2v_2) = -2\|\vec{u}\|\,\|\vec{v}\|\cos\theta

Derivation hint: cancel the matching squared-magnitude terms from both sides of the equation.

Step 6. Divide by −2-2: u1v1+u2v2=∥u⃗∥∥v⃗∥cos⁡θu_1v_1+u_2v_2 = \|\vec u\|\|\vec v\|\cos\theta. The left side is the component dot product [7]. ■\blacksquare

∎
mathematician · Josiah Willard Gibbs | 1839–1903

The American physicist and mathematician J. Willard Gibbs of Yale, alongside the English engineer Oliver Heaviside, distilled the modern, practical vector notation in the 1880s. Working from Hamilton's quaternions, Gibbs stripped away the complicated parts and kept exactly what physics needed: the dot product and cross product as separate operations. His privately printed lecture notes, Elements of Vector Analysis (1881–84), gave us the ı^,ȷ^,k^\hat{\imath}, \hat{\jmath}, \hat{k} notation and the dot/cross conventions students still use. Gibbs is more famous for founding chemical thermodynamics, but his quiet reformulation of vectors shaped how every physics and engineering course is taught today.

Building Intuition

🧠 Intuition

Think of a vector as a set of walking instructions: "go 3 east and 4 north." The instructions don't depend on where you start — a vector has no fixed location, only a magnitude and direction. This is why two arrows drawn in different places represent the same vector if they have the same length and point the same way.

Adding vectors is doing one walk, then another, tip-to-tail: walk u⃗\vec u, then from where you land walk v⃗\vec v; the straight arrow from your origin to your final spot is u⃗+v⃗\vec u + \vec v. Scaling by 2 means "walk twice as far in the same direction"; scaling by −1-1 means "walk the same distance backward." The dot product measures how much two vectors point the same way. When they're parallel, it's maximal; when perpendicular, it's exactly zero; when opposite, it's negative. That single number quietly answers "what's the angle?" and "how much of this force helps push in that direction?"

Figure
Vector addition tip-to-tail and the resultant
u v u + v O tip-to-tail addition

Worked Examples

ExampleResultant force and its direction

Given: Two forces act on a bolt: F1⃗=⟨6,0⟩\vec{F_1} = \langle 6, 0\rangle N (6 N east) and F2⃗=⟨0,8⟩\vec{F_2} = \langle 0, 8\rangle N (8 N north).

Find: The magnitude and direction of the resultant force R⃗=F1⃗+F2⃗\vec{R} = \vec{F_1} + \vec{F_2}.

Step 1 — Add components (equation [5]):

R⃗=⟨6+0,  0+8⟩=⟨6,8⟩ N\vec{R} = \langle 6+0,\; 0+8\rangle = \langle 6, 8\rangle \text{ N}

Step 2 — Magnitude (equation [3]):

∥R⃗∥=62+82=36+64=100=10 N\|\vec{R}\| = \sqrt{6^2 + 8^2} = \sqrt{36+64} = \sqrt{100} = 10 \text{ N}

Step 3 — Direction angle (equation [9]):

θ=tan⁡−1 ⁣(86)=tan⁡−1(1.333)≈53.1∘\theta = \tan^{-1}\!\left(\frac{8}{6}\right) = \tan^{-1}(1.333) \approx 53.1^\circ

measured counterclockwise from east.

Answer:

∥R⃗∥=10 N at 53.1∘ north of east\boxed{\|\vec{R}\| = 10\text{ N at } 53.1^\circ \text{ north of east}}
ExampleAngle between two vectors via dot product

Given: u⃗=⟨2,3⟩\vec{u} = \langle 2, 3\rangle and v⃗=⟨4,−1⟩\vec{v} = \langle 4, -1\rangle.

Find: The angle θ\theta between them.

Step 1 — Dot product (equation [7]):

u⃗⋅v⃗=(2)(4)+(3)(−1)=8−3=5\vec{u}\cdot\vec{v} = (2)(4) + (3)(-1) = 8 - 3 = 5

Step 2 — Magnitudes (equation [3]):

∥u⃗∥=4+9=13≈3.606,∥v⃗∥=16+1=17≈4.123\|\vec{u}\| = \sqrt{4+9} = \sqrt{13}\approx 3.606,\qquad \|\vec{v}\| = \sqrt{16+1} = \sqrt{17}\approx 4.123

Step 3 — Solve [8] for cos⁡θ\cos\theta:

cos⁡θ=u⃗⋅v⃗∥u⃗∥ ∥v⃗∥=51317=5221≈514.866≈0.3363\cos\theta = \frac{\vec{u}\cdot\vec{v}}{\|\vec{u}\|\,\|\vec{v}\|} = \frac{5}{\sqrt{13}\sqrt{17}} = \frac{5}{\sqrt{221}}\approx \frac{5}{14.866}\approx 0.3363

Step 4 — Invert cosine:

θ=cos⁡−1(0.3363)≈70.3∘\theta = \cos^{-1}(0.3363)\approx 70.3^\circ

Answer:

θ≈70.3∘\boxed{\theta \approx 70.3^\circ}

Common Misconceptions

⚠️ Common mistake

Magnitudes do not add like ordinary numbers. If ∥u⃗∥=3\|\vec u\| = 3 and ∥v⃗∥=4\|\vec v\| = 4, the magnitude ∥u⃗+v⃗∥\|\vec u + \vec v\| is generally not 7. It equals 7 only when the vectors point in the same direction. In general ∥u⃗+v⃗∥\|\vec u + \vec v\| ranges from ∣4−3∣=1|4-3|=1 (opposite directions) to 3+4=73+4=7 (same direction), following the triangle inequality. Always add components first, then take the magnitude.

⚠️ Common mistake

The dot product gives a scalar, not a vector. A common error is writing u⃗⋅v⃗=⟨u1v1,u2v2⟩\vec u \cdot \vec v = \langle u_1v_1, u_2v_2\rangle. No — you multiply matching components and then sum them, producing a single number. Likewise, the calculator may return a wrong direction angle: tan⁡−1\tan^{-1} only returns values in (−90∘,90∘)(-90^\circ, 90^\circ), so you must check which quadrant the vector lies in and add 180∘180^\circ when a<0a < 0.

Counterexample

"Perpendicular vectors must look like one pointing up and one sideways." Consider u⃗=⟨3,1⟩\vec u = \langle 3, 1\rangle and v⃗=⟨−1,3⟩\vec v = \langle -1, 3\rangle — neither is along an axis, yet

u⃗⋅v⃗=(3)(−1)+(1)(3)=−3+3=0.\vec u \cdot \vec v = (3)(-1) + (1)(3) = -3 + 3 = 0.

A zero dot product means the vectors are perpendicular regardless of how "slanted" they look on the page. Perpendicularity is about the dot product, not about resembling the coordinate axes.

Connections

connection

Vectors sit at the crossroads of several precalculus topics. The magnitude formula [3] is just the Pythagorean Theorem applied to components, and the direction angle [9] is pure right-triangle Trigonometry. The proof of the dot product formula relies on the Law of Cosines. Writing a vector as ∥v⃗∥⟨cos⁡θ,sin⁡θ⟩\|\vec v\|\langle\cos\theta, \sin\theta\rangle connects directly to Polar Coordinates, and complex numbers a+bia+bi behave like vectors under addition, linking to the Complex Plane. In later study, vectors generalize into Matrices and Linear Transformations and become the foundation of Vector Calculus.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- c. 1600s: Galileo and Simon Stevin use the "parallelogram rule" to combine forces and velocities, the first practical vector addition.
- 1799: Caspar Wessel represents complex numbers as directed segments in the plane — an early geometric vector idea.
- 1830s: Giusto Bellavitis develops the calculus of "equipollences," treating equal-length, equal-direction segments as identical (the modern free-vector concept).
- 1843: William Rowan Hamilton invents quaternions, introducing the words scalar and vector and a multiplication that contains both dot and cross products.
- 1844: Hermann Grassmann publishes Die lineale Ausdehnungslehre, a far-reaching but largely ignored theory of nn-dimensional vector spaces.
- 1881–1884: J. Willard Gibbs prints lecture notes splitting Hamilton's quaternion product into independent dot and cross products, with ı^,ȷ^,k^\hat\imath,\hat\jmath,\hat k notation.
- 1893: Oliver Heaviside popularizes the same streamlined vector calculus in his work on electromagnetism, applying it to Maxwell's equations.
- 1901: Edwin Bidwell Wilson, Gibbs's student, publishes Vector Analysis, the textbook that standardized the notation taught worldwide.
- 1920s onward: Vectors become foundational to linear algebra, relativity, and quantum mechanics, cementing their place in every science curriculum.

Subtleties & Limits

open-problem

At the precalculus level, "vector" usually means an arrow in 2D or 3D — but the concept is far deeper. A vector space is any collection of objects that can be added and scaled by the rules in [5] and [6], and these objects need not be arrows at all: polynomials, functions, and infinite sequences all form vector spaces. The dot product likewise generalizes to an inner product, defining angles and lengths in spaces of functions — the engine behind Fourier analysis. A subtle warning: the cross product, unlike the dot product, exists only in three dimensions (and a quirky seven), a fact whose deep reason involves the algebra of division algebras and remained a genuine puzzle until the 20th century. Even the question "what is the most natural product of two vectors?" leads into geometric algebra, where research and pedagogy continue to evolve.

See Also

Pythagorean Theorem · Trigonometry · Law of Cosines · Polar Coordinates · Complex Plane · Matrices and Linear Transformations · Vector Calculus · Parametric Equations