Analytic geometry in the plane

6 visual steps · 3 worked examples · 6 exercises with solutions

First, let’s see the idea.

Which points are all the same distance from the center?

Move forward one step at a time. Change the values and observe what happens.

From distance to circlexyCP(3; 4)Same scale on both axes
Drawing description

The center C = (0, 0) and point P(3; 4) are marked in a coordinate system with the same scale on both axes.

Step 1 of 6

Locate the center and point

Locate C and read the two coordinates next to P.

C = (0, 0) is at the axes' intersection, called the origin. To locate P, start at C, move the first coordinate right and the second upward. One unit takes the same space on both axes.

C = (0, 0); P = (3, 4)
Center
(0; 0)
Point P
(3; 4)

What if you change this?

1 unit5 units
1 unit5 units

Before moving on

Point (3, 4) belongs to which circle centered at the origin?

Compare with the explanation

Distance to origin is √(9 + 16) = 5. The circle is x² + y² = 25.

You decide when to mark this lesson as studied.

From distance to circle

Slide the drawing to see the details.

Explore the full explanationThe foundations, principles, worked examples and all the exercises, at your own pace.

What you will understand

  • Derive and apply distance and midpoint formulas.
  • Construct line equations and justify parallelism and perpendicularity.
  • Relate a circle to distance from its center and solve intersections.

Before you start

You do not need to know everything by heart. The explanation revisits the necessary ideas and shows how they connect. If a foundation is still unclear, you can return to these lessons:

Review coordinates and choose a scale

In an orthonormal Cartesian coordinate system, the axes are perpendicular and use the same length unit. The word orthonormal matters: standard metric formulas assume this geometry. If a graph uses different visual scales on the axes, it can represent coordinates correctly while apparent lengths and angles are distorted.

Point A = (−2, 4) has x-coordinate −2 and y-coordinate 4. Displacement from A to B = (3, 1) has components 3 − (−2) = 5 horizontally and 1 − 4 = −3 vertically. Components can be negative because they indicate direction; distance between points is a length and cannot be negative.

For location problems, choose origin, axes and unit before writing numbers. A map may use kilometres, a floor plan metres. Choosing a coordinate system changes coordinates, but not geometric distance between two points when the transformation preserves lengths. A good choice simplifies calculations without changing the problem.

Derive distance and midpoint

If A = (x₁, y₁) and B = (x₂, y₂), horizontal and vertical projections form a right triangle with legs of lengths |x₂ − x₁| and |y₂ − y₁|. By Pythagoras, distance is:

d(A, B) = √[(x₂ − x₁)² + (y₂ − y₁)²].

The squares ensure that swapping A and B does not change the result: d(A, B) = d(B, A). If distance is zero, both differences must be zero and the points coincide. Subtracting coordinates in the same order in both components avoids confusion, although squares eliminate the sign in the final result.

Midpoint M divides the segment into two equal parts and has coordinates M = ((x₁ + x₂)/2, (y₁ + y₂)/2). Each coordinate is the average of the corresponding coordinates. For A = (−2, 4) and B = (3, 1), M = (0,5; 2,5), using a semicolon to separate coordinates with decimal commas. The difference from A to M is half that from A to B, justifying the formula and equality of the two distances.

Line equations: more than one form

A nonvertical line through A = (x₀, y₀) with slope m satisfies y − y₀ = m(x − x₀). The idea is that all displacements along the line have the same ratio of vertical to horizontal change. With two points of different x-coordinates, m = (y₂ − y₁)/(x₂ − x₁). The denominator shows why a vertical line has no defined slope.

Expanding the previous form gives y = mx + p. To check whether a point lies on the line, substitute both its coordinates into the equation. One point does not determine a line, since infinitely many directions are possible; two distinct points do. If both x-coordinates are equal, the equation is x = x₀.

The general form Ax + By + C = 0, with A and B not both zero, includes vertical lines too. If B ≠ 0, isolating y gives slope −A/B. If B = 0, we have x = −C/A. Multiplying the entire equation by a nonzero constant does not change the line; for example, 2x + y − 3 = 0 and 4x + 2y − 6 = 0 represent the same set of points.

Parallel lines, perpendicular lines and intersections

Two nonvertical lines are parallel when they have the same slope; if their y-intercepts also match, they are the same line. Two distinct vertical lines are parallel. Nonparallel lines cross at one point satisfying both equations simultaneously. Finding that point means solving a linear system.

For two perpendicular nonvertical lines, slopes satisfy m₁m₂ = −1. One way to understand the sign is to rotate direction (1, m) by 90°: it becomes (−m, 1), whose slope for m ≠ 0 is −1/m. A horizontal and vertical line are perpendicular too, but that case cannot use the product of two defined slopes.

