The Exact Formulation of the Inverse of the Tridiagonal Matrix for Solving the 1D Poisson Equation with the Finite Difference Method

Similar documents
Semi-Analytical Solution of the 1D Helmholtz Equation, Obtained from Inversion of Symmetric Tridiagonal Matrix

NUMERICAL DIFFERENTIATION

Numerical Heat and Mass Transfer

CME 302: NUMERICAL LINEAR ALGEBRA FALL 2005/06 LECTURE 13

Chapter 5. Solution of System of Linear Equations. Module No. 6. Solution of Inconsistent and Ill Conditioned Systems

Numerical Solutions of a Generalized Nth Order Boundary Value Problems Using Power Series Approximation Method

U.C. Berkeley CS294: Beyond Worst-Case Analysis Luca Trevisan September 5, 2017

One-sided finite-difference approximations suitable for use with Richardson extrapolation

NON-CENTRAL 7-POINT FORMULA IN THE METHOD OF LINES FOR PARABOLIC AND BURGERS' EQUATIONS

The Jacobsthal and Jacobsthal-Lucas Numbers via Square Roots of Matrices

New Method for Solving Poisson Equation. on Irregular Domains

MEM 255 Introduction to Control Systems Review: Basics of Linear Algebra

Linear Approximation with Regularization and Moving Least Squares

Inner Product. Euclidean Space. Orthonormal Basis. Orthogonal

n α j x j = 0 j=1 has a nontrivial solution. Here A is the n k matrix whose jth column is the vector for all t j=0

Lecture 12: Discrete Laplacian

The Order Relation and Trace Inequalities for. Hermitian Operators

Lectures - Week 4 Matrix norms, Conditioning, Vector Spaces, Linear Independence, Spanning sets and Basis, Null space and Range of a Matrix

Additional Codes using Finite Difference Method. 1 HJB Equation for Consumption-Saving Problem Without Uncertainty

Inductance Calculation for Conductors of Arbitrary Shape

ALGORITHM FOR THE CALCULATION OF THE TWO VARIABLES CUBIC SPLINE FUNCTION

A new Approach for Solving Linear Ordinary Differential Equations

An identification algorithm of model kinetic parameters of the interfacial layer growth in fiber composites

Convexity preserving interpolation by splines of arbitrary degree

ρ some λ THE INVERSE POWER METHOD (or INVERSE ITERATION) , for , or (more usually) to

Transfer Functions. Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: ( ) system

Lecture 2: Numerical Methods for Differentiations and Integrations

CHAPTER 5 NUMERICAL EVALUATION OF DYNAMIC RESPONSE

Time-Varying Systems and Computations Lecture 6

APPENDIX A Some Linear Algebra

A New Refinement of Jacobi Method for Solution of Linear System Equations AX=b

FTCS Solution to the Heat Equation

Chapter 12. Ordinary Differential Equation Boundary Value (BV) Problems

A property of the elementary symmetric functions

1 Introduction We consider a class of singularly perturbed two point singular boundary value problems of the form: k x with boundary conditions

ON A DETERMINATION OF THE INITIAL FUNCTIONS FROM THE OBSERVED VALUES OF THE BOUNDARY FUNCTIONS FOR THE SECOND-ORDER HYPERBOLIC EQUATION

THE STURM-LIOUVILLE EIGENVALUE PROBLEM - A NUMERICAL SOLUTION USING THE CONTROL VOLUME METHOD

DETERMINATION OF TEMPERATURE DISTRIBUTION FOR ANNULAR FINS WITH TEMPERATURE DEPENDENT THERMAL CONDUCTIVITY BY HPM

Least squares cubic splines without B-splines S.K. Lucas

PART 8. Partial Differential Equations PDEs

A Hybrid Variational Iteration Method for Blasius Equation

Some Comments on Accelerating Convergence of Iterative Sequences Using Direct Inversion of the Iterative Subspace (DIIS)

Fixed point method and its improvement for the system of Volterra-Fredholm integral equations of the second kind

The Finite Element Method: A Short Introduction

COMPARISON OF SOME RELIABILITY CHARACTERISTICS BETWEEN REDUNDANT SYSTEMS REQUIRING SUPPORTING UNITS FOR THEIR OPERATIONS

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

