Evanalysis
11.4Estimated reading time: 19 min

11.4 General conics, coordinate rotation, and classification

Optional extension: remove mixed terms by rotating coordinates, classify real quadratic loci including degeneracies, and derive tangents at regular points.

Course contents

An optional extension beyond the standard forms

This section is optional. It brings the standard parabola, ellipse, and hyperbola equations into one calculation, including equations whose real solution set is a point, several lines, or empty. The aim is to recognize geometry without assuming that the coordinate axes already follow the axes of the curve.

A focus-directrix condition explains why quadratic equations arise. For a focus (p,q)(p,q), a genuine directrix ux+vy+w=0ux+vy+w=0, and eccentricity e>0e\gt0, where u2+v2>0u^2+v^2\gt0 and the focus is off the directrix, the condition is

(xp)2+(yq)2=eux+vy+wu2+v2.\sqrt{(x-p)^2+(y-q)^2} =e\frac{|ux+vy+w|}{\sqrt{u^2+v^2}}.

Both sides are nonnegative, so squaring is reversible. Multiplying by u2+v2u^2+v^2 produces a quadratic equation. The converse question needs more care: an arbitrary quadratic equation need not describe a nondegenerate focus-directrix conic. Its lower-degree terms can change the real locus without changing its quadratic part.

Definition

A real quadratic locus

For real coefficients, write

f(x,y)=Ax2+Bxy+Cy2+Dx+Ey+F.f(x,y)=Ax^2+Bxy+Cy^2+Dx+Ey+F.

Its real locus is the set of points satisfying f(x,y)=0f(x,y)=0. The quadratic part is Ax2+Bxy+Cy2Ax^2+Bxy+Cy^2, and its discriminant is Δ=B24AC\Delta=B^2-4AC. We also allow A=B=C=0A=B=C=0 when discussing the boundary cases, although the equation then has degree at most one.

Multiplying the entire equation by a nonzero constant preserves its locus. Rotating and translating coordinates also preserve distances and angles; they change the description of a fixed set, not its geometric type. A rotation removes the mixed term, and a translation then exposes which constant and linear terms still matter.

Rotating the coordinate axes

Rotate the axes counterclockwise by θ\theta. Put c=cosθc=\cos\theta and s=sinθs=\sin\theta, and denote the new coordinates by (X,Y)(X,Y). The new unit coordinate vectors, expressed in the old coordinates, are (c,s)(c,s) and (s,c)(-s,c). Thus the same point has coordinates related by

x=cXsY,y=sX+cY;X=cx+sy,Y=sx+cy.x=cX-sY,\qquad y=sX+cY; \qquad X=cx+sy,\qquad Y=-sx+cy.

The inverse formulas follow by substitution using c2+s2=1c^2+s^2=1. Keeping track of this direction prevents a common sign error: rotating the axes and actively rotating a point are different descriptions.

Theorem

Removal of the mixed term and rotation invariants

After this substitution, the equation has coefficients

A=Ac2+Bcs+Cs2,C=As2Bcs+Cc2,B=Bcos2θ(AC)sin2θ,D=Dc+Es,E=Ds+Ec,F=F.\begin{aligned} A'&=Ac^2+Bcs+Cs^2, & C'&=As^2-Bcs+Cc^2,\\ B'&=B\cos2\theta-(A-C)\sin2\theta,\\ D'&=Dc+Es, & E'&=-Ds+Ec,\qquad F'=F. \end{aligned}

Some real angle always makes B=0B'=0. Moreover,

A+C=A+C,B24AC=B24AC.A'+C'=A+C,\qquad B'^2-4A'C'=B^2-4AC.

Proof: Choose an angle only after identifying the coefficient to cancel

