Tutorials › Calculus III › Vector Magnitudes as Segment Lengths

Vector Components and Operations · Tutorial 37 of 999

Vector Magnitudes as Segment Lengths

Connect the components of a vector between two points to the actual length of the segment, then calculate and check that length in coordinates.

Beginner 9 min read

What You'll Learn

  • Identify the displacement components from the coordinates of two endpoints
  • Explain why a vector’s magnitude measures the length of its directed segment
  • Calculate segment lengths in three-dimensional coordinates
  • Interpret coordinate differences and their units geometrically
  • Recognize and correct the error of using an endpoint’s coordinates as a displacement

From a Vector to a Segment Length

A vector between two points records the change in position from one endpoint to the other. Its components may be positive, negative, or zero, depending on the direction of that change. The length of the segment joining the endpoints, however, cannot be negative.

The vector’s magnitude connects these two ideas: it gives the length of the corresponding directed segment. This interpretation lets us read a geometric distance directly from the components of a vector, while keeping clear which quantities describe position and which describe change in position.

Endpoints, Displacement, and Length

Let \(P=(x_1,y_1,z_1)\) and \(Q=(x_2,y_2,z_2)\) be points in three-dimensional Cartesian coordinates. The vector from \(P\) to \(Q\), written \(\mathbf{v}_{PQ}\), has components equal to the change in each coordinate:

$$ \mathbf{v}_{PQ} = \langle x_2-x_1,\ y_2-y_1,\ z_2-z_1\rangle. $$

The directed segment runs from \(P\) toward \(Q\). Its direction matters when describing the vector: reversing the endpoints reverses the direction. But the segment’s length, the distance from \(P\) to \(Q\), does not depend on which endpoint is named first.

Definition: The length of the segment joining \(P\) and \(Q\) is their distance, denoted \(d(P,Q)\). The magnitude \(\|\mathbf{v}_{PQ}\|\) of the vector from \(P\) to \(Q\) equals that length: $$ d(P,Q)=\|\mathbf{v}_{PQ}\|. $$

The three-dimensional magnitude formula established earlier says that a vector \(\langle a,b,c\rangle\) has magnitude \(\sqrt{a^2+b^2+c^2}\). Applying it to the endpoint differences gives a practical distance formula:

$$ d(P,Q) = \sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}. $$

Each coordinate difference is a signed change, not a segment length by itself. Squaring the differences ensures that changes in either direction contribute positively to the total length.

Why Magnitude Equals Segment Length

Here is the geometric reason for the connection. Write the coordinate changes as \(\Delta x=x_2-x_1\), \(\Delta y=y_2-y_1\), and \(\Delta z=z_2-z_1\). The coordinate axes give perpendicular directions, so the three component lengths are \(|\Delta x|\), \(|\Delta y|\), and \(|\Delta z|\).

First consider the right triangle formed by the horizontal coordinate changes in the \(xy\)-plane. If its diagonal has length \(r\), the Pythagorean theorem gives \(r^2=(\Delta x)^2+(\Delta y)^2\). The segment from \(P\) to \(Q\) is the diagonal of a right triangle whose other perpendicular side has length \(|\Delta z|\). Applying the theorem again gives \(d(P,Q)^2=r^2+(\Delta z)^2\). Substituting for \(r^2\) yields:

$$ d(P,Q)^2 = (\Delta x)^2+(\Delta y)^2+(\Delta z)^2. $$

Distance is nonnegative, so taking the nonnegative square root gives \(d(P,Q)=\sqrt{(\Delta x)^2+(\Delta y)^2+(\Delta z)^2}\). This is exactly the magnitude of \(\mathbf{v}_{PQ}=\langle\Delta x,\Delta y,\Delta z\rangle\). The equality holds because both quantities measure the same spatial diagonal using the same perpendicular coordinate changes.

Worked Coordinate Examples

Worked Example: A Segment Parallel to the \(xy\)-Plane

Find the length of the segment from \(P=(1,-2,3)\,\text{m}\) to \(Q=(4,2,3)\,\text{m}\), and check the result.

Subtract the starting coordinates from the ending coordinates to get the vector:

$$ \mathbf{v}_{PQ} = \langle 4-1,\ 2-(-2),\ 3-3\rangle\,\text{m} = \langle 3,\ 4,\ 0\rangle\,\text{m}. $$

Its magnitude, and therefore the segment length, is:

$$ d(P,Q) = \|\mathbf{v}_{PQ}\| = \sqrt{3^2+4^2+0^2}\,\text{m} = \sqrt{9+16}\,\text{m} = 5\,\text{m}. $$

Check the displacement by adding its components to \(P\): \((1+3,-2+4,3+0)=(4,2,3)\), which is \(Q\). The length also checks directly: \(5^2=25=3^2+4^2+0^2\). Thus the segment is \(5\,\text{m}\) long.

Worked Example: Changes in All Three Coordinates

