Tutorials › Calculus III › Dividing a Segment with Vector Scaling

Vector Components and Operations · Tutorial 48 of 999

Dividing a Segment with Vector Scaling

Use a fraction of the displacement from one endpoint to locate a point on a segment, and verify the resulting coordinates and ratios.

Beginner 9 min read

What You'll Learn

  • Express the displacement from one endpoint of a segment to the other.
  • Locate a point using a fraction of that displacement.
  • Convert between a segment fraction and the ratio of the two parts.
  • Find coordinates that divide a segment into equal pieces.
  • Check a proposed point using its displacements from both endpoints.
  • Distinguish interior points, endpoints, and the degenerate case of coincident endpoints.

Introduction

A straight segment can be described by its endpoints and the displacement from one endpoint to the other. Scaling that displacement by a number between zero and one gives a precise way to locate every point on the segment, including points that divide it into equal parts or in a specified ratio.

This method works in three dimensions just as it does in two. It uses vector subtraction to find the displacement and scalar multiplication to take the required fraction of it. The key is to scale the displacement, not the endpoint coordinates independently.

From Endpoints to a Point on the Segment

Let \(A\) and \(B\) be points in three-dimensional space, with position vectors \(\mathbf{a}\) and \(\mathbf{b}\). The displacement from \(A\) to \(B\) is \(\mathbf{b}-\mathbf{a}\). Starting at \(A\), moving through a fraction \(t\) of this displacement gives a point \(P\) with position vector \(\mathbf{p}\).

Definition: For distinct endpoints \(A\) and \(B\), the point \(P\) at fraction \(t\) from \(A\) toward \(B\) is defined by
$$ \mathbf{p}=\mathbf{a}+t(\mathbf{b}-\mathbf{a}), \qquad 0\le t\le 1. $$
Here \(t=0\) gives \(A\), \(t=1\) gives \(B\), and \(0<t<1\) gives an interior point of the segment.

The vector \(\mathbf{b}-\mathbf{a}\) gives the full displacement. Multiplying it by \(t\) gives the displacement from \(A\) to \(P\). Thus \(\mathbf{p}-\mathbf{a}=t(\mathbf{b}-\mathbf{a})\). The restriction \(0\le t\le1\) is what keeps \(P\) on the segment: values outside this interval would place the point on the line beyond one of the endpoints.

Equivalently, the formula can be written as a weighted sum of the endpoint position vectors:

$$ \mathbf{p}=(1-t)\mathbf{a}+t\mathbf{b}. $$

To see the equivalence, expand the displacement formula: \(\mathbf{a}+t(\mathbf{b}-\mathbf{a})=\mathbf{a}+t\mathbf{b}-t\mathbf{a}=(1-t)\mathbf{a}+t\mathbf{b}\). The first form highlights the scaled displacement; the second highlights the two endpoint vectors and their weights.

Why the Fraction Formula Works

The formula describes both the location and the fraction of the segment used. The following derivation makes the connection explicit. Assume \(A\ne B\), so the full displacement is nonzero and the segment has positive length. Since \(0\le t\le1\), scaling the displacement by \(t\) gives a displacement of length \(t\) times the full length. The remaining displacement from \(P\) to \(B\) is the rest of the original displacement.

1
Find the first displacement.
From the definition, \(\mathbf{p}-\mathbf{a}=t(\mathbf{b}-\mathbf{a})\). Its length is \(t\lVert\mathbf{b}-\mathbf{a}\rVert\), because \(t\ge0\).
2
Find the remaining displacement.
Subtract the first displacement from the full one: \(\mathbf{b}-\mathbf{p}=(1-t)(\mathbf{b}-\mathbf{a})\). Its length is \((1-t)\lVert\mathbf{b}-\mathbf{a}\rVert\).
3
Compare the lengths.
The two lengths add to the full length, and their fractions of it are \(t\) and \(1-t\). For an interior point, their ratio is \(t:(1-t)\).