The goal is to eliminate XYXY, not the linear terms. Expanding Ax2Ax^2, BxyBxy, and Cy2Cy^2 gives the combined mixed coefficient 2Acs+B(c2s2)+2Ccs-2Acs+B(c^2-s^2)+2Ccs, which is the stated BB'. If B=0B=0, choose θ=0\theta=0. If B0B\ne0 and A=CA=C, choose θ=π/4\theta=\pi/4. Otherwise choose an angle satisfying tan2θ=B/(AC)\tan2\theta=B/(A-C), with 2θ2\theta between π/2-\pi/2 and π/2\pi/2. Its cosine is nonzero, so multiplication by that cosine verifies B=0B'=0. These cases avoid dividing by zero when A=CA=C.

For the trace identity, add the formulas for AA' and CC'; the mixed contributions cancel. For the discriminant, subtraction gives AC=(AC)cos2θ+Bsin2θA'-C'=(A-C)\cos2\theta+B\sin2\theta. Squaring this and BB' and adding cancels the cross products. Therefore

B2+(AC)2=B2+(AC)2.B'^2+(A'-C')^2=B^2+(A-C)^2.

Subtract the already invariant square (A+C)2=(A+C)2(A'+C')^2=(A+C)^2 to obtain the discriminant identity. The argument proves preservation for every rotation, including the angle chosen to remove the mixed term.

A subsequent translation does not change any quadratic coefficient: expanding a translated square only adds linear and constant terms. Thus Δ\Delta also survives translation. These invariants belong to the chosen polynomial equation; multiplying that equation by a scalar rr multiplies its trace by rr and its discriminant by r2r^2. In particular, the discriminant's sign remains a property of the same locus description under such a rescaling.

Rotate the axes; keep the ellipse fixed
Rotate the axes; keep the ellipse fixedxy0XY

5X2+6XY+5Y2=85X^2 + 6XY + 5Y^2 = 8

The fixed ellipse is 5x2+6xy+5y2=85x^2+6xy+5y^2=8. The dashed axes are the new X,YX,Y directions. Use x=XcosθYsinθx=X\cos\theta-Y\sin\theta and y=Xsinθ+Ycosθy=X\sin\theta+Y\cos\theta. At 4545^\circ the mixed coefficient vanishes and the same ellipse has equation 8X2+2Y2=88X^2+2Y^2=8. This changes coordinates, not the locus.

Complete the squares and retain all cases

After rotation, rename the coefficients to write

αX2+γY2+dX+eY+f=0.\alpha X^2+\gamma Y^2+dX+eY+f=0.

Here the lower-case ee is a linear coefficient, not the eccentricity used in the motivating definition. The rank of the quadratic part means the number of nonzero coefficients among α,γ\alpha,\gamma after removal of the mixed term. There are only three possibilities. We can classify them using ordinary square completion, without a general matrix theory.

Theorem

Classification of the real locus after rotation

If the quadratic part has rank two, put h=d/(2α)h=-d/(2\alpha), k=e/(2γ)k=-e/(2\gamma) and m=d2/(4α)+e2/(4γ)fm=d^2/(4\alpha)+e^2/(4\gamma)-f. Translation to U=XhU=X-h, V=YkV=Y-k gives

αU2+γV2=m.\alpha U^2+\gamma V^2=m.

If α,γ\alpha,\gamma have the same sign, multiply by 1-1 if necessary so both are positive, also changing mm's sign. The locus is an ellipse for m>0m\gt0, one point for m=0m=0, and empty for m<0m\lt0. If the coefficients have opposite signs, the locus is a hyperbola for m0m\ne0, and two intersecting lines for m=0m=0.

If the rank is one, interchange the coordinate roles if needed so that α0\alpha\ne0 and γ=0\gamma=0. Completing just the available square gives

αU2+eY+g=0,U=X+d2α,g=fd24α.\alpha U^2+eY+g=0,\qquad U=X+\frac{d}{2\alpha},\qquad g=f-\frac{d^2}{4\alpha}.

For e0e\ne0 this is a parabola. For e=0e=0, set r=g/αr=-g/\alpha; there are two parallel lines if r>0r\gt0, one double line if r=0r=0, and no real points if r<0r\lt0.

