1 Introduction

Matrix models [1,2,3] is an old and respectable subject in theoretical physics, primarily because they provide simplest solvable examples of quantum field theory, i.e. play the role which harmonic oscillator plays for ordinary quantum mechanics. Though slowly, ideas from this field are also penetrating into the field of statistics and many sciences which use ideas of statistical distributions. Specifics of matrix model theory is that it studies distributions of eigenvalues and appears closely related to group theory and integrable systems. Still, as quantum theories defined by a finite-dimensional (and well-defined) counterpart of a path integral, matrix models possess a description in terms of Ward identities (often referred to as Virasoro constraints [4,5,6,7]), which are often rich enough to define them unambiguously. We refer to [8,9,10] for a comprehensive review of these aspects of theory of matrix models, and to [11, 12] for an even more advanced description in terms of superintegrability.

As old as the formal theory of matrix models is the puzzle of interplay between (super)integrability and Ward identities. The standard statement is that exact (non-perturbative) partition functions are KP/Toda \(\tau \)-functions, but not of a generic type: they are restricted by a single string equation, which is the lowest and the simplest of all Virasoro constraints [13, 14]. Recently, in study [15] of relation to superintegrability, we revisited action of the Virasoro operators on characters (Schur functions), and found that especially simple is not only action of the string equation, but also that of a w-constraint, which is a peculiar linear combination of infinitely many Virasoro constraints. In the present paper, we report a far more powerful statement: in fact, for a matrix model partition function that satisfies W-constraints, one can consider instead w-constraints that are linear combinations of all these W-constraints multiplied by time variables, and the lowest of these w -constraints is enough to define the partition function uniquely, hence neither string equation, nor integrability is needed in this approach. To put differently, a single equation is enough to obtain the partition function, which so far looked to be in a seeming contradiction with other standard beliefs that the partition function is uniquely fixed either by the set of Ward identities, or by the string equation combined with integrable equations. In [15], this fact was overlooked, because in the Hermitian matrix model analyzed in that reference the needed operator is actually \({\hat{w}}_{-2}\) rather than \({\hat{w}}_{-1}\), which we considered there. In this paper, we improve the statement and extend it to a variety of other theories, which makes it a kind of a new basic property of matrix models. It is intimately related to another puzzling issue, the W-representations for matrix model partition functions [16,17,18,19,20,21,22,23,24,25].

Given the importance of this result, we devote this whole letter to explaining how and when it works, leaving a less clear discussion and relation to older approaches to another paper. The letter is organized as follows. In the next section, we briefly remind a traditional way of dealing with the Virasoro constraints in matrix models. In Sect. 3, we explain our main point in the simplest example of rectangular complex matrix model, and, in Sect. 4, we consider a series of examples, which includes Hermitian matrix model (where we reproduce the recent result of [26]), and matrix models depending on external matrix: Kontsevich model, Brézin–Gross–Witten model, and, finally, the generalized Kontsevich model (GKM), where the constraint algebra is extended to the W-algebra. Despite this extension, even the GKM partition function is unambiguously encoded by a single equation.

2 Old approach: Hermitian matrix model

2.1 Virasoro constraints

The partition function of the Gaussian Hermitian matrix model is given by the integral over \(N\times N\) Hermitian matrices X

$$\begin{aligned} Z_N\{p\} := \int \exp \left( \sum _{k=1}^\infty \frac{p_k\,{\mathrm{tr}}\,X^k}{k}\right) \cdot e^{-\frac{\mu }{2}\,{\mathrm{tr}}\,X^2} dX \end{aligned}$$
(1)

understood as a power series in time-variablesFootnote 1\(p_k\) with the Haar measure dX normalized so that \(Z_N\{0\}=1\). This partition function satisfies constraints [4,5,6,7]

$$\begin{aligned}&\hat{ L}_n^H Z_N\{p\} = 0, \quad n\ge -1 \end{aligned}$$
(2)
$$\begin{aligned}&\hat{L}_n^H := \sum _{k} (k+n)p_k\frac{\partial }{\partial p_{k+n}} + \sum _{a=1}^{n-1} a(n-a)\frac{\partial ^2}{\partial p_a\partial p_{n-a}} \nonumber \\&\qquad + 2Nn\frac{\partial }{\partial p_n} + N^2\delta _{n,0} + Np_1 \delta _{n+1,0} - \mu (n+2)\nonumber \\&\qquad \times \frac{\partial }{\partial p_{n+2}} \end{aligned}$$
(3)

These operators \(\hat{L}_n^H\) form a Borel subalgebra of the Virasoro algebra.

The set of constraints (2) (= Ward identities, = loop equations) uniquely defines the partition function \(Z_N\{p\}\) [27, 28].Footnote 2 Hence, one can just solve them iteratively (see Sect. 2.3 below), or to use the fact that the whole Borel subalgebra of the Virasoro algebra is generated just by the two constraints \(L_{-1}^H\) and \(L_2^H\). Another possibility is to distinguish a special role [13] of the lowest constraint \(L_{-1}^H\) called string equation [33,34,35,36,37,38]: this constraint fixes a unique solution to the integrable hierarchy of the Toda chain [14]. We explain this approach in the next subsection.

