6.1 Coordinate Geometry: Lines, Distance, Midpoint, and Circles

Key Takeaways

  • The distance formula d=(x2−x1)2+(y2−y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} derives directly from the Pythagorean theorem, and the midpoint formula M=((x1+x2)/2,(y1+y2)/2)M = ((x_1 + x_2)/2, (y_1 + y_2)/2) yields the average coordinate of two endpoints.

  • Parallel lines possess identical slopes (m_1 = m_2), whereas perpendicular lines have negative reciprocal slopes (m_1 * m_2 = -1), provided neither line is vertical.

  • The standard equation of a circle centered at (h, k) with radius r is (x - h)^2 + (y - k)^2 = r^2; completing the square converts general quadratic form Ax^2 + Ay^2 + Dx + Ey + F = 0 into standard form.

  • The perpendicular distance from a point (x1,y1)(x_1, y_1) to a line Ax+By+C=0Ax + By + C = 0 is given by the formula d=∣Ax1+By1+C∣/A2+B2d = |Ax_1 + By_1 + C| / \sqrt{A^2 + B^2}.

Last updated: August 2026

6.1 Coordinate Geometry: Lines, Distance, Midpoint, and Circles

Analytic geometry provides the foundational bridge between algebraic equations and geometric figures on the Cartesian coordinate plane R2\mathbb{R}^2. A mastery of fundamental geometric measurements—such as distance, midpoints, slopes, and linear relationships—is essential for evaluating complex geometric systems and second-degree curves on the CLEP Precalculus examination.


1. Distance and Midpoint Formulas in R2\mathbb{R}^2

The Distance Formula

The distance dd between any two points P1(x1,y1)P_1(x_1, y_1) and P2(x2,y2)P_2(x_2, y_2) in the Cartesian plane is derived directly from the Pythagorean theorem (a2+b2=c2a^2 + b^2 = c^2). By constructing a right triangle with horizontal leg Δx=∣x2−x1∣\Delta x = |x_2 - x_1| and vertical leg Δy=∣y2−y1∣\Delta y = |y_2 - y_1|, the hypotenuse represents the Euclidean distance:

d=(x2−x1)2+(y2−y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

Because the differences are squared, the order in which the points are subtracted does not affect the calculation: (x2−x1)2=(x1−x2)2(x_2 - x_1)^2 = (x_1 - x_2)^2.

The Midpoint Formula

The midpoint MM of a line segment joining endpoints P1(x1,y1)P_1(x_1, y_1) and P2(x2,y2)P_2(x_2, y_2) is the point whose coordinates are the arithmetic averages of the respective coordinates of the endpoints:

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

Worked Example 1: Segment Analysis & Right-Triangle Verification

Given three points P1(−3,7)P_1(-3, 7), P2(5,1)P_2(5, 1), and P3(5,7)P_3(5, 7):

  1. Compute the length of segment P1P2P_1 P_2 and find its midpoint MM.
  2. Verify that triangle △P1P3P2\triangle P_1 P_3 P_2 is a right-angled triangle.

Solution:

  1. Calculate the distance d(P1,P2)d(P_1, P_2): d=(5−(−3))2+(1−7)2=82+(−6)2=64+36=100=10d = \sqrt{(5 - (-3))^2 + (1 - 7)^2} = \sqrt{8^2 + (-6)^2} = \sqrt{64 + 36} = \sqrt{100} = 10 Calculate the midpoint MM of segment P1P2P_1 P_2: M=(−3+52,7+12)=(22,82)=(1,4)M = \left(\frac{-3 + 5}{2}, \frac{7 + 1}{2}\right) = \left(\frac{2}{2}, \frac{8}{2}\right) = (1, 4)
  2. Calculate the remaining side lengths of △P1P3P2\triangle P_1 P_3 P_2: d(P1,P3)=(5−(−3))2+(7−7)2=82+02=8d(P_1, P_3) = \sqrt{(5 - (-3))^2 + (7 - 7)^2} = \sqrt{8^2 + 0^2} = 8 d(P3,P2)=(5−5)2+(1−7)2=02+(−6)2=6d(P_3, P_2) = \sqrt{(5 - 5)^2 + (1 - 7)^2} = \sqrt{0^2 + (-6)^2} = 6 Check the Pythagorean identity a2+b2=c2a^2 + b^2 = c^2: [d(P1,P3)]2+[d(P3,P2)]2=82+62=64+36=100=102=[d(P1,P2)]2[d(P_1, P_3)]^2 + [d(P_3, P_2)]^2 = 8^2 + 6^2 = 64 + 36 = 100 = 10^2 = [d(P_1, P_2)]^2 Because the side lengths satisfy 82+62=1028^2 + 6^2 = 10^2, the triangle is a right triangle with its right angle located at P3(5,7)P_3(5, 7).

2. Equations of Lines, Parallel & Perpendicular Slopes, and Point-to-Line Distance

Linear Forms

A line in the Cartesian plane can be expressed in several algebraic forms:

  • Slope-Intercept Form: y=mx+by = mx + b, where mm is the slope and bb is the yy-intercept (0,b)(0, b).
  • Point-Slope Form: y−y1=m(x−x1)y - y_1 = m(x - x_1), where mm is the slope and (x1,y1)(x_1, y_1) is a known point.
  • General (Standard) Form: Ax+By+C=0Ax + By + C = 0, where AA, BB, and CC are integers, and A≥0A \ge 0.

Slope Relationships

For non-vertical lines L1L_1 and L2L_2 with slopes m1m_1 and m2m_2:

  • Parallel Lines (L1∥L2L_1 \parallel L_2): Slopes are equal: m1=m2m_1 = m_2.
  • Perpendicular Lines (L1⊥L2L_1 \perp L_2): Slopes are negative reciprocals: m1⋅m2=−1  ⟹  m2=−1m1m_1 \cdot m_2 = -1 \implies m_2 = -\frac{1}{m_1}.

Point-to-Line Distance Formula

The shortest distance dd from a point P(x1,y1)P(x_1, y_1) to a line defined by Ax+By+C=0Ax + By + C = 0 is measured along a perpendicular segment dropped from the point to the line:

d=∣Ax1+By1+C∣A2+B2d = \frac{|Ax_1 + By_1 + C|}{\sqrt{A^2 + B^2}}

Worked Example 2: Perpendicular Line Equation & Distance

Find the general equation of the line L2L_2 passing through P(2,−5)P(2, -5) that is perpendicular to L1:3x−4y+12=0L_1: 3x - 4y + 12 = 0. Then calculate the exact perpendicular distance from P(2,−5)P(2, -5) to L1L_1.

Solution:

  1. Find the slope of L1L_1 by converting to slope-intercept form: −4y=−3x−12  ⟹  y=34x+3  ⟹  m1=34-4y = -3x - 12 \implies y = \frac{3}{4}x + 3 \implies m_1 = \frac{3}{4}
  2. Determine the slope m2m_2 of perpendicular line L2L_2: m2=−1m1=−43m_2 = -\frac{1}{m_1} = -\frac{4}{3}
  3. Use point-slope form with P(2,−5)P(2, -5): y−(−5)=−43(x−2)  ⟹  y+5=−43x+83y - (-5) = -\frac{4}{3}(x - 2) \implies y + 5 = -\frac{4}{3}x + \frac{8}{3} Multiply through by 33 to obtain general form: 3y+15=−4x+8  ⟹  4x+3y+7=03y + 15 = -4x + 8 \implies 4x + 3y + 7 = 0
  4. Calculate the perpendicular distance from P(2,−5)P(2, -5) to L1:3x−4y+12=0L_1: 3x - 4y + 12 = 0: d=∣3(2)−4(−5)+12∣32+(−4)2=∣6+20+12∣9+16=∣38∣25=385=7.6d = \frac{|3(2) - 4(-5) + 12|}{\sqrt{3^2 + (-4)^2}} = \frac{|6 + 20 + 12|}{\sqrt{9 + 16}} = \frac{|38|}{\sqrt{25}} = \frac{38}{5} = 7.6

3. Standard and General Equations of Circles

Locus Definition and Standard Form

A circle is the set (locus) of all points P(x,y)P(x, y) in a plane that are at a fixed positive distance rr (the radius) from a fixed point C(h,k)C(h, k) (the center). Applying the distance formula yields the standard equation of a circle:

(x−h)2+(y−k)2=r2(x - h)^2 + (y - k)^2 = r^2

If the center is at the origin (0,0)(0, 0), the equation simplifies to x2+y2=r2x^2 + y^2 = r^2.

General Form and Completing the Square

Expanding the standard equation yields the general form of a circle:

Ax2+Ay2+Dx+Ey+F=0(A≠0)Ax^2 + Ay^2 + Dx + Ey + F = 0 \quad (A \neq 0)

To identify the center (h,k)(h, k) and radius rr from general form, divide by AA and complete the square for both xx and yy terms.

Worked Example 3: Completing the Square for a Circle

Determine the center, radius, and area of the circle given by the general equation:

2x2+2y2−12x+16y−14=02x^2 + 2y^2 - 12x + 16y - 14 = 0

Solution:

  1. Divide every term by A=2A = 2: x2+y2−6x+8y−7=0x^2 + y^2 - 6x + 8y - 7 = 0
  2. Rearrange terms by grouping variables and isolating the constant on the right side: (x2−6x)+(y2+8y)=7(x^2 - 6x) + (y^2 + 8y) = 7
  3. Complete the square for xx by adding (−62)2=9\left(\frac{-6}{2}\right)^2 = 9, and for yy by adding (82)2=16\left(\frac{8}{2}\right)^2 = 16. Add both values to the right side: (x2−6x+9)+(y2+8y+16)=7+9+16(x^2 - 6x + 9) + (y^2 + 8y + 16) = 7 + 9 + 16
  4. Factor the perfect square trinomials into standard form: (x−3)2+(y+4)2=32(x - 3)^2 + (y + 4)^2 = 32
  5. Compare with (x−h)2+(y−k)2=r2(x - h)^2 + (y - k)^2 = r^2:
    • Center: (h,k)=(3,−4)(h, k) = (3, -4)
    • Radius: r=32=42r = \sqrt{32} = 4\sqrt{2}
    • Area: A=πr2=π(32)=32πA = \pi r^2 = \pi (32) = 32\pi square units.

4. CLEP Exam Traps & Common Errors

Trap TypeCommon MistakeCorrect Mathematical Principle
Sign Error in Center CoordinatesAssuming (x+3)2+(y−4)2=25(x + 3)^2 + (y - 4)^2 = 25 has center (3,−4)(3, -4).Standard form is (x−h)2+(y−k)2=r2(x - h)^2 + (y - k)^2 = r^2, so x+3=x−(−3)  ⟹  h=−3x + 3 = x - (-3) \implies h = -3. The center is (−3,4)(-3, 4).
Radius vs. Radius SquaredConfusing r2r^2 with rr (e.g., stating r=25r = 25 for (x−1)2+y2=25(x - 1)^2 + y^2 = 25).The right side represents r2r^2. The radius is r=25=5r = \sqrt{25} = 5.
Completing the Square Non-Unit Leading CoefficientAdding (b2)2\left(\frac{b}{2}\right)^2 before dividing by AA in 2x2+2y2−12x+…2x^2 + 2y^2 - 12x + \dotsYou MUST divide by AA so that x2x^2 and y2y^2 coefficients are equal to 11 before computing square additions.
Perpendicular Slope Negation OnlyForgetting to invert the slope when finding perpendicular lines (e.g., setting m2=−2m_2 = -2 for m1=2m_1 = 2).Perpendicular slopes are negative reciprocals: m2=−1m1=−12m_2 = -\frac{1}{m_1} = -\frac{1}{2}.
Test Your Knowledge

Find the standard equation of the circle that has endpoints of a diameter at P_1(-4, 2) and P_2(6, 10).

A

(x - 1)^2 + (y - 6)^2 = 41

B

(x + 1)^2 + (y + 6)^2 = 41

C

(x - 1)^2 + (y - 6)^2 = 164

D

(x + 4)^2 + (y - 2)^2 = 41

Test Your Knowledge

What is the equation of the line passing through (-1, 4) that is perpendicular to the line 2x - 5y + 10 = 0?

A

2x - 5y + 22 = 0

B

5x + 2y - 3 = 0

C

5x - 2y + 13 = 0

D

2x + 5y - 18 = 0

Test Your Knowledge

What is the center and radius of the circle defined by the general quadratic equation x^2 + y^2 + 8x - 6y + 9 = 0?

A

Center (4, -3), radius r = 16

B

Center (-8, 6), radius r = 3

C

Center (-4, 3), radius r = 4

D

Center (4, -3), radius r = 4

Test Your Knowledge

Calculate the exact perpendicular distance from the point (3, -2) to the line 4x - 3y + 7 = 0.

A

d = 3

B

d = 4

C

d = 25

D

d = 5

Sections you finish are checked off in the contents.