Relaxation Methods for Iterative Solution to Linear Systems of Equations

Fall 2012 Analysis of Experimental Measurements B. Eisenstein/rev. S. Errede

Lecture 10 Support Vector Machines II

Georgia Tech PHYS 6124 Mathematical Methods of Physics I

ELASTIC WAVE PROPAGATION IN A CONTINUOUS MEDIUM

(Online First)A Lattice Boltzmann Scheme for Diffusion Equation in Spherical Coordinate

Consistency & Convergence

Inexact Newton Methods for Inverse Eigenvalue Problems

Asymptotics of the Solution of a Boundary Value. Problem for One-Characteristic Differential. Equation Degenerating into a Parabolic Equation

Yong Joon Ryang. 1. Introduction Consider the multicommodity transportation problem with convex quadratic cost function. 1 2 (x x0 ) T Q(x x 0 )

Procedia Computer Science

On the spectral norm of r-circulant matrices with the Pell and Pell-Lucas numbers

Global Sensitivity. Tuesday 20 th February, 2018

Perron Vectors of an Irreducible Nonnegative Interval Matrix

Norms, Condition Numbers, Eigenvalues and Eigenvectors

Digital Signal Processing

More metrics on cartesian products

Hongyi Miao, College of Science, Nanjing Forestry University, Nanjing ,China. (Received 20 June 2013, accepted 11 March 2014) I)ϕ (k)

MMA and GCMMA two methods for nonlinear optimization

Salmon: Lectures on partial differential equations. Consider the general linear, second-order PDE in the form. ,x 2

Maejo International Journal of Science and Technology

Errors for Linear Systems

Introduction to Vapor/Liquid Equilibrium, part 2. Raoult s Law:

Appendix B. The Finite Difference Scheme

Research Article Cubic B-Spline Collocation Method for One-Dimensional Heat and Advection-Diffusion Equations

arxiv: v1 [math.co] 12 Sep 2014

Lecture 17 : Stochastic Processes II

Report on Image warping

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 12

Research Article Green s Theorem for Sign Data

DUE: WEDS FEB 21ST 2018

2 Finite difference basics

8.4 COMPLEX VECTOR SPACES AND INNER PRODUCTS

Lecture Notes on Linear Regression

Advanced Circuits Topics - Part 1 by Dr. Colton (Fall 2017)

CHAPTER 4. Vector Spaces

A Solution of Porous Media Equation

Using T.O.M to Estimate Parameter of distributions that have not Single Exponential Family

Lecture 16 Statistical Analysis in Biomaterials Research (Part II)

Module 3: Element Properties Lecture 1: Natural Coordinates

Singular Value Decomposition: Theory and Applications

DEMO #8 - GAUSSIAN ELIMINATION USING MATHEMATICA. 1. Matrices in Mathematica

The Finite Element Method

2.3 Nilpotent endomorphisms

STAT 309: MATHEMATICAL COMPUTATIONS I FALL 2018 LECTURE 16

Vector Norms. Chapter 7 Iterative Techniques in Matrix Algebra. Cauchy-Bunyakovsky-Schwarz Inequality for Sums. Distances. Convergence.

Numerical Solution of Ordinary Differential Equations

CSci 6974 and ECSE 6966 Math. Tech. for Vision, Graphics and Robotics Lecture 21, April 17, 2006 Estimating A Plane Homography

Speeding up Computation of Scalar Multiplication in Elliptic Curve Cryptosystem

Suppose that there s a measured wndow of data fff k () ; :::; ff k g of a sze w, measured dscretely wth varable dscretzaton step. It s convenent to pl

On a direct solver for linear least squares problems

1 GSW Iterative Techniques for y = Ax

Physics 5153 Classical Mechanics. D Alembert s Principle and The Lagrangian-1

Computer-Aided Circuit Simulation and Verification. CSE245 Fall 2004 Professor:Chung-Kuan Cheng

Transcription:

Journal of Electromagnetc Analyss and Applcatons, 04, 6, 0-08 Publshed Onlne September 04 n ScRes. http://www.scrp.org/journal/jemaa http://dx.do.org/0.46/jemaa.04.6000 The Exact Formulaton of the Inverse of the Trdagonal Matrx for Solvng the D Posson Equaton wth the Fnte Dfference Method Sergne Bra Gueye Département de Physque, Faculté des Scences et Technques, Unversté Chekh Anta Dop, Dakar-Fann, Sénégal Emal: sbragy@gmal.com Receved June 04; revsed 5 July 04; accepted 8 August 04 Copyrght 04 by author and Scentfc Research Publshng Inc. Ths work s lcensed under the Creatve Commons Attrbuton Internatonal Lcense (CC BY). http://creatvecommons.org/lcenses/by/4.0/ Abstract A new method for solvng the D Posson equaton s presented usng the fnte dfference method. Ths method s based on the formulaton of the nverse of the trdagonal matrx assocated wth the Laplacan. Ths s the frst tme that the nverse of ths remarkable matrx s determned drectly and ly. Thus, solvng D Posson equaton becomes very accurate and extremely fast. Ths method s a very mportant tool for physcs and engneerng where the Posson equaton appears very often n the descrpton of certan phenomena. Keywords D Posson Equaton, Fnte Dfference Method, Trdagonal Matrx Inverson, Thomas Algorthm, Gaussan Elmnaton, Potental Problem. Introducton The fnte dfference method s a very useful tool for dscretzng and solvng numercally a dfferental equaton. It s effectvely a classcal method of approxmaton based on Taylor seres expansons that has help durng the last years theoretcal results to gan n accuracy, stablty and convergence. In fact, ths method s very useful for solvng for example Posson equaton. Ths ellptc equaton appears very often n mathematcs, physcs, chemstry, bology and engneerng. In one dmenson, the resoluton leads to a trdagonal matrx n the case of centered dfference approxmaton. Ths matrx, whch s dagonally dom- How to cte ths paper: Gueye, S.B. (04) The Exact Formulaton of the Inverse of the Trdagonal Matrx for Solvng the D Posson Equaton wth the Fnte Dfference Method. Journal of Electromagnetc Analyss and Applcatons, 6, 0-08. http://dx.do.org/0.46/jemaa.04.6000