Do not conclude perpendicularity from the drawing alone: different scales can make a right angle look oblique. For example, a slope-2 line is perpendicular to one of slope −1/2, not slope −2. Both the reciprocal and negative sign matter. To construct the perpendicular through a point, first find the new slope, then use point–slope form.

The circle as a locus

A locus is a set of points satisfying a condition. The circle with center C = (h, k) and radius r > 0 contains points P whose distance from C is r. Applying the distance formula and squaring gives:

(x − h)² + (y − k)² = r².

Equality describes the boundary. The inequality ≤ r² describes the closed disk, including interior and boundary; < r² describes only the interior. In (x + 2)² + (y − 3)² = 25, the center is (−2, 3) and radius 5. The number on the right is radius squared, not radius.

We can recover the center from an expanded equation by completing squares. In x² + y² − 6x + 4y − 12 = 0, we have (x − 3)² − 9 + (y + 2)² − 4 − 12 = 0; hence (x − 3)² + (y + 2)² = 25. Center (3, −2), radius 5. If the final right side were negative, there would be no real points; if zero, only the center would remain, a degenerate case.

The ellipse: a distance condition producing an equation

An ellipse is the set of points whose distance sum to two fixed points, the foci, is constant. Start with foci F₁ = (−c,0) and F₂ = (c,0), with c ≥ 0, and distance sum 2a, with a > c. The center is the origin. The major axis measures 2a; we write b² = a² − c², with b > 0. Here c is distance from center to a focus, not a line's constant term.

We can derive the equation. For P = (x,y), call distances to the foci r₁ and r₂. We have r₁ + r₂ = 2a. By the distance formula, r₁² − r₂² = (x + c)² − (x − c)² = 4cx. Factoring the difference of squares, (r₁ − r₂)(r₁ + r₂) = 4cx, so r₁ − r₂ = 2cx/a. Adding the two relationships and dividing by 2 gives r₁ = a + cx/a.

Now r₁² = (x + c)² + y² gives a² + 2cx + c²x²/a² = x² + 2cx + c² + y². Cancel 2cx and rearrange: a² − c² = x²(1 − c²/a²) + y². Using b² = a² − c² and dividing by b², we reach x²/a² + y²/b² = 1. The lengths and condition a > c ensure b² is positive.

The major-axis vertices are at (±a,0), and minor-axis endpoints at (0,±b). If the major axis is vertical, the term with a² is associated with y². For example, x²/9 + y²/25 = 1 has vertical semimajor axis 5, semiminor axis 3 and foci (0,±4). The larger denominator need not lie under x.

For center (x₀,y₀), replace x with x − x₀ and y with y − y₀. The ellipse (x − 2)²/25 + (y + 1)²/9 = 1 has center (2,−1), semiaxes 5 and 3 and c = √(25 − 9) = 4. Its foci are (−2,−1) and (6,−1). To check a point, substitute both coordinates and verify equality rather than judging only the figure's appearance.

A circle is the case where a = b and both foci coincide at the center. An ellipse drawn with different scales on the axes can appear more or less elongated than it really is. Geometric values should come from the equation and scale, not a visual impression.

Sets of points and problem solving

A line and circle can have no common points, touch at one point or cross at two. Substituting the line expression into the circle equation produces a quadratic equation; the number of real solutions expresses these three possibilities. After finding one coordinate, calculate the other and check the pairs in both equations.

Another useful locus is the set of points equidistant from A and B, with A ≠ B. Squaring the condition d(P, A) = d(P, B) cancels x² and y² and produces a line: the perpendicular bisector of segment AB. Geometrically, this line passes through the midpoint and is perpendicular to the segment. Algebra and geometry confirm the same description.

When solving a situation, decide whether you seek a point, distance, line or region. An equation may describe infinitely many points, while a system can select some of them. The answer must respect this difference: giving only the x-coordinate does not identify a point, and giving only a drawing does not verify a numerical condition. Final units depend on the quantity requested.

Worked examples, without skipping steps

Follow the reasoning first. Then cover the solution and try to reconstruct it in your own words.

Example 1

Distance and midpoint

Determine distance and midpoint between A = (−1, 2) and B = (5, 10), in metres.
  1. The differences are Δx = 5 − (−1) = 6 and Δy = 10 − 2 = 8.
  2. By Pythagoras, d = √(36 + 64) = √100 = 10 m.
  3. The midpoint is ((−1 + 5)/2, (2 + 10)/2) = (2, 6).
