Introduction
Coordinate geometry turns shapes into equations. A line becomes , a circle becomes , and questions like "do these meet?" or "is this a right angle?" become algebra. This topic covers gradients, the equations of lines, parallel and perpendicular lines, the equation of a circle, and the circle theorems that A level uses: tangents, chords and the angle in a semicircle.
Why it matters
Every computer game, GPS and CAD package works with coordinates. Deciding whether a ray hits an object is solving a line with a curve; drawing a smooth tangent uses perpendicular gradients. The methods here are also the base for vectors, parametric equations and calculus.
Intuitive explanation
A gradient of means every step of 1 to the right goes up 3. A perpendicular line turns this by : "3 up, 1 along" becomes "1 up, 3 back", a gradient of . That is why perpendicular gradients multiply to .
A point is on the circle with centre and radius exactly when its distance from the centre is . Pythagoras on the horizontal and vertical gaps gives .
Formal definitions
The gradient of the line through and is .
- : gradient , -intercept
- : gradient through
- : general form, often asked with integer
The circle with centre and radius is .
Notation
- Midpoint of and : .
- Distance: .
- : parallel; : perpendicular.
Key facts
- Parallel lines: .
- Perpendicular lines: , i.e. .
- The angle in a semicircle is a right angle.
- The perpendicular from the centre to a chord bisects the chord.
- A tangent is perpendicular to the radius at the point of contact.
Key results
is a circle with centre and radius , provided .
Substitute the line into the circle to get a quadratic. Discriminant : two intersections (a chord). : one (a tangent). : none.
Proofs
A line of gradient has direction "1 along, up", the vector . Rotating by gives , gradient . So the perpendicular gradient is and the product is .
∎Complete the square: and . So the equation becomes .
∎The distance from a point to a line
The distance from to the line is
The vector is perpendicular to the line: if and lie on it, then . Pick any point on the line. The distance from is the length of the projection of onto :
using .
∎This one formula handles tangency (distance radius), the gap between parallel lines and incircles, as the questions in this topic show.
Why perpendicular gradients multiply to −1
Rotating the direction vector through gives , whose gradient is . Equivalently, . The dot product version also covers vertical lines, where gradients do not exist.
Methods
- Find the midpoint of the segment.
- Find the gradient of the segment, then the negative reciprocal.
- Use through the midpoint.
- Find the gradient of the radius from the centre to the point.
- The tangent gradient is the negative reciprocal.
- Write the line through the point.
The centre lies on the perpendicular bisector of every chord. Intersect two perpendicular bisectors to find it. If two of the points are ends of a diameter (a right angle at the third), the centre is simply their midpoint.
Examples
. Complete the square: . Centre , radius .
See the Worked examples tab for tangents, chords and intersections, step by step.
Common mistakes
has centre , not .
has radius , not .
When asked for "where are integers", clear all fractions.
It passes through the midpoint, not one of the endpoints.
Applications
- Navigation: the set of positions at a fixed distance from a transmitter is a circle; GPS intersects several.
- Design: a tangent line joining a circular arc smoothly (railways, roads) must be perpendicular to the radius.
- Collision detection: does a moving object's straight path hit a circular obstacle? Check the discriminant.
Connections
- Algebraic methods: completing the square and the discriminant.
- Differentiation: tangents and normals to any curve.
- Parametric equations: circles as , .
- Vectors: lines and distances in two and three dimensions.
Summary
- ; .
- Parallel: same gradient. Perpendicular: .
- Circle: ; complete the square to read centre and radius.
- Tangent radius; perpendicular from centre bisects a chord; angle in a semicircle is .
- Line meets circle: substitute and use the discriminant.
Worked examples
Try each one yourself first, then open the solution.
Find the equation of the line through and in the form .
Show the solution
- 1Gradient
.
- 2Point-gradient form
.
- 3Rearrange
.
Find the perpendicular bisector of and .
Show the solution
- 1Midpoint
.
- 2Gradient of
, so the perpendicular gradient is .
- 3Equation
, or .
Find the centre and radius of .
Show the solution
- 1Group terms
.
- 2Complete both squares
.
- 3Tidy
.
Centre , radius
The circle passes through . Find the tangent at .
Show the solution
- 1Gradient of the radius
Centre : .
- 2Tangent gradient
Perpendicular: .
- 3Equation
.
Show that the line does not meet the circle .
Show the solution
- 1Substitute
.
- 2Discriminant
.
- 3Conclude
No real solutions, so the line misses the circle.
Discriminant : no intersection.
Geometric check: the distance from the origin to the line is .
and are the ends of a diameter. Find the equation of the circle.
Show the solution
- 1Centre is the midpoint
.
- 2Radius
.
- 3Equation
.
Find the values of for which is a tangent to .
Show the solution
- 1Substitute
.
- 2Tangent: discriminant zero
.
- 3Solve
.
University-level ideas and the deeper mathematics behind this topic. Not needed for exams, but this is where the subject really opens up.
Power of a point, radical axes and inversion (university)
For a circle with centre and radius , the power of a point is . If the circle is , then is just the left-hand side evaluated at .
If a line through meets the circle at and , then , whichever line is chosen. For a tangent, .
Parametrise the line as with . Substituting into gives . The roots have product (Vieta), and .
∎This unifies the GCSE circle theorems about intersecting chords, secants and tangents into one statement.
The points with equal power with respect to two non-concentric circles form a straight line, perpendicular to the line of centres. If the circles meet, it is the line through the intersection points.
Subtracting the two circle equations cancels and leaves exactly this line (question Q38). The three radical axes of three circles taken in pairs meet at one point, the radical centre.
Inversion
Inversion in the circle sends to the point on ray with . In coordinates, .
Inversion maps circles and lines to circles and lines. A circle through becomes a line not through , and vice versa. Angles between curves are preserved.
Inversion turns problems about tangent circles into problems about parallel lines. It solves the problem of Apollonius (find circles tangent to three given circles) and Steiner's porism. In complex numbers it is , a relative of the Möbius maps met in Functions and graphs.
From circles to conics (university)
A circle is the set of points at a fixed distance from a centre. Changing the defining rule slightly gives the other conic sections, the curves made by slicing a cone with a plane.
Fix a point (the focus), a line (the directrix) and a number (the eccentricity). The conic is the set of points with :
- : an ellipse (a circle is the limit );
- : a parabola;
- : a hyperbola.
Every conic has an equation of degree :
Its type is decided by the discriminant : negative for an ellipse (a circle when and ), zero for a parabola, positive for a hyperbola. Rotating the axes through an angle with removes the term; this is diagonalising the symmetric matrix .
- A light ray from one focus of an ellipse reflects off the curve through the other focus.
- Rays parallel to the axis of a parabola reflect through its focus: hence satellite dishes and car headlights. Both follow from the trick in question Q55: reflect one point in the tangent line to turn a bent path into a straight one.
The Apollonius circle
Question Q46 found that is a circle when (and the perpendicular bisector when ). In general its diameter runs between the points dividing internally and externally in the ratio . This is the geometry behind the GPS-style problem of locating a source from the ratio of its distances to two receivers.
Lattice points: Pick’s theorem and the circle problem (university)
Pick's theorem
For a polygon whose vertices all have integer coordinates, with lattice points strictly inside and on the boundary,
For the triangle , , of question Q39: the boundary has only the vertices (each edge has gcd of coordinate differences equal to ), and there are interior points, so the area is ✓.
Both sides are additive when two lattice polygons are glued along an edge (shared boundary points switch from to in just the right way). Every lattice polygon can be cut into lattice triangles, and every lattice triangle sits inside a lattice rectangle minus right-angled triangles. So it is enough to check rectangles and right-angled triangles, which is direct counting.
∎How many lattice points lie inside a circle?
Let count the integer points with . Each point owns a unit square, so . Gauss showed that the error satisfies . The true size of the error is a famous open problem (Gauss's circle problem): it is conjectured that for every , and the best exponent proved so far is about .
The same count connects to number theory: the number of ways to write is , where counts the divisors of congruent to (Jacobi). Summing this over gives Leibniz's series .
Why does this work?
Let the circle have centre , diameter and a point on the circle. , so triangles and are isosceles. If their base angles are and , the angles of triangle add to , so .
Beyond the syllabus
Mathematical curiosities
If four circles are mutually tangent with curvatures , then . Repeatedly filling gaps gives the Apollonian gasket, in which, starting from curvatures , every curvature is an integer.