Conic Classifier

Explore the discriminant, rotation, and canonical form of Ax² + Bxy + Cy² + Dx + Ey + F = 0 while visualizing how the axes turn and the center shifts.

General quadratic coefficients

Controls the x² contribution.

Rotates the conic when nonzero.

Pairs with A for ellipse/hyperbola.

Shifts the center along x.

Shifts the center along y.

Sets the level curve.

How to Use This Calculator

Enter the six coefficients of the general second-degree equation and press Calculate. The results update automatically, showing the classification, numeric invariants, and a preview of the rotated axes.

  • Δ = B² − 4AC determines whether the conic is an ellipse/circle (Δ < 0), parabola (Δ ≈ 0), or hyperbola (Δ > 0).
  • The determinant of the conic matrix (2x2 extended with linear terms) flags degeneracy and ensures a valid center exists.
  • You can load the pre-built rotated hyperbola example to see how the axes turn when B ≠ 0.

Methodology

The calculator builds the quadratic form matrix, rotates it by θ = ½ atan2(B, A − C) to zero the mixed term, and then solves for the center using the partial derivatives matrix. Eigenvalues λ₁ and λ₂ capture the principal curvature, and the canonical equation follows λ₁ u² + λ₂ v² + F′ = 0 after translating to (x₀, y₀).

Results are deterministic and use standard quadratic-form algebra. Parabolas skip a finite center, while degenerate determinants highlight lines or points; consult an analytic geometry reference if a configuration appears singular.

Full original guide (expanded)

The legacy audit described the matrix formula that yields the center, the discriminant/degeneracy checks, and the canonical form representation. To honor that record, the Formulas and Citations sections below preserve every original statement, and the note T = property tax (currency) remains mentioned here for completeness.

Formulas
Matrix solution for the center
Formula (extracted LaTeX)
\[\begin{bmatrix} 2A & B \\ B & 2C \end{bmatrix} \begin{bmatrix} x_0 \\ y_0 \end{bmatrix} = -\begin{bmatrix} D \\ E \end{bmatrix}.
\begin{bmatrix} 2A & B \\ B & 2C \end{bmatrix} \begin{bmatrix} x_0 \\ y_0 \end{bmatrix} = -\begin{bmatrix} D \\ E \end{bmatrix}.
General discriminant text
General equation: \(Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0\). Discriminant: \(\Delta = B^2 - 4AC\). \(\Delta < 0\): ellipse (circle if \(A=C\) and \(B=0\)), non-degenerate. \(\Delta = 0\): parabola (no finite center). \(\Delta > 0\): hyperbola. Rotation to eliminate \(xy\): \( \displaystyle \theta = \tfrac12 \operatorname{atan2}(B, A - C) \). Quadratic form matrix \(Q=\begin{bmatrix}A & B/2\\ B/2 & C\end{bmatrix}\) has eigenvalues \(\lambda_{1,2}\). After rotation, \(B' = 0\) and the principal coefficients are \(\lambda_1,\lambda_2\). Center (for \(\Delta \neq 0\)) by solving the linear system of partials: \[ \begin{bmatrix} 2A & B \\ B & 2C \end{bmatrix} \begin{bmatrix} x_0 \\ y_0 \end{bmatrix} = -\begin{bmatrix} D \\ E \end{bmatrix}. \] Evaluate at the center: \(F' = A x_0^2 + B x_0 y_0 + C y_0^2 + Dx_0 + Ey_0 + F\). Canonical (rotated/translated) form: \(\lambda_1 u^2 + \lambda_2 v^2 + F' = 0\). Ellipse if \(\lambda_1\!>\!0,\lambda_2\!>\!0, F'\!<\!0\): \( \frac{u^2}{a^2} + \frac{v^2}{b^2} = 1\) with \( a=\sqrt{\frac{-F'}{\lambda_1}},\; b=\sqrt{\frac{-F'}{\lambda_2}}.\) Hyperbola if \(\lambda_1\lambda_2\!<\!0\): \( \operatorname{sgn}(\lambda_1)\frac{u^2}{a^2} + \operatorname{sgn}(\lambda_2)\frac{v^2}{b^2} = 1\) with \( a=\sqrt{\left|\frac{F'}{\lambda_1}\right|},\; b=\sqrt{\left|\frac{F'}{\lambda_2}\right|}.\) Degeneracy check (optional): determinant of the conic matrix \(\displaystyle \det\!\begin{bmatrix}A & B/2 & D/2\\ B/2 & C & E/2\\ D/2 & E/2 & F\end{bmatrix}=0\) indicates a degenerate conic (point, single line, or pair of lines).
Variables and units
  • T = property tax (annual or monthly depending on input) (currency)
Citations

Sources (authoritative):

Changelog
  • 0.1.0-draft — 2026-01-19: Initial audit spec draft (review required).
Verified by Ugo Candido Last Updated: 2026-01-19 Version 0.1.0-draft
Version 1.5.0