2.2 String equation and integrability

As soon as the partition function (1) is a power series in \(p_k\), one can present it in terms of expansion in the Schur functions \({\mathrm{Schur}}_R\{p_k\}\),

$$\begin{aligned} Z_N\{p\} = \sum _R \mu ^{-|R|/2}c_R\cdot {\mathrm{Schur}}_R\{p\} \end{aligned}$$
(4)

and, for the sake of simplicity, we put \(\mu =1\) below, since it is easily restored by the grading.

Now note that there is a determinant formula for the partition function (5) with an arbitrary (not obligatory Gaussian) measure \(\rho (x)\) [8,9,10], which provides a generic forced Toda chain solution [39, 40]:

$$\begin{aligned} Z^{(N)}_\rho \{p\}:= & {} \int \exp \left( \sum _{k=1}^\infty \frac{p_k\,{\mathrm{tr}}\,X^k}{k}\right) \cdot \rho (X)dX\nonumber \\= & {} \det _{1\le i,j\le N}\hbox {Mom}_{i+j-2}\{p_k\}\nonumber \\= & {} (-1)^{N(N-1)\over 2}\det _{1\le i,j\le N}\hbox {Mom}_{N-i+j-1}\{p_k\} \end{aligned}$$
(5)

where \(\hbox {Mom}_n\{p_k\}\) is the moment matrix

$$\begin{aligned} \hbox {Mom}_n\{p_k\}:=\int \exp \left( \sum _{k=1}^\infty \frac{p_k\,x^k}{k}\right) \cdot x^n\rho (x)dx \end{aligned}$$
(6)

This solution is parameterized by an arbitrary function \(\rho (x)\), which may be fixed by the string equation.

Now expanding the exponential in this formula, one obtains

$$\begin{aligned}&Z^{(N)}_\rho \{p\}\nonumber \\&\quad =(-1)^{N(N-1)\over 2}\det _{1\le i,j\le N}\sum _k h_k\{p_k\}\hbox {Mom}_{N-i+j+k-1}\{0\}\nonumber \\&\quad =(-1)^{N(N-1)\over 2}\det _{1\le i,j\le N}\sum _k h_{k+i}\{p_k\}\hbox {Mom}_{N+j+k-1}\{0\}\nonumber \\&\quad {\mathop {=}\limits ^{CB}}(-1)^{N(N-1)\over 2}\sum _{k_1>k_2>\ldots >k_N} \det _{1\le i,j\le N}h_{k_i+j}\{p_k\}\nonumber \\&\qquad \cdot \det _{1\le i,j\le N}\hbox {Mom}_{N+j+k_i-1}\{0\}\nonumber \\&\quad =(-1)^{N(N-1)\over 2}\sum _{R:\ l_R\le N}\det _{1\le i,j\le N}\hbox {Mom}_{N-i+j+R_i-1}\{0\}\nonumber \\&\qquad \cdot {\mathrm{Schur}}_R\{p_k\} \end{aligned}$$
(7)

where \(h_k\{p_k\}\)’s are the complete homogeneous symmetric polynomialsFootnote 3 defined to vanish at negative values of k, and we used the Cauchy–Binet formula (CB), and, at the last transition, changed the variables \(k_i:=R_i-i\), which allows us to have a sum over partitions R. We also used the first Jacobi–Trudi identity,

$$\begin{aligned} {\mathrm{Schur}}_R\{p_k\}=\det _{i,j}h_{R_i-i+j}\{p_k\} \end{aligned}$$
(10)

The normalized correlators are equal to

$$\begin{aligned} \boxed { c_R={\det _{1\le i,j\le N} \hbox {Mom}_{N-i+j+R_i-1}\{0\}\over \det _{1\le i,j\le N} \hbox {Mom}_{N-i+j-1}\{0\}} } \end{aligned}$$
(11)

Now one can find it using the string equation, i.e. the Virasoro \(L_{-1}^H\)-constraint. In terms of the expansion coefficients \(c_R\), the string equation look like [15]

$$\begin{aligned} \sum _\Box c_{R+\Box }=\sum _{\Box }(N-i_\Box + j_\Box )c_{R-\Box } \end{aligned}$$
(12)

Note that this string equation at \(N=1\) gives

$$\begin{aligned} \hbox {Mom}_{r+1}=r\hbox {Mom}_{r-1} \end{aligned}$$
(13)

and \(\hbox {Mom}_1=0\). This immediately gives

$$\begin{aligned} \hbox {Mom}_{2r}=(2r-1)!!\cdot \hbox {Mom}_0\quad \hbox {Mom}_{2r-1}=0 \end{aligned}$$
(14)

which coincides with the moments of the Gaussian measure and demonstrates that the string equation, indeed, fixes the solution to the integrable hierarchy uniquely.

Moreover, one can calculate \(c_R\) now basing on the identity for determinants:

$$\begin{aligned}&\det _{1\le i,j\le N}{\delta ^{(2)}_{N-1+R_i-i+j}\cdot (N-2+R_i-i+j)!!}\nonumber \\&\quad =(-1)^{N(N-1)\over 2} \prod _{i=1}^N{(N+R_i-i)!(i-1)!\over (N-i)!}\nonumber \\&\qquad \cdot \det _{1\le i,j\le N}{\delta ^{(2)}_{R_i-i+j}\over (R_i-i+j)!!} \end{aligned}$$
(8)

where \(\delta ^{(2)}_k:=(1+(-1)^k)/2\). Now, using thatFootnote 4

$$\begin{aligned}&{{\mathrm{Schur}}_R\{N\}\over {\mathrm{Schur}}_R\{\delta _{k,1}\}}=\prod _{i,j\in R}(N-i+j)=\prod _{i=1}^{N}{(N+R_i-i)!\over (N-i)!} \end{aligned}$$
(15)
$$\begin{aligned}&{\mathrm{Schur}}_R\{\delta _{k,2}\}=\det _{1\le i,j\le N}{\delta ^{(2)}_{R_i-i+j}\over (R_i-i+j)!!} \end{aligned}$$
(16)
$$\begin{aligned}&\det _{1\le i,j\le N}{\delta ^{(2)}_{N-1-i+j}\cdot (N-2-i+j)!!}=(-1)^{N(N-1)\over 2}\prod _{i=1}^{N-1}i! \end{aligned}$$
(17)

we finally obtain from (10) formula [41]

$$\begin{aligned} c_R = \frac{{\mathrm{Schur}}_R\{N\}\cdot {\mathrm{Schur}}_R\{\delta _{k,2}\}}{ {\mathrm{Schur}}_R\{\delta _{k,1}\}} \end{aligned}$$
(18)

2.3 Solving Virasoro constraints iteratively

Instead of using the combination of integrability and the string equation, one can solve the Virasoro constraints (2) iteratively. To this end, let us restrict the partition function to a polynomial of grading 2P,

$$\begin{aligned} Z_N\{p_k\}=1+\sum _{n=1}^{2P}\sum _{R\vdash n}c_R\cdot \mathrm{Schur}_R \end{aligned}$$
(19)

i.e. cut at an arbitrary level P. Then, the following claim is correct: the set of equations

$$\begin{aligned}&\left( L_n^HZ_N\{p_k\}\right) _i=0,\quad i=0\ldots 2P-2-n,\quad n\nonumber \\&\quad =-1\ldots P-1 \end{aligned}$$
(20)

where \(\left( L_n^HZ_N\{p_k\}\right) _i\) denotes the i-th graded terms in the action of the Virasoro algebra, determines all \(c_R\) but just one at the top level P. The exception is the case of \(P=1\), when these equations are enough to fix \(c_{[2]}\) and \(c_{[1,1]}\) unambiguously.

This approach requires solving a system of linear equations. In the remaining part of the paper, we demonstrate that one can instead solve a single equation, which, in the Hermitian model case, has the form

$$\begin{aligned} \boxed {\sum _{k\ge 1}p_kL^H_{k-2}Z_N\{p_k\}=0} \end{aligned}$$
(21)

moreover, that this equation uniquely fixes all \(c_R\) with \(|R|\le 2P\) in (19) upon restricting the l.h.s. of (21) to the gradings up to 2P. This is due to emergency of recurrent relations determining a single solution.

3 New approach: rectangular complex model

We now start with a simpler example of the rectangular complex matrix model, and consider more examples in the next section. Our main message is that, for each model, there is a single equation that encodes the whole set of Virasoro constraints.

3.1 Single equation for complex model

Partition function of the rectangular complex matrix model is given by the integral over \(N_1\times N_2\) rectangular matrix X, [42,43,44,45]

$$\begin{aligned} Z_{N_1,N_2}\{p_k\}:= & {} \exp \left( \sum _{k=1}^\infty \frac{p_k\,{\mathrm{tr}}\,(X{\bar{X}})^k}{k}\right) \nonumber \\&\quad \cdot \exp \left( -{\mathrm{Tr}}\,X{\bar{X}}\right) d^2X \end{aligned}$$
(22)

This partition function satisfies the set of Virasoro constraints

$$\begin{aligned}&{\hat{L}}_n^C\cdot Z_{N_1,N_2}\{p_k\}=0,\quad n\ge 0 \end{aligned}$$
(23)
$$\begin{aligned}&{\hat{L}}_n^C:=\sum _k (k+n)p_k{\partial \over \partial p_{k+n}}+\sum _{a=1}^{n-1}a(n-a){\partial ^2 \over \partial p_a\partial p_{n-a}}\nonumber \\&\quad \quad \qquad + n(N_1+N_2){\partial \over \partial p_n}+N_1N_2\delta _{n,0}-\underline{(n+1){\partial \over \partial p_{n+1}}} \end{aligned}$$
(24)

