Vector coordinates and length from two endpoints
Subtract terminal and initial point coordinates in the correct order, calculate lengths, and find unknown endpoints and parallelogram vertices.
Content updated: October 22, 2026
Find vector coordinates by subtracting the coordinates of the initial point from those of the terminal point. This order determines the vector direction; exchanging the endpoints does not change its length.
Learning goals: calculate vector coordinates and length; find an unknown endpoint; use vector relations in a parallelogram.
Prerequisites: point coordinates and vector addition and subtraction in a Cartesian coordinate system Oxyz (English lesson).
On this page: Idea · Formulas · Examples · Practice · Further study
1. Initial point, terminal point, and direction
For two points $A,B$, the vector $\overrightarrow{AB}$ points from $A$ to $B$. The relation $\overrightarrow{OA}+\overrightarrow{AB}=\overrightarrow{OB}$ determines its coordinates by componentwise subtraction. Identify the initial point before substituting numbers.
2. Coordinate and length formulas
Let $A(x_A;y_A;z_A)$ and $B(x_B;y_B;z_B)$ be points in the Cartesian coordinate system $Oxyz$. Then
The vector length equals the distance between the points:
The length formula follows from the Pythagorean theorem in Cartesian coordinates. Its left-hand side is a nonnegative number, unlike the vector $\overrightarrow{AB}$. Reversing direction gives $\overrightarrow{BA}=-\overrightarrow{AB}$, but $BA=AB$.
If $A=B$, then $\overrightarrow{AB}=\vec0$ and $AB=0$; the formula still applies. Conversely, if $AB=0$, all three coordinate differences are $0$, so $A=B$.
To find the terminal point, if $A$ and $\overrightarrow{AB}=(u;v;w)$ are known, take $B(x_A+u;y_A+v;z_A+w)$. If the terminal point $B$ is known, subtract the vector components to find the initial point $A$.
3. Worked examples
Example 1. Coordinates and length
Let $A(-1;2;3)$ and $B(5;-3;4)$. Take the coordinates of $B$ minus the coordinates of $A$:
Thus $AB=\sqrt{6^2+(-5)^2+1^2}=\sqrt{62}$. The reverse vector is $\overrightarrow{BA}=(-6;5;-1)$, with the same length $\sqrt{62}$.
Example 2. The fourth vertex of a parallelogram
Let $A(1;-2;3)$, $B(2;-2;5)$, and $C(3;-1;0)$. Find $D$ so that $ABCD$, in that vertex order, is a parallelogram.
In a parallelogram, $\overrightarrow{AB}=\overrightarrow{DC}$, so $B-A=C-D$. Hence
Check: $\overrightarrow{AB}=(1;0;2)$ and $\overrightarrow{DC}=(1;0;2)$. The vectors $\overrightarrow{AB}$ and $\overrightarrow{AC}=(2;1;-3)$ are not parallel, so the first three vertices are noncollinear; the resulting parallelogram is nondegenerate.
Example 3. Finding the terminal point
Let $A(2;-1;0)$ and $\overrightarrow{AB}=(-3;4;2)$. Adding componentwise gives $B(-1;3;2)$. Substituting back,
as required by the given vector.
4. Practice
- Let $A(1;0;-2)$ and $B(-2;4;1)$. Calculate $\overrightarrow{AB}$, $\overrightarrow{BA}$, and $AB$.
- Given $B(3;-2;5)$ and $\overrightarrow{AB}=(1;-4;2)$, find $A$.
- Let $A(0;0;0)$, $B(2;1;0)$, and $C(3;3;1)$. Find $D$ so that $ABCD$ is a parallelogram.
Show answers and hints
- $\overrightarrow{AB}=(-3;4;3)$, $\overrightarrow{BA}=(3;-4;-3)$, and $AB=\sqrt{34}$.
- The initial point is $A=B-(1;-4;2)=(2;2;3)$.
- $D=A+C-B=(1;2;1)$. Check that $\overrightarrow{DC}=(2;1;0)=\overrightarrow{AB}$; the points $A,B,C$ are noncollinear.
5. Common mistakes
- Subtracting the terminal point from the initial point when calculating $\overrightarrow{AB}$.
- Writing a square root as a vector. The square root in the formula represents the length $\|\overrightarrow{AB}\|$.
- Forgetting to square negative components when calculating length.
- Using the wrong vertex order in a parallelogram; for $ABCD$, the equal vectors are $\overrightarrow{AB}$ and $\overrightarrow{DC}$.
Leave a Reply