# Discriminant

In mathematics, the discriminant of a polynomial is a quantity that depends on the coefficients and allows deducing some properties of the roots without computing them. More precisely, it is a polynomial function of the coefficients of the original polynomial. The discriminant is widely used in polynomial factoring, number theory, and algebraic geometry.
The discriminant of the quadratic polynomial $ax^{2}+bx+c$ is
    $b^{2}-4ac,$
the quantity which appears under the square root in the quadratic formula. If $a\neq 0,$ this discriminant is zero if and only if the polynomial has a double root. In the case of real coefficients, it is positive if the polynomial has two distinct real roots, and negative if it has two distinct complex conjugate roots. Similarly, the discriminant of a cubic polynomial is zero if and only if the polynomial has a multiple root. In the case of a cubic with real coefficients, the discriminant is positive if the polynomial has three distinct real roots, and negative if it has one real root and two distinct complex conjugate roots.
More generally, the discriminant of a univariate polynomial of positive degree is zero if and only if the polynomial has a multiple root. For real coefficients and no multiple roots, the discriminant is positive if the number of non-real roots is a multiple of 4 (including none), and negative otherwise.
Several generalizations are also called discriminant: the discriminant of an algebraic number field; the discriminant of a quadratic form; and more generally, the discriminant of a form, of a homogeneous polynomial, or of a projective hypersurface (these three concepts are essentially equivalent).

## Origin

The term "discriminant" was coined in 1851 by the British mathematician James Joseph Sylvester.

## Definition

Let
    $A(x)=a_{n}x^{n}+a_{n-1}x^{n-1}+\cdots +a_{1}x+a_{0}$
be a polynomial of degree n (this means $a_{n}\neq 0$), such that the coefficients $a_{0},\ldots ,a_{n}$ belong to a field, or, more generally, to a commutative ring. The resultant of A and its derivative,
    $A'(x)=na_{n}x^{n-1}+(n-1)a_{n-1}x^{n-2}+\cdots +a_{1},$
