Class number formula
In number theory, the class number formula relates many important invariants of a number field to a special value of its Dedekind zeta function. General statement of the class number formula
We start with the following data:

  is a number field. , where  denotes the number of real embeddings of , and  is the number of complex embeddings of . is the Dedekind zeta function of . is the class number, the number of elements in the ideal class group of . is the regulator of . is the number of roots of unity contained in . is the discriminant of the extension . Then:

Theorem (Class Number Formula). converges absolutely for  and extends to a meromorphic function defined for all complex  with only one simple pole at , with residue

This is the most general "class number formula". In particular cases, for example when  is a cyclotomic extension of , there are particular and more refined class number formulas. Proof

The idea of the proof of the class number formula is most easily seen when K = Q(i). In this case, the ring of integers in K is the Gaussian integers. An elementary manipulation shows that the residue of the Dedekind zeta function at s = 1 is the average of the coefficients of the Dirichlet series representation of the Dedekind zeta function. The n-th coefficient of the Dirichlet series is essentially the number of representations of n as a sum of two squares of nonnegative integers. So one can compute the residue of the Dedekind zeta function at s = 1 by computing the average number of representations. As in the article on the Gauss circle problem, one can compute this by approximating the number of lattice points inside of a quarter circle centered at the origin, concluding that the residue is one quarter of pi. The proof when K is an arbitrary imaginary quadratic number field is very similar. In the general case, by Dirichlet's unit theorem, the group of units in the ring of integers of K is infinite. One can nevertheless reduce the computation of the residue to a lattice point counting problem using the classical theory of real and complex embeddings and approximate the number of lattice points in a region by the volume of the region, to complete the proof. Dirichlet class number formula

Peter Gustav Lejeune Dirichlet published a proof of the class number formula for quadratic fields in 1839, but it was stated in the language of quadratic forms rather than classes of ideals. It appears that Gauss already knew this formula in 1801. This exposition follows Davenport. Let d be a fundamental discriminant, and write h(d) for the number of equivalence classes of quadratic forms with discriminant d. Let  be the Kronecker symbol. Then  is a Dirichlet character. Write  for the Dirichlet L-series based on . For d > 0, let t > 0, u > 0 be the solution to the Pell equation  for which u is smallest, and write

(Then  is either a fundamental unit of the real quadratic field  or the square of a fundamental unit.) For d < 0, write w for the number of automorphisms of quadratic forms of discriminant d; that is,

Then Dirichlet showed that

This is a special case of Theorem 1 above: for a quadratic field K, the Dedekind zeta function is just , and the residue is . Dirichlet also showed that the L-series can be written in a finite form, which gives a finite form for the class number. Suppose  is primitive with prime conductor . Then

Galois extensions of the rationals
If K is a Galois extension of Q, the theory of Artin L-functions applies to . It has one factor of the Riemann zeta function, which has a pole of residue one, and the quotient is regular at s = 1. This means that the right-hand side of the class number formula can be equated to a left-hand side

Π L(1,ρ)dim ρ

with ρ running over the classes of irreducible non-trivial complex linear representations of Gal(K/Q) of dimension dim(ρ). That is according to the standard decomposition of the regular representation. Abelian extensions of the rationals
This is the case of the above, with Gal(K/Q) an abelian group, in which all the ρ can be replaced by Dirichlet characters (via class field theory) for some modulus f called the conductor. Therefore all the L(1) values occur for Dirichlet L-functions, for which there is a classical formula, involving logarithms. By the Kronecker–Weber theorem, all the values required for an analytic class number formula occur already when the cyclotomic fields are considered. In that case there is a further formulation possible, as shown by Kummer. The regulator, a calculation of volume in 'logarithmic space' as divided by the logarithms of the units of the cyclotomic field, can be set against the quantities from the L(1) recognisable as logarithms of cyclotomic units. There result formulae stating that the class number is determined by the index of the cyclotomic units in the whole group of units. In Iwasawa theory, these ideas are further combined with Stickelberger's theorem. See also 

 Brumer–Stark conjecture
 Smith–Minkowski–Siegel mass formula

Notes

References
 

Algebraic number theory
Quadratic forms