Coordinate Geometry
Coordinate geometry (also called analytic geometry) bridges algebra and geometry by using numbers and equations to describe geometric shapes and positions on a plane. It is a fundamental tool in engineering, physics, computer graphics, and architecture.
This guide covers the coordinate plane, distance and midpoint formulas, slope, equations of lines, parallel and perpendicular lines, circles, worked examples, an interactive calculator, and a practice quiz.
1Introduction
Coordinate geometry allows us to represent geometric figures using algebraic equations. By placing shapes on a number grid (the Cartesian plane), we can calculate distances, find midpoints, determine slopes, and describe curves with precision.
Every point on the plane is specified by an ordered pair (x, y), where x gives the horizontal position and y gives the vertical position. This simple idea unlocks a powerful toolkit for solving geometry problems using algebra.
Imagine a city grid where every intersection has a unique address like (3rd St, 5th Ave). Coordinate geometry works the same way -- every point has an address (x, y) that tells you exactly where it is on the plane.
Real-World Uses
Navigation & GPS
GPS coordinates use a system just like the Cartesian plane to pinpoint locations on Earth.
Computer Graphics
Every pixel on a screen has (x, y) coordinates. Games and animations rely on coordinate geometry.
Engineering & Architecture
Blueprints and CAD software use coordinate systems to place walls, beams, and wiring precisely.
Physics
Projectile motion, force diagrams, and electric fields are all analyzed on coordinate planes.
2The Coordinate Plane
The Cartesian plane is formed by two perpendicular number lines that intersect at the origin (0, 0).
X-axis
The horizontal number line. Positive values go right, negative go left.
Y-axis
The vertical number line. Positive values go up, negative go down.
Origin
The point (0, 0) where the two axes intersect.
Ordered Pair (x, y)
x is the horizontal distance (abscissa), y is the vertical distance (ordinate).
The Four Quadrants
Quadrant I
(+x, +y) -- upper right
Quadrant II
(-x, +y) -- upper left
Quadrant III
(-x, -y) -- lower left
Quadrant IV
(+x, -y) -- lower right
3Basic Formulas
These three formulas are the foundation for working with points on the coordinate plane.
Distance Formula
D = √[(x₂ − x₁)² + (y₂ − y₁)²]
The straight-line distance between two points -- derived from the Pythagorean theorem.
The horizontal difference (x₂ − x₁) and vertical difference (y₂ − y₁) form the two legs of a right triangle. The distance is the hypotenuse.
Midpoint Formula
M = ((x₁ + x₂)/2, (y₁ + y₂)/2)
The exact middle point of a segment -- the average of the coordinates.
Simply average the x-coordinates and average the y-coordinates to find the centre point.
Slope Formula
m = (y₂ − y₁) / (x₂ − x₁)
Rise over run -- the steepness and direction of a line.
Positive Slope (m > 0)
Line rises from left to right.
Negative Slope (m < 0)
Line falls from left to right.
Zero Slope (m = 0)
Horizontal line (e.g. y = 3).
Undefined Slope
Vertical line (e.g. x = 2). Division by zero.
4Equation of a Line
An equation of a line provides an algebraic way to describe all the points that lie on that line.
Slope-Intercept
y = mx + b
m = slope, b = y-intercept
Best for: quickly graphing
Point-Slope
y − y₁ = m(x − x₁)
m = slope, (x₁, y₁) = a point
Best for: writing equations
Standard Form
Ax + By + C = 0
A, B, C = constants
Best for: intercepts, distance
Converting Between Forms
Point-slope to Slope-intercept
Given m = 3, point (1, 4)
y - 4 = 3(x - 1)
y - 4 = 3x - 3
y = 3x + 1
Slope-intercept to Standard
y = 3x + 1
-3x + y = 1
3x - y + 1 = 0
5Parallel & Perpendicular Lines
Parallel Lines
m₁ = m₂
Two distinct lines are parallel if and only if they have the same slope.
Perpendicular Lines
m₁ · m₂ = −1
Two lines are perpendicular if their slopes are negative reciprocals.
Example: Parallel line through (3, 2) to y = −2x + 5
Given line has slope m = -2
Parallel slope = -2 (same)
y - 2 = -2(x - 3)
y - 2 = -2x + 6
y = -2x + 8
Example: Perpendicular line through (3, 2) to y = −2x + 5
Given line has slope m = -2
Perpendicular slope = 1/2 (negative reciprocal)
y - 2 = (1/2)(x - 3)
y - 2 = (1/2)x - 3/2
y = (1/2)x + 1/2
A horizontal line (slope = 0) is always perpendicular to a vertical line (undefined slope). This is a special case where the m₁ · m₂ = −1 rule does not directly apply.
6Circles in the Coordinate Plane
A circle is the set of all points equidistant from a central point. Its equation is derived directly from the distance formula.
Standard Form
(x − h)² + (y − k)² = r²
Center = (h, k), Radius = r
Example: Circle with center (−1, 3) and radius 4
(x - (-1))² + (y - 3)² = 4²
(x + 1)² + (y − 3)² = 16
General Form
x² + y² + Dx + Ey + F = 0
Convert to standard form by completing the square.
The circle equation comes directly from the distance formula. Any point (x, y) on the circle is exactly distance r from the center (h, k). Squaring both sides of D = r gives you the standard form.
7Worked Examples
Example 1: Distance, Midpoint & Slope
Given A(2, −3) and B(−4, 5), find distance, midpoint, and slope.
Distance:
D = √[(-4 - 2)² + (5 - (-3))²]
D = √[36 + 64] = √100
D = 10 units
Midpoint:
M = ((2 + (-4))/2, (-3 + 5)/2)
M = (-1, 1)
Slope:
m = (5 - (-3)) / (-4 - 2) = 8 / (-6)
m = -4/3
Example 2: Equation of a Line from Two Points
Find the equation of the line through (1, 4) and (−2, −5) in slope-intercept form.
m = (-5 - 4) / (-2 - 1) = -9 / -3 = 3
y - 4 = 3(x - 1)
y - 4 = 3x - 3
y = 3x + 1
Example 3: Circle Equation
Find the equation of a circle with center (−1, 3) and radius 4.
(x - h)² + (y - k)² = r²
(x - (-1))² + (y - 3)² = 4²
(x + 1)² + (y − 3)² = 16
Example 4: Distance from Point to Line
Find the distance from P(1, 5) to the line 3x − 4y + 7 = 0.
D = |Ax₀ + By₀ + C| / √(A² + B²)
D = |3(1) + (-4)(5) + 7| / √(9 + 16)
D = |3 - 20 + 7| / √25
D = |-10| / 5
D = 2 units
8Interactive Calculator
Enter two points below to see the distance, midpoint, and slope calculated in real time. The coordinate plane shows both points, the right triangle formed by the horizontal and vertical differences, and the midpoint.
Interactive Distance & Midpoint Calculator
Distance
10
Midpoint
(-1, 1)
Slope
-1.333
9Common Mistakes
Mixing up x and y coordinates
Coordinates are always (x, y). Do not accidentally use (y₁, x₁) when plugging into formulas.
Sign errors with negative numbers
Be careful when subtracting a negative: 5 − (−3) = 5 + 3 = 8, not 2. This is the most common error in distance and slope calculations.
Forgetting the square root in the distance formula
After squaring the differences and adding them, you must take the square root. Leaving D² instead of D is a frequent mistake.
Incorrect perpendicular slope
The perpendicular slope is the negative reciprocal. Do not just flip it or just negate it -- do both! If m = 2/3, then m⊥ = −3/2.
Misidentifying center and radius of a circle
In (x − h)² + (y − k)² = r², the center is (h, k), not (−h, −k). If you see (x + 1)², then h = −1. The right side is r², so take the square root to find r.
Quick Revision Summary
- ✓The Cartesian plane has an x-axis, y-axis, origin (0, 0), and four quadrants. Points are (x, y).
- ✓Distance: D = √[(x₂ − x₁)² + (y₂ − y₁)²] (Pythagorean theorem).
- ✓Midpoint: M = ((x₁ + x₂)/2, (y₁ + y₂)/2) (average of coordinates).
- ✓Slope: m = (y₂ − y₁)/(x₂ − x₁) -- positive, negative, zero, or undefined.