Discord

INAIO Guide Stage 1 10Coordinate Geometry and Vectors

10.3 Vectors and vector operations

Represent displacements as vectors and combine them through addition, subtraction, scaling, and length.

A point says where something is; a vector says how far and in which direction it moves. Vector notation also packages several features into one object, making it useful in geometry, physics, and machine learning.

This is intermediate geometry. OpenStax's vector lesson starts with drawings and components. Review coordinates before continuing.

A basic idea: directed displacement

The vector from A=(x1,y1)A=(x_1,y_1) to B=(x2,y2)B=(x_2,y_2) is AB→=(x2−x1,y2−y1)\overrightarrow{AB}=(x_2-x_1,y_2-y_1). A vector can be drawn elsewhere without changing its components: only its length and direction matter.

Vector u goes from the origin to (3,1), vector v continues from (3,1) to (4,3), and their sum points from the origin to (4,3).Vector u goes from the origin to (3,1), vector v continues from (3,1) to (4,3), and their sum points from the origin to (4,3).
Place vectors head to tail to see their sum.

A quick tour of operations

For u=(ux,uy)u=(u_x,u_y) and v=(vx,vy)v=(v_x,v_y),

u+v=(ux+vx,uy+vy),u−v=(ux−vx,uy−vy),cu=(cux,cuy).u+v=(u_x+v_x,u_y+v_y),\quad u-v=(u_x-v_x,u_y-v_y),\quad cu=(cu_x,cu_y).

The length or norm is ∥u∥=ux2+uy2\|u\|=\sqrt{u_x^2+u_y^2}. The zero vector (0,0)(0,0) has length zero. Multiplying by a negative scalar reverses direction; adding vectors head to tail gives the net movement.

Application 1: two robot moves

A robot moves u=(3,1)u=(3,1), then v=(1,2)v=(1,2) from the origin.

  1. Add components: u+v=(3+1,1+2)=(4,3)u+v=(3+1,1+2)=(4,3).
  2. Its final position is (4,3)(4,3) and its net displacement length is 42+32=5\sqrt{4^2+3^2}=5.
  3. The distance it actually travelled along the two straight moves is 10+5≈5.40\sqrt{10}+\sqrt5\approx5.40, which is longer than the net displacement 55.

Application 2: feature changes

A point has features (6,4)(6,4) and is updated to (2,7)(2,7). The change vector is (2,7)−(6,4)=(−4,3)(2,7)-(6,4)=(-4,3). It means the first feature fell by 44 and the second rose by 33; its norm is (−4)2+32=5\sqrt{(-4)^2+3^2}=5. Subtraction tells you the change even when the coordinates do not represent physical movement.

Resources

SourceTitleWhy read it
OpenStaxVectorsLearn components, magnitude, and vector operations.

Finished this module? Mark it done.

Comments

Stuck on something, spotted a mistake, or found a resource that helped you? Tell us below.

Loading comments