Harman Patil (Editor)

Pfaffian

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In mathematics, the determinant of a skew-symmetric matrix can always be written as the square of a polynomial in the matrix entries, a polynomial with integer coefficients that only depend on the size of the matrix. The value of this polynomial, when applied to the coefficients of a skew-symmetric matrix, is called the Pfaffian of that matrix. The term Pfaffian was introduced by Cayley (1852) who named them after Johann Friedrich Pfaff. The Pfaffian (considered as a polynomial) is nonvanishing only for 2n × 2n skew-symmetric matrices, in which case it is a polynomial of degree n.

Contents

Explicitly, for a skew-symmetric matrix A,

pf ( A ) 2 = det ( A ) ,

which was first proved by Thomas Muir in 1882 (Muir 1882).

The fact that the determinant of any skew symmetric matrix is the square of a polynomial can be shown by writing the matrix as a block matrix, then using induction and examining the Schur complement, which is skew symmetric as well.

Examples

A = [ 0 a a 0 ] . pf ( A ) = a . B = [ 0 a b a 0 c b c 0 ] . pf ( B ) = 0.

(3 is odd, so Pfaffian of B is 0)

pf [ 0 a b c a 0 d e b d 0 f c e f 0 ] = a f b e + d c .

The Pfaffian of a 2n × 2n skew-symmetric tridiagonal matrix is given as

pf [ 0 a 1 0 0 a 1 0 b 1 0 0 b 1 0 a 2 0 0 a 2 b n 1 b n 1 0 a n a n 0 ] = a 1 a 2 a n .

(Note that any skew-symmetric matrix can be reduced to this form with all b i equal to zero, 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 defined by the equation

pf ( A ) = 1 2 n n ! σ S 2 n sgn ( σ ) i = 1 n a σ ( 2 i 1 ) , σ ( 2 i )

where S2n is the symmetric group of the dimension (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

α = { ( i 1 , j 1 ) , ( i 2 , j 2 ) , , ( i n , j n ) }

with ik < jk and i 1 < i 2 < < i n . Let

π α = [ 1 2 3 4 2 n 1 2 n i 1 j 1 i 2 j 2 i n j n ]

be the corresponding permutation. Given a partition α as above, define

A α = sgn ( π α ) a i 1 , j 1 a i 2 , j 2 a i n , j n .

The Pfaffian of A is then given by

pf ( A ) = α Π A α .

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, det A = det A T = det ( A ) = ( 1 ) n det A , and for n odd, this implies det A = 0 .

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

pf ( A ) = j = 1 j i 2 n ( 1 ) i + j + 1 + θ ( i j ) a i j pf ( A ı ^ ȷ ^ ) ,

where index i can be selected arbitrarily, θ ( i j ) is the Heaviside step function, and A ı ^ ȷ ^ denotes the matrix A with both the i-th and j-th rows and columns removed. Note how for the special choice i = 1 this reduces to the simpler expression:

pf ( A ) = j = 2 2 n ( 1 ) j a 1 j pf ( A 1 ^ ȷ ^ ) .

Alternative definitions

One can associate to any skew-symmetric 2n×2n matrix A ={aij} a bivector

ω = i < j a i j e i e j .

where {e1, e2, …, e2n} is the standard basis of R2n. The Pfaffian is then defined by the equation

1 n ! ω n = pf ( A ) e 1 e 2 e 2 n ,

here ωn denotes the wedge product of n copies of ω.

A non-zero generalisation of the Pfaffian to odd dimensional matrices is given in the work of de Bruijn on multiple integrals involving determinants. In particular for any m x m matrix A, we use the formal definition above but set n = m / 2 . For m odd, one can then show that this is equal to the usual Pfaffian of an m+1 x m+1 dimensional skew symmetric matrix where we have added an m+1th column consisting of m elements 1, an m+1th 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.

    For a 2n × 2n skew-symmetric matrix A

    pf ( A T ) = ( 1 ) n pf ( A ) . pf ( λ A ) = λ n pf ( A ) . pf ( A ) 2 = det ( A ) .

    For an arbitrary 2n × 2n matrix B,

    pf ( B A B T ) = det ( B ) pf ( A ) .

    Substituting in this equation B = Am, one gets for all integer m

    pf ( A 2 m + 1 ) = ( 1 ) n m pf ( A ) 2 m + 1 .

    For a block-diagonal matrix

    pf ( A 1 A 2 ) = pf ( A 1 ) pf ( A 2 ) .

    For an arbitrary n × n matrix M:

    pf [ 0 M M T 0 ] = ( 1 ) n ( n 1 ) / 2 det M .

    If A depends on some variable xi, then the gradient of a Pfaffian is given by

    1 pf ( A ) pf ( A ) x i = 1 2 tr ( A 1 A x i ) ,

    and the Hessian of a Pfaffian is given by

    1 pf ( A ) 2 pf ( A ) x i x j = 1 2 tr ( A 1 2 A x i x j ) 1 2 tr ( A 1 A x i A 1 A x j ) + 1 4 tr ( A 1 A x i ) tr ( A 1 A x j ) .

    The product of the Pfaffians of two skew-symmetric matrices can be represented in the form of an exponential

    pf ( A ) pf ( B ) = exp ( 1 2 t r ln ( A T B ) ) .

    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 which 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.
  • References

    Pfaffian Wikipedia