Post · 8 min read· pp. 671–674

What Is a Fractional Matrix Power?

A ppth root of an n×nn\times n matrix AA is a matrix XX such that Xp=AX^p = A, and it can be written X=A1/pX = A^{1/p}. For a rational number r=j/kr = j/k (where jj and kk are integers), defining ArA^r is more difficult: is it (Aj)1/k(A^j)^{1/k} or (A1/k)j(A^{1/k})^j? These two possibilities can be different even for n=1n = 1. More generally, how can we define AαA^\alpha for an arbitrary real number α\alpha?

Recall, first, that for a nonzero complex scalar zz we define zα=eαlog⁡zz^\alpha = \mathrm{e}^{\alpha\log z}, where log⁡\log is the principal logarithm: the one taking values in the strip { z:−π<Imz≤π }\{\, z : -\pi < \mathop{\mathrm{Im}} z \le \pi \,\}. We can generalize this definition to matrices. For a nonsingular matrix AA we define

Aα=eαlog⁡A.\notag A^\alpha = \mathrm{e}^{\alpha\log A}.

Here the logarithm is the principal matrix logarithm, the matrix function built on the principal scalar logarithm, and so the eigenvalues of log⁡A\log A lie in the strip { z:−π<Imz≤π }\{\, z : -\pi < \mathop{\mathrm{Im}} z \le \pi \,\}. When α∈[−1,1]\alpha \in [-1,1], the eigenvalues of AαA^\alpha, which are λα\lambda^\alpha where λ\lambda is an eigenvalue of AA, lie in the segment { z:−∣α∣π<arg⁡z≤∣α∣π }\{\, z: -|\alpha|\pi < \arg z \le |\alpha|\pi\,\} of the complex plane.

The most important special case is α=1/p\alpha = 1/p for a positive integer pp, in which case

A1/p=e1plog⁡A.\notag A^{1/p} = \mathrm{e}^{\frac{1}{p}\log A}.

We can check that

(A1/p)p=(e1plog⁡A)p=elog⁡A=A,\notag \bigl(A^{1/p}\bigr)^p = \bigl(\mathrm{e}^{\frac{1}{p}\log A}\bigr)^p = \mathrm{e}^{\log A} = A,

so the definition does indeed produce a ppth root. The matrix A1/pA^{1/p} is called the principal ppth root.

Returning to the case of rational pp, we note that

Aj/k=ejklog⁡A=(e1klog⁡A)j=(A1/k)j,\notag A^{j/k} = \mathrm{e}^{\frac{j}{k}\log A} = \Bigl(\mathrm{e}^{\frac{1}{k}\log A}\Bigr)^j = (A^{1/k})^j,

but (Aj)1/k(A^{j})^{1/k} can be a different matrix. In general, it is not true that (Aα)β=(Aβ)α(A^\alpha)^\beta = (A^\beta)^\alpha for real α\alpha and β\beta, although for symmetric positive definite matrices this identity does hold because the eigenvalues are real and positive.

An integral expression for AαA^\alpha valid for α∈(0,1)\alpha \in(0,1) is

Aα=sin⁡(απ)απA∫0∞(t1/αI+A)−1 dt,α∈(0,1).\notag A^\alpha = \displaystyle\frac{\sin(\alpha\pi)} {\alpha\pi} A \int_0^{\infty}(t^{1/\alpha}I+A)^{-1}\,\mathrm{d}t, \quad \alpha \in(0,1).

Another representation for A=t(I−B)A = t (I - B) with ρ(B)<1\rho(B) < 1 is given by the binomial expansion

Aα=tα∑j=0∞(αj)(−B)j,ρ(B)<1.\notag A^{\alpha} = t^{\alpha} \displaystyle\sum_{j=0}^\infty {\alpha \choose j}(-B)^j, \quad \rho(B) < 1.

For 2×22\times 2 real matrices of the form

A=[abca]\notag A = \begin{bmatrix} a & b \\ c & a \end{bmatrix}

with bc<0bc < 0 there is an explicit formula for AαA^\alpha. It is easy to see that AA has eigenvalues λ±=a±id\lambda_{\pm} = a \pm \mathrm{i} d, where d=(−bc)1/2d = (-bc)^{1/2}. Let θ=arg⁡(λ+)∈(0,π)\theta = \arg(\lambda_+) \in (0,\pi) and r=∣λ+∣r = |\lambda_+|. It can be shown that

Aα=rαd[dcos⁡(αθ)bsin⁡(αθ)csin⁡(αθ)dcos⁡(αθ)].\notag A^\alpha = \displaystyle\frac{r^\alpha}{d} \begin{bmatrix} d\cos(\alpha\theta) & b\sin(\alpha\theta) \\ c\sin(\alpha\theta) & d\cos(\alpha\theta) \end{bmatrix}.

Computation

The formula Aα=eαlog⁡AA^\alpha = \mathrm{e}^{\alpha \log A} can be used computationally, but it is somewhat indirect in that one must approximate both the exponential and the logarithm. A more direct algorithm based on the Schur decomposition and Padé approximation of the power function is developed by Higham and Lin (2013). MATLAB code is available from MathWorks File Exchange.

If AA is diagonalizable, so that A=XDX−1A = XDX^{-1} for some nonsingular XX with D=diag(λi)D = \mathrm{diag}(\lambda_i), then Aα=XDαX−1=Xdiag(λiα)X−1A^\alpha = X D^\alpha X^{-1} = X \mathrm{diag}(\lambda_i^\alpha) X^{-1}. This formula is safe to use computationally only if XX is well conditioned. For defective (non-diagonalizable) AA we can express AαA^\alpha in terms of the Jordan canonical form, but this expression is not useful computationally because the Jordan canonical form cannot be reliably computed.

