Pfaffian
In mathematics, the determinant of an m×m skew-symmetric matrix can always be written as the square of a polynomial in the matrix entries, a polynomial with integer coefficients that only depends on m. When m is odd, the polynomial is zero. When m is even, it is a nonzero polynomial of degree m/2, and is unique up to multiplication by ±1. The convention on skew-symmetric tridiagonal matrices, given below in the examples, then determines one specific polynomial, called the Pfaffian polynomial. The value of this polynomial, when applied to the entries of a skew-symmetric matrix, is called the Pfaffian of that matrix. The term Pfaffian was introduced by Cayley (1852), who indirectly named them after Johann Friedrich Pfaff.
Explicitly, for a skew-symmetric matrix [math]\displaystyle{ A }[/math],
- [math]\displaystyle{ \operatorname{pf}(A)^2=\det(A), }[/math]
which was first proved by Cayley (1849), who cites Jacobi for introducing these polynomials in work on Pfaffian systems of differential equations. Cayley obtains this relation by specialising a more general result on matrices that deviate from skew symmetry only in the first row and the first column. The determinant of such a matrix is the product of the Pfaffians of the two matrices obtained by first setting in the original matrix the upper left entry to zero and then copying, respectively, the negative transpose of the first row to the first column and the negative transpose of the first column to the first row. This is proved by induction by expanding the determinant on minors and employing the recursion formula below.
Examples
- [math]\displaystyle{ A=\begin{bmatrix} 0 & a \\ -a & 0 \end{bmatrix}.\qquad\operatorname{pf}(A)=a. }[/math]
- [math]\displaystyle{ B=\begin{bmatrix} 0 & a & b \\ -a & 0 & c \\ -b & -c & 0 \end{bmatrix}.\qquad\operatorname{pf}(B)=0. }[/math]
(3 is odd, so the Pfaffian of B is 0)
- [math]\displaystyle{ \operatorname{pf}\begin{bmatrix} 0 & a & b & c \\ -a & 0 & d & e \\ -b & -d & 0& f \\-c & -e & -f & 0 \end{bmatrix}=af-be+dc. }[/math]
The Pfaffian of a 2n × 2n skew-symmetric tridiagonal matrix is given as
- [math]\displaystyle{ \operatorname{pf}\begin{bmatrix} 0 & a_1 & 0 & 0\\ -a_1 & 0 & 0 & 0\\ 0 & 0 &0 & a_2 \\ 0 & 0 & -a_2 &0&\ddots\\ &&&\ddots&\ddots& \\ &&&& &0&a_n\\ &&&&&-a_n&0 \end{bmatrix} = a_1 a_2\cdots a_n. }[/math]
(Note that any skew-symmetric matrix can be reduced to this form; see Spectral theory of a skew-symmetric matrix.)
Formal definition
Let A = (ai,j) be a 2n × 2n skew-symmetric matrix. The Pfaffian of A is explicitly defined by the formula
- [math]\displaystyle{ \operatorname{pf}(A) = \frac{1}{2^n n!}\sum_{\sigma\in S_{2n}}\operatorname{sgn}(\sigma)\prod_{i=1}^{n}a_{\sigma(2i-1),\sigma(2i)} \,, }[/math]
where S2n is the symmetric group of order (2n)! and sgn(σ) is the signature of σ.
One can make use of the skew-symmetry of A to avoid summing over all possible permutations. Let Π be the set of all partitions of {1, 2, ..., 2n} into pairs without regard to order. There are (2n)!/(2nn!) = (2n − 1)!! such partitions. An element α ∈ Π can be written as
- [math]\displaystyle{ \alpha=\{(i_1,j_1),(i_2,j_2),\cdots,(i_n,j_n)\} }[/math]
with ik < jk and [math]\displaystyle{ i_1 \lt i_2 \lt \cdots \lt i_n }[/math]. Let
- [math]\displaystyle{ \pi_\alpha=\begin{bmatrix} 1 & 2 & 3 & 4 & \cdots & 2n -1 & 2n \\ i_1 & j_1 & i_2 & j_2 & \cdots & i_n & j_{n} \end{bmatrix} }[/math]
be the corresponding permutation. Given a partition α as above, define
- [math]\displaystyle{ A_\alpha =\operatorname{sgn}(\pi_\alpha)a_{i_1,j_1}a_{i_2,j_2}\cdots a_{i_n,j_n}. }[/math]
The Pfaffian of A is then given by
- [math]\displaystyle{ \operatorname{pf}(A)=\sum_{\alpha\in\Pi} A_\alpha. }[/math]
The Pfaffian of a n×n skew-symmetric matrix for n odd is defined to be zero, as the determinant of an odd skew-symmetric matrix is zero, since for a skew-symmetric matrix, [math]\displaystyle{ \det\,A = \det\,A^\text{T} = \det\left(-A\right) = (-1)^n \det\,A, }[/math] and for n odd, this implies [math]\displaystyle{ \det\,A = 0 }[/math].
Recursive definition
By convention, the Pfaffian of the 0×0 matrix is equal to one. The Pfaffian of a skew-symmetric 2n×2n matrix A with n > 0 can be computed recursively as
- [math]\displaystyle{ \operatorname{pf}(A)=\sum_{{j=1}\atop{j\neq i}}^{2n}(-1)^{i+j+1+\theta(i-j)}a_{ij}\operatorname{pf}(A_{\hat{\imath}\hat{\jmath}}), }[/math]
where the index i can be selected arbitrarily, [math]\displaystyle{ \theta(i-j) }[/math] is the Heaviside step function, and [math]\displaystyle{ A_{\hat{\imath}\hat{\jmath}} }[/math] denotes the matrix A with both the ith and jth rows and columns removed.[1] Note how for the special choice [math]\displaystyle{ i=1 }[/math] this reduces to the simpler expression:
- [math]\displaystyle{ \operatorname{pf}(A)=\sum_{j=2}^{2n}(-1)^{j}a_{1j}\operatorname{pf}(A_{\hat{1}\hat{\jmath}}). }[/math]
Alternative definitions
One can associate to any skew-symmetric 2n×2n matrix A = (aij) a bivector
- [math]\displaystyle{ \omega=\sum_{i\lt j} a_{ij}\;e_i\wedge e_j , }[/math]
where {e1, e2, ..., e2n} is the standard basis of R2n. The Pfaffian is then defined by the equation
- [math]\displaystyle{ \frac{1}{n!}\omega^n = \operatorname{pf}(A)\;e_1\wedge e_2\wedge\cdots\wedge e_{2n}, }[/math]
here ωn denotes the wedge product of n copies of ω.
Equivalently, we can consider the bivector (which is more convenient when we do not want to impose the summation constraint [math]\displaystyle{ i \lt j }[/math]): [math]\displaystyle{ \omega'=2 \omega = \sum_{i, j} a_{ij}\;e_i\wedge e_j, }[/math] which gives [math]\displaystyle{ \omega'^n = 2^n n! \operatorname{pf}(A)\;e_1\wedge e_2\wedge\cdots\wedge e_{2n}. }[/math]
A non-zero generalisation of the Pfaffian to odd-dimensional matrices is given in the work of de Bruijn on multiple integrals involving determinants.[2] In particular for any [math]\displaystyle{ m\times m }[/math]-matrix A, we use the formal definition above but set [math]\displaystyle{ n = \lfloor m/2\rfloor }[/math]. For m odd, one can then show that this is equal to the usual Pfaffian of an [math]\displaystyle{ (m+1) \times (m+1) }[/math]-dimensional skew symmetric matrix where we have added an [math]\displaystyle{ (m+1) }[/math]th column consisting of m elements 1, an [math]\displaystyle{ (m+1) }[/math]th row consisting of m elements −1, and the corner element is zero. The usual properties of Pfaffians, for example the relation to the determinant, then apply to this extended matrix.
Properties and identities
Pfaffians have the following properties, which are similar to those of determinants.
- Multiplication of a row and a column by a constant is equivalent to multiplication of the Pfaffian by the same constant.
- Simultaneous interchange of two different rows and corresponding columns changes the sign of the Pfaffian.
- A multiple of a row and corresponding column added to another row and corresponding column does not change the value of the Pfaffian.
Using these properties, Pfaffians can be computed quickly, akin to the computation of determinants.
Miscellaneous
For a 2n × 2n skew-symmetric matrix A
- [math]\displaystyle{ \operatorname{pf}(A^\text{T}) = (-1)^n\operatorname{pf}(A). }[/math]
- [math]\displaystyle{ \operatorname{pf}(\lambda A) = \lambda^n \operatorname{pf}(A). }[/math]
- [math]\displaystyle{ \operatorname{pf}(A)^2 = \det(A). }[/math]
For an arbitrary 2n × 2n matrix B,
- [math]\displaystyle{ \operatorname{pf}(BAB^\text{T})= \det(B)\operatorname{pf}(A). }[/math]
Substituting in this equation B = Am, one gets for all integer m
- [math]\displaystyle{ \operatorname{pf}(A^{2m+1})= (-1)^{nm}\operatorname{pf}(A)^{2m+1}. }[/math]
As previously said, [math]\displaystyle{ A \mapsto \sum_{ij} A_{ij} e_i \wedge e_j \mapsto^{\wedge n} {2^n n!}Pf(A) e_1 \wedge \cdots \wedge e_{2n} }[/math]. The same with [math]\displaystyle{ BAB^\mathrm{T} }[/math]: [math]\displaystyle{ BAB^\mathrm{T} \mapsto \sum_{ijkl}B_{ik}B_{jl}A_{kl} e_i \wedge e_j = \sum_{kl} A_{il} f_k \wedge f_l \mapsto^{\wedge n} {2^n n!}Pf(A) f_1 \wedge \cdots \wedge f_{2n} = {2^n n!}Pf(BAB^\mathrm{T}) e_1 \wedge \cdots \wedge e_{2n}, }[/math] where we defined [math]\displaystyle{ f_k = \sum_i B_{ik}e_i }[/math].
Since [math]\displaystyle{ f_1 \wedge \cdots \wedge f_{2n} = \det(B) e_1 \wedge \cdots \wedge e_{2n}, }[/math] the proof is finished.
Since [math]\displaystyle{ \operatorname{pf}(A)^2 = \det(A) }[/math] is an equation of polynomials, it suffices to prove it for real matrices, and it would automatically apply for complex matrices as well.
By the spectral theory of skew-symmetric real matrices, [math]\displaystyle{ A = Q\Sigma Q^\mathrm{T} }[/math], where [math]\displaystyle{ Q }[/math] is orthogonal and [math]\displaystyle{ \Sigma = \begin{bmatrix} 0 & a_1 & 0 & 0\\ -a_1 & 0 & 0 & 0\\ 0 & 0 &0 & a_2 \\ 0 & 0 & -a_2 &0&\ddots\\ &&&\ddots&\ddots& \\ &&&& &0&a_n\\ &&&&&-a_n&0 \end{bmatrix} }[/math] for real numbers [math]\displaystyle{ a_k }[/math]. Now apply the previous theorem, we have [math]\displaystyle{ pf(A)^2 = pf(\Sigma)^2 \det(Q)^4 = pf(\Sigma)^2 = \left(\prod a_i\right)^2 = \det(A) }[/math].
Derivative identities
If A depends on some variable xi, then the gradient of a Pfaffian is given by
- [math]\displaystyle{ \frac{1}{\operatorname{pf}(A)}\frac{\partial\operatorname{pf}(A)}{\partial x_i}=\frac{1}{2}\operatorname{tr}\left(A^{-1}\frac{\partial A}{\partial x_i}\right), }[/math]
and the Hessian of a Pfaffian is given by
- [math]\displaystyle{ \frac{1}{\operatorname{pf}(A)}\frac{\partial^2\operatorname{pf}(A)}{\partial x_i\partial x_j}=\frac{1}{2}\operatorname{tr}\left(A^{-1}\frac{\partial^2 A}{\partial x_i\partial x_j}\right)-\frac{1}{2}\operatorname{tr}\left(A^{-1}\frac{\partial A}{\partial x_i}A^{-1}\frac{\partial A}{\partial x_j}\right)+\frac{1}{4}\operatorname{tr}\left(A^{-1}\frac{\partial A}{\partial x_i}\right)\operatorname{tr}\left(A^{-1}\frac{\partial A}{\partial x_j}\right). }[/math]
Trace identities
The product of the Pfaffians of skew-symmetric matrices A and B can be represented in the form of an exponential
- [math]\displaystyle{ \textrm{pf}(A)\,\textrm{pf}(B) = \exp(\tfrac{1}{2}\mathrm{tr}\log(A^\text{T}B)). }[/math]
Suppose A and B are 2n × 2n skew-symmetric matrices, then
- [math]\displaystyle{ \mathrm{pf}(A)\,\mathrm{pf}(B) = \tfrac{1}{n!} B_n(s_1, s_2, \ldots, s_n), \qquad \mathrm{where} \qquad s_l = - \tfrac{1}{2}(l - 1)!\,\mathrm{tr}((AB)^l) }[/math]
and Bn(s1,s2,...,sn) are Bell polynomials.
Block matrices
For a block-diagonal matrix
- [math]\displaystyle{ A_1\oplus A_2=\begin{bmatrix} A_1 & 0 \\ 0 & A_2 \end{bmatrix}, }[/math]
- [math]\displaystyle{ \operatorname{pf}(A_1\oplus A_2) =\operatorname{pf}(A_1)\operatorname{pf}(A_2). }[/math]
For an arbitrary n × n matrix M:
- [math]\displaystyle{ \operatorname{pf}\begin{bmatrix} 0 & M \\ -M^\text{T} & 0 \end{bmatrix} = (-1)^{n(n-1)/2}\det M. }[/math]
It is often required to compute the pfaffian of a skew-symmetric matrix [math]\displaystyle{ S }[/math] with the block structure
- [math]\displaystyle{ S = \begin{pmatrix} M & Q\\-Q^\mathrm{T} & N \end{pmatrix}\, }[/math]
where [math]\displaystyle{ M }[/math] and [math]\displaystyle{ N }[/math] are skew-symmetric matrices and [math]\displaystyle{ Q }[/math] is a general rectangular matrix.
When [math]\displaystyle{ M }[/math] is invertible, one has
- [math]\displaystyle{ \operatorname{pf}( S) = \operatorname{pf}( M)\operatorname{pf}( N+ Q^\mathrm{T} M^{-1} Q). }[/math]
This can be seen from Aitken block-diagonalization formula,[3][4][5]
- [math]\displaystyle{ \begin{pmatrix}M& 0\\ 0 & N+Q^\mathrm{T} M^{-1} Q\end{pmatrix} = \begin{pmatrix}I& 0\\ Q^\mathrm{T} M^{-1} & I\end{pmatrix}\begin{pmatrix} M& Q\\ -Q^\mathrm{T} & N\end{pmatrix} \begin{pmatrix}I& -M^{-1} Q\\ 0& I \end{pmatrix}. }[/math]
This decomposition involves a congruence transformations that allow to use the pfaffian property [math]\displaystyle{ \operatorname{pf}(BAB^\mathrm{T}) = \operatorname{det}(B)\operatorname{pf}(A) }[/math].
Similarly, when [math]\displaystyle{ N }[/math] is invertible, one has
- [math]\displaystyle{ \operatorname{pf}( S) = \operatorname{pf}(N)\operatorname{pf}( M+ Q N^{-1} Q^\mathrm{T}), }[/math]
as can be seen by employing the decomposition
- [math]\displaystyle{ \begin{pmatrix}M+Q N^{-1} Q^\mathrm{T}& 0\\ 0 & N\end{pmatrix} = \begin{pmatrix}I& -Q N^{-1}\\ 0 & I\end{pmatrix}\begin{pmatrix} M& Q\\ -Q^\mathrm{T} & N\end{pmatrix} \begin{pmatrix}I& 0\\ N^{-1} Q^\mathrm{T}& I \end{pmatrix}. }[/math]
Calculating the Pfaffian numerically
Suppose A is a 2n × 2n skew-symmetric matrices, then
- [math]\displaystyle{ \textrm{pf}(A) = i^{(n^2)} \exp\left(\tfrac{1}{2}\mathrm{tr}\log((\sigma_y\otimes I_n)^\mathrm{T}\cdot A)\right), }[/math]
where [math]\displaystyle{ \sigma_y }[/math] is the second Pauli matrix, [math]\displaystyle{ I_n }[/math] is an identity matrix of dimension n and we took the trace over a matrix logarithm.
This equality is based on the trace identity
- [math]\displaystyle{ \textrm{pf}(A)\,\textrm{pf}(B) = \exp\left(\tfrac{1}{2}\mathrm{tr}\log(A^\text{T}B)\right) }[/math]
and on the observation that [math]\displaystyle{ \textrm{pf}(\sigma_y\otimes I_n)=(-i)^{n^2} }[/math].
Since calculating the logarithm of a matrix is a computationally demanding task, one can instead compute all eigenvalues of [math]\displaystyle{ ((\sigma_y\otimes I_n)^\mathrm{T}\cdot A) }[/math], take the log of all of these and sum them up. This procedure merely exploits the property [math]\displaystyle{ \operatorname{tr}{\log{(AB)}} = \operatorname{tr}{\log{(A)}} + \operatorname{tr}{\log{(B)}} }[/math]. This can be implemented in Mathematica with a single statement:
Pf[x_] := Module[{n = Dimensions[x][[1]] / 2}, I^(n^2) Exp[ 1/2 Total[ Log[Eigenvalues[ Dot[Transpose[KroneckerProduct[PauliMatrix[2], IdentityMatrix[n]]], x] ]]]]]
However, this algorithm is unstable when the Pfaffian is large. The eigenvalues of [math]\displaystyle{ (\sigma_y\otimes I_n)^\mathrm{T}\cdot A }[/math] will generally be complex, and the logarithm of these complex eigenvalues are generally taken to be in [math]\displaystyle{ [-\pi, \pi] }[/math]. Under the summation, for a real valued Pfaffian, the argument of the exponential will be given in the form [math]\displaystyle{ x + k\pi/2 }[/math] for some integer [math]\displaystyle{ k }[/math]. When [math]\displaystyle{ x }[/math] is very large, rounding errors in computing the resulting sign from the complex phase can lead to a non-zero imaginary component.
For other (more) efficient algorithms see Wimmer 2012.
Applications
- There exist programs for the numerical computation of the Pfaffian on various platforms (Python, Matlab, Mathematica) (Wimmer 2012).
- The Pfaffian is an invariant polynomial of a skew-symmetric matrix under a proper orthogonal change of basis. As such, it is important in the theory of characteristic classes. In particular, it can be used to define the Euler class of a Riemannian manifold that is used in the generalized Gauss–Bonnet theorem.
- The number of perfect matchings in a planar graph is given by a Pfaffian, hence is polynomial time computable via the FKT algorithm. This is surprising given that for general graphs, the problem is very difficult (so called #P-complete). This result is used to calculate the number of domino tilings of a rectangle, the partition function of Ising models in physics, or of Markov random fields in machine learning (Globerson & Jaakkola 2007; Schraudolph & Kamenetsky 2009), where the underlying graph is planar. It is also used to derive efficient algorithms for some otherwise seemingly intractable problems, including the efficient simulation of certain types of restricted quantum computation. Read Holographic algorithm for more information.
See also
- Determinant
- Dimer model
- Hafnian
- Polyomino
- Statistical mechanics
Notes
- ↑ "Archived copy". http://jesusmtz.public.iastate.edu/soliton/REPORT%202.pdf.
- ↑ Bruijn, de, N.G. (1955). "On some multiple integrals involving determinants". Journal of the Indian Mathematical Society. New Series 19: 133–151. ISSN 0019-5839. https://research.tue.nl/en/publications/on-some-multiple-integrals-involving-determinants.
- ↑ A. C. Aitken. Determinants and matrices. Oliver and Boyd, Edinburgh, fourth edition, 1939.
- ↑ Zhang, Fuzhen, ed. The Schur complement and its applications. Vol. 4. Springer Science & Business Media, 2006.
- ↑ Bunch, James R. "A note on the stable decomposition of skew-symmetric matrices." Mathematics of Computation 38.158 (1982): 475-479.
References
- Cayley, Arthur (1849). "Sur les déterminants gauches". Journal für die reine und angewandte Mathematik 38: 93–96. http://eudml.org/doc/183267.
- Cayley, Arthur (1852). "On the theory of permutants". Cambridge and Dublin Mathematical Journal VII: 40–51. https://archive.org/stream/collectedmathema02cayluoft#page/16/mode/2up. Reprinted in Collected mathematical papers, volume 2.
- Kasteleyn, P. W. (1961). "The statistics of dimers on a lattice. I. The number of dimer arrangements on a quadratic lattice". Physica 27 (12): 1209–1225. doi:10.1016/0031-8914(61)90063-5. Bibcode: 1961Phy....27.1209K.
- Propp, James (2004). "Lambda-determinants and domino-tilings". arXiv:math/0406301.
- Globerson, Amir; Jaakkola, Tommi (2007). "Approximate inference using planar graph decomposition". Advances in Neural Information Processing Systems 19. MIT Press. http://books.nips.cc/papers/files/nips19/NIPS2006_0703.pdf.
- Schraudolph, Nicol; Kamenetsky, Dmitry (2009). "Efficient exact inference in planar Ising models". Advances in Neural Information Processing Systems 21. MIT Press. http://books.nips.cc/papers/files/nips21/NIPS2008_0401.pdf.
- Jeliss, G. P.; Chapman, Robin J. (1996). "Dominizing the Chessboard". The Games and Puzzles Journal 2 (14): 204–5.
- Sellers, James A. (2002). "Domino Tilings and Products of Fibonacci and Pell numbers". Journal of Integer Sequences 5 (1): 02.1.2. Bibcode: 2002JIntS...5...12S. http://www.cs.uwaterloo.ca/journals/JIS/VOL5/Sellers/sellers4.html.
- Wells, David (1997). The Penguin Dictionary of Curious and Interesting Numbers (revised ed.). Penguin. p. 182. ISBN 0-14-026149-4.
- Muir, Thomas (1882). A Treatise on the Theory of Determinants. Macmillan and Co.. https://archive.org/details/atreatiseontheo00muirgoog. Online
- Parameswaran, S. (1954). "Skew-Symmetric Determinants". The American Mathematical Monthly 61 (2): 116. doi:10.2307/2307800.
- Wimmer, M. (2012). "Efficient numerical computation of the Pfaffian for dense and banded skew-symmetric matrices". ACM Trans. Math. Softw. 38: 30. doi:10.1145/2331130.2331138.
- de Bruijn, N. G. (1955). "On some multiple integrals involving determinants". J. Indian Math. Soc. 19: 131–151.
External links
- Hazewinkel, Michiel, ed. (2001), "Pfaffian", Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=p/p072500
- Pfaffian at PlanetMath.org
- T. Jones, The Pfaffian and the Wedge Product (a demonstration of the proof of the Pfaffian/determinant relationship)
- R. Kenyon and A. Okounkov, What is ... a dimer?
- OEIS sequence A004003 (Number of domino tilings (or dimer coverings))
- W. Ledermann "A note on skew-symmetric determinants" https://www.researchgate.net/publication/231827602_A_note_on_skew-symmetric_determinants
Original source: https://en.wikipedia.org/wiki/Pfaffian.
Read more |