Tutorials › Calculus III › Midpoints and Centers of Line Segments in Space

Coordinates and Quadric Surfaces · Tutorial 3 of 999

Midpoints and Centers of Line Segments in Space

Use coordinate averages to find segment midpoints and apply the midpoint formula to locate centers in three-dimensional geometric problems.

Beginner 9 min read

What You'll Learn

  • Calculate a segment’s midpoint by averaging corresponding coordinates.
  • Explain why the midpoint formula gives equal halves of a segment.
  • Find an unknown endpoint when the other endpoint and midpoint are known.
  • Locate the center of a box from the coordinates of opposite vertices.
  • Check midpoint calculations and avoid common sign and averaging errors.

Introduction

A line segment in space has a natural center: the point halfway between its endpoints. The three-dimensional midpoint formula turns that geometric idea into a coordinate calculation. Average the two endpoint \(x\)-coordinates, then the two \(y\)-coordinates, and then the two \(z\)-coordinates.

This simple rule is useful not only for finding the midpoint of a given segment. If a midpoint and one endpoint are known, the rule can be rearranged to find the other endpoint. And when opposite vertices of a box are given, their connecting diagonal passes through the box’s center, so its midpoint locates that center.

The Midpoint of a Segment in Space

In three-dimensional Cartesian coordinates, let \(A=(x_1,y_1,z_1)\) and \(B=(x_2,y_2,z_2)\) be distinct points. Their line segment consists of the points between \(A\) and \(B\), including the endpoints.

Definition: The midpoint \(M\) of the segment with endpoints \(A\) and \(B\) is the point on the segment that divides it into two equal parts. Its coordinates are
$$ M=\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2},\frac{z_1+z_2}{2}\right). $$

Each coordinate is the average of the corresponding coordinates of the endpoints. The order of the endpoints does not matter: swapping \(A\) and \(B\) leaves each average unchanged. Coordinates can be positive, negative, or zero; use their signs as written when adding.

Worked Example: Finding a Midpoint

Find the midpoint of \(A=(-2,1,4)\) and \(B=(6,5,-2)\).

Average the \(x\)-coordinates: \((-2+6)/2=4/2=2\). Average the \(y\)-coordinates: \((1+5)/2=6/2=3\). Average the \(z\)-coordinates: \((4+(-2))/2=2/2=1\). Therefore, \(M=(2,3,1)\).

Check that this point is halfway along the segment. The coordinate changes from \(A\) to \(M\) are \((2-(-2),3-1,1-4)=(4,2,-3)\). From \(M\) to \(B\), they are \((6-2,5-3,-2-1)=(4,2,-3)\). Both halves have the same displacement, so \(M\) is the midpoint. In particular, both lengths are \(\sqrt{4^2+2^2+(-3)^2}=\sqrt{29}\).

Why the Coordinate Averages Work

A point halfway from \(A\) to \(B\) has travelled half the change in each coordinate. From \(A=(x_1,y_1,z_1)\) to \(B=(x_2,y_2,z_2)\), the coordinate changes are \(x_2-x_1\), \(y_2-y_1\), and \(z_2-z_1\). Halfway, the changes from \(A\) are half of these amounts.

$$ \begin{aligned} x_M&=x_1+\frac{x_2-x_1}{2}=\frac{x_1+x_2}{2},\\ y_M&=y_1+\frac{y_2-y_1}{2}=\frac{y_1+y_2}{2},\\ z_M&=z_1+\frac{z_2-z_1}{2}=\frac{z_1+z_2}{2}. \end{aligned} $$

This also verifies the result directly. Subtracting the coordinates of \(A\) from those of \(M\) gives \(((x_2-x_1)/2,(y_2-y_1)/2,(z_2-z_1)/2)\). Subtracting the coordinates of \(M\) from those of \(B\) gives the very same triple. Thus the two parts have equal displacement and, by the three-dimensional distance formula, equal length. Since \(M\) is obtained by travelling halfway from \(A\) toward \(B\), it lies on the segment as well as dividing it into equal parts.

Key idea: A midpoint is not found by averaging the distances of the endpoints from the origin. Average each pair of matching coordinates.

Recovering an Endpoint from the Midpoint

The midpoint formula can be rearranged when a segment’s midpoint and one endpoint are known. If \(M=(m_x,m_y,m_z)\) is the midpoint of \(A=(x_1,y_1,z_1)\) and \(B=(x_2,y_2,z_2)\), then the formula gives \(m_x=(x_1+x_2)/2\), and likewise for the other coordinates. Multiplying by \(2\) and solving coordinate by coordinate gives

$$ B=(2m_x-x_1,\;2m_y-y_1,\;2m_z-z_1). $$