Inverse Function

If X=A1/2X = A^{1/2} then A=X2A = X^2, by the definition of square root. If X=AαX = A^{\alpha} does it follow that A=X1/αA = X^{1/\alpha}? Clearly, the answer is “no” in general because, for example, X=A2X = A^2 does not imply A=X1/2A = X^{1/2}.

Using the matrix unwinding function it can be shown that (Aα)1/α=A(A^{\alpha})^{1/\alpha} = A for α∈[−1,1]\alpha \in [-1,1]. Hence the function g(A)=A1/αg(A) = A^{1/\alpha} is the inverse function of f(A)=Aαf(A) = A^{\alpha} for α∈[−1,1]\alpha\in[-1,1].

Backward Error

How can we check the quality of an approximation XX to AαA^{\alpha}? For α=1/p\alpha = 1/p we can check the residual A−XpA - X^p, but for real pp there is no natural residual. Instead we can look at the backward error.

For an approximation XX to AαA^\alpha, a backward error is a matrix ΔA\Delta A such that X=(A+ΔA)αX = (A + \Delta A)^\alpha. Assume that AA and XX are nonsingular and that α∈[−1,1]\alpha \in [-1,1]. Then, as shown in the previous section, X=(A+ΔA)αX = (A + \Delta A)^\alpha implies ΔA=X1/α−A\Delta A = X^{1/\alpha} - A. Hence the normwise relative backward error is

η(X)=∥X1/α−A∥∥A∥,α∈[−1,1].\notag \eta(X) = \displaystyle\frac{ \|X^{1/\alpha} - A \|}{\|A\|}, \quad \alpha\in[-1,1].

Applications with Stochastic Matrices

An important application of fractional matrix powers is in discrete-time Markov chains, which arise in areas including finance and medicine. A transition matrix for a Markov process is a matrix whose (i,j)(i,j) element is the probability of moving from state ii to state jj over a time step. It has nonnegative entries and the rows sum to 11, so it is a stochastic matrix. In practice, a transition matrix may be estimated for a certain time period, say one year, but a transition matrix for a shorter period, say one month, may be needed. If AA is a transition matrix for a time period pp then a stochastic ppth root of AA is a transition matrix for a time period a factor pp smaller. Therefore p=12p = 12 (years to months) and p=7p = 7 (weeks to days) are among the values of interest. Unfortunately, A1/pA^{1/p} is not necessarily a stochastic matrix. Moreover, AA can have a stochastic ppth root that is not A1/pA^{1/p}. For example, the stochastic matrix

A=[010001100]\notag A = \left[\begin{array}{ccc} 0 & 1 & 0\\ 0 & 0 & 1\\ 1 & 0 & 0\\ \end{array} \right]

has principal square root

A1/2=13[22−1−1222−12],\notag A^{1/2} = \frac{1}{3} \left[\begin{array}{rrr} 2 & 2 & -1 \\ -1 & 2 & 2 \\ 2 & -1 & 2 \end{array} \right],

but A1/2A^{1/2} is not stochastic because of the negative elements. The square root

Y=[001100010]\notag Y = \left[\begin{array}{ccc} 0 & 0 & 1\\ 1 & 0 & 0\\ 0 & 1 & 0\\ \end{array} \right]

is stochastic, though. (Interestingly, AA is also a square root of YY!)

A wide variety configurations is possible as regards existence, nature (primary or nonprimary), and number of stochastic roots. Higham and Lin (2011) delineate the various possibilities that can arise. They note that the stochastic lower triangular matrix

An=[11212⋮⋮⋱1n1n⋯1n]\notag A_n = \begin{bmatrix} 1 & & & \\ \frac{1}{2} & \frac{1}{2} & & \\ \vdots & \vdots &\ddots & \\ \frac{1}{n} & \frac{1}{n} &\cdots & \frac{1}{n} \end{bmatrix}

has a stochastic ppth root, namely An1/pA_n^{1/p}, for all pp. For example, to three significant figures,

A61/3=[1.0000.2060.7940.1060.2010.6930.0690.1110.1900.6300.0500.0750.1090.1810.5850.0390.0560.0760.1070.1720.550].\notag A_6^{1/3} = \begin{bmatrix} 1.000 & & & & & \\ 0.206 & 0.794 & & & & \\ 0.106 & 0.201 & 0.693 & & & \\ 0.069 & 0.111 & 0.190 & 0.630 & & \\ 0.050 & 0.075 & 0.109 & 0.181 & 0.585 & \\ 0.039 & 0.056 & 0.076 & 0.107 & 0.172 & 0.550 \\ \end{bmatrix}.

The existence of stochastic roots of stochastic matrices is connected with the embeddability problem, which asks when a nonsingular stochastic matrix AA can be written A=eQA = \mathrm{e}^Q for some QQ with qij≥0q_{ij} \ge 0 for i≠ji\ne j and ∑j=1nqij=0\sum_{j=1}^n q_{ij} = 0, i=1 ⁣:ni=1\colon n. Kingman showed in 1962 that this condition holds if and only if for every positive integer pp there exists a stochastic XpX_p such that A=XppA = X_p^p.

Applications in Fractional Differential Equations

Fractional matrix powers arise in the numerical solution of differential equations of fractional order, especially partial differential equations involving fractional Laplace operators. Here, the problem may be one of computing AαbA^\alpha b, in which case for large problems it is preferable to directly approximate AαbA^\alpha b, for example by Krylov methods or quadrature methods, rather than to explicitly compute AαA^\alpha.

References

This is a minimal set of references, which contain further useful references within.

This article is part of the “What Is” series, available from https://nhigham.com/category/what-is and in PDF form from the GitHub repository https://github.com/higham/what-is.