Skip to content

Chapter 1 — Fundamental Concepts

1.8 — Analytic Geometry

Analytic geometry translates figures into equations, and equations into figures: it is a dictionary between two languages that say the same thing.


Until now all the geometry in this book has lived in a single dimension: the real line, with the distance of §1.1 that we used in the inequalities of §1.7. This section takes the step to two dimensions. Each point of the plane will be described by a pair of real numbers, and with that, geometric figures can be described by equations. This is the idea of Descartes and Fermat in the seventeenth century: a circle, which for Euclid was a figure, also becomes the solution set of an equation, and geometric questions become algebraic questions.

An ordered pair (a,b)(a, b) is a pair of numbers in which order matters: (a,b)=(c,d)(a, b) = (c, d) means that a=ca = c and b=db = d. Thus (1,2)(1, 2) and (2,1)(2, 1) are different pairs. The set of all ordered pairs of real numbers is denoted R2\mathbb{R}^2:

R2={(x,y)∣x,y∈R}\mathbb{R}^2 = \{(x, y) \mid x, y \in \mathbb{R}\}

To give R2\mathbb{R}^2 a geometric picture, we draw in the plane two perpendicular lines, each with its scale of real numbers like the line of §1.1: the xx-axis, horizontal, and the yy-axis, vertical. They meet at the origin, which corresponds to the 00 of both. Through each point PP of the plane we draw the perpendicular to the xx-axis and the perpendicular to the yy-axis. The numbers those perpendiculars mark on each axis are the coordinates of PP: the first, xx, is called the abscissa, and the second, yy, the ordinate, and we write P=(x,y)P = (x, y). Conversely, each pair (x,y)(x, y) determines a unique point. This correspondence between points and pairs is the starting point of analytic geometry: from here on, we identify the plane with R2\mathbb{R}^2 and speak interchangeably of the point or the pair.

The axes divide the rest of the plane into four regions, the quadrants, numbered counterclockwise starting from the one containing the points with both coordinates positive. Points lying on the axes belong to no quadrant.


On the line, §1.1 defined the distance between aa and bb as ∣b−a∣|b - a|. In the plane, distance is obtained by combining that idea with the Pythagorean theorem of Euclidean geometry.

Proposition. The distance between P1=(x1,y1)P_1 = (x_1, y_1) and P2=(x2,y2)P_2 = (x_2, y_2) is

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

Proof. Let us begin with a fact about real numbers: for every real uu, u2=∣u∣\sqrt{u^2} = |u|. Indeed, ∣u∣|u| is nonnegative and its square is u2u^2, because ∣u∣|u| is uu or −u-u and (−u)2=u2(-u)^2 = u^2; by the uniqueness of the root in §1.2, ∣u∣|u| is the square root of u2u^2.

If y1=y2y_1 = y_2, the two points lie on the same horizontal line and their distance is the distance between their abscissas, ∣x2−x1∣|x_2 - x_1|. The formula gives (x2−x1)2=∣x2−x1∣\sqrt{(x_2 - x_1)^2} = |x_2 - x_1|, and they agree. The case x1=x2x_1 = x_2 is analogous. In the general case, consider the auxiliary point Q=(x2,y1)Q = (x_2, y_1). The segment P1QP_1Q is horizontal and measures ∣x2−x1∣|x_2 - x_1|; the segment QP2QP_2 is vertical and measures ∣y2−y1∣|y_2 - y_1|. Since they are perpendicular, P1P_1, QQ and P2P_2 form a right triangle whose hypotenuse is P1P2P_1P_2, and by the Pythagorean theorem,

d(P1,P2)2=∣x2−x1∣2+∣y2−y1∣2=(x2−x1)2+(y2−y1)2d(P_1, P_2)^2 = |x_2 - x_1|^2 + |y_2 - y_1|^2 = (x_2 - x_1)^2 + (y_2 - y_1)^2

The right-hand side is nonnegative, because it is a sum of squares, and so is the distance; by the uniqueness of the root, d(P1,P2)d(P_1, P_2) is the square root of the right-hand side. ■\blacksquare

