MathorynMathematical Formula Database

Vectors

Vector Between Two Points

The vector from point AA to point BB is found by subtracting the coordinates of the start from those of the end. It is used to describe displacements, to find directions of lines and sides of polygons and as the first step of most vector geometry.

AB→=B−A=(x2−x1, y2−y1, z2−z1)\overrightarrow{AB}=B-A=(x_2-x_1,\ y_2-y_1,\ z_2-z_1)
LaTeX\overrightarrow{AB}=B-A=(x_2-x_1,\ y_2-y_1,\ z_2-z_1)

Variables

A=(x1,y1,z1)A=(x_1,y_1,z_1)
start point
B=(x2,y2,z2)B=(x_2,y_2,z_2)
end point

Example

Find AB→\overrightarrow{AB} and its length for A(1,2,3)A(1,2,3), B(4,0,7)B(4,0,7).

  1. AB→=(3,−2,4)\overrightarrow{AB}=(3,-2,4).
  2. Length: 9+4+16=29\sqrt{9+4+16}=\sqrt{29}.

Answer: (3,−2,4)(3,-2,4), length ≈5.385\approx5.385.

Related formulas