Line Segment from (-2, 1) to (3, 5): Slope, Length and Midpoint

Interactive Line Segment from (-2, 1) to (3, 5): Slope, Length and Midpoint graph — click to explore
Click the graph to explore it interactively →
Question: 1) A line segment from (−2, 1) to (3, 5) Graph

Mathematical Analysis of the Line Segment

A line segment connecting point A(-2, 1) and point B(3, 5) represents a directed path between two points in the Cartesian plane.

1. Horizontal and Vertical Displacements

The horizontal displacement ( \text{run}, \Delta x) and vertical displacement ( \text{rise}, \Delta y) are:
\begin{align*} \Delta x &= x_2 - x_1 = 3 - (-2) = 5 \\ \Delta y &= y_2 - y_1 = 5 - 1 = 4 \end{align*}

2. Slope (Gradient)

The slope m measures the steepness and direction of the segment:
\begin{align*} m &= \frac{y_2 - y_1}{x_2 - x_1} \\ &= \frac{5 - 1}{3 - (-2)} \\ &= \frac{4}{5} = 0.8 \end{align*}

3. Length of the Segment

By the distance formula (Pythagoras' Theorem):
\begin{align*} \text{Length } AB &= \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \\ &= \sqrt{5^2 + 4^2} \\ &= \sqrt{25 + 16} \\ &= \sqrt{41} \approx 6.40 \text{ (to 3 sig. fig.)} \end{align*}

4. Midpoint

The coordinates of the midpoint M are:
\begin{align*} M &= \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right) \\ &= \left(\frac{-2 + 3}{2}, \frac{1 + 5}{2}\right) \\ &= (0.5, 3) \end{align*}

5. Equation of the Line Containing the Segment

Using the point-slope form:
\begin{align*} y - 1 &= \frac{4}{5}(x - (-2)) \\ 5(y - 1) &= 4(x + 2) \\ 5y - 5 &= 4x + 8 \\ 4x - 5y + 13 &= 0 \end{align*}

Visual Explanation in the Diagram

  • Blue Segment AB: The line segment connecting A(-2, 1) and B(3, 5).
  • Dashed Lines: Form a right-angled triangle showing the horizontal run ( \Delta x = 5) and vertical rise ( \Delta y = 4).
  • Purple Point M: The midpoint of the segment at (0.5, 3).