This infinite set of constraints has a unique solution, and is equivalent to a single equation

$$\begin{aligned} \boxed { \sum _{k\ge 1} p_k \hat{L}_{k-1}^CZ_{N_1,N_2}\{p_k\}=0 } \end{aligned}$$
(25)

Indeed, (25) is an evident consequence of (23), and, as we demonstrate further, (25) has a unique solution, similarly to (23). Hence, they are equivalent.

In order to demonstrate the uniqueness of solution to (25), we rewrite it in the form

$$\begin{aligned} \left( {\hat{w}}_{-1} + (N_1+N_2){\hat{l}}_{-1} +N_1 N_2 p_1 - \underline{{\hat{l}}_0 }\right) Z_{N_1,N_2}\{p_k\} =0 \end{aligned}$$
(26)

where \({\hat{l}}_n\) denote a modified Virasoro algebra:

$$\begin{aligned} {\hat{l}}_n:=\sum (k+n)p_{k} \frac{\partial }{\partial p_{k+n}}+\sum _{a=1}^{n-1}a(n-a) \frac{\partial ^{2}}{\partial p_{a} \partial p_{n-a}} \end{aligned}$$
(27)

and \({\hat{w}}_m\) is a part of the W-algebra

$$\begin{aligned} {\hat{w}}_{m}=\sum _{n=1} p_n {\hat{l}}_{n+m} \end{aligned}$$
(28)

In fact, one can consider other \({\hat{w}}\)-constraints that follows from (23), (24),

$$\begin{aligned}&\Big [{\hat{w}}_m+(N_1+N_2)\sum _n (m+n)p_n{\partial \over \partial p_{n+m}}+N_1N_2p_1\delta _{m,-1}\nonumber \\&\quad -\sum _n(n+m+1)p_n{\partial \over \partial p_{n+m+1}}\Big ]Z_{N_1,N_2}\{p_k\}=0,\nonumber \\&m\ge -1 \end{aligned}$$
(29)

however, any single of these constraints but that at \(m=-1\) is not enough to unambiguously fix the solution.

Note that the underlined operator \({\hat{l}}_0\) in (24) is the grading operator, i.e. it commutes with any operator \({\hat{O}}^{(k)}\) of the grading k as

$$\begin{aligned}{}[{\hat{l}}_0,{\hat{O}}^{(k)}]=k{\hat{O}}^{(k)} \end{aligned}$$
(30)

This implies that

$$\begin{aligned} {\hat{l}}_0e^{{\hat{O}}^{(k)}}=e^{{\hat{O}}^{(k)}}({\hat{l}}_0+k{\hat{O}}^{(k)}) \end{aligned}$$
(31)

and the equation

$$\begin{aligned} ({\hat{l}}_0-k{\hat{O}}^{(k)})\cdot Z=0 \end{aligned}$$
(32)

is solved by

$$\begin{aligned} Z=e^{{\hat{O}}^{(k)}}\cdot 1 \end{aligned}$$
(33)

Such a form of solution is usually called W-representation. In particular, since the first three terms at the l.h.s. of (26) have the same grading 1 w.r.t. this operator, it implies that Eq. (26) has a solution (cf. with [46, Eq.(64)], [41, Eq.(8)])

$$\begin{aligned} Z_{N_1,N_2}\{p_k\} = \exp \Big ({\hat{w}}_{-1} + (N_1+N_2){\hat{l}}_{-1} +N_1 N_2 p_1\Big )\cdot 1 \end{aligned}$$
(34)

Equation (26) can also be solved iteratively. Let us again, similarly to (4) denote the coefficients of expansion through \(c_R\):

$$\begin{aligned} Z_{N_1,N_2}\{p\} = \sum _R c_R\cdot {\mathrm{Schur}}_R\{p\} \end{aligned}$$
(35)

Then, one can use Eqs.(28) from [15],

$$\begin{aligned} {\hat{l}}_{-1}\chi _R= & {} \sum _{R+\Box } (j_\Box -i_\Box ) \chi _{R+\Box }\nonumber \\ {\hat{l}}_{0}\chi _R= & {} |R|\cdot \chi _R\nonumber \\ {\hat{w}}_{-1}\chi _R= & {} \sum _{R+\Box } (j_\Box -i_\Box )^2 \chi _{R+\Box } \end{aligned}$$
(36)

in order to get from (26) that

$$\begin{aligned} |R|c_R=\sum _{R-\Box } (N_1+j_\Box -i_\Box )(N_2+j_\Box -i_\Box ) c_{R-\Box } \end{aligned}$$
(37)

As we explain in the next subsection, these recurrent equations uniquely define \(c_R\).

3.2

Let us demonstrate that the solution to (37) is, indeed, unique. We start from symmetric representations,

$$\begin{aligned} r c_{[r]}=(N_1-r-1)(N_2-r) c_{[r-1]} \end{aligned}$$
(38)

which define a recursion which is easily solved. Similarly, the two-row partitions give rise to