Result
Distance is 10 m and M = (2, 6).
Check the result
From A to M the differences are 3 and 4, so distance is 5 m; from M to B it is also 5 m.

Example 2

A perpendicular through a given point

Find the line perpendicular to y = 2x − 1 through (4, 3).
  1. The given line has slope 2; a nonvertical perpendicular has slope −1/2.
  2. Use y − 3 = (−1/2)(x − 4).
  3. Expand: y − 3 = −x/2 + 2, so y = −x/2 + 5.
Result
The required line is y = −x/2 + 5.
Check the result
For x = 4, output is −2 + 5 = 3. The slope product is 2 × (−1/2) = −1.

Example 3

A line intersects a circle

Determine common points of x² + y² = 25 and y = 3.
  1. Substitute 3 for y in the circle equation: x² + 9 = 25.
  2. Isolate the square: x² = 16, so x = 4 or x = −4.
  3. Pair each x-coordinate with the y-coordinate imposed by the line: (4, 3) and (−4, 3).
Result
There are two common points: (4, 3) and (−4, 3).
Check the result
For both, x² + y² = 16 + 9 = 25 and y = 3. Do not discard the negative x root because coordinates can be negative.

Now try it yourself

There is no timer. Write what you know, choose a relationship and justify each step. Hints and solutions are available whenever you need them.

Exercise 1

Why is distance not simply Δx + Δy?
A hint
Diagonal displacement is not the directed sum of components.
See the worked solution
Components indicate directions and can cancel in their sum without the points coinciding. Between (0, 0) and (3, −3), Δx + Δy = 0, but distance is √18 = 3√2. Pythagoras combines perpendicular lengths through their squares.

Exercise 2

What is the vertical line equation through (−3, 7)? And the horizontal one?
A hint
One coordinate stays fixed in each case.
See the worked solution
The vertical is x = −3 and horizontal y = 7. They cross at (−3, 7) and are perpendicular. The vertical has undefined slope; the horizontal has zero slope.

Exercise 3

Write the line through (−2, 1) and (2, 9).
A hint
Calculate slope first.
See the worked solution
m = (9 − 1)/(2 − (−2)) = 8/4 = 2. Using point–slope form, y − 1 = 2(x + 2), so y = 2x + 5. Check: at −2 it gives 1 and at 2 it gives 9.

Exercise 4

Identify center and radius of x² + y² + 8x − 2y + 8 = 0.
A hint
Complete the x and y squares separately.
See the worked solution
(x + 4)² − 16 + (y − 1)² − 1 + 8 = 0, hence (x + 4)² + (y − 1)² = 9. The center is (−4, 1) and radius 3. At (−1, 1), distance to center is 3, checking the boundary.

Exercise 5

A station is at (2, 1), in kilometres, and reaches points at most 5 km away. Is (6, 4) covered? And (8, 1)?
A hint
Compare squared distance with 25.
See the worked solution
The region is (x − 2)² + (y − 1)² ≤ 25. For (6, 4), 4² + 3² = 25: it lies on the boundary and is covered. For (8, 1), 6² + 0² = 36 > 25: it is outside. Including the boundary corresponds to “at most”.

Exercise 6

Describe the ellipse x²/9 + y²/25 = 1: center, semiaxes, foci and axis endpoints.
A hint
The larger denominator identifies the square of the semimajor axis, and its variable identifies the direction.
See the worked solution

The center is (0,0). The semimajor axis is a = 5 vertically; b = 3 is horizontal. Since c² = 25 − 9 = 16, c = 4 and the foci are (0,−4) and (0,4). Axis endpoints are (0,±5) and (±3,0). The distance sum to the foci for a point on the ellipse is 2a = 10.

Mistakes worth avoiding

Subtracting coordinates can give a negative distance.
Directed differences can be negative; distance uses squares and a nonnegative square root.
Two perpendicular lines have opposite slopes.
For defined, nonzero slopes, they are negative reciprocals, not merely opposites.
In a circle equation, the right side is the radius.
It is r²; take the positive root to obtain r.
A circle and disk are the same set.
The circle is the boundary; the disk includes interior points.

The essentials to take with you

  • Plane distances come from Pythagoras.
  • The midpoint averages each corresponding coordinate.
  • Line equations must include the vertical case.
  • A circle expresses fixed distance from the center.
  • Intersections are points satisfying the equations simultaneously.

If you still cannot explain one of these ideas, return to the corresponding section and work through an example again. Recognising the difficulty is part of studying.

References for further study

Text and examples prepared for this learning path. These sources help check the principles and continue studying:

The organisation by school year is a study proposal. Pedagogical review by teachers remains a stage of the project.