Geometrically, the known endpoint and the unknown endpoint must lie on opposite sides of the midpoint at equal distances. The coordinate equations express that symmetry: the unknown coordinate must be as far from the midpoint as the known coordinate, but in the opposite direction.

Worked Example: Finding a Missing Endpoint

A segment has midpoint \(M=(1,-2,3)\) and one endpoint \(A=(-4,0,7)\). Find its other endpoint \(B\).

For the \(x\)-coordinate, \(x_B=2(1)-(-4)=2+4=6\). For the \(y\)-coordinate, \(y_B=2(-2)-0=-4\). For the \(z\)-coordinate, \(z_B=2(3)-7=6-7=-1\). Thus \(B=(6,-4,-1)\).

Check by applying the midpoint formula: the coordinate averages are \((-4+6)/2=2/2=1\), \((0+(-4))/2=-4/2=-2\), and \((7+(-1))/2=6/2=3\). These give the stated midpoint \(M=(1,-2,3)\).

Using Opposite Vertices to Locate a Center

In a rectangular box, the segment joining a vertex to the opposite vertex is a space diagonal. The center of the box is halfway along each such diagonal. Therefore, given the coordinates of a pair of opposite vertices, find the center by taking their midpoint.

The same principle applies whenever a geometric center is known to be the midpoint of a particular segment. First identify the two endpoints of that segment; then average their corresponding coordinates. The midpoint formula does not by itself establish that an arbitrary point is a center. The geometry must tell you which segment has the center halfway along it.

Worked Example: Finding the Center of a Box

An axis-aligned rectangular box has opposite vertices \(P=(-3,2,1)\) and \(Q=(5,-4,7)\). Find its center.

The center is the midpoint of the space diagonal \(PQ\). The \(x\)-coordinate is \((-3+5)/2=2/2=1\). The \(y\)-coordinate is \((2+(-4))/2=-2/2=-1\). The \(z\)-coordinate is \((1+7)/2=8/2=4\). Hence the center is \(C=(1,-1,4)\).

Check with the other pair of opposite vertices of this box, \(R=(-3,-4,7)\) and \(S=(5,2,1)\). Their midpoint has coordinates \((-3+5)/2=1\), \((-4+2)/2=-1\), and \((7+1)/2=4\). This gives the same center \(C=(1,-1,4)\), as required.

A Reliable Calculation Process

Writing out each coordinate calculation helps prevent sign errors and makes the result easy to check.

1
Identify the two points.
Write both endpoint coordinates in the same order: \(x\), then \(y\), then \(z\).
2
Average matching coordinates.
Add the two \(x\)-coordinates and divide by \(2\); repeat for \(y\) and \(z\).
3
Assemble the point.
Put the three averages in order inside a single coordinate triple.
4
Check the result.
Substitute the point into the midpoint formula, or compare the coordinate changes on the two sides.

Common Pitfall: Forgetting to Divide by Two

A frequent error is to add the endpoint coordinates but stop before dividing by \(2\). For example, for \(A=(-3,2,4)\) and \(B=(5,-6,0)\), adding corresponding coordinates gives \((2,-4,4)\). That is the sum of the coordinate triples, not the midpoint.

The correction is to divide every sum by \(2\): the \(x\)-coordinate is \((-3+5)/2=1\), the \(y\)-coordinate is \((2+(-6))/2=-2\), and the \(z\)-coordinate is \((4+0)/2=2\). The midpoint is therefore \((1,-2,2)\). As a check, its coordinate changes from \(A\) are \((4,-4,-2)\), and its changes to \(B\) are also \((4,-4,-2)\).

Another source of error is mishandling a negative coordinate. The expression \(2+(-6)\) equals \(-4\), not \(8\). Keep the signs inside the sum before dividing.

Why Midpoints Matter

Midpoints provide a direct link between coordinates and symmetry. They can locate the halfway point of a path between two positions, reconstruct an endpoint from partial information, or identify the center of a box from opposite corners. The method is systematic: corresponding coordinates are treated independently, while the resulting three averages together specify one point in space.

When applying the formula, make sure the point you are trying to find really is the midpoint of the segment you have identified. Once that geometric relationship is established, the arithmetic is straightforward, and substitution back into the formula provides a dependable check.

Check Your Understanding

Try each question by writing down the coordinate calculations before giving the final point.

  1. Find the midpoint of \(A=(2,-5,3)\) and \(B=(8,1,-7)\).
  2. A segment has midpoint \(M=(-1,4,2)\) and endpoint \(A=(3,-2,5)\). Find the other endpoint and check by averaging.
  3. The opposite vertices of a rectangular box are \((0,6,-2)\) and \((4,-2,8)\). What is the box’s center?
  4. In your own words, explain why the midpoint’s coordinate changes from either endpoint are equal.
  5. What is wrong with using the coordinate sums, without dividing them by \(2\), as the midpoint?