Find the distance between \(A=(-2,1,0)\,\text{m}\) and \(B=(1,5,12)\,\text{m}\). Check both the displacement and the length.

The change in each coordinate, from \(A\) to \(B\), is:

$$ \mathbf{v}_{AB} = \langle 1-(-2),\ 5-1,\ 12-0\rangle\,\text{m} = \langle 3,\ 4,\ 12\rangle\,\text{m}. $$

Therefore:

$$ d(A,B) = \sqrt{3^2+4^2+12^2}\,\text{m} = \sqrt{9+16+144}\,\text{m} = \sqrt{169}\,\text{m} = 13\,\text{m}. $$

For the endpoint check, add the displacement to \(A\): \((-2+3,1+4,0+12)=(1,5,12)\), as required. For the magnitude check, \(13^2=169\), and the sum of the squared components is \(9+16+144=169\). The segment length is \(13\,\text{m}\).

Worked Example: Negative Coordinate Changes

Find the distance from \(C=(3,-1,2)\,\text{m}\) to \(D=(-1,2,-4)\,\text{m}\), and verify your answer.

Subtract the coordinates of \(C\) from those of \(D\):

$$ \mathbf{v}_{CD} = \langle -1-3,\ 2-(-1),\ -4-2\rangle\,\text{m} = \langle -4,\ 3,\ -6\rangle\,\text{m}. $$

Then calculate the magnitude:

$$ d(C,D) = \sqrt{(-4)^2+3^2+(-6)^2}\,\text{m} = \sqrt{16+9+36}\,\text{m} = \sqrt{61}\,\text{m}. $$

The negative components indicate motion in the negative \(x\)- and \(z\)-directions; they do not make the length negative. Check the endpoint by adding the vector to \(C\): \((3-4,-1+3,2-6)=(-1,2,-4)=D\). Also, \((\sqrt{61})^2=61=16+9+36\), confirming the magnitude calculation. The exact length is \(\sqrt{61}\,\text{m}\).

What Changes When the Direction Is Reversed?

If the endpoints are switched, each component of the vector changes sign. For example, \(\mathbf{v}_{QP}=\langle x_1-x_2,y_1-y_2,z_1-z_2\rangle=-\mathbf{v}_{PQ}\). But the squared components are unchanged, since \((-a)^2=a^2\). Consequently, the magnitude—and the segment length—is the same in either direction:

$$ \|\mathbf{v}_{QP}\| = \sqrt{(-\Delta x)^2+(-\Delta y)^2+(-\Delta z)^2} = \|\mathbf{v}_{PQ}\|. $$

This does not mean the two vectors are equal: they point in opposite directions. It means that reversing the direction of traversal does not alter how long the segment is.

Common Mistake: Using an Endpoint Instead of a Difference

A frequent error is to calculate the magnitude of the endpoint \(Q\) and treat it as the length of the segment from \(P\) to \(Q\). The coordinates of \(Q\) describe its position relative to the origin. The segment from \(P\) to \(Q\), however, is described by the changes from \(P\) to \(Q\).

For example, let \(P=(2,-1,4)\) and \(Q=(5,3,4)\), with coordinates in meters. The incorrect calculation uses \(Q\) directly:

$$ \sqrt{5^2+3^2+4^2} = \sqrt{50}\,\text{m}. $$

This is the distance from the origin to \(Q\), not the length of the segment \(PQ\). The correction is to find the displacement first:

$$ \mathbf{v}_{PQ} = \langle 5-2,\ 3-(-1),\ 4-4\rangle\,\text{m} = \langle 3,\ 4,\ 0\rangle\,\text{m}, $$ $$ d(P,Q) = \sqrt{3^2+4^2+0^2}\,\text{m} = 5\,\text{m}. $$

Indeed, adding \(\langle 3,4,0\rangle\) to \(P\) gives \(Q\), and \(3^2+4^2=25\), so the length is \(5\,\text{m}\). The key question is always: Which two endpoints define the segment? Subtract the starting point from the ending point before finding the magnitude.

Why This Connection Matters

Components tell us how far a displacement goes along each coordinate axis, while magnitude combines those perpendicular changes into one overall length. This is useful whenever a problem gives endpoints but asks for a distance, or gives a vector and asks how long its corresponding segment is.

Keep the roles distinct: an endpoint is a location, a vector between endpoints is a change in location, and the vector’s magnitude is the nonnegative length of the segment traced by that change. Once the displacement is correct, the magnitude formula turns its components into a geometric length.

Check Your Understanding

Use the endpoint differences to answer the questions. Include a check of each computed length.

  1. Find the vector from \(P=(0,1,2)\) to \(Q=(0,5,14)\), then find the segment length.
  2. For \(A=(2,-3,1)\) and \(B=(-1,1,1)\), what are the displacement components and the distance?
  3. Why does reversing the endpoints change the vector but not the segment length?
  4. Explain why the magnitude of a point’s coordinate triple is not generally the length of a segment from another point to it.