If the rank is zero, the equation is dX+eY+f=0dX+eY+f=0. It is a line when (d,e)(0,0)(d,e)\ne(0,0), the whole plane when d=e=f=0d=e=f=0, and empty otherwise.

To justify the definite case, a sum of positive multiples of squares is nonnegative and vanishes only when both variables vanish. For positive mm, division gives semiaxes m/α\sqrt{m/\alpha} and m/γ\sqrt{m/\gamma}. In the indefinite case write αU2βV2=m\alpha U^2-\beta V^2=m with α,β>0\alpha,\beta\gt0, after an interchange or overall sign change if needed. A nonzero right side can be normalized to either standard hyperbola orientation. A zero right side factors as (αUβV)(αU+βV)=0(\sqrt\alpha U-\sqrt\beta V)(\sqrt\alpha U+\sqrt\beta V)=0, giving two distinct intersecting lines.

For rank one with e0e\ne0, set V=Y+g/eV=Y+g/e. Then αU2=eV\alpha U^2=-eV, which has a nonzero parabola coefficient. Its opening is determined by the sign of e/α-e/\alpha. The term eYeY cannot be absorbed into a square in YY because there is no Y2Y^2 term. If e=0e=0, every permitted value of UU leaves YY free, so each real root gives an entire line. A double line is one geometric line with a repeated factor in the polynomial. Finally, the rank-zero cases follow by solving a genuine linear equation or checking a constant equation.

Counterexample mode

A positive discriminant does not exclude intersecting lines

The equation x2y2=0x^2-y^2=0 has Δ=4>0\Delta=4\gt0, but factors as (xy)(x+y)=0(x-y)(x+y)=0. Its locus is the union of y=xy=x and y=xy=-x, not a nondegenerate hyperbola. Changing only the constant gives x2y2=1x^2-y^2=1, which is a hyperbola with the same discriminant.

The repaired statement is that a positive discriminant gives an indefinite quadratic part. Square completion must still decide whether the remaining constant is zero. Similarly, a negative discriminant allows an ellipse, a point, or the empty set; a zero discriminant requires examination of the surviving linear terms and the rank.

A circle requires A=C0A=C\ne0 and B=0B=0. Indeed, the identity used in the proof shows that equal diagonal coefficients and a zero mixed coefficient after rotation force B2+(AC)2=0B^2+(A-C)^2=0 before rotation as well. In that case dividing by AA and completing squares gives center (D/(2A),E/(2A))(-D/(2A),-E/(2A)) and

R2=D2+E24A2FA.R^2=\frac{D^2+E^2}{4A^2}-\frac FA.

Only R2>0R^2\gt0 gives a genuine circle. Zero gives its center alone, and a negative value gives no real points. Equal quadratic coefficients alone do not establish a positive radius.

Worked classifications

Worked example

Example 1: a rotated and translated ellipse

Classify and locate the axes of

5x24xy+8y2+45x165y+4=0.5x^2-4xy+8y^2+4\sqrt5x-16\sqrt5y+4=0.

Here Δ=144\Delta=-144, so the quadratic part is definite. Take c=2/5c=2/\sqrt5, s=1/5s=1/\sqrt5, satisfying tan2θ=4/3\tan2\theta=4/3. Substituting x=(2XY)/5x=(2X-Y)/\sqrt5, y=(X+2Y)/5y=(X+2Y)/\sqrt5 gives

4X2+9Y28X36Y+4=04(X1)2+9(Y2)2=36.4X^2+9Y^2-8X-36Y+4=0 \quad\Longleftrightarrow\quad 4(X-1)^2+9(Y-2)^2=36.

The positive right side now confirms a real ellipse. Its center in rotated coordinates is (1,2)(1,2), hence in original coordinates it is (0,5)(0,\sqrt5). Its semiaxes are 33 along (2,1)/5(2,1)/\sqrt5 and 22 along (1,2)/5(-1,2)/\sqrt5. A sketch follows by marking the center and adding and subtracting these scaled unit directions to locate the four axis endpoints. The discriminant alone would not supply the center or lengths.

