<?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">AM</journal-id><journal-title-group><journal-title>Applied Mathematics</journal-title></journal-title-group><issn pub-type="epub">2152-7385</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/am.2015.612185</article-id><article-id pub-id-type="publisher-id">AM-61548</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  A Computational Study with Finite Element Method and Finite Difference Method for 2D Elliptic Partial Differential Equations
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>eorge</surname><given-names>Papanikos</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>Maria</surname><given-names>Ch. Gousidou-Koutita</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>School of Mathematics, Aristotle University, Thessaloniki, Greece</addr-line></aff><pub-date pub-type="epub"><day>09</day><month>11</month><year>2015</year></pub-date><volume>06</volume><issue>12</issue><fpage>2104</fpage><lpage>2124</lpage><history><date date-type="received"><day>21</day>	<month>September</month>	<year>2015</year></date><date date-type="rev-recd"><day>accepted</day>	<month>27</month>	<year>November</year>	</date><date date-type="accepted"><day>30</day>	<month>November</month>	<year>2015</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>
 
 
  In this paper, we consider two methods, the Second order Central Difference Method (SCDM) and the Finite Element Method (FEM) with P
  <sub>1</sub> triangular elements, for solving two dimensional general linear Elliptic Partial Differential Equations (PDE) with mixed derivatives along with Dirichlet and Neumann boundary conditions. These two methods have almost the same accuracy from theoretical aspect with regular boundaries, but generally Finite Element Method produces better approximations when the boundaries are irregular. In order to investigate which method produces better results from numerical aspect, we apply these methods into specific examples with regular boundaries with constant step-size for both of them. The results which obtained confirm, in most of the cases, the theoretical results.
 