In more detail, the length statements follow from the magnitude rule \(\lVert c\mathbf{v}\rVert=|c|\lVert\mathbf{v}\rVert\). Here both scale factors \(t\) and \(1-t\) are nonnegative. Therefore, \(AP=t\,AB\) and \(PB=(1-t)\,AB\), where \(AP\), \(PB\), and \(AB\) denote the corresponding segment lengths. Adding gives \(AP+PB=AB\), as expected for a point on the segment.

Important endpoint detail: For \(0<t<1\), both parts are nonzero and point in the same direction along the segment; their fractions of the full displacement add to \(1\). At \(t=0\) or \(t=1\), one part is the zero vector.

When a point divides a nondegenerate segment internally in the ratio \(AP:PB=m:n\), where \(m,n>0\), its parameter is \(t=m/(m+n)\). Indeed, the fraction of the whole length used from \(A\) is \(m/(m+n)\), while the remaining fraction is \(n/(m+n)\). The corresponding vector formula is:

$$ \mathbf{p} =\mathbf{a}+\frac{m}{m+n}(\mathbf{b}-\mathbf{a}) =\frac{n\mathbf{a}+m\mathbf{b}}{m+n}. $$

The weight on \(\mathbf{b}\) is \(m/(m+n)\), not \(n/(m+n)\): a point closer to \(A\) uses a smaller fraction of the displacement from \(A\) to \(B\).

Worked Example: Finding a Point One Third of the Way Along

Worked Example: Finding a Point One Third of the Way Along

Let \(A=(1,-2,3)\) and \(B=(7,4,-3)\). Find the point \(P\) one third of the way from \(A\) to \(B\), and check the result.

First find the displacement from \(A\) to \(B\), component by component:

$$ \mathbf{b}-\mathbf{a} =(7-1,\;4-(-2),\;-3-3) =(6,6,-6). $$

One third of this vector is \(\frac13(6,6,-6)=(2,2,-2)\). Add it to the position vector of \(A\):

$$ \mathbf{p} =(1,-2,3)+(2,2,-2) =(3,0,1). $$

Check the first part: \(\mathbf{p}-\mathbf{a}=(3-1,0-(-2),1-3)=(2,2,-2)=\frac13(6,6,-6)\). Check the remaining part: \(\mathbf{b}-\mathbf{p}=(7-3,4-0,-3-1)=(4,4,-4)=\frac23(6,6,-6)\). The two parts add to \((6,6,-6)\), so the point is one third of the way from \(A\) toward \(B\), as required.

Worked Example: Dividing a Segment in a Given Ratio

Worked Example: Dividing a Segment in a Given Ratio

Let \(A=(-2,1,4)\) and \(B=(3,-4,9)\). Find the point \(P\) that divides the segment internally so that \(AP:PB=2:3\).

The total number of ratio parts is \(2+3=5\). Since the first portion, from \(A\) to \(P\), accounts for two of those five parts, \(t=2/5\). The full displacement is

$$ \mathbf{b}-\mathbf{a} =(3-(-2),\;-4-1,\;9-4) =(5,-5,5). $$

Scale it by \(2/5\): \(\frac25(5,-5,5)=(2,-2,2)\). Then add this displacement to \(A\):

$$ \mathbf{p} =(-2,1,4)+(2,-2,2) =(0,-1,6). $$

Check both portions: \(\mathbf{p}-\mathbf{a}=(2,-2,2)=\frac25(5,-5,5)\), and \(\mathbf{b}-\mathbf{p}=(3,-3,3)=\frac35(5,-5,5)\). Their lengths are in the ratio \(2:3\), since they are respectively \(2/5\) and \(3/5\) of the same segment length. Their vectors add to \((5,-5,5)\), the full displacement.

Worked Example: Dividing a Segment into Equal Parts

Worked Example: Dividing a Segment into Equal Parts

Divide the segment from \(A=(2,0,-1)\) to \(B=(-2,8,7)\) into four equal pieces. Find the three interior division points.

The full displacement is \(\mathbf{b}-\mathbf{a}=(-2-2,8-0,7-(-1))=(-4,8,8)\). One fourth of it is \((-1,2,2)\). The \(k\)-th division point, for \(k=1,2,3\), uses the fraction \(t=k/4\).

