Vectors & 3D Geometry
Simple, everyday explanations for beginners.
What is a Vector?
| Idea | Everyday Analogy |
|---|---|
| Vector | An arrow that shows where and how far something moves. |
| Direction | The way the arrow points. |
| Length | How long the arrow is; it tells you the distance. |
Key point: A vector is not just a number. It is a pair (or triple) of numbers that describe an arrow in space.
Representing a Vector
- In 2‑D:
<x, y> - In 3‑D:
<x, y, z>
Think of <x, y, z> as a tiny measuring stick that starts at the origin (0,0,0) and ends at the point (x, y, z).
Tiny Example
A vector from the origin to the point (3, 4, 0) is written <3, 4, 0>.
Its length is 5 (3‑4‑5 triangle).
Adding Vectors
Adding is like putting two arrows end‑to‑end.
<x1, y1, z1>
+ <x2, y2, z2>
= <x1+x2, y1+y2, z1+z2>
Example
<2, 1, 0> + <1, 3, 0> = <3, 4, 0>.
Multiplying by a Number (Scalar)
Stretch or shrink the arrow without changing its direction.
k * <x, y, z> = <k·x, k·y, k·z>
Example
2 * <1, 2, 3> = <2, 4, 6>.
Length (Magnitude) of a Vector
The length is the straight‑line distance from start to end.
|<x, y, z>| = √(x² + y² + z²)
Example
Length of <3, 4, 0> = √(9 + 16) = 5.
Dot Product (How Aligned Two Vectors Are)
Think of it as “how much do two arrows point in the same direction?”
< a, b, c > · < d, e, f > = a·d + b·e + c·f
- Result is a single number.
- If the result is 0, the vectors are perpendicular (at right angles).
Example
<1, 0, 0> · <0, 1, 0> = 0 → the arrows are at right angles.
Cross Product (Perpendicular Arrow)
The cross product gives a new arrow that is perpendicular to both input arrows.
(It’s like finding a direction that is “out of the page” when the other two lie in the page.)
< a, b, c > × < d, e, f > = < b·f – c·e, c·d – a·f, a·e – b·d >
Example
<1, 0, 0> × <0, 1, 0> = <0, 0, 1> – a new arrow pointing straight up.
3‑D Space Basics
| Item | Analogy |
|---|---|
| x‑axis | East‑West line |
| y‑axis | North‑South line |
| z‑axis | Up‑Down line |
A point is written as (x, y, z).
Distance Between Two Points
The straight‑line distance is just the length of the vector that connects them.
Distance = √[(x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²]
Example
Distance from (1,2,3) to (4,5,6)
= √[(3)² + (3)² + (3)²] = √27 ≈ 5.2.
Lines in 3‑D
A line can be described with a point on it and a direction arrow