Lesson 1 of 6
Coordinates and vector operations
A vector is an arrow with size and direction; coordinates record how far it moves along each axis.
Core lesson · about 5 minutes · 3 guided parts
To walk from the classroom to the library, go 4 metres east and 3 metres north. The vector ⟨4,3⟩ stores the trip, and it can be slid anywhere without changing its length or direction.
Your learning route
Build the idea one piece at a time
- Points, displacement, and components
- Addition and scalar multiplication
- Combine movements without losing direction
Points, displacement, and components
A point says where; a vector says how to move.
The vector from A to B is B−A, found by subtracting corresponding coordinates.
Equal vectors have equal components even if their arrows start at different locations.
In d dimensions, a vector is an ordered list ⟨v₁,…,v_d⟩; each component measures movement along one coordinate axis.
A point names a location, while a vector names a displacement. Subtracting endpoint minus start removes the shared origin and leaves only how far and in which coordinate directions to move.
Displacements telescope along a route: vector AB plus vector BC equals vector AC. The middle coordinates cancel when (B−A)+(C−B) is simplified.
Components depend on the chosen axes, so state their order and units. The vector ⟨3,−2⟩ could mean 3 m east and 2 m south only after those axes are declared.
vector AB = B − AWorked example
Find the displacement from A=(−1,2) to B=(4,−2).
- Subtract starting coordinates from ending coordinates.
- x-component: 4−(−1)=5.
- y-component: −2−2=−4.
- Therefore B−A=⟨5,−4⟩.
Answer: ⟨5,−4⟩
Addition and scalar multiplication
Add movements component by component; a scalar stretches or reverses the whole arrow.
u+v represents doing movement u and then v, and vector addition is commutative.
Multiplying by c scales length by |c|; a negative c also reverses direction.
A linear combination c₁v₁+⋯+cₖvₖ builds new directions from available vectors.
The parallelogram picture shows vector addition: draw u and v from one point, and the opposite corner is u+v. Component addition produces that same diagonal.
A scalar of 0 collapses a vector to the zero vector, a scalar between 0 and 1 shortens it, and a negative scalar also turns it around.
A linear combination asks what movements can be built from available directions. Two non-parallel vectors in a plane can reach every planar displacement through suitable coefficients.
c⟨v₁,…,vd⟩=⟨cv₁,…,cvd⟩Worked example
Let u=⟨2,−1⟩ and v=⟨−3,4⟩. Find 2u−v.
- Scale u: 2u=⟨4,−2⟩.
- Subtract v componentwise.
- ⟨4,−2⟩−⟨−3,4⟩=⟨4+3,−2−4⟩.
- The result is ⟨7,−6⟩.
Answer: ⟨7,−6⟩
Practical deep dive for this lesson
Combine movements without losing direction
A vector records several coordinated changes at once, so adding vectors gives the net effect of consecutive movements or forces.
A scalar records size only, such as 5 seconds. A vector records components relative to chosen axes, such as 5 metres east and 2 metres north.
Coordinates are instructions: ⟨3,−1⟩ means move 3 units in the positive first-axis direction and 1 unit in the negative second-axis direction.
Vector addition combines matching components because east-west changes affect only the east-west result and north-south changes affect only north-south.
Scalar multiplication changes every component. A negative scalar also reverses direction; multiplying by −2 reverses the arrow and doubles its length.
Subtracting positions gives displacement. If a trip starts at A and ends at B, the vector B−A points from A to B regardless of the route travelled.
Forces, velocities, pixel colours, model features, and embedding coordinates are stored as vectors so one operation can update every component consistently.
The coordinate values depend on axes and units, but the physical arrow does not. Rotating the coordinate system changes components while preserving the underlying displacement.
A net vector does not reveal the full path. Several different journeys can have the same start, end, and displacement but different travelled distances.
net displacement = Σ movement vectors; final position = initial position + net displacementWorked example
A drone flies 120 m east and 50 m north, then 30 m west and 80 m south. Find its net displacement vector and final coordinates if it began at (40,20) m.
- Choose east as positive x and north as positive y.
- The first flight vector is ⟨120,50⟩ m.
- West and south are negative directions, so the second vector is ⟨−30,−80⟩ m.
- Add components: ⟨120,50⟩+⟨−30,−80⟩=⟨90,−30⟩ m.
- This means the net result is 90 m east and 30 m south of the start.
- Add displacement to the starting position: ⟨40,20⟩+⟨90,−30⟩.
- The final coordinates are ⟨130,−10⟩ m.
- Subtracting final minus initial, ⟨130,−10⟩−⟨40,20⟩=⟨90,−30⟩, confirms the result.
Answer: Net displacement ⟨90,−30⟩ m; final position (130,−10) m.
Check your picture
If P=(3,1) and vector v=⟨−2,5⟩, where does P+v land?
Reveal answer
(1,6)
This lesson versus the whole chapter
Your topic-specific practical example is above.
The final lesson collects five longer chapter-wide workflows for machine learning, LLMs, trading, physics, and everyday decisions.
Formula shelf
Symbols with meaning
AB=B−AVector pointing from point A to point B.
‖v‖₂=√(Σvᵢ²)Straight-line vector length.
d(p,q)=‖p−q‖₂Straight-line separation of two points.
u·v=Σuᵢvᵢ=‖u‖‖v‖cosθMeasures directional alignment.
projvu=((u·v)/(v·v))vAligned part of u along v.
r(t)=p+tdAll points reached from p along d.
|ax₀+by₀+cz₀−d|/√(a²+b²+c²)Shortest separation along the normal.
area=‖u×v‖Area of the spanned parallelogram.
u₂=v₂−proju₁(v₂)Removes the part of a vector already explained by an earlier direction.
P=αA+βB+γC, α+β+γ=1Locates a point using weights on triangle vertices.
Before moving on
You are ready when you can…
- Distinguish points from vectors and calculate vector combinations.
- Compute norms, distances, and normalized directions.
- Use dot products for angles, similarity, orthogonality, and projections.
- Represent lines and planes and calculate their intersections or distances.
- Build orthonormal directions with Gram–Schmidt and locate points with barycentric weights.
- Use cross products in 3D and reason carefully about high-dimensional embeddings.