<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JEMAA</journal-id><journal-title-group><journal-title>Journal of Electromagnetic Analysis and Applications</journal-title></journal-title-group><issn pub-type="epub">1942-0730</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jemaa.2014.610031</article-id><article-id pub-id-type="publisher-id">JEMAA-50042</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Engineering</subject><subject> Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Solution of 1D Poisson Equation with Neumann-Dirichlet and Dirichlet-Neumann Boundary Conditions, Using the Finite Difference Method
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>erigne</surname><given-names>Bira Gueye</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Kharouna</surname><given-names>Talla</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Cheikh</surname><given-names>Mbow</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Département de Physique, Faculté des Sciences et Techniques, Université Cheikh Anta Diop, Dakar-Fann, Sénégal</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>sbiragy@gmail.com(EBG)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>10</day><month>09</month><year>2014</year></pub-date><volume>06</volume><issue>10</issue><fpage>309</fpage><lpage>318</lpage><history><date date-type="received"><day>19</day>	<month>May</month>	<year>2014</year></date><date date-type="rev-recd"><day>16</day>	<month>June</month>	<year>2014</year>	</date><date date-type="accepted"><day>11</day>	<month>July</month>	<year>2014</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  An innovative, extremely fast and accurate method is presented for Neumann-Dirichlet and Dirichlet-Neumann boundary problems for the Poisson equation, and the diffusion and wave equation in quasi-stationary regime; using the finite difference method, in one dimensional case. Two novels matrices are determined allowing a direct and exact formulation of the solution of the Poisson equation. Verification is also done considering an interesting potential problem and the sensibility is determined. This new method has an algorithm complexity of 
  O(
  N), its truncation error goes like 
  O(
  h
  <sup>2</sup>), and it is more precise and faster than the Thomas algorithm.
 
