MatheramaMatherama
← Circles
Circles·Section 2·15 min read

Equation of Circle

Equation of Circle:§

Equation of a Circle with given Centre and Radius§

We begin by recalling the purpose of coordinate geometry—it expresses geometry algebraically, translating shapes into equations. Consider a circle lying in a plane. Let us introduce a Cartesian coordinate system in this plane.

Assume the circle has its center at point CC and radius rr. Let the coordinates of the center CC be (α,β)(\alpha, \beta). Let P(x,y)P(x, y) be any point on the circle.

By the definition of a circle, every point PP on the circle is at a constant distance rr from the center CC. That is,

CP=rCP = r

alt text

Using the distance formula between C(α,β)C(\alpha, \beta) and P(x,y)P(x, y),

(x−α)2+(y−β)2=r\sqrt{(x - \alpha)^2 + (y - \beta)^2} = r

Squaring both sides,

(x−α)2+(y−β)2=r2(x - \alpha)^2 + (y - \beta)^2 = r^2

This is the required equation of a circle with center (α,β)(\alpha, \beta) and radius rr. It encodes the entire geometry of the circle into a single algebraic expression.

For example: suppose the center of the circle is (2,−1)(2, -1) and the radius is 33. Then applying the general form

(x−α)2+(y−β)2=r2(x - \alpha)^2 + (y - \beta)^2 = r^2

with α=2\alpha = 2, β=−1\beta = -1, and r=3r = 3, we get:

(x−2)2+(y+1)2=9(x - 2)^2 + (y + 1)^2 = 9

This is the required equation of the circle.

When the center of the circle is the origin, that is (0,0)(0, 0), and the radius is aa, we substitute α=0\alpha = 0, β=0\beta = 0, and r=ar = a into the general form:

(x−α)2+(y−β)2=r2(x - \alpha)^2 + (y - \beta)^2 = r^2   ⟹  (x−0)2+(y−0)2=a2\implies (x - 0)^2 + (y - 0)^2 = a^2   ⟹  x2+y2=a2\implies x^2 + y^2 = a^2

alt text

This is the simplest and most symmetric form of the equation of a circle. It represents a circle centered at the origin with radius aa.

Let us now work through some examples where the given geometric information helps us deduce α\alpha, β\beta, and rr, and then use these to write the equation of the circle.

Equation of a Circle When Two Diametrically Opposite Points Are Known§

Let A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2) be the endpoints of a diameter of a circle.
A naïve approach to find the equation is as follows:

The radius is half the distance between AA and BB:

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

The center is the midpoint of ABAB:

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

Substituting this into the standard form gives:

(x−x1+x22)2+(y−y1+y22)2=(12(x2−x1)2+(y2−y1)2)2\left( x - \frac{x_1 + x_2}{2} \right)^2 + \left( y - \frac{y_1 + y_2}{2} \right)^2 = \left( \frac{1}{2} \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \right)^2   ⟹  (x−x1+x22)2+(y−y1+y22)2=14[(x2−x1)2+(y2−y1)2]\implies \left( x - \frac{x_1 + x_2}{2} \right)^2 + \left( y - \frac{y_1 + y_2}{2} \right)^2 = \frac{1}{4} \left[ (x_2 - x_1)^2 + (y_2 - y_1)^2 \right]

This is correct, but there exists a more elegant and geometrically insightful method.

Let P(x,y)P(x, y) be any arbitrary point on the circle. Since ABAB is a diameter, the angle ∠APB\angle APB is a right angle. Thus,

AP⊥PB\text{AP} \perp \text{PB}

alt text

Using slopes:

Slope of AP=y−y1x−x1,Slope of PB=y−y2x−x2\text{Slope of } AP = \frac{y - y_1}{x - x_1}, \quad \text{Slope of } PB = \frac{y - y_2}{x - x_2}

As the angle is 90∘90^\circ, the product of these slopes is −1-1:

y−y1x−x1⋅y−y2x−x2=−1\frac{y - y_1}{x - x_1} \cdot \frac{y - y_2}{x - x_2} = -1   ⟹  (y−y1)(y−y2)+(x−x1)(x−x2)=0\implies (y - y_1)(y - y_2) + (x - x_1)(x - x_2) = 0

This is the required equation of the circle when two diametrically opposite points are known.

General Equation of a Circle§

Consider a circle with center (α,β)(\alpha, \beta) and radius rr. Then its equation is:

(x−α)2+(y−β)2=r2(x - \alpha)^2 + (y - \beta)^2 = r^2

Expanding this:

x2−2αx+α2+y2−2βy+β2=r2x^2 - 2\alpha x + \alpha^2 + y^2 - 2\beta y + \beta^2 = r^2   ⟹  x2+y2−2αx−2βy+(α2+β2−r2)=0\implies x^2 + y^2 - 2\alpha x - 2\beta y + (\alpha^2 + \beta^2 - r^2) = 0

This form involves:

  • Quadratic terms x2+y2x^2 + y^2,
  • Linear terms xx and yy,
  • A constant term.

So we claim that any equation of a circle can be written in the form:

x2+y2+2gx+2fy+c=0x^2 + y^2 + 2gx + 2fy + c = 0

The choice of coefficients as 2g2g and 2f2f rather than gg and ff is intentional, as it simplifies the formulas that follow—especially for the center and radius.

But here is an important caveat:

Not every equation of the form

x2+y2+2gx+2fy+c=0x^2 + y^2 + 2gx + 2fy + c = 0

represents a circle.

Let us determine the condition under which it does.

We rewrite the equation by completing the square:

(x2+2gx)+(y2+2fy)=−c(x^2 + 2gx) + (y^2 + 2fy) = -c

Add g2+f2g^2 + f^2 to both sides to complete the squares on the left:

(x2+2gx+g2)+(y2+2fy+f2)=−c+g2+f2(x^2 + 2gx + g^2) + (y^2 + 2fy + f^2) = -c + g^2 + f^2   ⟹  (x+g)2+(y+f)2=g2+f2−c\implies (x + g)^2 + (y + f)^2 = g^2 + f^2 - c

Comparing with the standard form:

(x−α)2+(y−β)2=r2(x - \alpha)^2 + (y - \beta)^2 = r^2

we conclude that this equation represents a circle with

  • Center: (−g,−f)(-g, -f)
  • Radius: r=g2+f2−cr = \sqrt{g^2 + f^2 - c}

But the square root is defined only if g2+f2−c≥0g^2 + f^2 - c \geq 0.

Thus, the equation

x2+y2+2gx+2fy+c=0x^2 + y^2 + 2gx + 2fy + c = 0

represents a circle if and only if:

g2+f2−c≥0g^2 + f^2 - c \geq 0

and equality holds if and only if the circle reduces to a point. If g2+f2−c<0g^2 + f^2 - c < 0, the equation has no real solution and represents no real circle.

The case when

g2+f2−c=0g^2 + f^2 - c = 0

is rather peculiar. It means the radius of the circle is zero, so the equation becomes:

(x+g)2+(y+f)2=0(x + g)^2 + (y + f)^2 = 0

Now, since the sum of two squares is zero only when both squares are zero, this equation is satisfied by exactly one point:

x=−g,y=−fx = -g, \quad y = -f

Thus, the only solution to the equation is the single point (−g,−f)(-g, -f), which is also the center of the circle. This degenerate case is called a point circle.

It is a limiting case of a circle where the entire geometry collapses to a single point, but algebraically it still satisfies the form of the general equation:

x2+y2+2gx+2fy+c=0x^2 + y^2 + 2gx + 2fy + c = 0

with g2+f2−c=0g^2 + f^2 - c = 0.

Parametric Form of a Circle§

Consider a circle with center at (α,β)(\alpha, \beta) and radius rr. Its equation is:

(x−α)2+(y−β)2=r2(x - \alpha)^2 + (y - \beta)^2 = r^2

We want to extract a parametric form of this equation—that is, a representation of all points on the circle in terms of a single real parameter. To do this, divide both sides of the equation by r2r^2:

(x−αr)2+(y−βr)2=1\left( \frac{x - \alpha}{r} \right)^2 + \left( \frac{y - \beta}{r} \right)^2 = 1

This resembles the identity:

cos⁡2θ+sin⁡2θ=1\cos^2 \theta + \sin^2 \theta = 1

Thus, define a real parameter θ\theta such that

x−αr=cos⁡θ,y−βr=sin⁡θ\frac{x - \alpha}{r} = \cos \theta, \qquad \frac{y - \beta}{r} = \sin \theta

Solving for xx and yy, we obtain:

x=α+rcos⁡θ,y=β+rsin⁡θx = \alpha + r \cos \theta, \qquad y = \beta + r \sin \theta

This is the required parametric form of the circle. Every point (x,y)(x, y) lying on the circle can be expressed in this way for some θ∈R\theta \in \mathbb{R}.

To interpret this parametrization geometrically, draw a horizontal line through the center of the circle, and let PP be a point on the circle. Drop a perpendicular from PP to this horizontal line, with foot at NN. Let CC denote the center of the circle.

The angle θ\theta is the angle ∠PCN\angle PCN that the radius CP→\overrightarrow{CP} makes with the positive direction of the horizontal line (i.e., the x-axis). Then:

CN=rcos⁡θ,PN=rsin⁡θCN = r \cos \theta, \qquad PN = r \sin \theta

But in terms of coordinates, CN=x−αCN = x - \alpha, and PN=y−βPN = y - \beta. Hence:

x−α=rcos⁡θ,y−β=rsin⁡θx - \alpha = r \cos \theta, \qquad y - \beta = r \sin \theta

which confirms:

(x,y)=(α+rcos⁡θ, β+rsin⁡θ)(x, y) = (\alpha + r \cos \theta,\ \beta + r \sin \theta)

Therefore, every point on the circle can be expressed in this form for some real θ\theta.

For example, consider the circle with center at the origin and radius aa. Its equation is:

x2+y2=a2x^2 + y^2 = a^2

Here, α=0\alpha = 0, β=0\beta = 0, and r=ar = a. Substituting into the parametric form, we obtain:

x=acos⁡θ,y=asin⁡θx = a \cos \theta, \qquad y = a \sin \theta

Thus, the point (x,y)(x, y) lies on the circle if and only if it can be written as (acos⁡θ, asin⁡θ)(a \cos \theta,\ a \sin \theta) for some θ∈R\theta \in \mathbb{R}.
This parametrization traces the circle as θ\theta varies over [0,2π][0, 2\pi], and repeats periodically as θ\theta increases further.

In this form, the variable θ\theta has a clear geometric interpretation: it is the angle between the positive x-axis and the radius vector from the origin to the point (x,y)(x, y), measured in the counter-clockwise direction.

This parametric form is particularly useful in situations where we wish to introduce trigonometry into algebraic problems, especially when it makes conceptual and computational sense to do so. A common setting is in maximization and minimization problems involving points on a circle.

In such cases, trigonometric expressions are often easier to differentiate or manipulate than Cartesian expressions involving both xx and yy. Moreover, the parametric form transforms a problem with two variables—the abscissa and the ordinate—into a problem with only one variable, namely θ\theta. This reduction in the number of unknowns simplifies both the reasoning and the calculation.

The advantage becomes clearer when we examine the following examples.

Section 2 of 12 · Circles

Mark this section complete when you have worked through its proofs.