nant, can be nverted wth methods such as Gauss elmnaton, Thomas Algorthm Method []. These techncs are powerful and very effcent. We proposed here, a new and drect method of nverson of ths trdagonal matrx ndependently of the rghthand sde. For Drchlet-Drchlet boundary problems, ths nnovatve method s faster than the Thomas Algorthm. It gves better accuracy and s far more economcal n terms of memory occupaton. Frst, the fnte dfference method s presented for the D Posson equaton. Secondly, the propertes of the matrx assocated wth the Laplacan and ts nverse are dscussed. Then, the nverse matrx s determned and ts propertes are analyzed. Thus, verfcaton s done consderng an nterestng potental problem, and the sensblty of the method s quantfed.. Fnte Dfference Method and D Posson Equaton We consder a functon ( x) whch satsfes the Posson equaton ( x) = f ( x), n the nterval ],[ ab, where f s a specfed functon. ( x) fulflls the Drchlet-Drchlet boundary condtons ( a) = a and ( b) = b. We consder an one-dmensonal mesh wth + dscrete ponts ( x ). Each pont ( x ) s de- ( b a) fned by x = a+ x, where x = = h beng the step sze. We defne ( x), f = f ( x), + = 0,,, +. We have chosen the centered dfference approxmaton ( O( x )), n ths work, for the fact that t gves a trdagonal, dagonally domnant, and symmetrc matrx. Consderng all the above mentoned crtera, one can rewrte the D Posson equaton n a set of algebrac equatons: + = = () + h f,,,,. One gets a lnear system of equatons, whch can be wrtten n a matrx form [] 0 0 0 0 h f a 0 0 0 h f 0 0 0 h f 0 0 0 4 h f = 4 0 0 0 5 h f 5 0 0 0 0 0 h f 0 0 0 0 0 0 h f b : = A : = : = F Thus, solvng the D Posson equaton means to nvert the negatve defnte, and regular -matrx = B =, s also symmetrc. Both matrces have the followng propertes: A ( a j ). Its nverse, that we noted ( b j ) and where, = j aj =, j = 0, j > b + b = δ j bj bj + bj+ = δ, < j <, b b = δ j δ s the Kronecker s delta.. The Inverse of Matrx A From (4), we derve successvely the followng nterestng relatons: () () (4) 04

( ) b = j b + j b and b = j jb + + j (5) wth (5), one sees that the matrx B s entrely determned f the term b s known. Ths term can be determned by observng the behavor of B for dfferent values: It holds From (5) and (6), we get b b = b + = j + = + ( j ) ( ) ow, the matrx B s completely and ly determned. B = ( b );, j =,,, wth B = b j ( ) j, j + = ; ( j ), j + < ( ) ( ) ( j ) ( ) ( ) ( ) ( j ) ( ) ( ) ( ) ( j ) 6 4 9 6 ( ) ( ) ( ) ( ) + 6 9 j 4 6 j j j ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) The soluton of the D Posson equaton s obtaned wth a smple, extremely fast matrx multplcaton: = BF. Thus, the numercal resoluton of the D Posson equaton whch s an nterestng topc n physcs and engneerng s made easy and very accurate. Analyss A frst analyss of the matrx ( ) B let us beleve that, ths new method possesses an algorthm complexty of ( O ) and the one of Thomas s ( O( )) []. B shows that the complexty brought by the Thomas method s largely ( O( )), whch s stuated between the Gauss elmnatons ( ) A deeper analyss of the matrx ( ) mproved n ths study. In addton, one can see a close lnk between ts row vectors and column vectors. The matrx ( B ) s also persymmetrc: b = b + + j j, All the nformaton about t, can be found n the upper trangle (n gray color, see Fgure ). Further, we can even fnd very nterestng relatons n ths matrx whch can help refnng the fnal soluton. That s what we effectvely dd, and one can see a drect soluton for at the pont x, whch can be expressed by = h (6) (7) (8), f (9) = 05

Fgure. Matrx symmetres. Also a drect soluton for at the pont x s: = h f + ( ) f = (0) Generally, a very mportant recurrence relaton can be obtaned, whch gves all solutons: whch s equvalent to: k k= h ( k+ ) f + ( k) ( ( )) f, = = k+ k = 0,,, k k = h k+ f + k f k = = = k+ ( ) ( ( )),,,, () Ths very nnovatve Equaton () gves drectly and accurately all the soluton that we are lookng for. It proves that our method s drect, faster than the one of Thomas s n ths context and gves as well better accuracy. Furthermore, t s far more economcal n terms of memory occupaton. Ths s due to the fact that the matrx ( B ) does not necesstate to be generated. A programmer does not need to declare nor to defne the matrx ( B ) n hs code. In concluson to ths, we can say that the matrx ( B ) s the key of ths effcent new method. Ths matrx ( B ), whch s the nverse of matrx ( A ), s determned explctly, drectly, and ndependently of the rght-hand sde of the Posson equaton..b.: One can prove usng mathematcal nducton that det ( A ) = ( ) ( + ). It holds for the (, j ) cofactor of A : ( ) + CofAj = j ( ), j. We call the matrx B Bra s Matrx. 4. Verfcaton wth a Potental Problem We consder a scalar potental ( x), defned n [0, ], whch satsfes ( x) ( x) = = f ( x) = cos ( x ). ( x) fulflls the followng boundary condtons: ( 0) ( ) π x = =. The soluton s ( ) 0 cos π x x x ( x) = + + 4 π 4 Wth the fnte dfference method, we take = 00, = ( ) = cos π f f x x. The soluton s x = h = +, x x =, ( x ) () (), and 06