</p></abstract><kwd-group><kwd>Finite Element Method</kwd><kwd> Finite Difference Method</kwd><kwd> Gauss Numerical Quadrature</kwd><kwd> Dirichlet Boundary Conditions</kwd><kwd> Neumann Boundary Conditions</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Finite Difference schemes and Finite Element Methods are widely used for solving partial differential equations [<xref ref-type="bibr" rid="scirp.61548-ref1">1</xref>] . Finite Element Methods are time consuming compared to finite difference schemes and are used mostly in problems where the boundaries are irregular. In particularly, it is difficult to approximate derivatives with finite difference methods when the boundaries are irregular. Moreover, Finite Element methods are more complicated than Finite Difference schemes because they use various numerical methods such as interpolation, numerical integration and numerical methods for solving large linear systems (see [<xref ref-type="bibr" rid="scirp.61548-ref2">2</xref>] - [<xref ref-type="bibr" rid="scirp.61548-ref6">6</xref>] ). Also the mathematically derivation of Finite Element Methods come from the theory of Hilbert Space, and Sobolev Spaces as well as from variational principles and the weighted residual method (see [<xref ref-type="bibr" rid="scirp.61548-ref5">5</xref>] -[<xref ref-type="bibr" rid="scirp.61548-ref12">12</xref>] ).</p><p>In this paper, we will describe the Second order Central Difference Scheme and the Finite Element Method for solving general second order elliptic partial differential equations with regular boundary conditions on a rectangular domain. In addition, for both of these methods, we consider the Dirichlet and Neumann Boundary conditions, along the four sides of the rectangular area. Also, we make a brief error analysis for Finite element method. Moreover, for the finite element method, we site two other important numerical methods which are important in order that the algorithm can be performed.</p><p>These methods are the bilinear interpolation over a linear Lagrange element, Gauss quadrature and contour Gauss Quadrature on a triangular area. Furthermore, these two schemes lead to a linear system which we have to solve. For the purpose of this paper, we solve the outcome systems with Gauss-Seidel method which is briefly discussed. In the last section, we contacted a numerical study with Matlab R2015a. We apply these methods into specific elliptical problems, in order to test which of these methods produce better approximations when the Dirichlet and Neumann boundary conditions are imposed. Our results show us that the accuracy of these two methods depends on the kind of the elliptical problem and the type of boundary conditions. In Section 2, we study the Second order Central Difference Scheme. In Section 3, we give the Finite Element Method, bilinear interpolation in P<sub>1</sub>, Gauss Quadrature, Finite Element algorithm and error analysis. In Section 4, we give some numerical results, in Section 5, we give the conclusions and finally in Section 6 we give the relevant references.</p></sec><sec id="s2"><title>2. Second Order Central Difference Scheme</title><p>The second order general linear elliptic PDE of two variables x and y given as follow:</p><disp-formula id="scirp.61548-formula168"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x6.png"  xlink:type="simple"/></disp-formula><p>with u defined on a rectangular domain <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x7.png" xlink:type="simple"/></inline-formula> , it holds<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x8.png" xlink:type="simple"/></inline-formula>. Also</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x9.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x10.png" xlink:type="simple"/></inline-formula></p><p>Moreover in this paper two types of boundary conditions are considered:</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x11.png" xlink:type="simple"/></inline-formula> (Dirichlet Boundary Conditions).</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x12.png" xlink:type="simple"/></inline-formula> (Neumann Boundary Conditions).</p><p>The boundary <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x13.png" xlink:type="simple"/></inline-formula> and n is the normal vector along the boundaries.</p><p>We divide the rectangular domain Ω in a uniform Cartesian grid</p><disp-formula id="scirp.61548-formula169"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x14.png"  xlink:type="simple"/></disp-formula><p>where N , M are the numbers of grid points in x and y directions and</p><disp-formula id="scirp.61548-formula170"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x15.png"  xlink:type="simple"/></disp-formula><p>are the corresponding step sizes along the axes x and y. The discretize domain are shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>Using now the central difference approximation we can approximate the partial derivatives of the relation (1) as follows:</p><disp-formula id="scirp.61548-formula171"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x16.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.61548-formula172"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x17.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.61548-formula173"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x18.png"  xlink:type="simple"/></disp-formula><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Discrete domain</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/13-7402906x19.png"/></fig><disp-formula id="scirp.61548-formula174"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x20.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.61548-formula175"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x21.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x22.png" xlink:type="simple"/></inline-formula> are the truncation errors.</p><p>We now approximate the PDE (1) using the relations (2), (3), (4), (5), (6) and we obtain the second order central difference scheme:</p><disp-formula id="scirp.61548-formula176"><label>(7)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x23.png"  xlink:type="simple"/></disp-formula><p>With truncation error<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x24.png" xlink:type="simple"/></inline-formula>.</p><p>The relation (7) can be written as a linear system:</p><disp-formula id="scirp.61548-formula177"><label>(8)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x25.png"  xlink:type="simple"/></disp-formula><p>Dirichlet Boundary Conditions</p><p>The dimensions of the above linear system depends on the boundary conditions. More specific, if we have the Dirichlet Boundary Conditions:</p><disp-formula id="scirp.61548-formula178"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x26.png"  xlink:type="simple"/></disp-formula><p>then the dimensions of the matrix A, u and b are: <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x27.png" xlink:type="simple"/></inline-formula> for the vectors u, b and</p><disp-formula id="scirp.61548-formula179"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x28.png"  xlink:type="simple"/></disp-formula><p>for the matrix A. Moreover, the form of matrix A and the vector u are given by:</p><disp-formula id="scirp.61548-formula180"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x29.png"  xlink:type="simple"/></disp-formula><p>and</p><disp-formula id="scirp.61548-formula181"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x30.png"  xlink:type="simple"/></disp-formula><p>As we can see the matrix A is tri-diagonal block Matrix. These block matrices</p><disp-formula id="scirp.61548-formula182"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x31.png"  xlink:type="simple"/></disp-formula><p>are tri-diagonal as well of order <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x32.png" xlink:type="simple"/></inline-formula></p><p>Neumann Boundary Conditions</p><disp-formula id="scirp.61548-formula183"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x33.png"  xlink:type="simple"/></disp-formula><p>We approximate the Neumann boundary conditions in every side of the rectangular domain as follows</p><p>1<sup>st</sup> side (North side of the rectangular area)</p><disp-formula id="scirp.61548-formula184"><label>(9)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x34.png"  xlink:type="simple"/></disp-formula><p>2<sup>nd</sup> side (East side of the rectangular area)</p><disp-formula id="scirp.61548-formula185"><label>(10)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x35.png"  xlink:type="simple"/></disp-formula><p>3<sup>rd</sup> side (South side of the rectangular area)</p><disp-formula id="scirp.61548-formula186"><label>(11)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x36.png"  xlink:type="simple"/></disp-formula><p>4<sup>th</sup> side (West side of the rectangular area)</p><disp-formula id="scirp.61548-formula187"><label>(12)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x37.png"  xlink:type="simple"/></disp-formula><p>Using the relations (9), (10), (11), (12) the values <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x38.png" xlink:type="simple"/></inline-formula> which lies outside the rectangular domain can be eliminated when appeared in the linear system.</p><p>Thus the block tri-diagonal matrix A has dimensions <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x39.png" xlink:type="simple"/></inline-formula> and the vectors u, b are of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x40.png" xlink:type="simple"/></inline-formula> order. The matrix A and the vector u are given below:</p><disp-formula id="scirp.61548-formula188"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x41.png"  xlink:type="simple"/></disp-formula><p>and</p><disp-formula id="scirp.61548-formula189"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x42.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x43.png" xlink:type="simple"/></inline-formula> are tri-diagonal matrices with dimensions <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x44.png" xlink:type="simple"/></inline-formula> .</p><p>In order to solve the linear system (8), we use the Gauss-Seidel method (GSM) (see [<xref ref-type="bibr" rid="scirp.61548-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.61548-ref3">3</xref>] ). An important property that the matrix A must have is to be strictly diagonally dominant in order the GCM to converge.</p><p>Theorem 1</p><p>If A is strictly diagonally dominant, then for any choice of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x45.png" xlink:type="simple"/></inline-formula> , Gauss-Seidel method give sequence <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x46.png" xlink:type="simple"/></inline-formula></p><p>that converge to the unique solution of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x47.png" xlink:type="simple"/></inline-formula> .</p><p>The proof of theorem 1 can be found in [<xref ref-type="bibr" rid="scirp.61548-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.61548-ref3">3</xref>] .</p></sec><sec id="s3"><title>3. Finite Element Method</title><p>In this section we consider an alternative form of the general linear PDE (1)</p><disp-formula id="scirp.61548-formula190"><label>(13)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x48.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x49.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x49.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x50.png" xlink:type="simple"/></inline-formula> .</p><p>With boundary conditions</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x51.png" xlink:type="simple"/></inline-formula> (Dirichlet Boundary Conditions).</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x52.png" xlink:type="simple"/></inline-formula> (Neumann Boundary Conditions).</p><p>And the boundary <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x53.png" xlink:type="simple"/></inline-formula></p><p>In order to approximate the solution of (13) with FEM algorithm we must transform the PDE into its weak form and solve the following problem.</p><p>Find <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x54.png" xlink:type="simple"/></inline-formula></p><disp-formula id="scirp.61548-formula191"><label>(14)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x55.png"  xlink:type="simple"/></disp-formula><p>where</p><disp-formula id="scirp.61548-formula192"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x56.png"  xlink:type="simple"/></disp-formula><p>and</p><disp-formula id="scirp.61548-formula193"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x57.png"  xlink:type="simple"/></disp-formula><p>are bilinear and linear functionals as well.</p><p>It is sufficient now to consider that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x58.png" xlink:type="simple"/></inline-formula> , <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x58.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x59.png" xlink:type="simple"/></inline-formula> . Also we assume that</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x60.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x60.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x61.png" xlink:type="simple"/></inline-formula></p><p>when the Neumann boundary Conditions are applied <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x62.png" xlink:type="simple"/></inline-formula> , else if we have only Dirichlet Boundary</p><p>conditions then the line integral is equal to zero.</p><p>The finite element method approximates the solution of the partial differential Equation (13) by minimizing the functional:</p><disp-formula id="scirp.61548-formula194"><label>(15)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x63.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x64.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x64.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x65.png" xlink:type="simple"/></inline-formula> . Also with D we denote</p><p>the weak derivatives of u. The spaces <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x66.png" xlink:type="simple"/></inline-formula> , <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x66.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x67.png" xlink:type="simple"/></inline-formula> are Sobolev function spaces which also considered to be Hilbert spaces(see [<xref ref-type="bibr" rid="scirp.61548-ref7">7</xref>] -[<xref ref-type="bibr" rid="scirp.61548-ref9">9</xref>] ).</p><p>The uniqueness of the solution of weak form (14) depends on Lax-Milgram theorem along with trace theorem (see [<xref ref-type="bibr" rid="scirp.61548-ref7">7</xref>] ). In addition according to Rayleigh-Ritz theorem the solution of the problem (14) are reduced to minimization of the linear functional <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x68.png" xlink:type="simple"/></inline-formula> , (see [<xref ref-type="bibr" rid="scirp.61548-ref7">7</xref>] ).</p><p>The first step in order the FEM algorithm to be performed is the discretization of the rectangular domain <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x69.png" xlink:type="simple"/></inline-formula> by using Lagrange linear triangular elements.</p><p>We denote with P<sub>k</sub> the set of all polynomials of degree <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x70.png" xlink:type="simple"/></inline-formula> in two variables [<xref ref-type="bibr" rid="scirp.61548-ref7">7</xref>] . For k = 1 we have the linear Lagrange triangle and</p><disp-formula id="scirp.61548-formula195"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x71.png"  xlink:type="simple"/></disp-formula><p>Also the triangulation of the rectangular area should have the below properties:</p><p> We assume that the triangular elements<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x72.png" xlink:type="simple"/></inline-formula>, are open and disjoint, where h is the maximum diameter of the triangle element.</p><p> The vertices of the triangles all call nodes, we use the letter V for vertices and E for nodes.</p><p> We also assume that there are no nodes in the interior sides of triangles.</p><sec id="s3_1"><title>3.1. Bilinear Interpolation in P<sub>1</sub></title><p>Let as consider now the triangulation of the rectangular domain <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x73.png" xlink:type="simple"/></inline-formula> as we describe to a previous section. In every triangle T<sub>i</sub> of the domain we interpolate the function u with the below linear polynomial:</p><disp-formula id="scirp.61548-formula196"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x74.png"  xlink:type="simple"/></disp-formula><p>with interpolation conditions:</p><disp-formula id="scirp.61548-formula197"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x75.png"  xlink:type="simple"/></disp-formula><p>in every vertex <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x76.png" xlink:type="simple"/></inline-formula> of a triangular element.</p><p>Thus it creates the below linear system with unknown coefficients a, b, c.</p><disp-formula id="scirp.61548-formula198"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x77.png"  xlink:type="simple"/></disp-formula><p>Solving the system we find the approximate polynomial of u</p><disp-formula id="scirp.61548-formula199"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x78.png"  xlink:type="simple"/></disp-formula><p>where</p><disp-formula id="scirp.61548-formula200"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x79.png"  xlink:type="simple"/></disp-formula><p>and</p><disp-formula id="scirp.61548-formula201"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x80.png"  xlink:type="simple"/></disp-formula><p>The function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x81.png" xlink:type="simple"/></inline-formula> is the interpolation function or shape function and it has the following property:</p><disp-formula id="scirp.61548-formula202"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x82.png"  xlink:type="simple"/></disp-formula></sec><sec id="s3_2"><title>3.2. Gauss Quadrature</title><p>An important step in order to implement the Finite Element algorithm is to compute numerically the double and line integrals which occurs in every triangular element (see [<xref ref-type="bibr" rid="scirp.61548-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.61548-ref12">12</xref>] ).</p><p>Gauss Quadrature in Canonical Triangle</p><p>As a canonical triangle we consider the triangle with vertices (0, 0), (0, 1) and (1, 0) and we denote <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x83.png" xlink:type="simple"/></inline-formula> . The approximation rule of the double integral in canonical triangle is given below:</p><disp-formula id="scirp.61548-formula203"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x84.png"  xlink:type="simple"/></disp-formula><p>Where n<sub>g</sub> is the number of Gauss integration points, w<sub>i</sub> are the weights and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x85.png" xlink:type="simple"/></inline-formula> are the Gauss integration points.</p><p>The linear space P<sub>κ</sub> is the space of all linear polynomial of two variables of order k</p><p>The following <xref ref-type="table" rid="table1">Table 1</xref> gives the number of quadrature points for degrees 1 to 4 as given in Ref. [<xref ref-type="bibr" rid="scirp.61548-ref10">10</xref>] . It should be mentioned that for some N, the corresponding ng is not necessarily unique. (see [<xref ref-type="bibr" rid="scirp.61548-ref10">10</xref>] and references therein).</p><p>Gauss quadrature in general triangular element</p><p>Initially we transform the general triangle Τ into a canonical triangle using the linear basis functions:</p><disp-formula id="scirp.61548-formula204"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x86.png"  xlink:type="simple"/></disp-formula><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Quadrature points for degrees 1 to 4</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Quadrature points for degrees 1 to 4</th><th align="center" valign="middle"  colspan="3"  ></th></tr></thead><tr><td align="center" valign="middle" >N</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x87.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x88.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" >1</td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" >2</td><td align="center" valign="middle" >6</td><td align="center" valign="middle" >3</td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" >3</td><td align="center" valign="middle" >10</td><td align="center" valign="middle" >4</td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" >4</td><td align="center" valign="middle" >15</td><td align="center" valign="middle" >5</td></tr></tbody></table></table-wrap><p>The variables x, y for the random triangle can be written as affine map of basis functions:</p><disp-formula id="scirp.61548-formula205"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x89.png"  xlink:type="simple"/></disp-formula><p>Also we have the Jacobian determinant of the transformation</p><disp-formula id="scirp.61548-formula206"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x90.png"  xlink:type="simple"/></disp-formula><p>Using the above relations we obtain the Gauss quadrature rule for the general triangular element:</p><disp-formula id="scirp.61548-formula207"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x91.png"  xlink:type="simple"/></disp-formula><p>with</p><disp-formula id="scirp.61548-formula208"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x92.png"  xlink:type="simple"/></disp-formula><p>is the area of the triangle.</p><p>Contour quadrature rule</p><p>In the Finite Element Method when the Neumann boundary conditions are imposed it is essential to compute numerically the below Contour integral in general triangular area.</p><disp-formula id="scirp.61548-formula209"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x93.png"  xlink:type="simple"/></disp-formula><p>The basic idea is to transform the straight contour P<sub>i</sub>P<sub>j</sub> to an interval <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x94.png" xlink:type="simple"/></inline-formula> , and then the Gaussian quadrature for single variable function.</p><p>Using the basis functions we have the following relations in every side of the triangle</p><p>Along side 1 (P<sub>1</sub>P<sub>2</sub>) :</p><disp-formula id="scirp.61548-formula210"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x95.png"  xlink:type="simple"/></disp-formula><p>Along side 3: (P<sub>3</sub>P<sub>1</sub>):</p><disp-formula id="scirp.61548-formula211"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x96.png"  xlink:type="simple"/></disp-formula><p>Along side 2: (P<sub>2</sub>P<sub>3</sub>):</p><disp-formula id="scirp.61548-formula212"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x97.png"  xlink:type="simple"/></disp-formula><p>The error of the bilinear interpolation Gauss quadrature depend on the dimension of the polynomial subspace (see [<xref ref-type="bibr" rid="scirp.61548-ref11">11</xref>] ).</p></sec><sec id="s3_3"><title>3.3. Finite Element Algorithm</title><p>The Finite element algorithm has the purpose to find the approximate solution of the problem (15) in a subspace of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x98.png" xlink:type="simple"/></inline-formula> . We consider as subspace the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x98.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x99.png" xlink:type="simple"/></inline-formula> of all piecewise linear polynomials with two variables polynomials of degree one. i.e.:</p><disp-formula id="scirp.61548-formula213"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x100.png"  xlink:type="simple"/></disp-formula><p>The index i represents the number of triangular elements which exist in the rectangular domain. The polynomials must be piecewise because the linear combination of them must form a continuous and integrable function with continuous first and second derivatives.</p><p>The existence and uniqueness of the approximate solution is ensured by the Lax-Milgram-Galerkin and Rayleight- Ritz theorems (see [<xref ref-type="bibr" rid="scirp.61548-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.61548-ref7">7</xref>] [<xref ref-type="bibr" rid="scirp.61548-ref8">8</xref>] ).</p><p>Firstly as we describe in a previous section, we have to triangulate the domain before the algorithm evaluated.</p><p>After that the algorithm seeks approximation of the solution of the form:</p><disp-formula id="scirp.61548-formula214"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x101.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x102.png" xlink:type="simple"/></inline-formula> is the linear combination of independent piecewise linear polynomials and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x102.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x103.png" xlink:type="simple"/></inline-formula> are constants with m is the number of nodes. Actually, the polynomials <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x102.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x103.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x104.png" xlink:type="simple"/></inline-formula> corresponds to shape functions <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x102.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x103.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x105.png" xlink:type="simple"/></inline-formula> in every vertex of the triangles. Thus the approximate solution is the linear combination of all the independent interpolation functions multiplied with some constant <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x102.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x103.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x105.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x106.png" xlink:type="simple"/></inline-formula> . Some of these constants for example, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x102.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x103.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x105.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x106.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x107.png" xlink:type="simple"/></inline-formula> are used to ensure that the Dirichlet boundary conditions if there are exist</p><disp-formula id="scirp.61548-formula215"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x108.png"  xlink:type="simple"/></disp-formula><p>are satisfied on <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x109.png" xlink:type="simple"/></inline-formula> and the remaining constants <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x109.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x110.png" xlink:type="simple"/></inline-formula> are used to minimize the functional<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x109.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x110.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x111.png" xlink:type="simple"/></inline-formula>.</p><p>Inserting the approximate solution <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x112.png" xlink:type="simple"/></inline-formula> for v into the functional <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x112.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x113.png" xlink:type="simple"/></inline-formula> and we have:</p><disp-formula id="scirp.61548-formula216"><label>(16)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x114.png"  xlink:type="simple"/></disp-formula><p>Consider J as a function of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x115.png" xlink:type="simple"/></inline-formula> . For minimum to occur we must have</p><disp-formula id="scirp.61548-formula217"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x116.png"  xlink:type="simple"/></disp-formula><p>Differentiating (16) gives</p><disp-formula id="scirp.61548-formula218"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x117.png"  xlink:type="simple"/></disp-formula><p>for each <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x118.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x118.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x119.png" xlink:type="simple"/></inline-formula> .This set of equations can be written as a linear system:</p><disp-formula id="scirp.61548-formula219"><label>(17)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x120.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x121.png" xlink:type="simple"/></inline-formula> , <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x121.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x122.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x121.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x122.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x123.png" xlink:type="simple"/></inline-formula> are defined by</p><disp-formula id="scirp.61548-formula220"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x124.png"  xlink:type="simple"/></disp-formula><p>for each <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x125.png" xlink:type="simple"/></inline-formula> <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x125.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x126.png" xlink:type="simple"/></inline-formula> .</p><disp-formula id="scirp.61548-formula221"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x127.png"  xlink:type="simple"/></disp-formula><p>The choice of subspace <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x128.png" xlink:type="simple"/></inline-formula> for our approximation is important because can ensure us that the matrix A will be positive definite and band( [<xref ref-type="bibr" rid="scirp.61548-ref2">2</xref>] -[<xref ref-type="bibr" rid="scirp.61548-ref4">4</xref>] ). According to the previous analysis leads again to a linear system, which can be solved as we described in a previous section with Gauss-Seidel Method (see [<xref ref-type="bibr" rid="scirp.61548-ref2">2</xref>] -[<xref ref-type="bibr" rid="scirp.61548-ref4">4</xref>] ).</p></sec><sec id="s3_4"><title>3.4. Error Analysis</title><p>Let us consider again the problem (14)</p><p>Find <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x129.png" xlink:type="simple"/></inline-formula> :</p><disp-formula id="scirp.61548-formula222"><label>(18)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x130.png"  xlink:type="simple"/></disp-formula><p>The approximation of finite element of the problem (18) is given below:</p><p>Find <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x131.png" xlink:type="simple"/></inline-formula> :</p><disp-formula id="scirp.61548-formula223"><label>(19)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x132.png"  xlink:type="simple"/></disp-formula><p>Cea’s lemma</p><p>The finite element approximation <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x133.png" xlink:type="simple"/></inline-formula> of the weak solution <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x133.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x134.png" xlink:type="simple"/></inline-formula> is the best fit to in the norm <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x133.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x134.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x135.png" xlink:type="simple"/></inline-formula> i.e:</p><disp-formula id="scirp.61548-formula224"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x136.png"  xlink:type="simple"/></disp-formula><p>The error analysis of finite element method depend on the Cea’s lemma for elliptic boundary value problems. The proof can be found in [<xref ref-type="bibr" rid="scirp.61548-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.61548-ref7">7</xref>] .</p><p>Now we will present without proof the following statement [<xref ref-type="bibr" rid="scirp.61548-ref7">7</xref>] .</p><disp-formula id="scirp.61548-formula225"><label>(20)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x137.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x138.png" xlink:type="simple"/></inline-formula> is positive constant dependent on the smoothness of the function u, h is the mesh size parameter and s is a positive real number, dependent on the smoothness of u and the degree of the piecewise polynomials comprising in <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x138.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x139.png" xlink:type="simple"/></inline-formula> . In our case we have the Lagrange linear elements so the degree of the piecewise polynomials is one. Combining, relations Cea’s lemma we shall be able to deduce that:</p><disp-formula id="scirp.61548-formula226"><label>(21)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/13-7402906x140.png"  xlink:type="simple"/></disp-formula><p>The relation (21) gives a bound of the global error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x141.png" xlink:type="simple"/></inline-formula> in terms of the size mesh parameter h . Such a bound on the global error is called priori error bound.</p><p>L<sub>2</sub>-norm</p><p>For proving an error estimate in L<sub>2</sub>-norm the regularity of the solution of (13) plays an essential role. By the Aubin-Nitsche duality argument the error estimate in L<sub>2</sub> norm between u and its finite element approximation <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x142.png" xlink:type="simple"/></inline-formula> is<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x143.png" xlink:type="simple"/></inline-formula>. However this bound can be improved to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x143.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x144.png" xlink:type="simple"/></inline-formula> , (see [<xref ref-type="bibr" rid="scirp.61548-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.61548-ref7">7</xref>] ).</p></sec></sec><sec id="s4"><title>4. Numerical Study</title><p>In this section we contact a numerical study using Matlab R2015a. For the purpose of this paper we cite representative examples of second order general elliptic partial differential equations in order to make comparisons between these two methods with various step-sizes and the mesh size parameters of finite element method. Thus in each example we present results for the absolute and relevant absolute errors in L<sub>2</sub> norm along with their graphs. Also we make graphical representations of the exact and approximate solution of the specific problem as well.</p><p>The problems of the examples can be found in [<xref ref-type="bibr" rid="scirp.61548-ref13">13</xref>] [<xref ref-type="bibr" rid="scirp.61548-ref14">14</xref>] .</p><p>Example 1</p><p>Find the approximate solution of the partial differential equation</p><disp-formula id="scirp.61548-formula227"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x145.png"  xlink:type="simple"/></disp-formula><p>with Dirichlet boundary conditions along the rectangular domain</p><disp-formula id="scirp.61548-formula228"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x146.png"  xlink:type="simple"/></disp-formula><p>and exact solution</p><disp-formula id="scirp.61548-formula229"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x147.png"  xlink:type="simple"/></disp-formula><p>Results (<xref ref-type="table" rid="table2">Table 2</xref> and <xref ref-type="table" rid="table3">Table 3</xref>)</p><p>In <xref ref-type="fig" rid="fig2">Figure 2</xref> and <xref ref-type="fig" rid="fig3">Figure 3</xref> we have the graphs for SCDM and in <xref ref-type="fig" rid="fig4">Figure 4</xref> and <xref ref-type="fig" rid="fig5">Figure 5</xref> for FEM.</p><p>Example 2</p><p>Find the approximate solution of the partial differential equation</p><disp-formula id="scirp.61548-formula230"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x148.png"  xlink:type="simple"/></disp-formula><p>with Dirichlet boundary conditions along the rectangular domain</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x149.png" xlink:type="simple"/></inline-formula> on three lower side of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x149.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x150.png" xlink:type="simple"/></inline-formula> and Neumann boundary condition</p><disp-formula id="scirp.61548-formula231"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x151.png"  xlink:type="simple"/></disp-formula><p>and exact solution</p><disp-formula id="scirp.61548-formula232"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x152.png"  xlink:type="simple"/></disp-formula><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Numerical results</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >x</th><th align="center" valign="middle"  rowspan="2"  >y</th><th align="center" valign="middle"  colspan="2"  >Second order central difference scheme with steps <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x153.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle"  colspan="2"  >Finite element method with mesh size <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x154.png" xlink:type="simple"/></inline-formula></th></tr></thead><tr><td align="center" valign="middle" >Absolute error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x155.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Relevant error % <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x156.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Absolute error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x157.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Relevant error % <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x158.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1.1</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >4.440e−16</td><td align="center" valign="middle" >1.7411e−14</td></tr><tr><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.2</td><td align="center" valign="middle" >0.00029</td><td align="center" valign="middle" >0.01011</td><td align="center" valign="middle" >2.397e−05</td><td align="center" valign="middle" >0.0008257</td></tr><tr><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >1.3</td><td align="center" valign="middle" >0.00064</td><td align="center" valign="middle" >0.01969</td><td align="center" valign="middle" >0.001966</td><td align="center" valign="middle" >0.0601573</td></tr><tr><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >1.4</td><td align="center" valign="middle" >0.00104</td><td align="center" valign="middle" >0.02857</td><td align="center" valign="middle" >0.001066</td><td align="center" valign="middle" >0.0292564</td></tr><tr><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >1.5</td><td align="center" valign="middle" >0.00147</td><td align="center" valign="middle" >0.03664</td><td align="center" valign="middle" >0.000245</td><td align="center" valign="middle" >0.0060951</td></tr><tr><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >1.6</td><td align="center" valign="middle" >0.00192</td><td align="center" valign="middle" >0.04386</td><td align="center" valign="middle" >0.000144</td><td align="center" valign="middle" >0.0032965</td></tr><tr><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.00238</td><td align="center" valign="middle" >0.05022</td><td align="center" valign="middle" >0.000865</td><td align="center" valign="middle" >0.0182061</td></tr><tr><td align="center" valign="middle" >0.7</td><td align="center" valign="middle" >1.8</td><td align="center" valign="middle" >0.00283</td><td align="center" valign="middle" >0.05574</td><td align="center" valign="middle" >0.001287</td><td align="center" valign="middle" >0.0253187</td></tr><tr><td align="center" valign="middle" >0.8</td><td align="center" valign="middle" >1.9</td><td align="center" valign="middle" >0.00325</td><td align="center" valign="middle" >0.06045</td><td align="center" valign="middle" >0.000344</td><td align="center" valign="middle" >0.0064075</td></tr></tbody></table></table-wrap><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Numerical results</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >x</th><th align="center" valign="middle"  rowspan="2"  >y</th><th align="center" valign="middle"  colspan="2"  >Second order central difference scheme with steps <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x159.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle"  colspan="2"  >Finite element method with mesh size <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x160.png" xlink:type="simple"/></inline-formula></th></tr></thead><tr><td align="center" valign="middle" >Absolute error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x161.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Relevant error % <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x162.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Absolute error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x163.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Relevant error % <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x164.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >0</td><td align="center" valign="middle" >1.1</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >3.996e−15</td><td align="center" valign="middle" >1.567e−13</td></tr><tr><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >1.2</td><td align="center" valign="middle" >1.6938e−05</td><td align="center" valign="middle" >0.00058345</td><td align="center" valign="middle" >0.0004007</td><td align="center" valign="middle" >0.0138044</td></tr><tr><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >1.3</td><td align="center" valign="middle" >5.3296e−05</td><td align="center" valign="middle" >0.00163013</td><td align="center" valign="middle" >3.983e−05</td><td align="center" valign="middle" >0.0012183</td></tr><tr><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >1.4</td><td align="center" valign="middle" >0.0001093</td><td align="center" valign="middle" >0.00300047</td><td align="center" valign="middle" >0.0007643</td><td align="center" valign="middle" >0.0209714</td></tr><tr><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >1.5</td><td align="center" valign="middle" >0.0001838</td><td align="center" valign="middle" >0.00457142</td><td align="center" valign="middle" >0.0001906</td><td align="center" valign="middle" >0.0047409</td></tr><tr><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >1.6</td><td align="center" valign="middle" >0.0002743</td><td align="center" valign="middle" >0.00624182</td><td align="center" valign="middle" >0.0002270</td><td align="center" valign="middle" >0.0051663</td></tr><tr><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >1.7</td><td align="center" valign="middle" >0.0003771</td><td align="center" valign="middle" >0.00793478</td><td align="center" valign="middle" >3.955e−05</td><td align="center" valign="middle" >0.0008322</td></tr><tr><td align="center" valign="middle" >0.7</td><td align="center" valign="middle" >1.8</td><td align="center" valign="middle" >0.0004880</td><td align="center" valign="middle" >0.00959848</td><td align="center" valign="middle" >0.0003905</td><td align="center" valign="middle" >0.0076820</td></tr><tr><td align="center" valign="middle" >0.8</td><td align="center" valign="middle" >1.9</td><td align="center" valign="middle" >0.0006026</td><td align="center" valign="middle" >0.01120612</td><td align="center" valign="middle" >0.0005635</td><td align="center" valign="middle" >0.0104793</td></tr></tbody></table></table-wrap><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> SCDM graphs</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/13-7402906x165.png"/></fig><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> SCDM graphs</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/13-7402906x166.png"/></fig><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> FEM graphs</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/13-7402906x167.png"/></fig><p>Approximate solution with h = 0.05 Exact solution with h = 0.05</p><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> FEM graphs</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/13-7402906x168.png"/></fig><p>Results (<xref ref-type="table" rid="table4">Table 4</xref> and <xref ref-type="table" rid="table5">Table 5</xref>)</p><p>In <xref ref-type="fig" rid="fig6">Figure 6</xref> and <xref ref-type="fig" rid="fig7">Figure 7</xref> we have the graphs for SCDM and in <xref ref-type="fig" rid="fig8">Figure 8</xref> and <xref ref-type="fig" rid="fig9">Figure 9</xref> for FEM.</p><p>Example 3</p><p>Find the approximate solution of the partial differential equation</p><disp-formula id="scirp.61548-formula233"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x169.png"  xlink:type="simple"/></disp-formula><p>with Dirichlet boundary conditions along the rectangular domain</p><disp-formula id="scirp.61548-formula234"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x170.png"  xlink:type="simple"/></disp-formula><p>and exact solution</p><disp-formula id="scirp.61548-formula235"><graphic  xlink:href="http://html.scirp.org/file/13-7402906x171.png"  xlink:type="simple"/></disp-formula><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Numerical results</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >x</th><th align="center" valign="middle"  rowspan="2"  >y</th><th align="center" valign="middle"  colspan="2"  >Second order central difference scheme with steps <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x172.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle"  colspan="2"  >Finite element method with mesh size <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x173.png" xlink:type="simple"/></inline-formula></th></tr></thead><tr><td align="center" valign="middle" >Absolute error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x174.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Relevant error % <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x175.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Absolute error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x176.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Relevant error % <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x177.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.0006443</td><td align="center" valign="middle" >0.6748022</td><td align="center" valign="middle" >0.0027122</td><td align="center" valign="middle" >2.8403167</td></tr><tr><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.0018062</td><td align="center" valign="middle" >0.6768951</td><td align="center" valign="middle" >0.0020439</td><td align="center" valign="middle" >0.7659463</td></tr><tr><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.0032278</td><td align="center" valign="middle" >0.6787855</td><td align="center" valign="middle" >0.0047468</td><td align="center" valign="middle" >0.9982314</td></tr><tr><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >0.0045763</td><td align="center" valign="middle" >0.6805024</td><td align="center" valign="middle" >0.0065150</td><td align="center" valign="middle" >0.9687808</td></tr><tr><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >0.0055180</td><td align="center" valign="middle" >0.6820655</td><td align="center" valign="middle" >0.0059924</td><td align="center" valign="middle" >0.7407062</td></tr><tr><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >0.7</td><td align="center" valign="middle" >0.0057918</td><td align="center" valign="middle" >0.6834860</td><td align="center" valign="middle" >0.0026841</td><td align="center" valign="middle" >0.3167555</td></tr></tbody></table></table-wrap><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> Numerical results</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >x</th><th align="center" valign="middle"  rowspan="2"  >y</th><th align="center" valign="middle"  colspan="2"  >Second order central difference scheme with steps <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x178.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle"  colspan="2"  >Finite element method with mesh size <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x179.png" xlink:type="simple"/></inline-formula></th></tr></thead><tr><td align="center" valign="middle" >Absolute error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x180.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Relevant error % <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x181.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Absolute error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x182.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Relevant error % <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x183.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >9.4027e−05</td><td align="center" valign="middle" >0.0984664</td><td align="center" valign="middle" >0.0009176</td><td align="center" valign="middle" >0.9609699</td></tr><tr><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.0002686</td><td align="center" valign="middle" >0.1006831</td><td align="center" valign="middle" >0.0032602</td><td align="center" valign="middle" >1.2217428</td></tr><tr><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.0004890</td><td align="center" valign="middle" >0.1028373</td><td align="center" valign="middle" >0.0042003</td><td align="center" valign="middle" >0.8833012</td></tr><tr><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >0.0007056</td><td align="center" valign="middle" >0.1049364</td><td align="center" valign="middle" >0.0042126</td><td align="center" valign="middle" >0.6264231</td></tr><tr><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >0.0008655</td><td align="center" valign="middle" >0.1069866</td><td align="center" valign="middle" >0.0036606</td><td align="center" valign="middle" >0.4524755</td></tr><tr><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >0.7</td><td align="center" valign="middle" >0.0009235</td><td align="center" valign="middle" >0.1089924</td><td align="center" valign="middle" >0.0011581</td><td align="center" valign="middle" >0.1366761</td></tr></tbody></table></table-wrap><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> SCDM graphs</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/13-7402906x184.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> SCDM graphs</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/13-7402906x185.png"/></fig><fig id="fig8"  position="float"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> FEM graphs</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/13-7402906x186.png"/></fig><p>Approximate solution with h = 0.05 Exact solution with h = 0.05</p><fig id="fig9"  position="float"><label><xref ref-type="fig" rid="fig9">Figure 9</xref></label><caption><title> FEM graphs</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/13-7402906x187.png"/></fig><p>Results (<xref ref-type="table" rid="table6">Table 6</xref> and <xref ref-type="table" rid="table7">Table 7</xref>)</p><p>In <xref ref-type="fig" rid="fig1">Figure 1</xref>0 and <xref ref-type="fig" rid="fig1">Figure 1</xref>1 we have the graphs for SCDM and in <xref ref-type="fig" rid="fig1">Figure 1</xref>2 and <xref ref-type="fig" rid="fig1">Figure 1</xref>3 for FEM.</p><p>Overall, what stands out from these examples is that the finite element method has better approximations for the first problem compared to finite difference method for all the step-sizes that we have. But in the second problem we have a small difference in the results with better accuracy for the finite difference method and in the third problem the finite element method has bigger relevant errors than the difference method. More specifically, in example 1 according to the tables we have better approximations for the finite element method in both of step sizes and the mesh size parameters to specific points but the graphs of the percentage of relevant errors suggest that the second order central finite difference scheme produce better approximations generally. On the other hand, in the other two examples according to the tables and the graphs of errors in the second problem we have a small difference between these methods and in the third problem we have better approximations of the second order central difference scheme almost in all points of the domain. Conclusively, we can notice that in the third example for both of these methods the results which we obtained are almost identical when different step sizes are applied in CFDM and mesh size parameters in FEM.</p><table-wrap id="table6" ><label><xref ref-type="table" rid="table6">Table 6</xref></label><caption><title> Numerical results</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >x</th><th align="center" valign="middle"  rowspan="2"  >y</th><th align="center" valign="middle"  colspan="2"  >Second order central difference scheme with steps <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x188.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle"  colspan="2"  >Finite element method with mesh size <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x189.png" xlink:type="simple"/></inline-formula></th></tr></thead><tr><td align="center" valign="middle" >Absolute error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x190.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Relevant error % <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x191.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Absolute error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x192.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Relevant error % <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x193.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.0046708</td><td align="center" valign="middle" >2.3176755</td><td align="center" valign="middle" >0.0134396</td><td align="center" valign="middle" >6.6687403</td></tr><tr><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.0120560</td><td align="center" valign="middle" >4.4238110</td><td align="center" valign="middle" >0.0287555</td><td align="center" valign="middle" >10.551476</td></tr><tr><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.0189313</td><td align="center" valign="middle" >5.1426837</td><td align="center" valign="middle" >0.0383096</td><td align="center" valign="middle" >10.406785</td></tr><tr><td align="center" valign="middle" >0.8</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >0.0193264</td><td align="center" valign="middle" >3.8954666</td><td align="center" valign="middle" >0.0334284</td><td align="center" valign="middle" >6.7378980</td></tr><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >2.886e−15</td><td align="center" valign="middle" >4.3169e−13</td></tr></tbody></table></table-wrap><table-wrap id="table7" ><label><xref ref-type="table" rid="table7">Table 7</xref></label><caption><title> Numerical results</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >x</th><th align="center" valign="middle"  rowspan="2"  >y</th><th align="center" valign="middle"  colspan="2"  >Second order central difference scheme with steps <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x194.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle"  colspan="2"  >Finite element method with mesh size <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x195.png" xlink:type="simple"/></inline-formula></th></tr></thead><tr><td align="center" valign="middle" >Absolute error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x196.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Relevant error % <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x197.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Absolute error <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x198.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Relevant error % <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/13-7402906x199.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td><td align="center" valign="middle" >0</td></tr><tr><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >9.4027e−05</td><td align="center" valign="middle" >0.0984664</td><td align="center" valign="middle" >0.0009176</td><td align="center" valign="middle" >0.9609699</td></tr><tr><td align="center" valign="middle" >0.2</td><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.0002686</td><td align="center" valign="middle" >0.1006831</td><td align="center" valign="middle" >0.0032602</td><td align="center" valign="middle" >1.2217428</td></tr><tr><td align="center" valign="middle" >0.3</td><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.0004890</td><td align="center" valign="middle" >0.1028373</td><td align="center" valign="middle" >0.0042003</td><td align="center" valign="middle" >0.8833012</td></tr><tr><td align="center" valign="middle" >0.4</td><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >0.0007056</td><td align="center" valign="middle" >0.1049364</td><td align="center" valign="middle" >0.0042126</td><td align="center" valign="middle" >0.6264231</td></tr><tr><td align="center" valign="middle" >0.5</td><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >0.0008655</td><td align="center" valign="middle" >0.1069866</td><td align="center" valign="middle" >0.0036606</td><td align="center" valign="middle" >0.4524755</td></tr><tr><td align="center" valign="middle" >0.6</td><td align="center" valign="middle" >0.7</td><td align="center" valign="middle" >0.0009235</td><td align="center" valign="middle" >0.1089924</td><td align="center" valign="middle" >0.0011581</td><td align="center" valign="middle" >0.1366761</td></tr></tbody></table></table-wrap><fig id="fig10"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>0</label><caption><title> SCDM graphs</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/13-7402906x200.png"/></fig><fig id="fig11"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>1</label><caption><title> SCDM graphs</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/13-7402906x201.png"/></fig><fig id="fig12"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>2</label><caption><title> FEM graphs</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/13-7402906x202.png"/></fig><fig id="fig13"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>3</label><caption><title> FEM graphs</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/13-7402906x203.png"/></fig></sec><sec id="s5"><title>5. Conclusion</title><p>Finally, we can say that the data which we obtained from these examples show that both of these methods produce quite sufficient approximations for our problems. Also the results prove that the accuracy of them depends on the kind of the elliptical problem and the type of boundary conditions. For further research, the approximations of these methods can be improved. This improvement can be made if in the second order difference scheme we keep more taylor series terms in order to approximate the derivatives and in finite element method if we use higher order elements such as quadratic Lagrange triangular elements or cubic Hermite triangular elements.</p></sec><sec id="s6"><title>Cite this paper</title><p>GeorgePapanikos,Maria Ch.Gousidou-Koutita, (2015) A Computational Study with Finite Element Method and Finite Difference Method for 2D Elliptic Partial Differential Equations. Applied Mathematics,06,2104-2124. doi: 10.4236/am.2015.612185</p></sec></body><back><ref-list><title>References</title><ref id="scirp.61548-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">McDonough, J.M. (2008) Lectures on Computational Numerical Analysis of Partial Differential Equations.  
http://www.engr.uky.edu/~acfd/me690-lctr-nts.pdf</mixed-citation></ref><ref id="scirp.61548-ref2"><label>2</label><mixed-citation publication-type="book" xlink:type="simple">Gousidou-Koutita, M.C. (2014) Computational Mathematics. Tziolas, Ed.</mixed-citation></ref><ref id="scirp.61548-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Gousidou-Koutita, M.C. (2009) Numerical Methods with Applications to Ordinary and Partial Differential Equations. Notes, Department of Mathematics, Aristotle University of Thessaloniki, Thessaloniki.</mixed-citation></ref><ref id="scirp.61548-ref4"><label>4</label><mixed-citation publication-type="book" xlink:type="simple">Gousidou-Koutita, M.C. (2004) Numerical Analysis. Christodoulidis, K., Ed.</mixed-citation></ref><ref id="scirp.61548-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Dunavant, D.A. (1985) High Degree Efficient Symmetrical Gaussian Quadrature Rules for the Triangle. International Journal for Numerical Methods in Engineering, 21, 1129-1148. http://dx.doi.org/10.1002/nme.1620210612</mixed-citation></ref><ref id="scirp.61548-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Reynolds, A.C., Burden, R.L. and Faires, J.D. (1981) Numerical Analysis. Second Edition. Youngstown State University, Youngstown.</mixed-citation></ref><ref id="scirp.61548-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Dougalis, V.A. (2013) Finite Element Method for the Numerical Solution of Partial Differential Equations. Revised Edition, Department of Mathematics, University of Athens, Zografou and Institute of Applied Mathematics and Computational Mathematics, FORTH, Heraklion.</mixed-citation></ref><ref id="scirp.61548-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Suli, E. (2012) Lecture Notes on Finite Element Method for Partial Differential Equations. Mathematical Institute, University of Oxford, Oxford.</mixed-citation></ref><ref id="scirp.61548-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Everstine, G.C. (2010) Numerical Solution of Partial Differential Equations. George Washington University, Washington DC.</mixed-citation></ref><ref id="scirp.61548-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Szabó, B. and Babuska, I. (1991) Finite Element Analysis. Wiley, New York.</mixed-citation></ref><ref id="scirp.61548-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Isaacson, E. and Keller, H.B. (1996) Analysis of Numerical Methods. John Wiley and Sons, New York.</mixed-citation></ref><ref id="scirp.61548-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Papanikos, G. (2015) Numerical Study with Methods of Characteristic Curves and Finite Element for Solving Partial Differential Equations with Matlab. Master’s Thesis.</mixed-citation></ref><ref id="scirp.61548-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Yang, W.Y., Cao, W., Chung, T.S. and Morri, J. (2005) Applied Numerical Methods Using MATLAB. John Wiley &amp; Sons, Hoboken.</mixed-citation></ref><ref id="scirp.61548-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Gropp, W.D. and Keyest, D.E. (1989) Domain Decomposition with Local Refinement. Research Report YALEU/DCS/ RR-726.</mixed-citation></ref></ref-list></back></article>