,

A vector describes a directed displacement: how far and in which direction one position differs from another. A point identifies a location; a vector describes a change between locations. The same vector can be drawn with different starting points without changing its components.

For A(x1,y1)A(x_1,y_1) and B(x2,y2)B(x_2,y_2),

AB→=(x2−x1,y2−y1).\overrightarrow{AB}=(x_2-x_1,\ y_2-y_1).

Subtract the initial position from the final position consistently. Reversing the endpoints reverses the vector: BA→=−AB→\overrightarrow{BA}=-\overrightarrow{AB}.

On this page

Components, magnitude and direction

For A(−2,1)A(-2,1) and B(4,5)B(4,5), the displacement is (6,4)(6,4). Its magnitude is

|AB→|=62+42=52=213.\left|\overrightarrow{AB}\right|=\sqrt{6^2+4^2}=\sqrt{52}=2\sqrt{13}.

The point (6,4)(6,4) is the endpoint of a copy of that vector drawn from the origin. It is not the original endpoint BB unless the original starting point was the origin.

A zero vector has components (0,0)(0,0) and magnitude zero, with no unique direction. Every non-zero vector has a direction, but an inverse-tangent calculation needs quadrant information. The ratio y/xy/x alone cannot distinguish a vector from its negative. Bearings, Heights and Distances handles directional conventions in applications.

Adding and subtracting vectors

For 𝐮=(3,1)\mathbf u=(3,1) and 𝐯=(−1,4)\mathbf v=(-1,4),

𝐮+𝐯=(2,5),𝐮−𝐯=(4,−3).\mathbf u+\mathbf v=(2,5),\qquad \mathbf u-\mathbf v=(4,-3).

To add geometrically, place a copy of 𝐯\mathbf v at the head of 𝐮\mathbf u. The resultant runs from the first tail to the final head. This is a displacement relationship, not a requirement that the arrows remain attached to the origin.

Add displacements head to tail

Add displacements head to tailVector u is three, one and vector v is negative one, four. Placing v at the head of u gives resultant two, five.−2−112345−112345670xyO(3, 1)(2, 5)u = (3, 1)v = (−1, 4)u + v
The second arrow represents v wherever it is placed. A vector is not tied to one starting point.
Diagram explanation and exact data

Adding components gives (3,1)+(−1,4)=(2,5). The resultant connects the starting point to the final point, not the midpoint between the two arrowheads.

Add displacements head to tail: exact reference data
Vector Components Magnitude
u (3,1)(3,1) 10\sqrt{10}
v (−1,4)(-1,4) 17\sqrt{17}
u + v (2,5)(2,5) 29\sqrt{29}

The two-step route has length 10+17\sqrt{10}+\sqrt{17}, while the resultant magnitude is 29\sqrt{29}. Magnitudes do not generally add because changes of direction affect the net displacement. They add for vectors pointing in the same direction, and subtraction can occur for opposite directions.

Scalar multiplication and unit vectors

Multiplying by a scalar kk changes components to k𝐮k\mathbf u. Its magnitude is |k||𝐮||k|\,|\mathbf u|. A negative scalar reverses direction.

For 𝐮=(3,4)\mathbf u=(3,4), |𝐮|=5|\mathbf u|=5 and the unit vector in its direction is

𝐮̂=𝐮|𝐮|=(35,45).\widehat{\mathbf u}=\frac{\mathbf u}{|\mathbf u|}=\left(\frac35,\frac45\right).

Its squared magnitude is 9/25+16/25=19/25+16/25=1. A unit vector supplies direction without the original magnitude. There is no unit vector obtained by normalizing the zero vector, because that would divide by zero.

Non-zero vectors are parallel when one is a scalar multiple of the other. For example, (6,−9)=−3(−2,3)(6,-9)=-3(-2,3), so these vectors are parallel with opposite directions. Equal magnitudes alone do not imply parallelism.

The dot product and perpendicular directions

The dot product of 𝐮=(u1,u2)\mathbf u=(u_1,u_2) and 𝐯=(v1,v2)\mathbf v=(v_1,v_2) is

𝐮⋅𝐯=u1v1+u2v2.\mathbf u\cdot\mathbf v=u_1v_1+u_2v_2.

