Exact Inversion of Pentadiagonal Matrix for Semi-Analytic Solution of 2D Poisson Equation

Abstract

This work essentially consists in inverting in an exact, explicit, and original way the pentadiagonal Toeplitz matrix or tridiagonal block matrix resulting from the discretization of the two-dimensional Laplace operator. This method is an algorithm facilitating the resolution of a large number of problems governed by PDEs involving the Laplacian in two dimensions. It guarantees high precision and high efficiency in solving various differential equations.

Share and Cite:

Gueye, S. (2022) Exact Inversion of Pentadiagonal Matrix for Semi-Analytic Solution of 2D Poisson Equation. Journal of Modern Physics, 13, 1525-1529. doi: 10.4236/jmp.2022.1312094.

1. Introduction

Partial differential equations govern most phenomena and systems in physics and engineering. Laplace’s operator intervenes there very often. Once discretized, these differential equations are reduced to a matrix form, where the matrix corresponding to the Laplacian of the quantity to be studied takes the form of a pentadiagonal matrix. This matrix can be considered as a tridiagonal block matrix for the two-dimensional case. The inversion of this matrix makes it possible to obtain the solution of several categories of problems. There are different numerical and other approximation methods for inverting this matrix. The originality of this present work is to propose an exact and direct formula for the inverse of this famous pentadiagonal matrix.

Concretely, it will be a matter of determining the exact formula of the following symmetric block matrix M, which is a Toeplitz matrix:

( D A O N x O N x A D A O N x O N x A D A O N x O N x A O N x O N x A D ) : = M , where ( d a 0 0 a d a 0 0 a d a 0 0 a 0 0 a d ) : = D , and ( α 0 0 0 0 α 0 0 0 0 α 0 0 0 0 0 0 0 α ) : = A .

D is a tridiagonal, symmetric, and persymmetric Toeplitz matrix of dimension ( N x × N x ). A is a diagonal Toeplitz matrix. We denote by O N x the null matrix of the same dimension as D. The parameters d, a, and α are reals.

The matrix M, on the other hand, is pentadiagonal. It can be described as a symmetric Toeplitz block matrix. Its dimension is ( N x × N y ) × ( N x × N y ) .

The inversion method we propose for the block matrix M follows a certain analogy with the approach used in [1] [2] [3] [4] [5] to invert the tridiagonal matrix D. The inverse of M has the following structure:

( B 11 B 12 B 13 B 1 l B 1 N y B 21 B 22 B 23 B 2 l B 2 N y B k 1 B k 2 B k 3 B k l B k N y B N y 1 B N y 2 B N y 3 B N y l B N y N y ) : = M 1

M 1 is a symmetric block matrix and the matrices B k l which compose it are of the same dimension as D.

M 1 = ( B k l ) , B k l = ( b i j k l ) , k , l = 1 , , N y ; i , j = 1 , , N x (1)

M 1 is symmetric and persymmetric. It is composed of symmetric and persymmetric matrices (blocks):

b i j k l = b i j l k = b i j N y l + 1 , N y k + 1 = b j i k l = b N x j + 1 , N x i + 1 k l (2)

Inverting M amounts to determining the blocks B k l . To obtain them, we will first recall the formulas for the inversion of D and those for its eigenvalues and its eigenvectors. We will then exploit these parameters of D using them as a key to determine M 1 . Finally, we will formulate the exact expression for the inverse of M.

2. Inverse of Matrix D

Concerning the matrix D, its inverse is obtained with its cofactors. The inversion of a tridiagonal Toeplitz matrix has been covered in detail in [2] [3] [4] [5].

For the reals d and a, we define the real number Δ d a , and the complex number θ d a , as follows:

Δ ( d , a ) = Δ d a = d 2 4 a 2 and θ ( d , a ) = θ d a = atanh ( Δ d a d ) , d 0. (3)

Then, the following polynomial P n ( d , a ) makes it possible to calculate, in an explicit and direct way, the determinants of the sub-matrices D ( n × n ) of D:

P n ( d , a ) = { 1 , n = 0 d , n = 1 d n , a = 0 a n cos ( n π 2 ) , d = 0 ( sgn ( d ) a ) n ( n + 1 ) , | d | = 2 | a | 1 Δ d a { [ d + Δ d a 2 ] n + 1 [ d Δ d a 2 ] n + 1 } = ( sgn ( d ) a ) n sinh ( ( n + 1 ) θ d a ) sinh ( θ d a ) , otherwise (4)

or in another form (for d a 0 ):

P n ( d , a ) = i = 0 [ n / 2 ] ( 1 ) i C i n i d n 2 i a 2 i . (5)

The determinants of these sub-matrices D ( n , n ) of D are given, for fixed a and b, by P n ( d , a ) = U n , n = 0 , 1 , , N x . We denote by B the inverse of D. This matrix B exists when d is different from one of the following d i values:

d i = 2 a cos ( i π N x + 1 ) , i = 1 , 2 , , N x (6)

Apart from these values d i , the matrix D is regular and its inverse B is symmetric, persymmetric, and is given by the following formula [2] [3] [4] [5]:

b i j = ( 1 ) i + j a j i U i 1 U N x j U N x , 1 i j N x . (7)

It yields

b i j = ( 1 ) i + j a j i P i 1 ( d , a ) P N x j ( d , a ) P N x ( d , a ) , 1 i j N x . (8)

Which gives, in case θ d a exists and is non-zero:

b i j = ( 1 ) i + j ( sgn ( d ) a ) i j 1 sinh ( i θ d a ) sinh ( ( N x j + 1 ) θ d a ) sinh ( θ d a ) sinh ( ( N x + 1 ) θ d a ) , 1 i j N x . (9)

This result will be used to determine the inverse of the block matrix M.

3. Block Matrix Inversion

To find the inverse of the block matrix M, one can reason by analogy with the method of inversion of the tridiagonal matrix D. One of the keys to obtain this inverse matrix is to use the polynomial P n ( d , a ) . This time, we are not going to calculate it for real numbers d and a, but rather for matrices D and A. It is then necessary to determine the matrices P n ( D , A ) . The matrix D being Hermitian, its spectral decomposition is: D = X Λ X t , where Λ is the diagonal matrix containing on its ith row the eigenvalue λ i : Λ i i = λ i .

λ i = d + 2 a cos ( i N x + 1 π ) , i = 1 , 2 , , N x . (10)

X is an unitary matrix containing on its ith line the normalized eigenvector x i associated with the eigenvalue λ i . The jth component of vector x i is:

x i j = x j i = 2 N x + 1 sin ( i j N x + 1 π ) , i , j = 1 , 2 , , N x . (11)

Applying the rule D n = X Λ n X t , we can calculate P n ( D , A ) :

P n ( D , A ) = i = 0 [ n / 2 ] ( 1 ) i C i n i D n 2 i A 2 i = i = 0 [ n / 2 ] ( 1 ) i C i n i X Λ n 2 i X t A 2 i , (12)

or

P n ( D , A ) = X ( i = 0 [ n / 2 ] ( 1 ) i C i n i Λ n 2 i A 2 i ) X t . (13)

We can notice the spectral decomposition of the matrix P N ( D , A ) :

P n ( D , A ) = X P n ( Λ , A ) X t , (14)

By analogy with the inversion of the tridiagonal matrix D, the inverse of the block matrix M is given by the matrices B k l , with:

B k l = ( 1 ) k + l α l k P k 1 ( D , A ) P N y ( D , A ) 1 P N y l ( D , A ) , 1 k l N y (15)

We can, therefore, notice that the inverse of M exists when the determinant of P N y ( D , A ) is non-zero.

From Equations (14) and (15), the spectral decomposition of the matrix B k l appears:

B k l = X ( 1 ) k + l α l k P k 1 ( Λ , A ) P N y ( Λ , A ) 1 P N y l ( Λ , A ) : = Λ k l X t , 1 k l N y , (16)

that is:

B k l = X Λ k l X t , 1 k l N y (17)

Λ k l is the matrix containing on its ith line the ith eigenvalue of B k l . These eigenvalues of B k l are Λ i i k l = λ i k l , with:

λ i k l = ( 1 ) k + l α l k P k 1 ( λ i , α ) P N y l ( λ i , α ) P N y ( λ i , α ) : = λ i k l , 1 k l N y , (18)

where θ λ i α = θ ( λ i , α ) :

λ i k l = ( 1 ) k + l ( sgn ( λ i ) α ) k l 1 sinh ( k θ λ i α ) sinh ( ( N y l + 1 ) θ λ i α ) sinh ( θ λ i α ) sinh ( ( N y + 1 ) θ λ i α ) , 1 k l N y . (19)

Thus, we obtain all the elements of the matrices B k l composing the block matrix M 1 :

b i j k l = ν = 1 N x λ ν k l x i ν x ν j , i , j = 1 , , N x ; 1 k l N y (20)

Equation (20) completely determines the matrix M 1 . Note that these B k l blocks are symmetric and persymmetric matrices. These different symmetries allow a calculation of the inverse of the pentadiagonal matrix M, in a fast, efficient, precise, and economical way in terms of occupying RAM space. This method allows a very fine implementation of the discretization of the Laplace operator, for 2D problems, even with an inhomogeneous mesh.

4. Conclusion

This work makes it possible to determine the exact formula of the inverse of the symmetric pentadiagonal Toeplitz matrix. This result allows a direct inversion of this matrix of blocks, in an efficient way, precise and economical way, in terms of occupying RAM space. This proposed method will allow simple and accurate resolution of a large category of physics and engineering problems, governed by differential equations involving the two-dimensional Lapalce operator.

Conflicts of Interest

The author declares no conflicts of interest regarding the publication of this paper.

References

[1] Usmani, R.A. (1994) Linear Algebra and its Applications, 212-213, 413-414.
https://doi.org/10.1016/0024-3795(94)90414-6
[2] Gueye, S. (2014) Journal of Electromagnetic Analysis and Applications, 6, 303-308
[3] Hu, G.Y. and O’Connell, R.F. (1996) Journal of Physics A: Mathematical and General, 29, 1511-1513.
https://doi.org/10.1088/0305-4470/29/7/020
[4] Da Fonseca, C.M. and Petronilho, J. (2001) Linear Algebra and Its Applications, 325, 7-21.
https://doi.org/10.1016/S0024-3795(00)00289-5
[5] Gueye, S.B., Mbow, C. and Diagana, M.F. (2021) Journal of Electromagnetic Analysis and Applications, 13, 135-143.

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.