The proof uses a theorem of Euclidean geometry, the Pythagorean theorem, which does not follow from the axioms of R\mathbb{R}. For that reason, from here on we adopt the formula as the definition of distance in R2\mathbb{R}^2. The proposition guarantees that this definition agrees with the distance of Euclidean geometry, and from now on all proofs about distances in the plane will be algebraic.

Example. The distance between (1,−2)(1, -2) and (4,2)(4, 2) is (4−1)2+(2−(−2))2=9+16=5\sqrt{(4 - 1)^2 + (2 - (-2))^2} = \sqrt{9 + 16} = 5.


The midpoint of the segment joining P1=(x1,y1)P_1 = (x_1, y_1) and P2=(x2,y2)P_2 = (x_2, y_2) is the point of the segment at the same distance from both endpoints. Its coordinates are the averages of the coordinates of the endpoints.

Proposition. Let M=(x1+x22,y1+y22)M = \left(\dfrac{x_1 + x_2}{2}, \dfrac{y_1 + y_2}{2}\right). Then

d(P1,M)=d(M,P2)=12d(P1,P2)d(P_1, M) = d(M, P_2) = \frac{1}{2} d(P_1, P_2)

Proof. The differences of coordinates between P1P_1 and MM are x1+x22−x1=x2−x12\frac{x_1 + x_2}{2} - x_1 = \frac{x_2 - x_1}{2} and, likewise, y2−y12\frac{y_2 - y_1}{2}. By the formula of §2,

d(P1,M)=(x2−x1)24+(y2−y1)24=12(x2−x1)2+(y2−y1)2=12d(P1,P2)d(P_1, M) = \sqrt{\frac{(x_2 - x_1)^2}{4} + \frac{(y_2 - y_1)^2}{4}} = \frac{1}{2}\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} = \frac{1}{2} d(P_1, P_2)

where we used that s4=s2\sqrt{\frac{s}{4}} = \frac{\sqrt{s}}{2} for s≥0s \ge 0, by the quotient property of radicals in §1.2. The differences between MM and P2P_2 are x2−x12\frac{x_2 - x_1}{2} and y2−y12\frac{y_2 - y_1}{2}, the same ones, so d(M,P2)d(M, P_2) gives the same value. ■\blacksquare

The proposition says that MM is equidistant from P1P_1 and P2P_2, and that d(P1,M)+d(M,P2)=d(P1,P2)d(P_1, M) + d(M, P_2) = d(P_1, P_2). In Euclidean geometry, the points whose distances to the endpoints add up exactly to the length of the segment are the points of the segment; therefore MM lies on the segment and is its midpoint.

Example. The midpoint of the segment joining (1,−2)(1, -2) and (4,2)(4, 2) is (52,0)\left(\frac{5}{2}, 0\right), and its distance to each endpoint is 52\frac{5}{2}, half of 55.

Right triangle P1, Q, P2 used to prove the distance formula, with the midpoint M marked on the hypotenuse

Figure 1.4 — The right triangle P1QP2P_1QP_2 from the proof in §2, with the midpoint MM of §3 marked on the hypotenuse.


A circle with center (h,k)(h, k) and radius r>0r > 0 is the set of points of the plane at distance exactly rr from the center. With the formula of §2, that geometric definition becomes an equation.

Proposition (standard equation of the circle). A point (x,y)(x, y) belongs to the circle with center (h,k)(h, k) and radius rr if and only if

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

Proof. By definition, (x,y)(x, y) belongs to the circle if and only if d((x,y),(h,k))=rd\big((x, y), (h, k)\big) = r, that is, (x−h)2+(y−k)2=r\sqrt{(x - h)^2 + (y - k)^2} = r. By the proposition of §1.5 on equations with radicals, this equality holds if and only if (x−h)2+(y−k)2=r2(x - h)^2 + (y - k)^2 = r^2 and r≥0r \ge 0. Since r>0r > 0, the second condition always holds, and the equation in the statement remains. ■\blacksquare

Here squaring adds no solutions, and §1.5 says why: the right-hand side, rr, is not negative.