h f 00 99 98 99 98 96 6 4 h f h f 4 h f4 = 5 0 h f, 5 6 9 94 96 98 4 6 96 98 99 99 h f99 98 99 00 00 h f 00 (4) Dscussons We defne the varable ε ( 00). Generally, we have, whch s the relatve error at pont ε FDM ( ) = x for ( 00) We can also defne the average value of the relatve error for a gven : ( ) 5 ( 00) 6.60 0. =. FDM represents ε. For = 00, t s: ε We obtan the followng results, presented n Table. The table shows that the soluton s very accurate. otwthstandng that we have been nterested n determn- ε for dfferent values. ng the sensblty of the proposed method. Effectvely, we have plotted ( ) We obtan a hyperbola, whch can be predcted as proportonal to ( ) Ths curve s ftted wth a functon whch can be defned as ( ) α α Trunc = h =, ( + ) where α 0.6598. We obtan two curves represented n Fgure. Table. Results and relatve error. h = + = x. (5) (6) x (00) FDM ε 9.90099009900990E 00.47505046650E 00.4756000E 00.7997645956950E 0006.98098098098E 00 4.950545979065E 00 4.9505446850E 00 6.7709484E 0006.97097097097E 00 7.45989908E 00 7.450946946E 00 9.55554944404E 0006 4.96096096096E 00 9.89985957698E 00 9.899600906004E 00.7454476647E 0005 5 4.95049504950495E 00.786984E 00.76787597E 00.58500947599E 0005 6 5.94059405940594E 00.4849998406E 00.484779576E 00.89579809409E 0005 7 6.9069069069E 00.708758675008E 00.70875085596E 00.00755564E 0005 8 7.9079079079E 00.97709076560E 00.97704469807E 00.50770589858E 0005 9 8.9089089089E 00.7604857E 00.65657044E 00.80696749898044E 0005 0 9.90099009900990E 00.46759048547E 00.4675880570E 00.0944966757E 0005 94 9.069069069E 00.708758675008E 00.70875085596E 00.0075648E 0005 95 9.4059405940594E 00.4849998406E 00.484779576E 00.89579800904E 0005 96 9.5049504950495E 00.786984E 00.76787597E 00.5850094745095E 0005 97 9.6096096096E 00 9. 89985957699E 00 9.899600906005E 00.7454475909E 0005 98 9.70970970970E 00 7.45989908E 00 7.450946947E 00 9.5555490675E 0006 99 9.80980980980E 00 4.950545979065E 00 4.950544685E 00 6.77088798E 0006 00 9.90099009900990E 00.47505046650E 00.4756000E 00.7997645480849E 0006 07

Fgure. Sensblty. We realze that the average relatve error ( ) ( 4) h ( c) ( 4). ( c) lowng manner C ) whch belongs to the nterval [ ab, ]. For our gven functon ε behaves lke a truncaton error that we express n the fol- s the fourth order dervatve of the functon n a pont (here and also the results from the fttng, we have the followng relatons []: α h 4π ε ( ) α h = <, + ( ) Ths proves that the method s very accurate, naturally stable, robust, quck and precse. 5. Conclusons Ths paper has provded a new mproved method for solvng the D Posson equaton wth the fnte dfference method. Accurate results have been obtaned wth a sensblty found to be as the functon of ( + ). In fact, the nverse of the trdagonal matrx, whch s assocated wth ths dfferental equaton, s determned drectly, ly, and ndependently to the rght-hand sde. Thus, a new formulaton of the soluton s gven wth an algorthmc complexty of O(). Wth ths nnovatve method, the D Posson equaton, wth Drchlet-Drchlet boundary condton s solved, wth only one programmng loop. Ths new approach provdes also gan n accuracy and economy n memory allocaton. A future work can consder eumann or mxed boundary condtons. Acknowledgements I would lke to thank my colleagues Dr. Chekh Mbow and Dr. Kharouna Talla for beneft dscussons and remarks that contrbute to mprovng the qualty of ths paper. References [] Conte, S.D. and de Boor, C. (98) Elementary umercal Analyss: An Algorthmc Approach. rd Edton, McGraw- Hll, ew York, 5-57. [] Leveque, R.J.E. (007) Fnte Dfference Method for Ordnary and Partal Dfferental Equatons, Steady State and Tme Dependent Problems. SIAM, 5-6. http://dx.do.org/0.7/.97808987789 [] Mathews, J.H. and Kurts, K.F. (004) umercal Methods Usng Matlab. 4th Edton, Prentce Hall, Upper Saddle Rver, -5, 9-4. (7) 08