</p></abstract><kwd-group><kwd>1D Poisson Equation</kwd><kwd> Finite Difference Method</kwd><kwd> Neumann-Dirichlet</kwd><kwd> Dirichlet-Neumann</kwd><kwd> Boundary Problem</kwd><kwd> Tridiagonal Matrix Inversion</kwd><kwd> Thomas Algorithm</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Poisson equation is used to describe, in quantitative manner, electrostatic and magnetostatic phenomena. It also helps to understand diffusion and propagation related problems, in quasi-stationary regime. Its solution is of great interest for a wide range of fields such as engineering, physics, mathematics, biology, chemistry, etc.</p><p>Most of solving methods, of this very important equation, use matrix inversion technics and algorithms, which are dependent on its Right-Hand Side (RHS). A recent study [<xref ref-type="bibr" rid="scirp.50042-ref1">1</xref>] , concerning the case of one dimension, has proposed a direct, exact, and closed formulation of the inverse matrix; independently on the RHS. This inverse matrix has allowed getting a new, extremely fast solution to the Poisson equation. However, this innovative solution, obtained with the finite difference method, discussed only the case of boundary conditions of type: Dirichlet-Dirichlet (DD).</p><p>In the present study, we focus on the Poisson equation (1D), particularly in the two boundary problems: Neumann-Dirichlet (ND) and Dirichlet-Neumann (DN), using the Finite Difference Method (FDM). Essentially, attention is given to the matrices extracted from the algebraic equations from this differential method. Furthermore, an exact formulation of their inverses, independently of the RHS, is determined. Therefore, a new and advanced formulation of the solution to the Poisson equation, is found, for Neumann boundary conditions.</p><p>The proposed method is more accurate and faster than the Gaussian elimination method and that of Thomas. In addition, it completes the work made by Gueye S. Bira [<xref ref-type="bibr" rid="scirp.50042-ref1">1</xref>] , where the Dirichlet-Dirichlet problem was presented and treated very rigorously and clearly. Here, we determine two matrices that constitute, with the one in ref. [<xref ref-type="bibr" rid="scirp.50042-ref1">1</xref>] , a set of solutions, which will contribute greatly to the advance of research in the field of numerical solving of differential equations. They will also permit an extremely exact and simple formulation of the solution to the Poisson equation.</p><p>We will first consider an ND boundary problem and establish the corresponding algebraic equations coming from the application of the finite difference method, using the centered difference approximation (second order derivative). Then, we will, based on these algebraic equations, and considering the boundary conditions; establish the matrix equation. Thereafter, we discuss the properties of the associated matrix and then, determine its inverse, exactly and independently of the RHS. This will allow a direct and exact formulation of the solution to the Poisson equation for a 1D problem with ND boundary conditions. Complexity, accuracy, and stability are discussed and compared with other methods: Gaussian elimination algorithm and Thomas. Moreover, a verification of this new method is done by considering an interesting potential problem with inhomogeneous ND boundary conditions. The results are compared to the exact analytical solution and show great agreement. A similar approach is followed in the case Dirichlet-Neumann problem. The exact formula of the inverse matrix is determined and also the solution of the differential equation.</p></sec><sec id="s2"><title>2. 1D Poisson Equation with Neumann-Dirichlet Boundary Conditions</title><p>We consider a scalar potential <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x7.png" xlink:type="simple"/></inline-formula> which satisfies the Poisson equation<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x8.png" xlink:type="simple"/></inline-formula>, in the interval<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x9.png" xlink:type="simple"/></inline-formula>, where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x10.png" xlink:type="simple"/></inline-formula> is a specified function. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x11.png" xlink:type="simple"/></inline-formula>fulfills the Neumann-Dirichlet boundary conditions</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x12.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x13.png" xlink:type="simple"/></inline-formula>. An appropriate discretization is chosen, as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>The mesh is composed of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x14.png" xlink:type="simple"/></inline-formula> discrete points belonging to the interval<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x15.png" xlink:type="simple"/></inline-formula>; and an extra, imaginary</p><p>point, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x16.png" xlink:type="simple"/></inline-formula>, which is not within this range [<xref ref-type="bibr" rid="scirp.50042-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.50042-ref3">3</xref>] . With the following step size:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x17.png" xlink:type="simple"/></inline-formula>, the mesh points <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x18.png" xlink:type="simple"/></inline-formula> are defined by the following relation:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x19.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x20.png" xlink:type="simple"/></inline-formula>. We denote by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x21.png" xlink:type="simple"/></inline-formula> the ap-</p><p>proximate value of the desired potential at point<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x22.png" xlink:type="simple"/></inline-formula>:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x23.png" xlink:type="simple"/></inline-formula>. For each point <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x24.png" xlink:type="simple"/></inline-formula> in the interval<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x25.png" xlink:type="simple"/></inline-formula>, the value of the right-hand side function is:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x26.png" xlink:type="simple"/></inline-formula>.</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x27.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x28.png" xlink:type="simple"/></inline-formula> are the first and second derivative of the potential function<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x29.png" xlink:type="simple"/></inline-formula>, respectively, at point<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x30.png" xlink:type="simple"/></inline-formula>. With the centered difference approximation <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x29.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x31.png" xlink:type="simple"/></inline-formula> [<xref ref-type="bibr" rid="scirp.50042-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.50042-ref4">4</xref>] , one gets the first derivative:</p><disp-formula id="scirp.50042-formula794"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x32.png"  xlink:type="simple"/></disp-formula><p>and the second derivative:</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Discretization for Neumann-Dirichlet boundary conditions</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-9801534x33.png"/></fig><disp-formula id="scirp.50042-formula795"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x34.png"  xlink:type="simple"/></disp-formula><p>Thus, the discretized 1D Poisson equation becomes a set of algebraic equations:</p><disp-formula id="scirp.50042-formula796"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x35.png"  xlink:type="simple"/></disp-formula><p>The boundary <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x36.png" xlink:type="simple"/></inline-formula> must be carefully handled with the extra imaginary point<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x37.png" xlink:type="simple"/></inline-formula>. Combining (1) and (3) for<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x36.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x37.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x38.png" xlink:type="simple"/></inline-formula>, the effect of the imaginary point is eliminated:</p><disp-formula id="scirp.50042-formula797"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x39.png"  xlink:type="simple"/></disp-formula><p>One sees that this extra point does not affect the result. It is also to remark that the truncation error goes like <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x40.png" xlink:type="simple"/></inline-formula> [<xref ref-type="bibr" rid="scirp.50042-ref2">2</xref>] . Therefore, this additional point helps to still use the centered difference approximation, even at boundary point<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x40.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x41.png" xlink:type="simple"/></inline-formula>.</p><p>We can introduce the vector <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x42.png" xlink:type="simple"/></inline-formula> which elements <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x43.png" xlink:type="simple"/></inline-formula> are defined by:</p><disp-formula id="scirp.50042-formula798"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x44.png"  xlink:type="simple"/></disp-formula><p>Thus, one obtains the following matrix equation:</p><disp-formula id="scirp.50042-formula799"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x45.png"  xlink:type="simple"/></disp-formula><p>The centered difference approximation leads to an N &#215; N-matrix <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x46.png" xlink:type="simple"/></inline-formula> that is diagonally dominant, tridiagonal, negative definite, and symmetric.</p></sec><sec id="s3"><title>3. The Inverse of the Matrix <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x47.png" xlink:type="simple"/></inline-formula></title><p>The inverse of the matrix<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x48.png" xlink:type="simple"/></inline-formula>, denoted<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x49.png" xlink:type="simple"/></inline-formula>, is also symmetric. It has the following properties:</p><disp-formula id="scirp.50042-formula800"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x50.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x51.png" xlink:type="simple"/></inline-formula> is the Kronecker’s delta.</p><p>It also holds:</p><disp-formula id="scirp.50042-formula801"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x52.png"  xlink:type="simple"/></disp-formula><p>The behavior of the determinant and the co-factor of the matrix <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x53.png" xlink:type="simple"/></inline-formula> in ref. [<xref ref-type="bibr" rid="scirp.50042-ref1">1</xref>] give us also the following relations:</p><disp-formula id="scirp.50042-formula802"><label>(9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x54.png"  xlink:type="simple"/></disp-formula><p>Using the relations in (7)-(9), we can determine exactly the inverse of the matrix <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x55.png" xlink:type="simple"/></inline-formula> that is associated with our approximation in case of ND boundary conditions. Thus, the coefficients of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x55.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x56.png" xlink:type="simple"/></inline-formula> are determined with:</p><disp-formula id="scirp.50042-formula803"><label>(10)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x57.png"  xlink:type="simple"/></disp-formula><p>Equation (10) is also equivalent to:</p><disp-formula id="scirp.50042-formula804"><label>(11)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x58.png"  xlink:type="simple"/></disp-formula><p>Equations (10) and (11) contain the same information. We prefer the first because it appears to be simpler than the latter and can be preferred for an eventual implementation in a programming language.</p><p>Thus, the inverse matrix is entirely determined. We get the simple, beautiful, exact, and very important matrix <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x59.png" xlink:type="simple"/></inline-formula> that is shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>We call this impressive matrix<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x60.png" xlink:type="simple"/></inline-formula>, for Neumann-Dirichlet problem: Bira_ND-Matrix. Considering Equation (6), the solution’s vector is obtained with:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x60.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x61.png" xlink:type="simple"/></inline-formula>. Thus, solving the 1D Poisson equation is reduced to a simple matrix-vector multiplication. One does not need an inversion method that depend on the right hand side of the differential equation. Further, the interesting properties of this matrix allow us to get the closed formulation of the solution, directly without matrix multiplication.</p></sec><sec id="s4"><title>4. Analysis and Exact Solution of the Poisson Equation</title><p>The matrix <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x62.png" xlink:type="simple"/></inline-formula> is simple and elegant. Only the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x62.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x63.png" xlink:type="simple"/></inline-formula> first nonzero integers appear in the matrix<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x62.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x63.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x64.png" xlink:type="simple"/></inline-formula>. Its deeper analysis leads to an exact, closed, and high precise formulation of the solution vector<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x62.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x63.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x64.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x65.png" xlink:type="simple"/></inline-formula>, of the Poisson equation.</p><p>With Equation (6), one obtains the solution <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x66.png" xlink:type="simple"/></inline-formula> at point <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x66.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x67.png" xlink:type="simple"/></inline-formula> with:</p><disp-formula id="scirp.50042-formula805"><label>(12)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x68.png"  xlink:type="simple"/></disp-formula><p>The scalar potential <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x69.png" xlink:type="simple"/></inline-formula> at abscissa <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x70.png" xlink:type="simple"/></inline-formula> is given by:</p><disp-formula id="scirp.50042-formula806"><label>(13)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x71.png"  xlink:type="simple"/></disp-formula><p>Thus, the solution of the 1D Poisson equation, in the case of Neumann-Dirichlet boundary, is determined exactly with the direct relation:</p><disp-formula id="scirp.50042-formula807"><label>(14)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x72.png"  xlink:type="simple"/></disp-formula><p>This is equivalent to:</p><disp-formula id="scirp.50042-formula808"><label>(15)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x73.png"  xlink:type="simple"/></disp-formula><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Inverse matrix for Neumann-Dirichlet problem</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-9801534x74.png"/></fig><p>Equation (15) represents a great improvement for solving the Poisson equation, particularly for Neumann- Dirichlet boundary conditions. The solution is determined properly, exactly, and given in a direct formulation. It can be very easily programmed. One loop will be largely sufficient to compute all the solution of one the most important equation in physics and engineering, in the one-dimensional case. It is a novel and exact formulation of the solution with the finite difference method using the centered difference approximation. The very important matrix <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x75.png" xlink:type="simple"/></inline-formula> allowed us to obtain this innovative solution.</p><p>The methods that use inversion technics to obtained the matrix <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x76.png" xlink:type="simple"/></inline-formula> (Gauss Elimination<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x77.png" xlink:type="simple"/></inline-formula>, Thomas Method <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x76.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x77.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x78.png" xlink:type="simple"/></inline-formula> are ameliorated [<xref ref-type="bibr" rid="scirp.50042-ref5">5</xref>] .</p><p>The presented new solution is more direct, more exact, more stable; and faster than the Thomas Method for 1D Poisson equation. An important fact is that the determination of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x79.png" xlink:type="simple"/></inline-formula> does not depend on the right-hand side of the inhomogeneous Poisson equation. While the other methods use an inversion depending on the RHS of the differential equation. Also, this new solution is very economical with respect to the memory occupation. Then, the solution of the 1D Poisson equation can be got, plotted, and exploited without declaring or using an array in a programming code. That is a great improvement in term of efficient use of memory allocation. Now, we can verify the method, using a potential problem with ND boundary conditions.</p></sec><sec id="s5"><title>5. Verification with a Neumann-Dirichlet Potential Problem</title><p>We consider a scalar field<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x80.png" xlink:type="simple"/></inline-formula>, which satisfies</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x81.png" xlink:type="simple"/></inline-formula>,</p><p>in<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x82.png" xlink:type="simple"/></inline-formula>, where<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x83.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x83.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x84.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x83.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x84.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x85.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x83.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x84.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x85.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x86.png" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x83.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x84.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x85.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x86.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x87.png" xlink:type="simple"/></inline-formula> are specified real constants. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x83.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x84.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x85.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x86.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x87.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x88.png" xlink:type="simple"/></inline-formula>fulfills the Neumann-Dirichlet boundary conditions: the values <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x83.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x84.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x85.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x86.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x87.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x88.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x89.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x82.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x83.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x84.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x85.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x86.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x87.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x88.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x90.png" xlink:type="simple"/></inline-formula> are given. The exact solution is</p><disp-formula id="scirp.50042-formula809"><label>(16)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x91.png"  xlink:type="simple"/></disp-formula><p>We can apply the finite difference method, taking:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x92.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x93.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x94.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x95.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x96.png" xlink:type="simple"/></inline-formula>. We define the mesh according to <xref ref-type="fig" rid="fig1">Figure 1</xref>, with<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x97.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x97.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x98.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x97.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x98.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x99.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x97.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x98.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x99.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x100.png" xlink:type="simple"/></inline-formula>, and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x97.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x98.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x99.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x100.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x101.png" xlink:type="simple"/></inline-formula>. We consider inhomogeneous Neumann-Dirichlet Boundary conditions: <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x97.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x98.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x99.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x100.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x101.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x102.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x97.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x98.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x99.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x100.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x101.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x102.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x103.png" xlink:type="simple"/></inline-formula>.</p><p>Then, we compute the solution, with new method, given by Equation (15) and compare it with the exact potential (Equation (16)). Naturally, we also take into account the Equation (5).</p><p>We denote by <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x104.png" xlink:type="simple"/></inline-formula> the relative error at point<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x105.png" xlink:type="simple"/></inline-formula>, for<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x105.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x106.png" xlink:type="simple"/></inline-formula>. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x105.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x106.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x107.png" xlink:type="simple"/></inline-formula>is the potential value calculated with the new method i.e.<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x105.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x106.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x107.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x108.png" xlink:type="simple"/></inline-formula>, at mesh point<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x105.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x106.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x107.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x108.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x109.png" xlink:type="simple"/></inline-formula>.</p><p>For a given<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x110.png" xlink:type="simple"/></inline-formula>, the relative error is obtained according the follow relation:</p><disp-formula id="scirp.50042-formula810"><label>(17)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x111.png"  xlink:type="simple"/></disp-formula><p>The denote <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x112.png" xlink:type="simple"/></inline-formula> the average value of the relative error for a given<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x112.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x113.png" xlink:type="simple"/></inline-formula>. It is defined by:</p><disp-formula id="scirp.50042-formula811"><label>(18)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x114.png"  xlink:type="simple"/></disp-formula><p>It is calculated for the given parameters and its value is:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x115.png" xlink:type="simple"/></inline-formula>. This is a very good accuracy and corresponds to the results we expected.</p><p><xref ref-type="table" rid="table1">Table 1</xref> illustrates the potential<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x116.png" xlink:type="simple"/></inline-formula>, calculated at the position <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x116.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x117.png" xlink:type="simple"/></inline-formula> by the method of finite differences using</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Results of the Neumann-Dirichlet problem.</title></caption><table><tbody><thead><tr><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x118.png" xlink:type="simple"/></inline-formula></th></tr></thead></tbody></table></table-wrap><p>the centered approximation. It also gives the exact value of the potential<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x119.png" xlink:type="simple"/></inline-formula>, obtained by considering the Equation (16) and the relative error at mesh point<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x119.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x120.png" xlink:type="simple"/></inline-formula>.</p><p>We see that the solution of the ND boundary problem with the proposed method is also very accurate as shown in the table above.</p><p>At this stage, we are interested in the sensitivity of this method. We have shown the average relative error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x121.png" xlink:type="simple"/></inline-formula> for different values of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x121.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x122.png" xlink:type="simple"/></inline-formula>. Then, we got the curve shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>, which is a hyperbola. This func-</p><p>tion can be assumed to be proportional to<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x123.png" xlink:type="simple"/></inline-formula>.</p><p>A curve fitting of the sensibility can be given with:</p><disp-formula id="scirp.50042-formula812"><label>(19)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x124.png"  xlink:type="simple"/></disp-formula><p>where<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x125.png" xlink:type="simple"/></inline-formula>. The two curves are shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><p>The average relative error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x126.png" xlink:type="simple"/></inline-formula> behaves like a truncation error that we express in the following manner</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x127.png" xlink:type="simple"/></inline-formula>. <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x127.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x128.png" xlink:type="simple"/></inline-formula>is the fourth order derivative of the exact potential function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x127.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x128.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x129.png" xlink:type="simple"/></inline-formula> in a point (here<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x127.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x128.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x129.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x130.png" xlink:type="simple"/></inline-formula>), which belongs to the interval<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x127.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x128.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x129.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x130.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x131.png" xlink:type="simple"/></inline-formula>.</p><p>For the given function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x132.png" xlink:type="simple"/></inline-formula> and also the results from the fitting, we have [<xref ref-type="bibr" rid="scirp.50042-ref6">6</xref>] :</p><disp-formula id="scirp.50042-formula813"><label>(20)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x133.png"  xlink:type="simple"/></disp-formula></sec><sec id="s6"><title>6. Solution of Dirichlet-Neumann Problem</title><sec id="s6_1"><title>6.1. Discretization and Matrix Equation</title><p>As we proceeded in the case of boundary conditions of type ND; we will do the same for a DN problem. The first step is to find an adequate and comfortable discretization. We propose that of <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Sensibility for the Neumann-Dirichlet problem</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-9801534x134.png"/></fig><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Discretization for Dirichlet-Neumann boundary conditions</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-9801534x135.png"/></fig><p>Here, the mesh points <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x136.png" xlink:type="simple"/></inline-formula> are defined by the following relation:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x137.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x138.png" xlink:type="simple"/></inline-formula>. And, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x138.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x139.png" xlink:type="simple"/></inline-formula>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x138.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x140.png" xlink:type="simple"/></inline-formula> are given. The imaginary point is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x138.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x141.png" xlink:type="simple"/></inline-formula>. Its potential <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x136.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x137.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x138.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x139.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x140.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x141.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x142.png" xlink:type="simple"/></inline-formula> is eliminated analogically and it holds:</p><disp-formula id="scirp.50042-formula814"><label>(21)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x143.png"  xlink:type="simple"/></disp-formula><p>Thus, the vector <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x144.png" xlink:type="simple"/></inline-formula> can be defined:</p><disp-formula id="scirp.50042-formula815"><label>(22)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x145.png"  xlink:type="simple"/></disp-formula><p>Thus, the matrix equation becomes:</p><disp-formula id="scirp.50042-formula816"><label>(23)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x146.png"  xlink:type="simple"/></disp-formula><p>In the case of DN boundary conditions, the matrix <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x147.png" xlink:type="simple"/></inline-formula> is also symmetric, tridiagonal, diagonally dominant, and negative definite. With regard to the anti-diagonal, it is the symmetric of matrix<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x147.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x148.png" xlink:type="simple"/></inline-formula>, obtained in the case of Neumann-Dirichlet boundary conditions.</p></sec><sec id="s6_2"><title>6.2. Inverse Matrix and Closed Solution</title><p>Thus, the inverse matrix of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x149.png" xlink:type="simple"/></inline-formula> can be easily determined from that of the case of ND boundary conditions; using the symmetry in relation to the anti-diagonal. We obtain the beautiful and elegant matrix in <xref ref-type="fig" rid="fig5">Figure 5</xref>:</p><p>We call this impressive matrix<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x150.png" xlink:type="simple"/></inline-formula>, for Dirichlet-Neumann problem: Bira_DN-Matrix. Thus, the exact expression of the solution of the Poisson equation can be formulated in a very simple manner, as following:</p><disp-formula id="scirp.50042-formula817"><label>(24)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/6-9801534x151.png"  xlink:type="simple"/></disp-formula><p>This solution, given by the simple and extremely important Equation (24), can be easily computed, in one programming loop that give all the solutions.</p></sec></sec><sec id="s7"><title>7. Verification with a Dirichlet-Neumann Boundary Problem</title><p>We consider the same potential as that of the ND boundary problem, studied above. In this DN problem, the</p><p>boundary conditions are: <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x152.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x152.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x153.png" xlink:type="simple"/></inline-formula>. The exact solution is obtained by permuting <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x152.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x153.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x154.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x152.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x153.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x154.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x155.png" xlink:type="simple"/></inline-formula> in Equation (16).</p><p>We can apply the finite difference method, taking:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x156.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x156.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x157.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x156.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x157.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x158.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x156.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x157.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x159.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x156.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x157.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x159.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x160.png" xlink:type="simple"/></inline-formula>. We define the mesh according to <xref ref-type="fig" rid="fig4">Figure 4</xref>, with<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x156.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x157.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x159.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x160.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x161.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x156.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x157.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x159.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x160.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x161.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x162.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x156.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x157.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x159.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x160.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x161.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x162.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x163.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x156.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x157.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x158.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x159.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x160.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x161.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x162.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x163.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x164.png" xlink:type="simple"/></inline-formula>, and</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x165.png" xlink:type="simple"/></inline-formula>. We consider inhomogeneous DN Boundary conditions: <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x165.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x166.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x165.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x166.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x167.png" xlink:type="simple"/></inline-formula>.</p><p>Then, we compute the solution, of our new method, given by Equation (24) and compare it with the exact potential.</p><p><xref ref-type="table" rid="table2">Table 2</xref> shows the obtained results:</p><p>The solution of the DN problem is also very accurate as shown in <xref ref-type="table" rid="table2">Table 2</xref>:</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x168.png" xlink:type="simple"/></inline-formula>.</p><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Results of the Dirichlet-Neumann problem</title></caption><table><tbody><thead><tr><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x169.png" xlink:type="simple"/></inline-formula></th></tr></thead></tbody></table></table-wrap><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> Inverse matrix for Dirichlet-Neumann problem</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-9801534x170.png"/></fig><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> Sensibility for the Dirichlet-Neumann problem</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/6-9801534x171.png"/></fig><p>Now, the sensibility can be determined, for the DN boundary problem: the average relative error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x172.png" xlink:type="simple"/></inline-formula> is plotted for different values of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x172.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x173.png" xlink:type="simple"/></inline-formula>. Then, we got the hyperbola in <xref ref-type="fig" rid="fig6">Figure 6</xref>, which can be assumed to be proportional to<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x172.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x173.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x174.png" xlink:type="simple"/></inline-formula>.</p><p>A curve fitting of the sensibility can be given using Equation (20) with<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x175.png" xlink:type="simple"/></inline-formula>. The two curves are shown in <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p><p>The average relative error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x176.png" xlink:type="simple"/></inline-formula> goes like<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x176.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/6-9801534x177.png" xlink:type="simple"/></inline-formula>, which corresponds to the predicted truncation error.</p></sec><sec id="s8"><title>8. Conclusion</title><p>This study has determined two novels matrices independently of the RHS providing a new and exact formulation of the solution of the Neumann boundary problem, for the 1D Poisson equation. The presented results and methods constitute a great improvement in the field of solving similar equations: diffusion and wave equations, in the quasi-stationary case, using the FDM. They are direct, highly accurate, extremely fast, and economical in terms of memory occupation.</p></sec></body><back><ref-list><title>References</title><ref id="scirp.50042-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Gueye, S.B. (2014) The Exact Formulation of the Inverse of the Tridiagonal Matrix for Solving the 1D Poisson Equation with the Finite Difference Method. Accepted Manuscript (JEMAA, April 2014).</mixed-citation></ref><ref id="scirp.50042-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Engeln-Muellges, G. and Reutter, F. (1991) Formelsammlung zur Numerischen Mathematik mit QuickBasic-Programmen, Dritte Auflage, BI-Wissenchaftsverlag, 472-481.</mixed-citation></ref><ref id="scirp.50042-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Kreiss, H.O. (1972) Difference Approximations for Boundary and Eigenvalue Problems for Ordinary Differential Equations. Mathematics of Computation, 26, 605-624. http://dx.doi.org/10.1090/S0025-5718-1972-0373296-3</mixed-citation></ref><ref id="scirp.50042-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">LeVeque, R.J. (2007) Finite Difference Method for Ordinary and Partial Differential Equations, Steady State and Time Dependent Problems. SIAM, 15-16. http://dx.doi.org/10.1137/1.9780898717839</mixed-citation></ref><ref id="scirp.50042-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Conte, S.D. and de Boor, C. (1981) Elementary Numerical Analysis: An Algorithmic Approach. 3rd Edition, McGrawHill, New York, 153-157.</mixed-citation></ref><ref id="scirp.50042-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Mathews, J.H. and Fink, K.K. (2004) Numerical Methods Using Matlab. 4th Edition, 323-325, 339-342.</mixed-citation></ref></ref-list></back></article>