- Research
- Open access
- Published:
Determinants and inverses of perturbed periodic tridiagonal Toeplitz matrices
Advances in Difference Equations volume 2019, Article number: 410 (2019)
Abstract
In this paper, we deal mainly with a class of periodic tridiagonal Toeplitz matrices with perturbed corners. By matrix decomposition with the Sherman–Morrison–Woodbury formula and constructing the corresponding displacement of matrices we derive the formulas on representation of the determinants and inverses of the periodic tridiagonal Toeplitz matrices with perturbed corners of type I in the form of products of Fermat numbers and some initial values. Furthermore, the properties of type II matrix can be also obtained, which benefits from the relation between type I and II matrices. Finally, we propose two algorithms for computing these properties and make some analysis about them to illustrate our theoretical results.
1 Introduction
Tridiagonal matrices appear not only in pure linear algebra, but also in many practical applications, such as computer graphics [1], image denoising [2], and partial differential equations [3,4,5,6]. As an example, Holmgren and Otto [7] considered the one-dimensional linear hyperbolic equation
to study certain matrices occurring in discretized partial differential equations, where \(0 < x \leq 1\), \(t> 0\), \(u(0, t) = f(- at)\), \(u(x, 0) = f(x)\), \(g = (v - a)f'\), v and a are positive constants, and f is a scalar function with derivative \(f'\). Let k and h denote the time and spatial steps, respectively. Consider the linear hyperbolic equation discretized based on trapezoidal rule in time and center difference in space, respectively. Its coefficient matrix is a tridiagonal matrix with perturbed last row [8]:
where \(\alpha =vk/h\). On the other hand, some parallel computing algorithms are also designed for solving tridiagonal systems on graphics processing unit (GPU), which are parallel cyclic reduction [9] and partition methods [10]. Recently, Yang et al. [11] presented a parallel solving method that mixes direct and iterative methods for block-tridiagonal equations on CPU-GPU heterogeneous computing systems, whereas Myllykoski et al. [12] proposed a generalized graphics processing unit implementation of partial solution variant of the cyclic reduction (PSCR) method to solve certain types of separable block tridiagonal linear systems. Compared to an equivalent CPU implementation that utilizes a single CPU core, PSCR method indicated up to 24-fold speedups.
Many studies have been conducted for tridiagonal matrices [13,14,15,16,17,18,19]. Typical results for their inverses include Usmani’s algorithm [20] based on rudimentary matrix analysis, El-Mikkawy and Atlan’s two symbolic algorithms [21, 22] based on the Doolittle LU factorization of the k-tridiagonal matrix, Jia et al.’s algorithms [23, 24] based on block diagonalization technique, and so on. There are also some studies on the solution of periodic tridiagonal linear systems [25,26,27]. Tim and Emrah [28] used backward continued fractions to derive the LU factorization of periodic tridiagonal matrix and then derived an explicit formula for its inverse. Dow [29] discussed some special Toeplitz matrices including periodic tridiagonal Toeplitz matrices, whereas Shehawey [30] generalized Huang and McColl’s [31] work and put forward the inverse formula for periodic tridiagonal Toeplitz matrices.
The main research object of this paper is an \(n\times n\) matrix \(A=(a_{i,j})^{n}_{i,j=1}\), which is called a periodic tridiagonal Toeplitz matrix with perturbed corners of type I and defined as follows:
where \(\alpha _{1}\), \(\alpha _{n}\), \(\gamma _{1}\), \(\gamma _{n}\), ξ are complex numbers with \(\xi \neq 0\). Let \(\hat{I}_{n}\) be the \(n\times n\) “reverse unit matrix”, which has ones along the secondary diagonal and zeros elsewhere. Let A be defined as a periodic tridiagonal Toeplitz matrix with perturbed corners of type I. A matrix of the form \(B:=\hat{I}_{n}{A}\hat{I}_{n}\) is called a periodic tridiagonal Toeplitz matrix with perturbed corners of type II. In this case, we say that B is induced by A. It is readily seen that A is a periodic tridiagonal Toeplitz matrix with perturbed corners of type I if and only if its transpose \(A^{T}\) is a periodic tridiagonal Toeplitz matrix with perturbed corners of type II.
Besides, the following Fermat sequence \(\{\mathbb{F}_{n}\}\) [32] plays a very important role in our main results:
It is known that the nth Fermat number has the Binet formula \(\mathbb{F}_{n}=2^{n}+1\).
The next section presents the main results of the paper. We present detailed derivations of the determinants and inverses of periodic tridiagonal Toeplitz matrices with perturbed corners. Our approach includes a clever use of matrix decomposition with the Sherman–Morrison–Woodbury formula [33]. In the last section, we compare the CPU times for the determinants and inverses of periodic tridiagonal Toeplitz matrices with perturbed corners between different algorithms.
2 Determinants and inverses
In this section, we derive explicit formulas for the determinants and inverses of a periodic tridiagonal Toeplitz matrix with perturbed corners. Main effort is made for working out those for periodic tridiagonal Toeplitz matrix with perturbed corners of type I, since the results for type II matrices would follow immediately.
Theorem 1
Let \(A=(a_{i,j})^{n}_{i,j=1}\) (\(n\geq 3\)) be given as in (1). Then
where \(\mathbb{F}_{i}\) (\(i=n-3,n-2,n-1\)) is the ith Fermat number.
Proof
Define the circulant matrix
where
Clearly, ρ is invertible, and
Multiply A by ρ from right and then partition Aρ into four blocks:
Since \(A_{22}\) is upper triangular, the determinant of \(A_{22}\) is
Besides, \(\xi \ne 0\), so \(A_{22}\) is invertible. It is known (see, e.g., [34, Lemma 2.5]) that \(A^{-1}_{22}=(\ddot{a}_{i,j})^{n-2} _{i,j=1}\) where
and \(\mathbb{F}_{i}\) is the ith Fermat number.
Next, taking the determinants for both sides of (7), by [35, p. 10] we get
Therefore
To find detA, we need to evaluate the determinant of \((A_{11}-A _{12}A_{22}^{-1}A_{21})\). From (7) we have
and so
Finally, applying (6), (8), and (11) to (10), we get the determinant of A, which completes the proof. □
Theorem 2
Let \(A=(a_{i,j})^{n}_{i,j=1}\) (\(n\geq 3\)) be given as in (1) and assume A to be nonsingular. Then \(A^{-1} =(\breve{a}_{i,j})^{n}_{i,j=1}\), where
and \(\mathbb{F}_{i}\) (\(i=n-3,n-2,n-1\)) is the ith Fermat number.
Proof
Let \(A^{-1} =(\breve{a}_{i,j})^{n}_{i,j=1}\), and let \(I_{n}=(e_{i,j})^{n} _{i,j=1}\) be the identity matrix, that is,
For a nonsingular A,
According to (15), we get
Based on (14), from (16) we get that
and \(\breve{a}_{2,3}=3\breve{a}_{2,2}-2\breve{a}_{2,1}+\frac{1}{ \xi }\).
Similarly, from (17) we get that
and \(\breve{a}_{3,2}=\frac{3\breve{a}_{2,2}}{2}- \frac{\breve{a}_{2,1}}{2}+\frac{1}{2\xi }\).
Therefore, based on the previous analysis, we need to determine four initial values, that is, \(\breve{a}_{i,j}\) (\(i,j\in \{1,2\}\)), for the recurrence relations (18) and (19) to compute the inverse of A. The rest of the proof is devoted to evaluating these particular entries of \(A^{-1}\).
We decompose A as follows:
where \(\mathfrak{F}= ((f_{ij})^{n}_{i,j=1} )^{-1}\), \(\mu = (\mu _{1}^{T},\mu _{2}^{T} )\), with
and \(\mathbb{F}_{i}\) is the ith Fermat number as before.
Applying the Sherman–Morrison–Woodbury formula (see, e.g. [33, p. 50]) to (20) gives
Now we compute each component on the right-hand side of (21). Multiplying \(\mathfrak{F}^{-1}\) by ν and μ from left and right, respectively, we have
where \(\tau _{1}\) and \(\tau _{2}\) are row vectors, and \(\ell _{1}\) and \(\ell _{2}\) are column vectors,
Then multiplying (23) by \(\frac{\nu }{\xi }\) from the left, further adding \(I_{n}\), and computing the inverse of the matrix, we have
where
Multiplying the pervious formula \((I_{n}+\frac{1}{\xi } \nu \mathfrak{F}^{-1}\mu )^{-1}\) by \(\mathfrak{F}^{-1}\mu \) from the left and by \(\nu \mathfrak{F}^{-1}\) from the right, respectively, yields
where
where
By (26) we compute
By (27) we compute
This completes the proof. □
Remark 1
Formulas (26) and (27) would give an analytic formula for \(A^{-1}\). However, there is a big advantage of (12) from computational consideration, as we shall see from Sect. 3.
The next two theorems are parallel results of type I matrices.
Theorem 3
Let A be given as in (1), and let B be a periodic tridiagonal Toeplitz matrix with perturbed corners of type II, which is induced by A. Then
where \(\mathbb{F}_{i}\) (\(i=n-3,n-2,n-1\)) is the ith Fermat number.
Proof
Since \(\det B=\det \hat{I}_{n}\det A \det \hat{I}_{n}\), we obtain this conclusion by using Theorem 1 and \(\det \hat{I}_{n}=(-1)^{ \frac{n(n-1)}{2}}\). □
Theorem 4
Let A be given as in (1), and let B be a periodic tridiagonal Toeplitz matrix with perturbed corners of type II, which is induced by A. Then
where \(\breve{a}_{i,j}\) is as in (12).
Proof
It follows immediately from \({B}^{-1}= \hat{I}^{-1}_{n}{A}^{-1} \hat{I}^{-1}_{n}= \hat{I}_{n}{A}^{-1}\hat{I}_{n}\) and Theorem 2. □
3 Numerical experiments
In this section, we give two algorithms for finding the determinant and inverse of a periodic tridiagonal Toeplitz matrix with perturbed corners of type I, which is called A. Besides, we make some analysis of these algorithms to illustrate our theoretical results.
Firstly, based on Theorem 1, we give an algorithm for computing determinant of A:
Algorithm 1
- Step 1::
-
Input \(\alpha _{1}\), \(\alpha _{n}\), \(\gamma _{1}\), \(\gamma _{n}\), ξ, order n and generate Fermat numbers \(\mathbb{F}_{i}\) (\(i=n-3,n-2,n-1\)) by (2).
- Step 2::
-
Calculate and output the determinant of A by (4).
Based on Algorithm 1, we make a comparison of the total number of operations for determinant of A between LU decomposition and Algorithm 1 in Table 1. Specifically, we get that the total number of operations for the determinant of A is \(2n+24\). Moreover, this number can be reduced to \(O(\log n)\) (see [36], pp. 226–227).
Next, based on Theorem 2, we give an algorithm for computing inverse of A:
Algorithm 2
- Step 1::
-
Input \(\alpha _{1}\), \(\alpha _{n}\), \(\gamma _{1}\), \(\gamma _{n}\), ξ, order n and generate Fermat numbers \(\mathbb{F}_{i}\) (\(i=n-3,n-2,n-1\)) by (2).
- Step 2::
-
Calculate ψ by (13), four initial values \(\breve{a}_{1,1}\), \(\breve{a}_{1,2}\), \(\breve{a}_{2,1}\), and \(\breve{a} _{2,2}\) by (12).
- Step 3::
-
Calculate the remaining elements of the inverse:
$$\begin{aligned}& \breve{a}_{2,3} =3\breve{a}_{2,2}-2\breve{a}_{2,1}+ \frac{1}{\xi }, \\& \breve{a}_{3,2} =\frac{3}{2}\breve{a}_{2,2}- \frac{1}{2}\breve{a}_{2,1}+\frac{1}{2 \xi }, \\& \breve{a}_{i,j} =3\breve{a}_{i,j-1}-2\breve{a}_{i,j-2}, \quad i\in {\{1,2\}}, i+2\leq j\leq n, \\& \breve{a}_{i,j} =\frac{3}{2}\breve{a}_{i-1,j}- \frac{1}{2}\breve{a} _{i-2,j}, \quad j\in {\{1,2\}}, j+2\leq i\leq n, \\& \breve{a}_{i,j} =3\breve{a}_{i,j-1}-2\breve{a}_{i,j-2}, \quad 3\leq j \leq i\leq n, \\& \breve{a}_{i,j} =\frac{3}{2}\breve{a}_{i-1,j}- \frac{1}{2}\breve{a} _{i-2,j},\quad 3\leq i< j\leq n. \end{aligned}$$ - Step 4::
-
Output the inverse \(A^{-1}=(\breve{a}_{i,j})^{n}_{i,j=1}\).
To test the effectiveness of Algorithm 2, we compare the total number of operations for the inverse of A between LU decomposition and Algorithm 2 in Table 2. The total number operation of LU decomposition is \(\frac{ n^{3}}{2}+n^{2}+\frac{ 43n}{2}-30\), whereas that of Algorithm 2 is \(\frac{ 7n^{2}}{2}-\frac{ 11n}{2}+63\).
4 Conclusions
In this paper, we present explicit formulas for the determinants and inverses of periodic tridiagonal Toeplitz matrices with perturbed corners. The representation of the determinant in the form of products of the Fermat number and some initial values from matrix transformations. For the inverse, our main approach includes a clever use of matrix decomposition with the Sherman–Morrison–Woodbury formula. To test the effectiveness of our method, we propose two algorithms for finding the determinant and inverse of periodic tridiagonal Toeplitz matrices with perturbed corners and compare the total number of operations for two basic quantities between different algorithms. After comparison, we draw a conclusion that our algorithms are superior to other algorithms to some extent.
References
Bender, J., Müller, M., Otaduy, M., Matthias, T., Miles, M.: A survey on position-based simulation methods in computer graphics. Comput. Graph. Forum 33, 228–251 (2014)
Myllykoski, M., Glowinski, R., Kärkkäinen, T., Rossi, T.: A GPU-accelerated augmented Lagrangian based l1-mean curvature image denoising algorithm implementation. In: WSCG 2015 Conference on Computer Graphics, Visualization and Computer Vision (2015)
Feng, Q.H., Meng, F.W.: Explicit solutions for space–time fractional partial differential equations in mathematical physics by a new generalized fractional Jacobi elliptic equation-based sub-equation method. Optik 127, 7450–7458 (2016)
Shao, J., Zheng, Z.W., Meng, F.W.: Oscillation criteria for fractional differential equations with mixed nonlinearities. Adv. Differ. Equ. 2013, 323 (2013)
Sun, Y.G., Meng, F.W.: Interval criteria for oscillation of second-order differential equations with mixed nonlinearities. Appl. Math. Comput. 198, 375–381 (2008)
Xu, R., Meng, F.W.: Some new weakly singular integral inequalities and their applications to fractional differential equations. J. Inequal. Appl. 2016, 78 (2016)
Holmgren, S., Otto, K.: Iterative Solution Methods and Preconditioners for Non-symmetric Non-diagonally Dominant Block-TridiagonaI Systems of Equations. Dept. of Computer Sci., Uppsala Univ., Uppsala (1989)
Chan, R.H., Jin, X.Q.: Circulant and skew-circulant preconditioners for skew-Hermitian type Toeplitz systems. BIT Numer. Math. 31, 632–646 (1991)
Hockney, R.W., Jesshope, C.R.: Parallel Computers. Hilger, Bristol (1981)
Wang, H.H.: A parallel method for tridiagonal equations. ACM Trans. Math. Softw. 7, 170–183 (1981)
Yang, W.D., Li, K.L., Li, K.Q.: A parallel solving method for block-tridiagonal equations on CPU–GPU heterogeneous computing systems. J. Supercomput. 73, 1760–1781 (2017)
Myllykoski, M., Rossi, T., Toivanen, J.: On solving separable block tridiagonal linear systems using a GPU implementation of radix-4 PSCR method. J. Parallel Distrib. Comput. 115, 56–66 (2018)
Da Fonseca, C.M., Petronilho, J.: Explicit inverse of a tridiagonal k-Toeplitz matrix. Numer. Math. 100, 457–482 (2005)
Jiang, X.Y., Hong, K.: Skew cyclic displacements and inversions of two innovative patterned matrices. Appl. Math. Comput. 308, 174–184 (2017)
Jiang, X.Y., Hong, K., Fu, Z.W.: Skew cyclic displacements and decompositions of inverse matrix for an innovative structure matrix. J. Nonlinear Sci. Appl. 10, 4058–4070 (2017)
Zheng, Y.P., Shon, S., Kim, J.: Cyclic displacements and decompositions of inverse matrices for CUPL Toeplitz matrices. J. Math. Anal. Appl. 455, 727–741 (2017)
Jiang, Z.L., Wang, D.D.: Explicit group inverse of an innovative patterned matrix. Appl. Math. Comput. 274, 220–228 (2016)
Jiang, Z.L., Chen, X.T., Wang, J.M.: The explicit inverses of CUPL-Toeplitz and CUPL-Hankel matrices. East Asian J. Appl. Math. 7, 38–54 (2017)
Jia, J.T., Sogabe, T., El-Mikkawy, M.: Inversion of k-tridiagonal matrices with Toeplitz structure. Comput. Math. Appl. 65, 116–125 (2013)
Usmani, R.A.: Inversion of a tridiagonal Jacobi matrix. Linear Algebra Appl. 212, 413–414 (1994)
El-Mikkawy, M., Atlan, F.: A novel algorithm for inverting a general k-tridiagonal matrix. Appl. Math. Lett. 32, 41–47 (2014)
El-Mikkawy, M., Atlan, F.: A new recursive algorithm for inverting general k-tridiagonal matrices. Appl. Math. Lett. 44, 34–39 (2015)
Jia, J.T., Li, S.M.: Symbolic algorithms for the inverses of general k-tridiagonal matrices. Comput. Math. Appl. 70, 3032–3042 (2015)
Jia, J.T., Li, S.M.: On the inverse and determinant of general bordered tridiagonal matrices. Comput. Math. Appl. 69, 503–509 (2015)
El-Mikkawy, M.: A new computational algorithm for solving periodic tri-diagonal linear systems. Appl. Math. Comput. 161, 691–696 (2005)
Jia, J.T., Kong, Q.X.: A symbolic algorithm for periodic tridiagonal systems of equations. J. Math. Chem. 52, 2222–2233 (2014)
Jia, J.T.: A breakdown-free algorithm for computing the determinants of periodic tridiagonal matrices. Comput. Math. Appl., 1–15 (2019)
Tim, H., Emrah, K.: An analytical approach: explicit inverses of periodic tridiagonal matrices. J. Comput. Appl. Math. 335, 207–226 (2018)
Dow, M.: Explicit inverses of Toeplitz and associated matrices. ANZIAM J. 44, 185–215 (2008)
El-Shehawey, M., El-Shreef, G., ShAl-Henawy, A.: Analytical inversion of general periodic tridiagonal matrices. J. Math. Anal. Appl. 354, 123–134 (2008)
Huang, Y., McColl, W.F.: Analytical inversion of general tridiagonal matrices. J. Phys. A, Math. Gen. 30, 7919 (1997)
Robinson, R.M.: Mersenne and Fermat numbers. Proc. Am. Math. Soc. 5, 842–846 (1954)
Golub, G.H., Van Loan, C.F.: Matrix Computations, 3rd edn. Johns Hopkins University Press, Baltimore (1996)
Zuo, B.S., Jiang, Z.L., Fu, D.Q.: Determinants and inverses of Ppoeplitz and Ppankel matrices. Spec. Matrices 6, 201–215 (2018)
Zhang, F.Z.: The Schur Complement and Its Applications. Springer, New York (2006)
Rosen, K.H.: Discrete Mathematics and Its Applications. McGraw-Hill, New York (2011)
Acknowledgements
The authors are grateful for many constructive comments from the referees.
Funding
The research was supported by National Natural Science Foundation of China (Grant No. 11671187), Natural Science Foundation of Shandong Province (Grant No. ZR2016AM14), and the PhD Research Foundation of Linyi University (Grant No. LYDX2018BS052).
Author information
Authors and Affiliations
Contributions
The main idea of this paper was proposed by XJ and ZJ. YW and SS prepared the manuscript initially and performed all the steps of the proofs in the research. All authors have read and approved the final manuscript.
Corresponding authors
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Wei, Y., Jiang, X., Jiang, Z. et al. Determinants and inverses of perturbed periodic tridiagonal Toeplitz matrices. Adv Differ Equ 2019, 410 (2019). https://doi.org/10.1186/s13662-019-2335-6
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s13662-019-2335-6