$$\begin{aligned} (r+1)c_{[r,1]}= & {} (N_1+r-1)(N_2+r-1) c_{[r-1,1]}\nonumber \\&\quad +(N_1-1)(N_2-1)c_{[r]} \end{aligned}$$
(39)

which again defines a simple recursion which can be solved:

$$\begin{aligned} c_{[r,1]}=\dfrac{\chi _{[r,1]}(N_1)\chi _{[r,1]}(N_2)}{\chi _{[r1,]}} \end{aligned}$$
(40)

Further recursion

$$\begin{aligned} (r+2)c_{[r,2]}= & {} (N+r-1)(N+2-1) c_{[r-1,2]}\nonumber \\&+(N_1 N_2) c_{[r,1]} \end{aligned}$$
(41)

defines a similar recursion, with different coefficients, etc.

Similarly, for any R, one can recursively use the equation until there is nothing left of the diagram R, and one is left with \(c_{[1]}= N_1 N_2 c_{[ \ ]} =N_1 N_2\). Hence, the recursion unambiguously determines \(c_R\) for any R.

3.3 How to construct the single equation

Let us discuss how one could guess an equation like Eq. (25) that provides the necessary single equation. Notice that, in the Virasoro algebra (24), all the terms but the last one have the same grading \(-n\) and only the last one has the grading \(-n-1\). What we do in Eq. (25) is transforming this last term to the constraint \({\hat{l}}_0\) (see (26)) of zero grading, which produces in the recursion relations (37) the l.h.s., i.e. the term \(|R|c_R\), while all other terms become of grading 1 (so that one can use formulas (32), (33)). In fact, this is the general rule of thumb: one has to make from the terms of non-standard grading (one could say, from the terms with dimensional coefficients) the \({\hat{l}}_0\) operator. This produces recursion relations that express \(c_R\) through \(c_{R'}\) with \(|R'|<|R|\) only. We shall see in examples of the next section that this recipe always works and leads to W-representations like (33).

4 New approach: more examples

4.1 Gaussian Hermitian model

As we already announced, the single equation for the Hermitian matrix model (1) is

$$\begin{aligned} \sum _{n\ge 1}p_nL^H_{n-2}Z_N\{p_k\}=0 \end{aligned}$$
(42)

(this coincides with the claim of [26]). Indeed, we can use our general recipe of Sect. 3.3: the sum should be split into a piece of definite grading 2, and an additional operator \({\hat{l}}_0\), which can be used to measure the grading:

$$\begin{aligned}&\Bigg ( {\hat{w}}_{-2} +2N\sum _{k=3} (k-2)p_k \dfrac{\partial }{\partial p_{k-2}} + N p_1^2 \nonumber \\&\quad +N^2 p_2- \underline{{\hat{l}}_0} \Bigg ) Z_N\{p_k\}=0 \end{aligned}$$
(43)

Then, as follows from (33),

$$\begin{aligned} Z_N\{p_k\}= & {} \exp \Bigg ({1\over 2}{\hat{w}}_{-2} +N\sum _{k=3} (k-2)p_k \dfrac{\partial }{\partial p_{k-2}} + {N p_1^2\over 2} \nonumber \\&+{N^2 p_2\over 2}\Bigg )\cdot 1 \end{aligned}$$
(44)

is a solution to (43), see also [23, 41].

(42) again trivially follows from the Virasoro constraints (2), and, in order to check that the solution is unique, we can use the formula (the simplest way to derive this formula is to use the fermionic representation [47])

$$\begin{aligned} {\hat{w}}_{-2} \chi _R&= \sum _{R+[2]} (j_\Box - i_\Box )(j_\Box -i_\Box +1) \chi _{R+[2]} \nonumber \\&\quad -\sum _{R+[1,1]} (j_\Box - i_\Box )(j_\Box -i_\Box -1) \chi _{R+[1,1]} \end{aligned}$$
(45)

and get the recursion for the coefficients \(c_R\) in (4)

$$\begin{aligned} |R| c_R= & {} \sum _{R-[2]} (j_\Box - i_\Box +N)(j_\Box -i_\Box +1+N)c_{R-[2]} \nonumber \\&\quad -\sum _{R-[1,1]} (j_\Box - i_\Box +N)(j_\Box -i_\Box -1+N)\nonumber \\&\quad \times c_{R-[1,1]} \end{aligned}$$
(46)

Now one can again do a recursion, by deleting [2] and [1, 1] pieces, or, in combinatoric terms, 2-rim hooks or dominoes. One can immediately check that this recursion again has a unique solution [47].

4.2 Cubic Kontsevich model

Now we come to another type of matrix models, those depending on external matrix. Our first example is the simplest model of this kind, the Kontsevich model [48]. Its partition function is given by the integral

$$\begin{aligned} Z_{K}(\Lambda )=\int dX \exp \left( -{\mathrm{Tr}}\,{X^3\over 3}-{\mathrm{Tr}}\,X^2\Lambda \right) \end{aligned}$$
(47)

where X is \(N\times N\) Hermitian matrix, and the measure is normalized so that \(\lim _{\Lambda \rightarrow \infty }Z_{K}(\Lambda )=1\). An important property of this integral [48,49,50] is that it can be treated as a power series in \(p_k:={\mathrm{tr}}\,\Lambda ^{-k}\), hence, we will use the notation \(Z_K\{p_k\}\). Moreover, \(Z_K\{p_k\}\) depends only on odd time-variables \(p_{2k+1}\) [49, 50], and the coefficients of this power series are just numbers, they do not depend on the size of matrix X (if one considers large enough N, with only \(p_{k<N}\) involved, see details in [49, 50]).

This partition function satisfies the Virasoro constraints [51, 52]

$$\begin{aligned}&\hat{ L}_n^K Z_K\{p\} = 0, \quad n\ge -1 \end{aligned}$$
(48)
$$\begin{aligned}&\hat{L}_n^K :={1\over 2}\sum _{k} (k+2n)p_k\frac{\partial }{\partial p_{k+2n}} \nonumber \\&\quad + {1\over 4}\sum _{a=1}^{2n-1} a(2n-a)\frac{\partial ^2}{\partial p_a\partial p_{2n-a}} + {p_1^2\over 4}\delta _{n,-1}\nonumber \\&\quad +{1\over 16}\delta _{n,0}-\underline{(2n+3){\partial \over \partial p_{2n+3}}} \end{aligned}$$
(49)

Here the sums over k and a run over odd numbers since \( Z_K\{p\}\) does not depend on \(p_{2k}\). Now using our rule of thumb, we expect that the single equation in the Kontsevich model case is

$$\begin{aligned} \boxed {\sum _{n=1}p_{2n-1}{\hat{L}}^K_{n-2}Z_K\{p\}=0 } \end{aligned}$$
(50)

which, in accordance with (33), gives a solution [24]

$$\begin{aligned} Z_{K}(\Lambda )=&\exp \Bigg ( \dfrac{1}{6} \sum _{k,l} (k+l-3)p_{k}p_{l}\dfrac{\partial }{\partial p_{k+l-3}}\nonumber \\&\quad +\dfrac{1}{12}\sum _{k,l} p_{k}(k-l-3)l \dfrac{\partial ^2}{\partial p_{k-l-3}\partial p_{l}}\nonumber \\&\quad +\dfrac{1}{48}p_3+\dfrac{1}{12}p_1^3 \Bigg ) \cdot 1 \end{aligned}$$
(51)

since the grading is now equal to 3. The sums in the exponential run over odd integers.

Unambiguity of solution to (50) can be checked by using the expansion of \(Z_K\{p\}\) in, say, the Q Schur functions \(Q_R\{p_k\}\) [12], which form a basis in the space of power series of odd time-variables \(p_k\),

$$\begin{aligned} Z_K\{p\}=\sum _R c_RQ_R\{p_k\} \end{aligned}$$
(52)

One can use equally well any another basis.

For the coefficients \(c_R\) of the expansion into the Q Schur functions one again gets recursive equations, which are more involved [47]. Simple examples are:

$$\begin{aligned} \begin{aligned} |R| c_{[r]}&= -\dfrac{(2r-1)(2r-5)}{8}c_{[r-3]}\\ |R| c_{[r-1,1]}&=-\dfrac{1}{2} c_{[r-2]}+\dfrac{(2r-1)(2r-5)}{8}c_{[r-3,1]} \end{aligned} \end{aligned}$$
(53)

4.3 BGW model

Our next example is the unitary matrix model depending on external matrix, which is usually called Brézin–Gross–Witten (BGW) model [53, 54] and describes a generating function of Wilson averages in the lattice realization of the 2d gauge theory with the Wilson action. This generating function is given by the unitary matrix integral

$$\begin{aligned} Z_{BGW}(M) = \int _{N\times N} dU \exp \left( {\mathrm{tr}}\,J^\dagger U + {\mathrm{tr}}\,JU^\dagger \right) \end{aligned}$$
(54)

where dU is the Haar measure on unitary matrices, i.e. with the property \(d(UV)=dU\) for a constant matrix V. Hence, the integral actually depends only on eigenvalues of Hermitian matrix \(M:=JJ^\dagger \), i.e. on the variables of the form \({\mathrm{Tr}}\,(JJ^\dagger )^k\). We deal with this integral at large values of the eigenvalues of M, and normalize the measure so that \(\lim _{M\rightarrow \infty }Z_{BGW}(M)=1\). Then, this integral can be treated as a power series in time-variables

$$\begin{aligned} p_k={\mathrm{tr}}\,M^{-k/2} \end{aligned}$$
(55)

and one can check by a direct (quite involved) calculation [45, 55] that \(Z_{BGW}\{p_k\}\) depends only on odd time-variables \(p_{2k+1}\).

This property is quite similar to that of the Kontsevich model, and the partition function (54) satisfies the Virasoro constraints [45, 55, 56]

$$\begin{aligned}&{\hat{L}}^U_{n} Z_{BGW}\{p_k\} = 0,\quad n\ge 0 \end{aligned}$$
(56)
$$\begin{aligned}&{\hat{L}}^U_{n}={1\over 2}\sum _{k}(k+2n)p_k{\partial \over \partial p_{k+2n}}+{1\over 4}\sum _{\begin{array}{c} a,b\\ a+b=2n \end{array}} ab{\partial ^2\over \partial p_a\partial p_b}\nonumber \\&\quad +{\delta _{n,0}\over 16}-\underline{(2n+1){\partial \over \partial p_{2n+1}}} \end{aligned}$$
(57)

where the sums run over odd k, a and b. Hence, the differences with the Kontsevich model constraints are only in the grading shift, and in the lowest Virasoro constraint, much similar to the differences between the Virasoro constraints in the cases of complex and Hermitian matrix models. This means that the single equation should be the same as in the complex matrix model, (25), but with the Virasoro constraints as in (57)

$$\begin{aligned} \boxed { \sum _{n\ge 0} p_{2n+1}\hat{L}_{n}^UZ_{BGW}\{p_k\}=0 } \end{aligned}$$
(58)

Since the grading is now equal to 1, one has a solution [25] (for the W-representation for the generalization of the BGW model, the antipolynomial GKM [55] see [57])

$$\begin{aligned}&Z_{BGW}\{p_k\}= \exp \left( \sum _{a,b} (a+b-1)p_{a}p_b{\partial \over \partial p_{a+b-1}}\right. \nonumber \\&\quad \left. + \frac{1}{4}\sum _{a,b}abp_{a+b+1}{\partial ^2\over \partial p_a\partial p_b} + \frac{p_1}{16} \right) \cdot 1 \end{aligned}$$
(59)

4.4 Generalized Kontsevich model with monomial potential

A natural extension of the Kontsevich model is the generalized Kontsevich model (GKM) [49, 50]. The monomial GKM is defined by the \(N\times N\) Hermitian matrix integral [49, 50]

$$\begin{aligned} Z_{K_{n+1}}(\Lambda ) :=\mathcal{N}(\Lambda )\cdot \int \exp \left( - {{\mathrm{Tr}}\,X^{n+1}\over n+1}+{\mathrm{Tr}}\,\Lambda ^{n} X\right) dX\nonumber \\ \end{aligned}$$
(60)

The potential in the exponent has an extremum at \(X=\Lambda \), and one expands around it in inverse powers of \(\Lambda \), and choose the normalization factor

$$\begin{aligned} \mathcal{N}(\Lambda ):= {\displaystyle {\exp \left( {n\over n+1}{\mathrm{Tr}}\,\Lambda ^{n+1}\right) }\over \displaystyle {\exp \left( -\frac{1}{2}\sum _{a+b=n-1} {\mathrm{Tr}}\,\Lambda ^a X \Lambda ^b X\right) dX}} \end{aligned}$$
(61)

This provides that \(Z^{(n)}(\Lambda )\) can be understood as a formal power series in time-variables \(p_k:={\mathrm{Tr}}\,\Lambda ^{-k}\), moreover, it does not depend on \(p_{nk}\) [49, 50].

The GKM partition function satisfies a more complicated set of the W-algebra constraints [49, 50]. We consider here only the case of quartic potential \(n=3\), the extension to arbitrary n being immediate. In this case, the partition function \(Z_{K_4}\{p\}\) does not depend on the time-variables \(p_{3k}\), and the set of constraints is

$$\begin{aligned}&\hat{ L}_n^{K_4} Z_{K_4}\{p\} = 0, \ \ \ \ n\ge -1\nonumber \\&\hat{ W}_n^{K_4} Z_{K_4}\{p\} = 0, \ \ \ \ n\ge -2 \end{aligned}$$
(62)
$$\begin{aligned}&\hat{L}_n^{K_4} :={1\over 3}\sum _{k} (k+3n)p_k\frac{\partial }{\partial p_{k+3n}} \nonumber \\&\quad + {1\over 6}\sum _{\begin{array}{c} a,b=1\\ a+b=3n \end{array}} ab\frac{\partial ^2}{\partial p_a\partial p_{b}} + {p_1p_2\over 3}\delta _{n,-1}\nonumber \\&\quad +{1\over 9}\delta _{n,0}-\underline{(3n+4){\partial \over \partial p_{3n+4}}} \nonumber \\&\hat{W}_n^{K_4} :=3\sum _{k,l=1}(k+l+3n)P_kP_l{\partial \over \partial p_{k+l+3n}}\nonumber \\&\quad +3\sum _{k=1}\sum _{\begin{array}{c} a,b=1\\ a+b=k+3n \end{array}}baP_k{\partial ^2\over \partial p_a\partial p_{b}}\nonumber \\&\quad +\sum _{\begin{array}{c} a,b,c=1\\ a+b+c=3n \end{array}}abc{\partial ^3\over \partial p_a\partial p_b\partial p_{c}}\nonumber \\&\quad +\sum _{\begin{array}{c} a,b,c=1\\ a+b+c=-3n \end{array}}P_aP_bP_{c} \end{aligned}$$
(63)

where \(P_k:=p_k-\underline{3\cdot \delta _{k,4}}\), and abckl in the sums are not divisible by 3.

The underlined terms with non-standard grading are: the last term in the Virasoro generators, and terms containing the shift of \(p_4\) in \(P_4\). One can easily see that all terms that contain only linear derivative are summed up into \({\hat{l}}_0\) in the combinations \(\sum _{n=1}p_{3n-1}\hat{W}_{n-3}^{(3)}\) and \(\sum _{n=1}p_{3n-2}\hat{L}_{n-2}^{(3)}\). Hence, following our rule, we expect that the single equation generating the unique solution to the constraints (62) is a sum of these two sums. In fact, the relative coefficient of these sums can be chosen almost arbitrary (only in the case of some positive rational coefficient, the soluton to this single equation is ambiguous) . The most convenient choice is − 27 so that we finally choose

$$\begin{aligned} \boxed {\sum _{n=1}p_{3n-1}\hat{W}_{n-3}^{K_4}Z_{K_4}\{p\}-27 \sum _{n=1}p_{3n-2}\hat{L}_{n-2}^{K_4}Z_{K_4}\{p\}=0 } \end{aligned}$$
(64)

for a single equation, which determines an unambiguous solution. This, indeed, works.

Let us note that the l.h.s. of (64) is a sum of three operators of gradings 0, 4 and 8, hence, constructing a W-representation in this case is not that immediate. Note also that the zero grading term becomes the grading operator \({\hat{l}}_0=\sum _k p_k{\partial \over \partial p_k}\) exactly with the chosen coefficient − 27, otherwise the zero grading term looks more involved, see (67).

The relevant character expansion is in terms of the generalized Q-functions [58],

$$\begin{aligned} Z= \sum _R c_R Q^{(3)}_R \end{aligned}$$
(65)

Then Eq. (64) also translates into recursive equations for \(c_R\). For example,

$$\begin{aligned} \begin{aligned} \dfrac{13}{9} c_{[4]}&=\frac{\left( 2+2 i \sqrt{3}\right) \sqrt{18-6 i \sqrt{3}}}{\sqrt{3}+i} c_{[ \ ]} \\ \dfrac{13}{9} c_{[3,1]}&=-\frac{9-3 i \sqrt{3}}{1+\root 3 \of {-1}} c_{[ \ ]} \\ \dfrac{16}{9} c_{[5]}&=30 c_{[1]} \\ \dfrac{16}{9} c_{[4,1]}&=-\frac{6 \left( 3-4 i \sqrt{3}\right) }{\left( 1+\root 3 \of {-1}\right) \sqrt{1-(-1)^{2/3}}} c_{[1]} \end{aligned} \end{aligned}$$
(66)

Let us also mention a peculiarity. If one keeps in (64) a generic coefficient \(\alpha \) in front of the second term instead of setting \(\alpha =-27\) as above, then the r.h.s of (66) becomes non-diagonal in \(c_R\) and the generic equation is of the form

$$\begin{aligned}&\sum _{|P|=|R|} \xi _{R,P}(\alpha ) c_P = \sum _{|P'|=|R|-4} \xi _{R,P',4}c_{P'} \nonumber \\&\quad +\sum _{|P'|=|R|-8} \xi _{R,P',8}c_{P'} \end{aligned}$$
(67)

It appears that for certain values of \(\alpha \) the determinant of \(\xi _{R,P}\) vanishes, and the equations become degenerate allowing additional solution:

$$\begin{aligned} |R|= & {} 4 ,\ \det \left( \xi _{R,P}\right) =-3456 (\alpha -27) \alpha ^2\nonumber \\ d |R|= & {} 5 , \ \det \left( \xi _{R,P}\right) =10125 (\alpha -108) (\alpha -18) \alpha ^2 \end{aligned}$$
(68)

5 Conclusion

In this letter, we reported a spectacular property of matrix models: their exact (non-perturbative) partition functions are unambiguously determined by a single equation, which appears to be a w-substitute of the string equation. It is still a question how universal this property is, but we explicitly demonstrated that it holds for all basic models: rectangular complex, Hermitian, unitary, Kontsevich, and generalized Kontsevich models. Moreover, as we explained, the relevant w-operators in all these cases but the last one has to reproduce the W-representations of the corresponding partition functions. This is, indeed, the case.

There are plenty of questions raised by this result. Perhaps, the main one is that usually we have a pair of constraints: either a pair of Virasoro generators, or a string equation acting on a restricted space of KP-Toda \(\tau \)-functions. How one can reduce a pair to just a single one? Another essential question is how one can cook up a W-representation of the GKM partition function [49, 50] (like attempted in [59]) from the single equation formalism developed in this paper. At last, there is a problem of constructing explicit solutions to the single equations using expansions of the corresponding partition functions in a basis of properly chosen symmetric functions. We return to all these questions elsewhere.