Unit 6, lesson 77

General Conics

How to recognize the conic behind any second degree equation in two variables, by completing the square, rotating the axes to remove the cross term, and using the discriminant.

  • Theory part 153
  • Practice part 154
  • Conics

The equation 5x2−6xy+5y2=85x^2 - 6xy + 5y^2 = 8 hides an ellipse, but it is tilted, so none of the standard forms fit. Every conic, wherever it sits and however it is turned, is described by a second degree equation. The job here is to read that equation and say what the curve is.

Key terms

General quadratic equation

Definition A general second degree equation in xx and yy is

Ax2+Bxy+Cy2+Dx+Ey+F=0,Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0,

where A,B,C,D,E,FA, B, C, D, E, F are real constants and AA, BB, CC are not all zero. Its solution set is a conic, possibly degenerate, a pair of parallel lines, or empty.

In plain words Any mix of x2x^2, xyxy, y2y^2, xx, yy and a constant, with at least one second degree term.

Example The hyperbola xy=1xy = 1 is the case B=1B = 1, F=−1F = -1, with all other coefficients zero. The circle x2+y2=4x^2 + y^2 = 4 is A=C=1A = C = 1, F=−4F = -4.

Shifted conics

Definition If an equation G(x,y)=0G(x, y) = 0 describes a curve C\mathcal{C}, then G(x−h,y−k)=0G(x - h, y - k) = 0 describes the curve obtained by moving every point of C\mathcal{C} by hh horizontally and kk vertically. For example

(x−h)2a2+(y−k)2b2=1\frac{(x - h)^2}{a^2} + \frac{(y - k)^2}{b^2} = 1

is the ellipse x2a2+y2b2=1\frac{x^2}{a^2} + \frac{y^2}{b^2} = 1 moved so its center is (h,k)(h, k), with foci, vertices and directrices moved by the same amount.

In plain words Replacing xx by x−hx - h slides the picture right by hh, not left. Shape, size and eccentricity stay the same.

Example The equation

(x−2)29+(y+1)24=1\frac{(x - 2)^2}{9} + \frac{(y + 1)^2}{4} = 1

describes an ellipse with center (2,−1)(2, -1), a=3a = 3, b=2b = 2 and c=9−4=5c = \sqrt{9 - 4} = \sqrt{5}, so its foci are (2±5,−1)(2 \pm \sqrt{5}, -1).

Completing the square

Definition For any real bb,

x2+bx=(x+b2)2−b24.x^2 + bx = \left(x + \frac{b}{2}\right)^2 - \frac{b^2}{4}.

When B=0B = 0, completing the square in xx (if A≠0A \ne 0) and in yy (if C≠0C \ne 0) puts the equation in a shifted standard form or shows that it is degenerate.

In plain words Group the xx terms and the yy terms, then turn each group into a perfect square plus a constant.

Example Take 4x2+9y2−16x+18y−11=04x^2 + 9y^2 - 16x + 18y - 11 = 0. Then

4(x2−4x)+9(y2+2y)=11,4(x^2 - 4x) + 9(y^2 + 2y) = 11,4(x−2)2−16+9(y+1)2−9=11,4(x - 2)^2 - 16 + 9(y + 1)^2 - 9 = 11,

so 4(x−2)2+9(y+1)2=364(x - 2)^2 + 9(y + 1)^2 = 36. Dividing by 3636 gives the ellipse

(x−2)29+(y+1)24=1\frac{(x - 2)^2}{9} + \frac{(y + 1)^2}{4} = 1

from the previous section.

Rotation of axes

Definition Rotating the coordinate axes counterclockwise by an angle θ\theta gives new coordinates (X,Y)(X, Y) for the same point, related to (x,y)(x, y) by

x=Xcos⁡θ−Ysin⁡θ,y=Xsin⁡θ+Ycos⁡θ,x = X\cos\theta - Y\sin\theta, \qquad y = X\sin\theta + Y\cos\theta,

and equivalently

X=xcos⁡θ+ysin⁡θ,Y=−xsin⁡θ+ycos⁡θ.X = x\cos\theta + y\sin\theta, \qquad Y = -x\sin\theta + y\cos\theta.

Distances and angles are the same in both systems, so a conic keeps its type and shape.

In plain words The curve stays where it is. You turn the grid so the curve lines up with the new axes.

Example With θ=π4\theta = \frac{\pi}{4} the formulas become

x=X−Y2,y=X+Y2,xy=X2−Y22.x = \frac{X - Y}{\sqrt{2}}, \qquad y = \frac{X + Y}{\sqrt{2}}, \qquad xy = \frac{X^2 - Y^2}{2}.

So the curve xy=1xy = 1 becomes

X22−Y22=1,\frac{X^2}{2} - \frac{Y^2}{2} = 1,

a hyperbola with a=b=2a = b = \sqrt{2}.

Removing the cross term

Definition Suppose B≠0B \ne 0. Rotating the axes by an angle θ\theta with 0<θ<π20 < \theta < \frac{\pi}{2} and

