Mathematics

Vectors in the Plane

Concept of a vector, graphical and analytical operations, magnitude, direction, normalization, and study of the dot product including angle calculation and projections.

A vector v\vec{v} is a directed line segment. It is denoted by a coordinate pair (vx,vy)(v_x, v_y) representing its horizontal and vertical displacement, respectively, in the Cartesian plane R2\mathbb{R}^2.

Ex.: v=(3,2)\vec{v} = (3, 2)
Vector in the coordinate plane indicating its horizontal and vertical components

Vector between two points: Given two points A(ax,ay)A(a_x, a_y) and B(bx,by)B(b_x, b_y), the vector AB\vec{AB} is the directed segment from the initial point AA to the terminal point BB. It is given by:
AB=(bxax,byay)\vec{AB} = (b_x - a_x, b_y - a_y)
Vector drawn from origin point A to destination point B

Magnitude (or modulus): is the length or size of the vector.
v=vx2+vy2|\vec{v}| = \sqrt{v_x^2 + v_y^2}
Direction angle: is the angle α\alpha formed with the positive x-axis:
α=arctanvyvx\alpha = \arctan \, \frac{v_y}{v_x}
Representation of the magnitude of a vector and its angle alpha with respect to the horizontal axis

Unit vector: is a vector with a magnitude of 1.

Normalizing a vector u\vec{u} : means finding a unit vector nu\vec{n}_u that has the same direction as u\vec{u} :
nu=(uxu,uyu)\vec{n}_u = \left( \frac{u_x}{|\vec{u}|}, \frac{u_y}{|\vec{u}|} \right)
Addition
Given u=(ux,uy)\vec{u} = (u_x, u_y) and v=(vx,vy)\vec{v} = (v_x, v_y). The sum is:
u+v=(ux+vx,uy+vy)\vec{u} + \vec{v} = (u_x + v_x, u_y + v_y)
Example: u=(2,3);v=(2,1)    u+v=(2+2,31)=(4,2)\vec{u} = (2,3); \quad \vec{v} = (2,-1) \implies \vec{u} + \vec{v} = (2+2, 3-1) = (4,2)
Graphical addition of vectors using the polygon or parallelogram rule

Scalar Multiplication
Given v=(vx,vy)\vec{v} = (v_x, v_y) and a scalar kk. The product kvk \cdot \vec{v} is:
kv=(kvx,kvy)k \cdot \vec{v} = (k \cdot v_x, k \cdot v_y)
Example: Let v=(2,1);k=2    2v=(22,21)=(4,2)\vec{v} = (2,1); \quad k = 2 \implies 2 \cdot \vec{v} = (2 \cdot 2, 2 \cdot 1) = (4,2)
Original vector and the same vector multiplied by 2, being twice as long
Algebraic Definition
Given two vectors u=(ux,uy)\vec{u} = (u_x, u_y) and v=(vx,vy)\vec{v} = (v_x, v_y). The dot product uv\vec{u} \cdot \vec{v} is a scalar given by:
uv=uxvx+uyvy\vec{u} \cdot \vec{v} = u_x \cdot v_x + u_y \cdot v_y
Alternatively, it can be calculated using its geometric definition:
uv=uvcosα\vec{u} \cdot \vec{v} = |\vec{u}| \cdot |\vec{v}| \cdot \cos \alpha
Where α\alpha is the angle between the two vectors.

Example: u=(2,3);v=(2,1)    uv=22+3(1)=1\vec{u} = (2,3); \quad \vec{v} = (2,-1) \implies \vec{u} \cdot \vec{v} = 2 \cdot 2 + 3 \cdot (-1) = 1

Angle between two vectors
Solving for the angle using the geometric definition of the dot product:
α=arccos(uvuv)\alpha = \arccos \left( \frac{\vec{u} \cdot \vec{v}}{|\vec{u}| \cdot |\vec{v}|} \right)
Graphical representation of the angle alpha between vectors u and v

Vector Projection
The projection of vector u\vec{u} onto v\vec{v} is a vector in the direction of v\vec{v}, calculated as:
projvu=uvv2v\text{proj}_{\vec{v}} \, \vec{u} = \frac{\vec{u} \cdot \vec{v}}{|\vec{v}|^2} \, \vec{v}
Orthogonal projection of vector u onto the direction of vector v
Orthogonal (Perpendicular) Vectors
If two vectors u\vec{u} and v\vec{v} are orthogonal (perpendicular), they form an angle α=90\alpha = 90^\circ. Since cos90=0\cos 90^\circ = 0, their dot product is zero:
uv=0\vec{u} \cdot \vec{v} = 0
Given a vector v=(vx,vy)\vec{v} = (v_x, v_y), we can easily find a perpendicular vector in the form:
uv=(vy,vx)or(vy,vx)\vec{u}_{\perp \vec{v}} = (-v_y, v_x) \quad \text{or} \quad (v_y, -v_x)

Parallel Vectors
If two vectors are parallel, they have the same or opposite direction, meaning their coordinates are proportional. It holds that:
u=kvoruyux=vyvx\vec{u} = k \cdot \vec{v} \quad \text{or} \quad \frac{u_y}{u_x} = \frac{v_y}{v_x}
Distance between two points
The distance between points A(ax,ay)A(a_x, a_y) and B(bx,by)B(b_x, b_y) is equal to the magnitude of the vector connecting them:
d(A,B)=(bxax)2+(byay)2=ABd(A, B) = \sqrt{(b_x - a_x)^2 + (b_y - a_y)^2} = |\vec{AB}|

Midpoint of a line segment
The coordinates of the midpoint MM of a segment formed by points A(ax,ay)A(a_x, a_y) and B(bx,by)B(b_x, b_y) are given by the average of their coordinates:
M=(ax+bx2,ay+by2)M = \left( \frac{a_x + b_x}{2}, \frac{a_y + b_y}{2} \right)
Point M located exactly in the middle of the segment formed by A and B

Symmetric Point (Reflection of a point across another point)
Given points A(ax,ay)A(a_x, a_y) and B(bx,by)B(b_x, b_y), the point C(x,y)C(x, y), which is the reflection of AA across BB, must satisfy that vector AB\vec{AB} equals vector BC\vec{BC}:
AB=BC    (bxax,byay)=(xbx,yby)\vec{AB} = \vec{BC} \implies (b_x - a_x, b_y - a_y) = (x - b_x, y - b_y)
Vectors AB and BC of equal length and direction showing C as a symmetric point
Example: Find the symmetric point of A(2,3)A(2, 3) with respect to B(1,2)B(1, -2).
Since AB=(12,23)=(1,5)\vec{AB} = (1-2, -2-3) = (-1, -5) and BC=(x1,y(2))=(x1,y+2)\vec{BC} = (x-1, y-(-2)) = (x-1, y+2):
(1,5)=(x1,y+2)(-1, -5) = (x - 1, y + 2)
Equating the coordinates, we get x=0x = 0 and y=7y = -7, so the point is C(0,7)C(0, -7).