is a polynomial in $a_{0},\ldots ,a_{n}$ with integer coefficients, which is the determinant of the Sylvester matrix of A and A′. The nonzero entries of the first column of the Sylvester matrix are $a_{n}$ and $na_{n},$ and the resultant is thus a multiple of $a_{n}.$ Hence the discriminant—up to its sign—is defined as the quotient of the resultant of A and A' by $a_{n}$:
    $\operatorname {Disc} _{x}(A)={\frac {(-1)^{n(n-1)/2}}{a_{n}}}\operatorname {Res} _{x}(A,A')$
Historically, this sign has been chosen such that, over the reals, the discriminant will be positive when all the roots of the polynomial are real. The division by $a_{n}$ may not be well defined if the ring of the coefficients contains zero divisors. Such a problem may be avoided by replacing $a_{n}$ by 1 in the first column of the Sylvester matrix—before computing the determinant. In any case, the discriminant is a polynomial in $a_{0},\ldots ,a_{n}$ with integer coefficients.

### Expression in terms of the roots

When the above polynomial is defined over a field, it has n roots, $r_{1},r_{2},\dots ,r_{n}$, not necessarily all distinct, in any algebraically closed extension of the field. (If the coefficients are real numbers, the roots may be taken in the field of complex numbers, where the fundamental theorem of algebra applies.)
In terms of the roots, the discriminant is equal to
    $\operatorname {Disc} _{x}(A)=a_{n}^{2n-2}\prod _{i<j}(r_{i}-r_{j})^{2}=(-1)^{n(n-1)/2}a_{n}^{2n-2}\prod _{i\neq j}(r_{i}-r_{j}).$
It is thus the square of the Vandermonde polynomial times $a_{n}^{2n-2}$.
This expression for the discriminant is often taken as a definition. It makes clear that if the polynomial has a multiple root, then its discriminant is zero, and that, in the case of real coefficients, if all the roots are real and simple, then the discriminant is positive. Unlike the previous definition, this expression is not obviously a polynomial in the coefficients, but this follows either from the fundamental theorem of Galois theory, or from the fundamental theorem of symmetric polynomials and Vieta's formulas by noting that this expression is a symmetric polynomial in the roots of A.

## Low degrees

The discriminant of a linear polynomial (degree 1) is rarely considered. If needed, it is commonly defined to be equal to 1 (using the usual conventions for the empty product and considering that one of the two blocks of the Sylvester matrix is empty). There is no common convention for the discriminant of a constant polynomial (i.e., polynomial of degree 0).
For small degrees, the discriminant is rather simple (see below), but for higher degrees, it may become unwieldy. For example, the discriminant of a general quartic has 16 terms, that of a quintic has 59 terms, and that of a sextic has 246 terms. This is OEIS sequence A007878.

### Degree 2

The quadratic polynomial $ax^{2}+bx+c\,$ has discriminant
    $b^{2}-4ac\,.$
The square root of the discriminant appears in the quadratic formula for the roots of the quadratic polynomial:
    $x_{1,2}={\frac {-b\pm {\sqrt {b^{2}-4ac}}}{2a}}.$
where the discriminant is zero if and only if the two roots are equal. If a, b, c are real numbers, the polynomial has two distinct real roots if the discriminant is positive, and two complex conjugate roots if it is negative.
The discriminant is the product of a$^2$ and the square of the difference of the roots.
If a, b, c are rational numbers, then the discriminant is the square of a rational number if and only if the two roots are rational numbers.

### Degree 3

The cubic polynomial $ax^{3}+bx^{2}+cx+d\,$ has discriminant
    $b^{2}c^{2}-4ac^{3}-4b^{3}d-27a^{2}d^{2}+18abcd\,.$
In the special case of a depressed cubic polynomial $x^{3}+px+q$, the discriminant simplifies to
    $-4p^{3}-27q^{2}\,.$
The discriminant is zero if and only if at least two roots are equal. If the coefficients are real numbers, and the discriminant is not zero, the discriminant is positive if the roots are three distinct real numbers, and negative if there is one real root and two complex conjugate roots.
The square root of a quantity strongly related to the discriminant appears in the formulas for the roots of a cubic polynomial. Specifically, this quantity can be −3 times the discriminant, or its product with the square of a rational number; for example, the square of 1/18 in the case of Cardano formula.
If the polynomial is irreducible and its coefficients are rational numbers (or belong to a number field), then the discriminant is a square of a rational number (or a number from the number field) if and only if the Galois group of the cubic equation is the cyclic group of order three.

### Degree 4

The quartic polynomial $ax^{4}+bx^{3}+cx^{2}+dx+e\,$ has discriminant
    ${\begin{aligned}&256a^{3}e^{3}-192a^{2}bde^{2}-128a^{2}c^{2}e^{2}+144a^{2}cd^{2}e\\[4pt]&-27a^{2}d^{4}+144ab^{2}ce^{2}-6ab^{2}d^{2}e-80abc^{2}de\\[4pt]&+18abcd^{3}+16ac^{4}e-4ac^{3}d^{2}-27b^{4}e^{2}+18b^{3}cde\\[4pt]&-4b^{3}d^{3}-4b^{2}c^{3}e+b^{2}c^{2}d^{2}\,.\end{aligned}}$
The depressed quartic polynomial $x^{4}+cx^{2}+dx+e\,$ has discriminant
    ${\begin{aligned}&16c^{4}e-4c^{3}d^{2}-128c^{2}e^{2}+144cd^{2}e-27d^{4}+256e^{3}\,.\end{aligned}}$
The discriminant is zero if and only if at least two roots are equal. If the coefficients are real numbers and the discriminant is negative, then there are two real roots and two complex conjugate roots. Conversely, if the discriminant is positive, then the roots are either all real or all non-real.

## Properties
### Zero discriminant

The discriminant of a polynomial over a field is zero if and only if the polynomial has a multiple root in some field extension.
The discriminant of a polynomial over an integral domain is zero if and only if the polynomial and its derivative have a non-constant common divisor.
In characteristic 0, this is equivalent to saying that the polynomial is not square-free (i.e., it is divisible by the square of a non-constant polynomial).
In nonzero characteristic p, the discriminant is zero if and only if the polynomial is not square-free or it has an irreducible factor which is not separable (i.e., the irreducible factor is a polynomial in $x^{p}$).

### Invariance under change of the variable

The discriminant of a polynomial is, up to a scaling, invariant under any projective transformation of the variable. As a projective transformation may be decomposed into a product of translations, homotheties and inversions, this results in the following formulas for simpler transformations, where P(x) denotes a polynomial of degree n, with $a_{n}$ as leading coefficient.
* Invariance by translation:
       $\operatorname {Disc} _{x}(P(x+\alpha ))=\operatorname {Disc} _{x}(P(x))$
    This results from the expression of the discriminant in terms of the roots
* Invariance by homothety:
       $\operatorname {Disc} _{x}(P(\alpha x))=\alpha ^{n(n-1)}\operatorname {Disc} _{x}(P(x))$
    This results from the expression in terms of the roots, or of the quasi-homogeneity of the discriminant.
* Invariance by inversion:
       $\operatorname {Disc} _{x}(P^{\mathrm {r} }\!\!\;(x))=\operatorname {Disc} _{x}(P(x))$
    when $P(0)\neq 0.$ Here, $P^{\mathrm {r} }\!\!\;$ denotes the reciprocal polynomial of P; that is, if $P(x)=a_{n}x^{n}+\cdots +a_{0},$ and $a_{0}\neq 0,$ then
       $P^{\mathrm {r} }\!\!\;(x)=x^{n}P(1/x)=a_{0}x^{n}+\cdots +a_{n}.$

### Invariance under ring homomorphisms

Let $\varphi \colon R\to S$ be a homomorphism of commutative rings. Given a polynomial
    $A=a_{n}x^{n}+a_{n-1}x^{n-1}+\cdots +a_{0}$
in R[x], the homomorphism $\varphi$ acts on A for producing the polynomial
    $A^{\varphi }=\varphi (a_{n})x^{n}+\varphi (a_{n-1})x^{n-1}+\cdots +\varphi (a_{0})$
in S[x].
The discriminant is invariant under $\varphi$ in the following sense. If $\varphi (a_{n})\neq 0,$ then
    $\operatorname {Disc} _{x}(A^{\varphi })=\varphi (\operatorname {Disc} _{x}(A)).$
As the discriminant is defined in terms of a determinant, this property results immediately from the similar property of determinants.
If $\varphi (a_{n})=0,$ then $\varphi (\operatorname {Disc} _{x}(A))$ may be zero or not. One has, when $\varphi (a_{n})=0,$
    $\varphi (\operatorname {Disc} _{x}(A))=\varphi (a_{n-1})^{2}\operatorname {Disc} _{x}(A^{\varphi }).$
When one is only interested in knowing whether a discriminant is zero (as is generally the case in algebraic geometry), these properties may be summarised as:
    $\varphi (\operatorname {Disc} _{x}(A))=0$ if and only if either $\operatorname {Disc} _{x}(A^{\varphi })=0$ or $\deg(A)-\deg(A^{\varphi })\geq 2.$
This is often interpreted as saying that $\varphi (\operatorname {Disc} _{x}(A))=0$ if and only if $A^{\varphi }$ has a multiple root (possibly at infinity).

### Product of polynomials

If R = PQ is a product of polynomials in x, then
    ${\begin{aligned}\operatorname {disc} _{x}(R)&=\operatorname {disc} _{x}(P)\operatorname {Res} _{x}(P,Q)^{2}\operatorname {disc} _{x}(Q)\\[5pt]&=(-1)^{pq}\operatorname {disc} _{x}(P)\operatorname {Res} _{x}(P,Q)\operatorname {Res} _{x}(Q,P)\operatorname {disc} _{x}(Q),\end{aligned}}$
where $\operatorname {Res} _{x}$ denotes the resultant with respect to the variable x, and p and q are the respective degrees of P and Q.
This property follows immediately by substituting the expression for the resultant, and the discriminant, in terms of the roots of the respective polynomials.

### Homogeneity

The discriminant is a homogeneous polynomial in the coefficients; it is also a homogeneous polynomial in the roots and thus quasi-homogeneous in the coefficients.
The discriminant of a polynomial of degree n is homogeneous of degree 2n − 2 in the coefficients. This can be seen in two ways. In terms of the roots-and-leading-term formula, multiplying all the coefficients by λ does not change the roots, but multiplies the leading term by λ. In terms of its expression as a determinant of a (2n − 1) × (2n − 1) matrix (the Sylvester matrix) divided by a$_n$, the determinant is homogeneous of degree 2n − 1 in the entries, and dividing by a$_n$ makes the degree 2n − 2.
The discriminant of a polynomial of degree n is homogeneous of degree n(n − 1) in the roots. This follows from the expression of the discriminant in terms of the roots, which is the product of a constant and ${\binom {n}{2}}={\frac {n(n-1)}{2}}$ squared differences of roots.
The discriminant of a polynomial of degree n is quasi-homogeneous of degree n(n − 1) in the coefficients, if, for every i, the coefficient of $x^{i}$ is given the weight n − i. It is also quasi-homogeneous of the same degree, if, for every i, the coefficient of $x^{i}$ is given the weight i. This is a consequence of the general fact that every polynomial which is homogeneous and symmetric in the roots may be expressed as a quasi-homogeneous polynomial in the elementary symmetric functions of the roots.
Consider the polynomial
    $P=a_{n}x^{n}+a_{n-1}x^{n-1}+\cdots +a_{0}.$
It follows from what precedes that the exponents in every monomial $a_{0}^{i_{0}},\dots ,a_{n}^{i_{n}}$ appearing in the discriminant satisfy the two equations
    $i_{0}+i_{1}+\cdots +i_{n}=2n-2$
and
    $i_{1}+2i_{2}+\cdots +ni_{n}=n(n-1),$
and also the equation
    $ni_{0}+(n-1)i_{1}+\cdots +i_{n-1}=n(n-1),$
which is obtained by subtracting the second equation from the first one multiplied by n.
This restricts the possible terms in the discriminant. For the general quadratic polynomial, the discriminant $b^{2}-4ac$ is a homogeneous polynomial of degree 2 which has only two there are only two terms, while the general homogeneous polynomial of degree two in three variables has 6 terms. The discriminant of the general cubic polynomial is a homogeneous polynomial of degree 4 in four variables; it has five terms, which is the maximum allowed by the above rules, while the general homogeneous polynomial of degree 4 in 4 variables has 35 terms.
For higher degrees, there may be monomials which satisfy above rules and do not appear in the discriminant. The first example is for the quartic polynomial $ax^{4}+bx^{3}+cx^{2}+dx+e$, in which case the monomial $bc^{4}d$ satisfies the rules without appearing in the discriminant.

## Real roots

In this section, all polynomials have real coefficients.
It has been seen in § Low degrees that the sign of the discriminant provides useful information on the nature of the roots for polynomials of degree 2 and 3. For higher degrees, the information provided by the discriminant is less complete, but still useful. More precisely, for a polynomial of degree n, one has:
* The polynomial has a multiple root if and only if its discriminant is zero.
* If the discriminant is positive, the number of non-real roots is a multiple of 4. That is, there is a nonnegative integer k ≤ n/4 such that there are 2k pairs of complex conjugate roots and n − 4k real roots.
* If the discriminant is negative, the number of non-real roots is not a multiple of 4. That is, there is a nonnegative integer k ≤ (n − 2)/4 such that there are 2k + 1 pairs of complex conjugate roots and n − 4k + 2 real roots.

## Homogeneous bivariate polynomial

Let
    $A(x,y)=a_{0}x^{n}+a_{1}x^{n-1}y+\cdots +a_{n}y^{n}=\sum _{i=0}^{n}a_{i}x^{n-i}y^{i}$
be a homogeneous polynomial of degree n in two indeterminates.
Supposing, for the moment, that $a_{0}$ and $a_{n}$ are both nonzero, one has
    $\operatorname {Disc} _{x}(A(x,1))=\operatorname {Disc} _{y}(A(1,y)).$
Denoting this quantity by $\operatorname {Disc} ^{h}(A),$ one has
    $\operatorname {Disc} _{x}(A)=y^{n(n-1)}\operatorname {Disc} ^{h}(A),$
and
    $\operatorname {Disc} _{y}(A)=x^{n(n-1)}\operatorname {Disc} ^{h}(A).$
Because of these properties, the quantity $\operatorname {Disc} ^{h}(A)$ is called the discriminant or the homogeneous discriminant of A.
If $a_{0}$ and $a_{n}$ are permitted to be zero, the polynomials A(x, 1) and A(1, y) may have a degree smaller than n. In this case, above formulas and definition remain valid, if the discriminants are computed as if all polynomials would have the degree n. This means that the discriminants must be computed with $a_{0}$ and $a_{n}$ indeterminate, the substitution for them of their actual values being done after this computation. Equivalently, the formulas of § Invariance under ring homomorphisms must be used.

## Use in algebraic geometry

The typical use of discriminants in algebraic geometry is for studying plane algebraic curves, and more generally algebraic hypersurfaces. Let V be such a curve or hypersurface; V is defined as the zero set of a multivariate polynomial. This polynomial may be considered as a univariate polynomial in one of the indeterminates, with polynomials in the other indeterminates as coefficients. The discriminant with respect to the selected indeterminate defines a hypersurface W in the space of the other indeterminates. The points of W are exactly the projection of the points of V (including the points at infinity), which either are singular or have a tangent hyperplane that is parallel to the axis of the selected indeterminate.
For example, let f be a bivariate polynomial in X and Y with real coefficients, so that f  = 0 is the implicit equation of a real plane algebraic curve. Viewing f as a univariate polynomial in Y with coefficients depending on X, then the discriminant is a polynomial in X whose roots are the X-coordinates of the singular points, of the points with a tangent parallel to the Y-axis and of some of the asymptotes parallel to the Y-axis. In other words, the computation of the roots of the Y-discriminant and the X-discriminant allows one to compute all of the remarkable points of the curve, except the inflection points.

## Generalizations

There are two classes of the concept of discriminant. The first class is the discriminant of an algebraic number field, which, in some cases including quadratic fields, is the discriminant of a polynomial defining the field.
Discriminants of the second class arise for problems depending on coefficients, when degenerate instances or singularities of the problem are characterized by the vanishing of a single polynomial in the coefficients. This is the case for the discriminant of a polynomial, which is zero when two roots collapse. Most of the cases, where such a generalized discriminant is defined, are instances of the following.
Let A be a homogeneous polynomial in n indeterminates over a field of characteristic 0, or of a prime characteristic that does not divide the degree of the polynomial. The polynomial A defines a projective hypersurface, which has singular points if and only the n partial derivatives of A have a nontrivial common zero. This is the case if and only if the multivariate resultant of these partial derivatives is zero, and this resultant may be considered as the discriminant of A. However, because of the integer coefficients resulting of the derivation, this multivariate resultant may be divisible by a power of n, and it is better to take, as a discriminant, the primitive part of the resultant, computed with generic coefficients. The restriction on the characteristic is needed because otherwise a common zero of the partial derivative is not necessarily a zero of the polynomial (see Euler's identity for homogeneous polynomials).
In the case of a homogeneous bivariate polynomial of degree d, this general discriminant is $d^{d-2}$ times the discriminant defined in § Homogeneous bivariate polynomial. Several other classical types of discriminants, that are instances of the general definition are described in next sections.

### Quadratic forms

A quadratic form is a function over a vector space, which is defined over some basis by a homogeneous polynomial of degree 2:
    $Q(x_{1},\ldots ,x_{n})\ =\ \sum _{i=1}^{n}a_{ii}x_{i}^{2}+\sum _{1\leq i<j\leq n}a_{ij}x_{i}x_{j},$
or, in matrix form,
    $Q(X)=XAX^{\mathrm {T} },$
for the $n\times n$ symmetric matrix $A=(a_{ij})$, the $1\times n$ row vector $X=(x_{1},\ldots ,x_{n})$, and the $n\times 1$ column vector $X^{\mathrm {T} }$. In characteristic different from 2, the discriminant or determinant of Q is the determinant of A.
The Hessian determinant of Q is $2^{n}$ times its discriminant. The multivariate resultant of the partial derivatives of Q is equal to its Hessian determinant. So, the discriminant of a quadratic form is a special case of the above general definition of a discriminant.
The discriminant of a quadratic form is invariant under linear changes of variables (that is a change of basis of the vector space on which the quadratic form is defined) in the following sense: a linear change of variables is defined by a nonsingular matrix S, changes the matrix A into $S^{\mathrm {T} }A\,S,$ and thus multiplies the discriminant by the square of the determinant of S. Thus the discriminant is well defined only up to the multiplication by a square. In other words, the discriminant of a quadratic form over a field K is an element of K/(K$^×$)$^2$, the quotient of the multiplicative monoid of K by the subgroup of the nonzero squares (that is, two elements of K are in the same equivalence class if one is the product of the other by a nonzero square). It follows that over the complex numbers, a discriminant is equivalent to 0 or 1. Over the real numbers, a discriminant is equivalent to −1, 0, or 1. Over the rational numbers, a discriminant is equivalent to a unique square-free integer.
By a theorem of Jacobi, a quadratic form over a field of characteristic different from 2 can be expressed, after a linear change of variables, in diagonal form as
    $a_{1}x_{1}^{2}+\cdots +a_{n}x_{n}^{2}.$
More precisely, a quadratic forms on may be expressed as a sum
    $\sum _{i=1}^{n}a_{i}L_{i}^{2}$
where the L$_i$ are independent linear forms and n is the number of the variables (some of the a$_i$ may be zero). Equivalently, for any symmetric matrix A, there is an elementary matrix S such that $S^{\mathrm {T} }A\,S$ is a diagonal matrix. Then the discriminant is the product of the a$_i$, which is well-defined as a class in K/(K$^×$)$^2$.
Geometrically, the discriminant of a quadratic form in three variables is the equation of a quadratic projective curve. The discriminant is zero if and only if the curve is decomposed in lines (possibly over an algebraically closed extension of the field).
A quadratic form in four variables is the equation of a projective surface. The surface has a singular point if and only its discriminant is zero. In this case, either the surface may be decomposed in planes, or it has a unique singular point, and is a cone or a cylinder. Over the reals, if the discriminant is positive, then the surface either has no real point or has everywhere a negative Gaussian curvature. If the discriminant is negative, the surface has real points, and has a negative Gaussian curvature.

### Conic sections

A conic section is a plane curve defined by an implicit equation of the form
    $ax^{2}+2bxy+cy^{2}+2dx+2ey+f=0,$
where a, b, c, d, e, f are real numbers.
Two quadratic forms, and thus two discriminants may be associated to a conic section.
The first quadratic form is
    $ax^{2}+2bxy+cy^{2}+2dxz+2eyz+fz^{2}=0.$
Its discriminant is the determinant
    ${\begin{vmatrix}a&b&d\\b&c&e\\d&e&f\end{vmatrix}}.$
It is zero if the conic section degenerates into two lines, a double line or a single point.
The second discriminant, which is the only one that is considered in many elementary textbooks, is the discriminant of the homogeneous part of degree two of the equation. It is equal to
    $b^{2}-ac,$
and determines the shape of the conic section. If this discriminant is negative, the curve either has no real points, or is an ellipse or a circle, or, if degenerated, is reduced to a single point. If the discriminant is zero, the curve is a parabola, or, if degenerated, a double line or two parallel lines. If the discriminant is positive, the curve is a hyperbola, or, if degenerated, a pair of intersecting lines.

### Real quadric surfaces

A real quadric surface in the Euclidean space of dimension three is a surface that may be defined as the zeros of a polynomial of degree two in three variables. As for the conic sections there are two discriminants that may be naturally defined. Both are useful for getting information on the nature of a quadric surface.
Let $P(x,y,z)$ be a polynomial of degree two in three variables that defines a real quadric surface. The first associated quadratic form, $Q_{4},$ depends on four variables, and is obtained by homogenizing P; that is
    $Q_{4}(x,y,z,t)=t^{2}P(x/t,y/t,z/t).$
Let us denote its discriminant by $\Delta _{4}.$
The second quadratic form, $Q_{3},$ depends on three variables, and consists of the terms of degree two of P; that is
    $Q_{3}(x,y,z)=Q_{4}(x,y,z,0).$
Let us denote its discriminant by $\Delta _{3}.$
If $\Delta _{4}>0,$ and the surface has real points, it is either a hyperbolic paraboloid or a one-sheet hyperboloid. In both cases, this is a ruled surface that has a negative Gaussian curvature at every point.
If $\Delta _{4}<0,$ the surface is either an ellipsoid or a two-sheet hyperboloid or an elliptic paraboloid. In all cases, it has a positive Gaussian curvature at every point.
If $\Delta _{4}=0,$ the surface has a singular point, possibly at infinity. If there is only one singular point, the surface is a cylinder or a cone. If there are several singular points the surface consists of two planes, a double plane or a single line.
When $\Delta _{4}\neq 0,$ the sign of $\Delta _{3},$ if not 0, does not provide any useful information, as changing P into −P does not change the surface, but changes the sign of $\Delta _{3}.$ However, if $\Delta _{4}\neq 0$ and $\Delta _{3}=0,$ the surface is a paraboloid, which is elliptic or hyperbolic, depending on the sign of $\Delta _{4}.$

### Discriminant of an algebraic number field

The discriminant of an algebraic number field measures the size of the (ring of integers of the) algebraic number field.
More specifically, it is proportional to the squared volume of the fundamental domain of the ring of integers, and it regulates which primes are ramified.
The discriminant is one of the most basic invariants of a number field, and occurs in several important analytic formulas such as the functional equation of the Dedekind zeta function of K, and the analytic class number formula for K. A theorem of Hermite states that there are only finitely many number fields of bounded discriminant, however determining this quantity is still an open problem, and the subject of current research.
Let K be an algebraic number field, and let O$_K$ be its ring of integers. Let b$_1$, ..., b$_n$ be an integral basis of O$_K$ (i.e. a basis as a Z-module), and let {σ$_1$, ..., σ$_n$} be the set of embeddings of K into the complex numbers (i.e. injective ring homomorphisms K → C). The discriminant of K is the square of the determinant of the n by n matrix B whose (i,j)-entry is σ$_i$(b$_j$). Symbolically,
    $\Delta _{K}=\det \left({\begin{array}{cccc}\sigma _{1}(b_{1})&\sigma _{1}(b_{2})&\cdots &\sigma _{1}(b_{n})\\\sigma _{2}(b_{1})&\ddots &&\vdots \\\vdots &&\ddots &\vdots \\\sigma _{n}(b_{1})&\cdots &\cdots &\sigma _{n}(b_{n})\end{array}}\right)^{2}.$
The discriminant of K can be referred to as the absolute discriminant of K to distinguish it from the of an extension K/L of number fields. The latter is an ideal in the ring of integers of L, and like the absolute discriminant it indicates which primes are ramified in K/L. It is a generalization of the absolute discriminant allowing for L to be bigger than Q; in fact, when L = Q, the relative discriminant of K/Q is the principal ideal of Z generated by the absolute discriminant of K.

### Fundamental discriminants

A specific type of discriminant useful in the study of quadratic fields is the fundamental discriminant. It arises in the theory of integral binary quadratic forms, which are expressions of the form:$Q(x,y)=ax^{2}+bxy+cy^{2}$
where a{\textstyle a}, b{\textstyle b}, and c{\textstyle c} are integers. The discriminant of Q(x, y){\textstyle Q(x, y)} is given by:$D=b^{2}-4ac$Not every integer can arise as a discriminant of an integral binary quadratic form. An integer D{\textstyle D} is a fundamental discriminant if and only if it meets one of the following criteria:
* Case 1: D{\textstyle D} is congruent to 1 modulo 4 (D≡1(mod4){\textstyle D\equiv 1{\pmod {4}}}) and is square-free, meaning it is not divisible by the square of any prime number.
* Case 2: D{\textstyle D} is equal to four times an integer m{\textstyle m} (D=4m{\textstyle D=4m}) where m{\textstyle m} is congruent to 2 or 3 modulo 4 (m≡2, 3(mod4){\textstyle m\equiv 2, 3{\pmod {4}}}) and is square-free.
These conditions ensure that every fundamental discriminant corresponds uniquely to a specific type of quadratic form.
The first eleven positive fundamental discriminants are:
    1, 5, 8, 12, 13, 17, 21, 24, 28, 29, 33 (sequence A003658 in the OEIS).
The first eleven negative fundamental discriminants are:
    −3, −4, −7, −8, −11, −15, −19, −20, −23, −24, −31 (sequence A003657 in the OEIS).

#### Quadratic number fields

A quadratic field is a field extension of the rational numbers Q{\textstyle \mathbb {Q} } that has degree 2. The discriminant of a quadratic field plays a role analogous to the discriminant of a quadratic form.
There exists a fundamental connection: an integer D$_0${\textstyle D_{0}} is a fundamental discriminant if and only if:
* D$_0$=1{\textstyle D_{0}=1}, or
* D$_0${\textstyle D_{0}} is the discriminant of a quadratic field.
For each fundamental discriminant D$_0$≠1{\textstyle D_{0}\neq 1}, there exists a unique (up to isomorphism) quadratic field with D$_0${\textstyle D_{0}} as its discriminant. This connects the theory of quadratic forms and the study of quadratic fields.

#### Prime factorization

Fundamental discriminants can also be characterized by their prime factorization. Consider the set S{\textstyle S} consisting of $-8,8,-4,$ the prime numbers congruent to 1 modulo 4, and the additive inverses of the prime numbers congruent to 3 modulo 4:$S=\{-8,-4,8,-3,5,-7,-11,13,17,-19,...\}$An integer D≠1{\textstyle D\neq 1} is a fundamental discriminant if and only if it is a product of elements of $S$ that are pairwise coprime.