Skip to content

The distance between points and the midpoint

The distance between points and the midpoint

Analytic geometry

Analytic geometry studies shapes by numbers: a point is a pair of numbers (x,y)\displaystyle (x,y), and a line or a circle is an equation that the coordinates of its points satisfy.

  • René Descartes and Pierre de Fermat, in the 17th century, joined algebra and geometry this way – the coordinate system is named “Cartesian” after Descartes.
  • A question about a shape becomes an equation: where two lines meet is the solution of a system of equations.
  • An equation becomes a picture: y=x2\displaystyle {y}={x^{2}} is a parabola you can see.
The distance between two points

The distance between two points is the hypotenuse of a right-angled triangle whose legs are parallel to the axes, so Pythagoras’ theorem gives it.

  • The leg AC\displaystyle AC is parallel to the x\displaystyle x-axis: its length is the difference between the x\displaystyle x-coordinates, 7−1=6\displaystyle {7-1}={6}.
  • The leg BC\displaystyle BC is parallel to the y\displaystyle y-axis: its length is the difference between the y\displaystyle y-coordinates, 5−1=4\displaystyle {5-1}={4}.
  • By Pythagoras’ theorem: AB=62+42=52=213\displaystyle {AB}={\sqrt{6^{2}+4^{2}}}={\sqrt{52}}={2\sqrt{13}}.

For any two points A(x1,y1)\displaystyle A(x_1,y_1) and B(x2,y2)\displaystyle B(x_2,y_2):

d\displaystyle d =\displaystyle = (x1−x2)2+(y1−y2)2\displaystyle \sqrt{(x_1-x_2)^{2}+(y_1-y_2)^{2}}
  • The order of the points makes no difference: each difference is squared.
  • A distance you go on working with stays a root in its simplest form: 213\displaystyle 2\sqrt{13}, not 7.21\displaystyle 7.21.
Exercise 1

Find the distances.

a
A(−2,3)\displaystyle A(-2,3) and B(4,−5)\displaystyle B(4,-5)

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    b
    C(1,−1)\displaystyle C(1,-1) and D(4,5)\displaystyle D(4,5) – write the distance yourself, in its simplest form.

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      The midpoint of a segment

      Each coordinate of the midpoint is the mean of the coordinates of the ends:

      M(x1+x22, y1+y22)\displaystyle M\left(\frac{x_1+x_2}{2},\ \frac{y_1+y_2}{2}\right)

      Why: M\displaystyle M is the midpoint of AB\displaystyle AB, and AK\displaystyle AK, ML\displaystyle ML are parallel to the x\displaystyle x-axis.

      • The triangles AKM\displaystyle AKM and MLB\displaystyle MLB are congruent (ASA): AM=MB\displaystyle {AM}={MB}; the angles at A\displaystyle A and at M\displaystyle M are corresponding angles between parallel lines; the angles at K\displaystyle K and at L\displaystyle L are right.
      • So AK=ML\displaystyle {AK}={ML}: the step in x\displaystyle x from A\displaystyle A to M\displaystyle M equals the step from M\displaystyle M to B\displaystyle B, xM−x1=x2−xM\displaystyle {x_M-x_1}={x_2-x_M}, and xM=x1+x22\displaystyle {x_M}={\frac{x_1+x_2}{2}}.
      • In the same way KM=LB\displaystyle {KM}={LB} gives yM=y1+y22\displaystyle {y_M}={\frac{y_1+y_2}{2}}.

      Example: A(1,1)\displaystyle A(1,1) and B(7,5)\displaystyle B(7,5): M(1+72,1+52)=(4,3)\displaystyle {M\left(\frac{1+7}{2},\frac{1+5}{2}\right)}={(4,3)}.

      Exercise 2

      Find the midpoint of the segment PQ\displaystyle PQ: P(−3,8)\displaystyle P(-3,8) and Q(5,2)\displaystyle Q(5,2).

      xM\displaystyle x_M

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

        yM\displaystyle y_M

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

          Exercise 3

          M(2,−1)\displaystyle M(2,-1) is the midpoint of the segment AB\displaystyle AB, and A(−4,3)\displaystyle A(-4,3).
          Find the coordinates of B\displaystyle B.

          xB\displaystyle x_B
            yB\displaystyle y_B
              A point at equal distances from two points

              A point at equal distances from A\displaystyle A and from B\displaystyle B gives an equation: the two distances are equal, and so are their squares.

              Example: the point P\displaystyle P on the y\displaystyle y-axis at equal distances from A(2,1)\displaystyle A(2,1) and B(6,5)\displaystyle B(6,5).

              • P\displaystyle P is on the y\displaystyle y-axis, so P(0,y)\displaystyle P(0,y).
              • PA2=PB2\displaystyle {PA^{2}}={PB^{2}}: (0−2)2+(y−1)2=(0−6)2+(y−5)2\displaystyle {(0-2)^{2}+(y-1)^{2}}={(0-6)^{2}+(y-5)^{2}}.
              • 4+y2−2y+1=36+y2−10y+25\displaystyle {4+y^{2}-2y+1}={36+y^{2}-10y+25}, so 8y=56\displaystyle {8y}={56} and y=7\displaystyle {y}={7}.
              • P(0,7)\displaystyle P(0,7). A check: PA2=4+36=40\displaystyle {PA^{2}}={4+36}={40} and PB2=36+4=40\displaystyle {PB^{2}}={36+4}={40}.

              The y2\displaystyle y^{2} cancels: such an equation is always of the first degree.

              Exercise 4

              The point P\displaystyle P is on the x\displaystyle x-axis, at equal distances from A(1,3)\displaystyle A(1,3) and B(5,1)\displaystyle B(5,1).
              Find P\displaystyle P.

                Exercise 5

                The vertices of the triangle ABC\displaystyle ABC are A(−1,1)\displaystyle A(-1,1), B(7,1)\displaystyle B(7,1) and C(3,4)\displaystyle C(3,4).

                a

                Find the lengths of the sides AC\displaystyle AC and BC\displaystyle BC.

                AC\displaystyle AC

                  / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                  / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                  BC\displaystyle BC

                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                    b

                    D\displaystyle D is the midpoint of AB\displaystyle AB.
                    Find the length of the median CD\displaystyle CD.

                      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                      c

                      What kind of triangle is ABC\displaystyle ABC?
                      Explain why the median CD\displaystyle CD is also the altitude to AB\displaystyle AB.