Often the equation does not appear in its standard form but expanded, as x2+y2+Dx+Ey+F=0x^2 + y^2 + Dx + Ey + F = 0. To recover the center and the radius we complete the square, as in §1.3, once in each variable. Since x2+Dx=(x+D2)2−D24x^2 + Dx = \left(x + \frac{D}{2}\right)^2 - \frac{D^2}{4}, and likewise with yy, the equation is equivalent to

(x+D2)2+(y+E2)2=D2+E2−4F4\left(x + \frac{D}{2}\right)^2 + \left(y + \frac{E}{2}\right)^2 = \frac{D^2 + E^2 - 4F}{4}

Not every equation of this form is a circle. Let us call cc the number on the right-hand side. If c>0c > 0, the equation is that of the circle with center (−D2,−E2)\left(-\frac{D}{2}, -\frac{E}{2}\right) and radius c\sqrt{c}. If c=0c = 0, a sum of two squares is zero only if both are zero, because each is nonnegative (§1.3), and the only point satisfying it is (−D2,−E2)\left(-\frac{D}{2}, -\frac{E}{2}\right). If c<0c < 0, no point satisfies it, because a sum of squares is not negative.

Example. Consider x2+y2−6x+4y+9=0x^2 + y^2 - 6x + 4y + 9 = 0. Grouping and completing the square in each variable,

(x2−6x+9)+(y2+4y+4)=−9+9+4⟹(x−3)2+(y+2)2=4(x^2 - 6x + 9) + (y^2 + 4y + 4) = -9 + 9 + 4 \quad\Longrightarrow\quad (x - 3)^2 + (y + 2)^2 = 4

The right-hand side is positive: the equation is that of the circle with center (3,−2)(3, -2) and radius 4=2\sqrt{4} = 2. On the other hand, x2+y2−6x+4y+14=0x^2 + y^2 - 6x + 4y + 14 = 0 leads to (x−3)2+(y+2)2=−1(x - 3)^2 + (y + 2)^2 = -1, which has no solution at all.

A circle with center (h,k) and radius r, with the radius drawn from the center to a point on the curve

Figure 1.5 — Circle with center (h,k)(h,k) and radius rr: “distance to the center equals rr” written in symbols.


We call a curve the set of points (x,y)(x, y) of the plane that satisfy an equation in xx and yy; the graph of the equation. A curve is symmetric with respect to the yy-axis if, for each point (x,y)(x, y) of the curve, (−x,y)(-x, y) also lies on it. It is symmetric with respect to the xx-axis if, for each (x,y)(x, y), (x,−y)(x, -y) also lies on it, and symmetric with respect to the origin if (−x,−y)(-x, -y) does. Geometrically, (−x,y)(-x, y) is the reflection of (x,y)(x, y) in the yy-axis, (x,−y)(x, -y) its reflection in the xx-axis, and (−x,−y)(-x, -y) the opposite point through the origin.

These conditions are checked with algebra. The point (−x,y)(-x, y) satisfies the equation of the curve exactly when (x,y)(x, y) satisfies the equation that results from replacing xx by −x-x. Therefore, if that replacement yields an equation equivalent to the original, the curve is symmetric with respect to the yy-axis. Likewise, replacing yy by −y-y decides symmetry with respect to the xx-axis, and replacing both at once, symmetry with respect to the origin.

Examples. In y=x2y = x^2, replacing xx by −x-x gives y=(−x)2=x2y = (-x)^2 = x^2, the same equation: the curve is symmetric with respect to the yy-axis. In y=x3y = x^3, replacing xx by −x-x and yy by −y-y gives −y=−x3-y = -x^3, which is equivalent to y=x3y = x^3: the curve is symmetric with respect to the origin. The circle x2+y2=r2x^2 + y^2 = r^2 has all three symmetries, because any of the replacements leaves the equation unchanged, since (−a)2=a2(-a)^2 = a^2.

The three symmetries are not independent. If a curve is symmetric with respect to both axes, it is also symmetric with respect to the origin: from (x,y)(x, y) we pass to (−x,y)(-x, y) by symmetry with respect to the yy-axis, and from there to (−x,−y)(-x, -y) by symmetry with respect to the xx-axis.


With points, distances and curves now translated into algebraic language, it is worth pausing for a methodological reflection before going on: the next section examines what role graphing calculators and software play in this same work, and what care is required when relying on them.