For non-zero vectors it also equals |𝐮||𝐯|cosθ|\mathbf u||\mathbf v|\cos\theta, where 0≤θ≤π0\le\theta\le\pi is the angle between them. Therefore a zero dot product establishes perpendicular directions.

For (3,4)(3,4) and (4,−3)(4,-3), the product is 12−12=012-12=0, so the vectors are perpendicular. The zero vector has zero dot product with every vector algebraically, but it has no direction; do not use it to infer a right angle between two directed segments.

For (1,0)(1,0) and (1,3)(1,\sqrt3), the dot product is 11, and the magnitudes are 11 and 22. Thus cosθ=1/2\cos\theta=1/2 and the angle is 60∘60^\circ.

Points dividing a segment

A point on the line through distinct points A,BA,B can be written

P=A+t(B−A).P=A+t(B-A).

When 0≤t≤10\le t\le1, it lies on the segment. The midpoint uses t=1/2t=1/2. Values outside that interval lie on extensions of the segment.

If AP:PB=m:nAP:PB=m:n for positive m,nm,n, then t=m/(m+n)t=m/(m+n) and

P=nA+mBm+n.P=\frac{nA+mB}{m+n}.

For A(1,2)A(1,2), B(10,8)B(10,8) and ratio AP:PB=2:1AP:PB=2:1, the point is

P=(1,2)+23(9,6)=(7,6).P=(1,2)+\frac23(9,6)=(7,6).

The first segment is twice the second. The weights in the alternative formula are opposite the corresponding endpoint labels; using the displacement form helps avoid reversing them.

A vector proof of the centroid ratio

Let a triangle’s vertex position vectors be 𝐚,𝐛,𝐜\mathbf a,\mathbf b,\mathbf c. The midpoint of BCBC is 𝐦=(𝐛+𝐜)/2\mathbf m=(\mathbf b+\mathbf c)/2. Define

𝐠=𝐚+𝐛+𝐜3.\mathbf g=\frac{\mathbf a+\mathbf b+\mathbf c}{3}.

Then

𝐠−𝐚=23(𝐦−𝐚).\mathbf g-\mathbf a=\frac23(\mathbf m-\mathbf a).

So GG lies two thirds of the way from AA to the midpoint of BCBC. Repeating the same calculation from BB and CC places the same GG on all three medians. This proves concurrency and the 2:12:1 ratio simultaneously.

For vertices (0,0)(0,0), (6,0)(6,0) and (0,3)(0,3), the centroid is (2,1)(2,1). The algebraic proof applies beyond this particular triangle because the vertex vectors were arbitrary.

A perpendicularity proof without slopes

Let adjacent side vectors of a parallelogram be 𝐮\mathbf u and 𝐯\mathbf v. Its diagonals have directions 𝐮+𝐯\mathbf u+\mathbf v and 𝐮−𝐯\mathbf u-\mathbf v, up to a reversal of direction. Their dot product is

(𝐮+𝐯)⋅(𝐮−𝐯)=|𝐮|2−|𝐯|2.(\mathbf u+\mathbf v)\cdot(\mathbf u-\mathbf v)=|\mathbf u|^2-|\mathbf v|^2.

In a rhombus, adjacent side lengths agree, so the product is zero and the diagonals are perpendicular. This proof handles vertical directions without undefined slopes and explains exactly where the equal-side hypothesis is used.

Practice questions

  1. Find the vector from A(1,−2)A(1,-2) to B(5,1)B(5,1) and its magnitude.
  2. Are (2,3)(2,3) and (3,−2)(3,-2) perpendicular?
  3. Find the point dividing the segment from (1,2)(1,2) to (10,8)(10,8) in the ratio 2:12:1 from the first endpoint.
Check your answers
  1. The vector is (4,3)(4,3) and its magnitude is 16+9=5\sqrt{16+9}=5.
  2. Yes. Both are non-zero and their dot product is 2(3)+3(−2)=02(3)+3(-2)=0.
  3. The point is (1,2)+23(9,6)=(7,6)(1,2)+\frac23(9,6)=(7,6).

Related topics

Coordinate Proofs uses vector differences to establish general geometry results. Translation and Dilation become concise vector rules, while Coordinate Axes and Coordinate Planes in 3D Space extends the coordinate setting.

Sources and further reading