cot⁡2θ=A−CB\cot 2\theta = \frac{A - C}{B}

turns the equation into

A′X2+C′Y2+D′X+E′Y+F=0,A'X^2 + C'Y^2 + D'X + E'Y + F = 0,

with no XYXY term and the same constant FF. The term BxyBxy is the cross term. For a nondegenerate conic that is not a circle, it is nonzero exactly when the axes of the conic are tilted relative to the coordinate axes.

In plain words The xyxy term means the curve is turned. The formula tells you how far to turn the axes to straighten it.

Example For 5x2−6xy+5y2−8=05x^2 - 6xy + 5y^2 - 8 = 0, A=CA = C gives cot⁡2θ=0\cot 2\theta = 0, so θ=π4\theta = \frac{\pi}{4}. Using x2+y2=X2+Y2x^2 + y^2 = X^2 + Y^2 and xy=X2−Y22xy = \frac{X^2 - Y^2}{2},

5(X2+Y2)−3(X2−Y2)=8,X24+Y2=1,5(X^2 + Y^2) - 3(X^2 - Y^2) = 8, \qquad \frac{X^2}{4} + Y^2 = 1,

an ellipse with semimajor axis 22 along the line y=xy = x.

Discriminant classification

Definition The discriminant B2−4ACB^2 - 4AC does not change under rotation of axes. Let

Δ=det⁡(AB/2D/2B/2CE/2D/2E/2F).\Delta = \det \begin{pmatrix} A & B/2 & D/2 \\ B/2 & C & E/2 \\ D/2 & E/2 & F \end{pmatrix}.

If Δ≠0\Delta \ne 0, the equation describes a nondegenerate conic or the empty set, as follows.

  • If B2−4AC<0B^2 - 4AC < 0, it is an ellipse (a circle when B=0B = 0 and A=CA = C) when (A+C)Δ<0(A + C)\Delta < 0, and empty when (A+C)Δ>0(A + C)\Delta > 0.
  • If B2−4AC=0B^2 - 4AC = 0, it is a parabola.
  • If B2−4AC>0B^2 - 4AC > 0, it is a hyperbola.

If Δ=0\Delta = 0, the equation is degenerate, and its solution set is a point, one line, two lines, or empty.

In plain words The sign of B2−4ACB^2 - 4AC tells the type, the same way e<1e < 1, e=1e = 1 and e>1e > 1 do. The determinant Δ\Delta checks that the curve has not collapsed into lines or a point. For the ellipse type, the sign of (A+C)Δ(A + C)\Delta then tells a real ellipse apart from an equation with no solutions, such as x2+y2+1=0x^2 + y^2 + 1 = 0.

Example For 5x2−6xy+5y2−8=05x^2 - 6xy + 5y^2 - 8 = 0, B2−4AC=36−100=−64<0B^2 - 4AC = 36 - 100 = -64 < 0 and Δ=−8(25−9)=−128\Delta = -8(25 - 9) = -128. Since (A+C)Δ=10⋅(−128)<0(A + C)\Delta = 10 \cdot (-128) < 0, it is a real ellipse, as found above. On the other hand x2−y2=0x^2 - y^2 = 0 has B2−4AC=4>0B^2 - 4AC = 4 > 0 but Δ=0\Delta = 0, and indeed it is the pair of lines y=xy = x and y=−xy = -x, not a hyperbola.

Check yourself

  1. Classify x2+4xy+y2=3x^2 + 4xy + y^2 = 3.
Show the answer

Here A=C=1A = C = 1, B=4B = 4 and F=−3F = -3. The discriminant is B2−4AC=16−4=12>0B^2 - 4AC = 16 - 4 = 12 > 0 and Δ=−3(1−4)=9≠0\Delta = -3(1 - 4) = 9 \ne 0, so it is a hyperbola.

  1. Complete the square in y2+4y−4x+8=0y^2 + 4y - 4x + 8 = 0 and identify the curve.
Show the answer

Since y2+4y=(y+2)2−4y^2 + 4y = (y + 2)^2 - 4, the equation becomes (y+2)2−4=4x−8(y + 2)^2 - 4 = 4x - 8, so (y+2)2=4(x−1)(y + 2)^2 = 4(x - 1). It is a parabola with vertex (1,−2)(1, -2) opening to the right, with p=1p = 1.

  1. What rotation angle removes the cross term from x2+23 xy+3y2+2x=0x^2 + 2\sqrt{3}\,xy + 3y^2 + 2x = 0?
Show the answer

The angle satisfies

cot⁡2θ=1−323=−13,\cot 2\theta = \frac{1 - 3}{2\sqrt{3}} = -\frac{1}{\sqrt{3}},

and with 0<2θ<π0 < 2\theta < \pi this gives 2θ=2π32\theta = \frac{2\pi}{3}, so θ=π3\theta = \frac{\pi}{3}.

How this lesson connects

It also uses rotations.