# Molien's formula

In mathematics, Molien's formula computes the generating function attached to a linear representation of a group G on a finite-dimensional vector space, that counts the homogeneous polynomials of a given total degree that are invariants for G. It is named for Theodor Molien.
Precisely, it says: given a finite-dimensional complex representation V of G and $R_{n}=\mathbb {C} [V]_{n}=\operatorname {Sym} ^{n}(V^{*})$, the space of homogeneous polynomial functions on V of degree n (degree-one homogeneous polynomials are precisely linear functionals), if G is a finite group, the series (called Molien series) can be computed as:
    $\sum _{n=0}^{\infty }\dim(R_{n}^{G})t^{n}=(\#G)^{-1}\sum _{g\in G}\det(1-tg|V^{*})^{-1}.$
Here, $R_{n}^{G}$ is the subspace of $R_{n}$ that consists of all vectors fixed by all elements of G; i.e., invariant forms of degree n. Thus, the dimension of it is the number of invariants of degree n. If G is a compact group, the similar formula holds in terms of Haar measure.

## Derivation

Let $\chi _{1},\dots ,\chi _{r}$ denote the irreducible characters of a finite group G and V, R as above. Then the character $\chi _{R_{n}}$ of $R_{n}$ can be written as:
    $\chi _{R_{n}}=\sum _{i=1}^{r}a_{i,n}\chi _{i}.$
Here, each $a_{i,n}$ is given by the inner product:
    $a_{i,n}=\langle \chi _{R_{n}},\chi _{i}\rangle =(\#G)^{-1}\sum _{g\in G}{\overline {\chi _{i}}}(g)\chi _{R_{n}}(g)=(\#G)^{-1}\sum _{g\in G}{\overline {\chi _{i}}}(g)\sum _{|\alpha |=n}\lambda (g)^{\alpha }$
where λ(g)$^α$=∏$_{i=1}$$^m$λ$_i$(g)$^{αi}${\textstyle \lambda (g)^{\alpha }=\prod _{i=1}^{m}\lambda _{i}(g)^{\alpha _{i}}} and $\lambda _{1}(g),\dots ,\lambda _{m}(g)$ are the possibly repeated eigenvalues of $g:V^{*}\to V^{*}$. Now, we compute the series:
    ${\begin{aligned}\sum _{n=0}^{\infty }a_{i,n}t^{n}&=(\#G)^{-1}\sum _{g\in G}{\overline {\chi _{i}}}(g)\sum _{\alpha }(\lambda _{1}(g)t)^{\alpha _{1}}\cdots (\lambda _{m}(g)t)^{\alpha _{m}}\\&=(\#G)^{-1}\sum _{g\in G}{\overline {\chi _{i}}}(g)(1-\lambda _{1}(g)t)^{-1}\cdots (1-\lambda _{m}(g)t)^{-1}\\&=(\#G)^{-1}\sum _{g\in G}{\overline {\chi _{i}}}(g)\det(1-tg|V^{*})^{-1}.\end{aligned}}$
Taking $\chi _{i}$ to be the trivial character yields Molien's formula.

## Example

Consider the symmetric group $S_{3}$ acting on R$^3$ by permuting the coordinates. We add up the sum by group elements, as follows. Starting with the identity, we have
    $\det {\begin{pmatrix}1-t&0&0\\0&1-t&0\\0&0&1-t\end{pmatrix}}=(1-t)^{3}$.
There is a three-element conjugacy class of $S_{3}$, consisting of swaps of two coordinates. This gives three terms of the form
    $\det {\begin{pmatrix}1&-t&0\\-t&1&0\\0&0&1-t\end{pmatrix}}=(1-t)(1-t^{2}).$
There is a two-element conjugacy class of cyclic permutations, yielding two terms of the form
    $\det {\begin{pmatrix}1&-t&0\\0&1&-t\\-t&0&1\end{pmatrix}}=\left(1-t^{3}\right).$
Notice that different elements of the same conjugacy class yield the same determinant. Thus, the Molien series is
    $M(t)={\frac {1}{6}}\left({\frac {1}{(1-t)^{3}}}+{\frac {3}{(1-t)(1-t^{2})}}+{\frac {2}{1-t^{3}}}\right)={\frac {1}{(1-t)(1-t^{2})(1-t^{3})}}.$
On the other hand, we can expand the geometric series and multiply out to get
    $M(t)=(1+t+t^{2}+t^{3}+\cdots )(1+t^{2}+t^{4}+\cdots )(1+t^{3}+t^{6}+\cdots )=1+t+2t^{2}+3t^{3}+4t^{4}+5t^{5}+7t^{6}+8t^{7}+10t^{8}+12t^{9}+\cdots$
The coefficients of the series tell us the number of linearly independent homogeneous polynomials in three variables which are invariant under permutations of the three variables, i.e. the number of independent symmetric polynomials in three variables. In fact, if we consider the elementary symmetric polynomials
    $\sigma _{1}=x+y+z$
    $\sigma _{2}=xy+xz+yz$
    $\sigma _{3}=xyz$
we can see for example that in degree 5 there is a basis consisting of $\sigma _{3}\sigma _{2}$, $\sigma _{3}\sigma _{1}^{2}$, $\sigma _{2}^{2}\sigma _{1}$, $\sigma _{1}^{3}\sigma _{2}$, and $\sigma _{1}^{5}$.
(In fact, if you multiply the series out by hand, you can see that the $t^{k}$ term comes from combinations of $t$, $t^{2}$, and $t^{3}$ exactly corresponding to combinations of $\sigma _{1}$, $\sigma _{2}$, and $\sigma _{3}$, also corresponding to partitions of $k$ with $1$, $2$, and $3$ as parts. See also Partition (number theory) and Representation theory of the symmetric group.)