Worked example

Example 2: the linear term distinguishes a parabola from parallel lines

Consider x2+2xy+y22x+2y=0x^2+2xy+y^2-2x+2y=0. Although Δ=0\Delta=0, do not discard the linear part. With θ=π/4\theta=\pi/4, we have x+y=2Xx+y=\sqrt2X and 2x+2y=22Y-2x+2y=2\sqrt2Y, so the equation becomes 2X2+22Y=02X^2+2\sqrt2Y=0, a parabola opening in the negative YY direction.

Compare x2+2xy+y22=0x^2+2xy+y^2-2=0. The same rotation gives X2=1X^2=1, two parallel lines x+y=±2x+y=\pm\sqrt2. Replacing 2-2 by 00 gives the double line x+y=0x+y=0; replacing it by 22 gives the empty set. All four equations have the same quadratic part, so their different loci must be determined from the remaining terms.

Worked example

Example 3: one quadratic part and three definite outcomes

The equations x2+y22x+4y+c=0x^2+y^2-2x+4y+c=0 all have Δ=4\Delta=-4. Completing squares gives (x1)2+(y+2)2=5c(x-1)^2+(y+2)^2=5-c. For c=1c=1 the locus is a circle of radius 22 centered at (1,2)(1,-2). For c=5c=5 it is just (1,2)(1,-2), and for c=6c=6 it is empty. The same center calculation is useful in each case, but a radius cannot be assigned by taking a real square root when the right side is negative.

The quadratic matrix viewpoint

Concept lensAlgebraic

A symmetric matrix records the same quadratic expression

Define column vectors z=(x,y)Tz=(x,y)^T, Z=(X,Y)TZ=(X,Y)^T and

Q=(AB/2B/2C),O=(cssc).Q=\begin{pmatrix}A&B/2\\B/2&C\end{pmatrix},\qquad O=\begin{pmatrix}c&-s\\s&c\end{pmatrix}.

Then zTQz=Ax2+Bxy+Cy2z^TQz=Ax^2+Bxy+Cy^2: the two off-diagonal products each contribute half of the mixed term. The coordinate change is z=OZz=OZ. Since OTO=OOT=IO^TO=OO^T=I, substitution yields

zTQz=ZT(OTQO)Z,Q=OTQO,Q=OQOT.z^TQz=Z^T(O^TQO)Z,\qquad Q'=O^TQO, \qquad Q=OQ'O^T.

The last identity follows by multiplying on the left by OO and on the right by OTO^T. Matrix multiplication is ordered; these two formulas are inverse transformations, not interchangeable patterns. Choosing the angle that makes B=0B'=0 makes QQ' diagonal. This is the matrix description of the rotation already proved by trigonometry.

The trace is the sum of the diagonal entries, A+CA+C, and the determinant is ACB2/4=Δ/4AC-B^2/4=-\Delta/4. Because detO=1\det O=1, taking determinants in Q=OTQOQ'=O^TQO preserves the determinant; the trace preservation is already proved by the coefficient calculation. Thus the matrix packages the same two invariants. The linear term transforms separately to (D,E)OZ(D,E)OZ, so the matrix of the quadratic part alone cannot decide all real-locus cases. No general diagonalization theorem is needed here.

Tangents require a regular point

Theorem

The tangent formula at a regular point of a quadratic locus

Let P=(x0,y0)P=(x_0,y_0) satisfy f(P)=0f(P)=0, and suppose

f(P)=(2Ax0+By0+D, Bx0+2Cy0+E)(0,0).\nabla f(P)=(2Ax_0+By_0+D,\ Bx_0+2Cy_0+E)\ne(0,0).

Then the tangent line is f(P)(xx0,yy0)=0\nabla f(P)\cdot(x-x_0,y-y_0)=0, or equivalently