$$ \begin{aligned} \mathbf{p}_1 &=(2,0,-1)+(-1,2,2)=(1,2,1),\\ \mathbf{p}_2 &=(2,0,-1)+2(-1,2,2)=(0,4,3),\\ \mathbf{p}_3 &=(2,0,-1)+3(-1,2,2)=(-1,6,5). \end{aligned} $$

Check consecutive displacements: \(\mathbf{p}_1-\mathbf{a}=(-1,2,2)\); \(\mathbf{p}_2-\mathbf{p}_1=(-1,2,2)\); \(\mathbf{p}_3-\mathbf{p}_2=(-1,2,2)\); and \(\mathbf{b}-\mathbf{p}_3=(-1,2,2)\). All four pieces have the same displacement and therefore the same length. Their sum is \((-4,8,8)\), which recovers the full displacement from \(A\) to \(B\).

Component Form and a Common Mistake

If \(\mathbf{a}=(a_1,a_2,a_3)\) and \(\mathbf{b}=(b_1,b_2,b_3)\), the point at fraction \(t\) has coordinates

$$ \mathbf{p} =\bigl(a_1+t(b_1-a_1),\; a_2+t(b_2-a_2),\; a_3+t(b_3-a_3)\bigr). $$

Each coordinate changes by the same fraction of its corresponding displacement component. This does not mean one should simply add a scaled endpoint to the starting point.

Common mistake: Using \(\mathbf{p}=\mathbf{a}+t\mathbf{b}\) instead of \(\mathbf{p}=\mathbf{a}+t(\mathbf{b}-\mathbf{a})\). The scaled vector must be the displacement between the endpoints.

For a concrete check, take \(A=(2,1,0)\), \(B=(6,5,4)\), and \(t=1/2\). The incorrect calculation gives \(\mathbf{p}=(2,1,0)+\frac12(6,5,4)=(5,7/2,2)\). But its displacement from \(A\) is \((3,5/2,2)\), which is not a scalar multiple of the correct full displacement \((4,4,4)\). It is therefore not on the segment. Correctly, first subtract the endpoints: \(\mathbf{b}-\mathbf{a}=(4,4,4)\). Then \(\mathbf{p}=(2,1,0)+\frac12(4,4,4)=(4,3,2)\). The check gives \(\mathbf{p}-\mathbf{a}=(2,2,2)=\frac12(4,4,4)\) and \(\mathbf{b}-\mathbf{p}=(2,2,2)\), so this is the midpoint.

Conditions and Interpretation

The segment formula assumes that \(A\) and \(B\) are fixed endpoints and that \(t\) lies between zero and one. If \(A=B\), then \(\mathbf{b}-\mathbf{a}=\mathbf{0}\), so the formula gives \(\mathbf{p}=\mathbf{a}\) for every \(t\). There is no nonzero segment to divide, and a ratio of its two part lengths is undefined.

For distinct endpoints, the parameter gives a unique point on the segment: different values of \(t\) produce different points because their displacements from \(A\) are different scalar multiples of the same nonzero vector. This makes the parameter useful whenever a problem specifies a fraction, a ratio, or a number of equal subdivisions. It also provides a direct check: subtract the starting endpoint and compare the result with the specified fraction of the full displacement.

Check Your Understanding

Use the endpoint displacement to answer each question. For calculation questions, verify your answer by checking the displacement from the stated starting point.

  1. For \(A=(0,2,-1)\) and \(B=(6,-4,5)\), find the point two thirds of the way from \(A\) to \(B\).
  2. If an interior point satisfies \(AP:PB=3:4\), what fraction of the displacement from \(A\) to \(B\) locates it?
  3. Write the three interior division points that divide a nondegenerate segment into four equal pieces, using its endpoint position vectors \(\mathbf{a}\) and \(\mathbf{b}\).
  4. Why does the ratio of the two part lengths require an interior point and distinct endpoints?
  5. For \(t=0\) and \(t=1\), which of the two part displacements is zero?