Ax0x+B2(x0y+y0x)+Cy0y+D2(x+x0)+E2(y+y0)+F=0.Ax_0x+\frac B2(x_0y+y_0x)+Cy_0y +\frac D2(x+x_0)+\frac E2(y+y_0)+F=0.

Differentiate f(x(t),y(t))=0f(x(t),y(t))=0 along a regular local parametrization. The chain rule gives f(P)(x(t),y(t))=0\nabla f(P)\cdot(x'(t),y'(t))=0 at the contact. A nonzero gradient supplies a genuine normal direction. If its second component is nonzero, implicit differentiation gives a local graph y=y(x)y=y(x); if only its first component is nonzero, use x=x(y)x=x(y) instead. Thus a vertical tangent does not require division by zero.

To obtain the symmetric formula, expand the point-normal equation, use f(P)=0f(P)=0 to replace its constant term, and divide by two. Both hypotheses matter. A point outside the locus has no tangent there, and at a singular point the gradient equation is 0=00=0. For example, the origin on x2y2=0x^2-y^2=0 lies on two crossing branches; the displayed formula cannot choose one tangent direction for them.

Quick checks

Checkpoint

Check 1: what if the diagonal coefficients agree?

For A=CA=C, how can the mixed term be removed without dividing by ACA-C?

Solution · Answer to Check 1

If B=0B=0, use θ=0\theta=0. Otherwise use θ=π/4\theta=\pi/4; then B=Bcos(π/2)=0B'=B\cos(\pi/2)=0. The choice does not require a tangent quotient.

Checkpoint

Check 2: is a zero discriminant enough?

Classify x21=0x^2-1=0 and y1=0y-1=0. Why can both have Δ=0\Delta=0?

Solution · Answer to Check 2

The first is two parallel lines x=±1x=\pm1 and has rank one. The second is the line y=1y=1 and has rank zero. A zero discriminant records a singular quadratic part, without specifying its rank or linear terms.

Exercises

  1. Rotate xy=1xy=1 by θ=π/4\theta=\pi/4 and identify the resulting standard form. What changes if the equation is xy=0xy=0?
  2. Classify x2+4y22x+16y+17=0x^2+4y^2-2x+16y+17=0 and x2+4y22x+16y+18=0x^2+4y^2-2x+16y+18=0.
  3. Find the tangent to x2+4y2=4x^2+4y^2=4 at (0,1)(0,1) and at (2,0)(2,0). Explain why the second tangent is still covered by the theorem.
  4. Classify the rank-zero equations 2xy+3=02x-y+3=0, 0=00=0, and 1=01=0. State which of these has a nonzero gradient.

Guided solutions

Solution · Solution 1

The substitution gives xy=(X2Y2)/2xy=(X^2-Y^2)/2. Thus xy=1xy=1 becomes X2/2Y2/2=1X^2/2-Y^2/2=1, a hyperbola with semiaxes 2\sqrt2. For xy=0xy=0, the result is X2Y2=0X^2-Y^2=0, two intersecting lines. In the original coordinates these are the coordinate axes.

Solution · Solution 2

The left sides become (x1)2+4(y+2)2(x-1)^2+4(y+2)^2 and (x1)2+4(y+2)2+1(x-1)^2+4(y+2)^2+1, respectively. Hence the first locus is the single point (1,2)(1,-2) and the second is empty. Both have Δ=16\Delta=-16, which identifies a definite quadratic part but does not assert a nondegenerate ellipse.

Solution · Solution 3

The gradient is (2x,8y)(2x,8y), giving (0,8)(0,8) at (0,1)(0,1) and (4,0)(4,0) at (2,0)(2,0). The tangent equations are y=1y=1 and x=2x=2. Both normals are nonzero. The point-normal formula covers the vertical line directly, without representing it as a graph of yy against xx.

Solution · Solution 4

The loci are a line, the whole plane, and the empty set, respectively. Only the first polynomial has a nonzero gradient, namely (2,1)(2,-1). The identically zero polynomial imposes no restriction at all; the constant polynomial 11 has no zero at which to consider a tangent.