The one dimensional heat equation, namely, Finite difference algorithm for solving parabolic partial differential equation Ali jala Ali ππ’ ππ‘ π2 π’ = πΌ 2 ππ₯ 2 Where, πΌ 2 …………………………….. (2) π = ππ is an example of parabolic equation Email:alijalal2012jalal@gmail.com πΌ2 = ππ’ 1 π , the equation (1.20), becomes, π2 π’ ππ₯ 2 − π ππ‘ = 0, I. Abstract Hereπ΄ = 1, π΅ = 0, πΆ = 0, Many partial differential equations cannot ∴ π΅ 2 − 4π΄πΆ = 0. Therefore, it is parabolic in all points. be solved by analytical methods in closed form solution. In most of the research work in fields like, applied elasticity, theory of plates and shells, hydrodynamics, quantum mechanics etc., the research problems The solution of this equation is a temperature function π’ (π₯, π‘) which is defined for values of π₯ from 0 to π and for values of time t from 0to ∞. The solution is not defined in a closed domain but advances in an open-ended region from initial values, satisfying the prescribed boundary reduce to partial differential equations. Since analytical solutions are not available, we go in for numerical solution of the partial differential equations by various methods. Key words: partial differential equations, hydrodynamics, applied elasticity. II. Introduction. Fig(1) The general linear partial differential equation of the second order in two independent variables is of the form: Such partial equation is said to be: Satisfying the prescribed boundary conditions in general, the study of pressure waves in a fluid propagation of heat and unsteady state problems lead to parabolic type of equations. In this paper we are studying the finite difference algorithm for solving parabolic partial differential equation. (1)Elliptic if π΅ 2 III. Review of literature: π2 π’ π΄ (π₯, π¦)ππ₯ 2 + π΅ (π₯, π¦) + π2 π’ π2 π’ + ππ₯ππ¦ ππ’ ππ’ πΆ(π₯, π¦) ππ¦ 2 + πΉ (π₯, π¦, π’, ππ₯ , ππ¦) = 0 … (1) − 4 π΄πΆ < 0, (2) Parabolic if π΅ − 4 π΄πΆ = 0, 2 (3)Hyperbolic if 2 π΅ − 4 π΄πΆ > 0, Studied on analysis of stability for Lambert's method based on Euler's rule. They showed that the three nonlinear dynamic Euler ordinary differential equations (ODEs), concerning the motion of a rigid body free to rotate about a fixed point, are reduced, by means of a subsidiary function which is to be determined, to three Abel equations of the second kind of the normal form H. Hayashi, T. Mitsui Further (1996). studied many numerical methods to solve a partial differential equation (PDE), for example, finite difference method (FDM), finite volume method (FVM), finite element method (FEM), and so on. Here he mainly illustrates those schemes, ideas and concepts that have invented the development of FDM. The related techniques will be introduced in an easier way as possible, by the detailed presentation of scheme and the theory analysis for some simple model situations .These contents will be introduced to parabolic equation, hyperbolic equation and elliptic equation respectively. The rest part is the main body of his work, in which we would like to begin with the FDMs for the time-dependent problems. In the Second World War, when large-scale practical applications became possible with the aid of computers. A major role was played by the work of von Neumann, partly reported in Zhang. Q ( 2005). On the basis of available literature we have studied different methods of finite to solve Nicolson method, Iterative method, and Du fort Frankle method) in one dimensional heat equation And (ADE) (Alternating Direction Explicit ) method for two dimensional heat equation. IV. Results and discussion: 1. Two dimensional heat equation The heat-conduction equation can be applied to more than one spatial dimension. For two dimensions, its form is: ππ’ ππ‘ π2 π’ π2 π’ ππ₯ π 2π ππ¦ 2 = πΌ( + 2 )Where,πΌ = β2 Example: 1 (solve one dimensional heat equation) Find the analytical solution of the parabolic equation π’π₯π₯ = 2π’π‘ when π’(0, π‘) = π’(4, π‘) = 0 and π’(π₯, 0) = π₯(4 − π₯), takingβ = 1, 1 2 and π = , 2 Find the values up to π‘ = 5 Solution: V.METHODOLOGY: difference The methods are (Schmidt method, Crank- one dimensional parabolic differential equation and two dimensional parabolic differential equation. It is already given parabolic equation π’π₯π₯ = 2π’π‘ 1 π 2 π’ ππ’ = 2 ππ₯ 2 ππ‘ and also given the boundary condition, π’(0, π‘) = π’(4, π‘) = 0 the initial condition π’(π₯, 0) = π₯(4 − π₯), we can write parabolic equation in the form, ππ’ ππ‘ (1) = Now, π′′ = −π2 π 1 π2 π’ π2π = −π2 π 2 ππ₯ 2 ππ₯ 2 1 where π 2 = π·2 π = −π2 π 2 π = ± ππ π’ = ππ Let (2) X is the function of x only and T is the function of π‘ only. π = π2 cos ππ₯ + π3 sin ππ₯ where Differentiating (2) partially π€. π. π‘ . π‘, we get ππ’ ππ‘ (3) We have, π2 = 1 2 equation (2) we get, , put the value of π and π in π’ = (π2 cos ππ₯ + π3 sin ππ₯ ) π1 π −π2 π‘ 2 (5) = ππ′ π2 π’ ππ₯ 2 (4) Now, put the value of π’(0, π‘) = 0, where π₯ = 0 in equation (5), we get = π"π 0 = π2 π1 π Let (3) and (4) equal −π2 ππ′ = π 2 π"π = Let π2 = 0, arbitrary constant 2 2 π1 π −π π π‘ so π1 ≠ 0, −π2 Separating variables, we get π’ = (π3 sin ππ₯ ) π1 π ′′ π2π = ππ₯ 2 πππ π ′ = π′ = −π 2 π2 π ππ = −π 2 π2 π ππ‘ π = −π π π = π1 π −π −π2 π‘ 2 ππ ππ‘ 0 = π3 sin 4π π1 π −π2 π‘ 2 sin 4π = 0 = sin ππ π= ππ 4 Put the value of p in equation (6) 2 2 π2 π‘ π= put the value of π’(4, π‘) = 0, where π₯ = 4 in equation (6), we get π·π = −π 2 π2 π 2 we have (6) π" 1 π′ = 2 = −π2 π π π Where π −π2 π‘ 2 ππ π’ = π3 sin( )π₯ π1 π 4 −( ππ 2 ) π‘ 4 2 ππ π’ = π1 π3 π ππ( )π₯ π π2 π2 )π‘ 32 ( 4 ……… = ∑ ππ Where π1 π3 − ππ π’ = ∑ ππ π ππ( ) π₯ π π2 π2 )π‘ 32 −( ..(5) 4 ππ Now we find the value of series, by Fourier 2 π πππ₯ ππ = ∫ π(π₯) sin( ) ππ₯ π 0 π 2 4 πππ₯ = ∫ π₯(4 − π₯) sin( ) ππ₯ 4 0 4 ππ = 1 2 4 1 2 4 ∫0 4π₯ sin( ∫0 π₯ 2 π ππ( πππ₯ 4 πππ₯ 4 ) ππ₯ πΌ1 = 2 [ −π₯ πΌ1 = −32 πππ₯ ) 4 ππ (4) πππ ππ ππ πππ ππ [−16 2 43 ππ (4) πΌ2 = [−32 1)] πππ ππ + ππ ππ = −32 ππ 2 ) 4 }] + 64 π3 π 3 (πππ ππ − 64 (πππ ππ − 1) π3 π 3 π=0 When π0 = 0 π1 = − Put 64 π3 (−2) 128 π1 = π3 Integration second part from equation (9) πππ₯ πππ ( 1 4 )} πΌ2 = [{−π₯ 2 ππ 2 (4) πππ₯ π ππ ( ) 8 4 − {−π₯ } ππ ππ (4) πππ₯ 8 cos ( 4 ) + { }] ππ 2 ππ (4) ( πππ ππ πππ ππ + 32 ππ ππ 64 − 3 3 (πππ ππ − 1) π π ] …………….. (10) ππ Putting the value of (10) and (11) in (9) we get, ππ = − πππ₯ [ ) 4 2 ππ ( ) 0 4 cos ππ { ……………………………………..(11) ……..(9) π ππ( 8 + [1] π3 π 3 ) ππ₯ − Integration first part from equation (9) by the form of integral, 4 πππ ( 1 = value of π41 in equation (8), we get 4 π’= 128 π3 Where π π’1 = π’1 = ππ π ππ( ) π₯ π π2 π2 )π‘ 32 −( 4 …… (12) = 1 4.128196 √2 × π2 −( )π‘ π 32 4.128196 × 0.731615 √2 = 2.1356 π’2 = 4.128196 × π2 −( )π‘ π 32 πΌ= ππ 2 1 π’2 = 3.032585 β2 = 1 2 By Schmidt method πΌ must be 2 3ππ −(π32)π‘ π’3 = 4.128196 π ππ( )π 4 By Schmidt formula the following results are π’3 = 2.1356 . When π = 1,2,3 and π = 0, 2 obtained, π’π,π+1 = 1 2 [π’π−1,π + π’π+1,π ] π’1 = 1 [0 + 4] = 2 2 Now we solve (Example: 1) by numerical methods π’2 = 1 [3 + 3] = 3 2 Find the solution of the parabolic equation π’3 = 1 [4 + 0] = 2 2 Analytical solution for π’1 , π’2 , π’3 . Numerical solution: π’π₯π₯ = 2π’π‘ when π’(0, π‘) = π’(4, π‘) = 0 and π’(π₯, 0) = π₯(4 − π₯), taking β = 1. Find the values up to π‘ = 5. When π π’5 = Solution: Given a parabolic equation π’π₯π₯ = 2π’π‘ π’7 = Also given the boundary condition, π’(0, π‘) = π’(4, π‘) = 0 When π and the initial condition π’(π₯, 0) = when we put the value of π₯ = 1,2,3,4 in the relation of the initial condition, it gives that, π’(0,0) = 3, π’(1,0) = 4, π’(2,0) = 3, π’(3,0) = 3, π’(4,0) = 0, using these values we can find 1 [2 + 2] = 2 2 1 [3 + 0] = 1.5 2 = 1,2, 3 πππ π = 2 π’9 = π₯(4 − π₯), β = 1, π = 1, πππ π = 1 [0 + 3] = 1.5 2 π’6 = 1 π 2 π’ ππ’ = 2 ππ₯ 2 ππ‘ we have = 1,2,3 πππ π = 1, 1 , 2 π’10 = 1 [0 + 2] = 1 2 1 [1.5 + 1.5] = 1.5 2 π’11 = 1 [2 + 0] = 1 2 Now solve by Crank-Nicolson formula: − πΌπ’π−1,π+1 + (2 + 2πΌ)π’π,π+1 − πΌπ’π+1,π+1 = πΌπ’π−1,π + (2 − 2πΌ)π’π,π + πΌπ’π+1,π Put πΌ = π’1 = 2.176470588, π’2 = 3.058823529, π’3 = 2.176470588, When π = 1,2,3 πππ π = 1, In the same way can we find, π’4 = 1.615916955, π’5 = 2.283737023, π’6 = 1.615916955, 1 2 − π’π−1,π+1 + 6 π’π,π+1 − π’π+1,π+1 = π’π−1,π + 2 π’π,π + π’π+1,π When π = 1,2,3 πππ π = 0, − 0 + 6 π’1,1 − π’2,1 = π’0 + 2 π’1 + π’2 …………………………..(i) − π’1,1 + 6 π’2,1 − π’3,1 = π’1 + 2 π’2 + π’3 (ππ) −π’2,1 + 6 π’3,1 − π’4,1 = π’2 + 2 π’3 + π’4 Result: First step using the Analytical solution and Crank-Nicolson, BenderSchmidt, Analytic al result 2.1356 3.032585 2.1356 Schmidt 2 3 2 Crank 2.1764705 88 3.05882335 29 2.1764705 88 (πππ) When the initial conditions are given in (π), (ππ), (πππ), we get. Second step using the Crank-Nicolson and Bender-Schmidt 6 π’1 − π’2 + 0π’3 = 10 (π) Schmidt 1.5 2 1.5 Crank 1.615916955 2.283737023 1.615916955 − π’1 + 6 π’2 − π’3 = 14 π’1 (ππ) π’2 − π’2 + 6 π’3 + 0 π’4 = 10 (πππ) When we solve the equations (π), (ππ), (πππ), by manual or by calculator it gives that, VI.Conclusion: On the basis of the above discussion we get the result obtained by analytical methods is always providing accurate solution but numerical solution always providing approximate result. But among these π’3 numerical methods Crank-Nicolsan method was providing fast convergence in comparison to Bender-Schdimit method. Since it is not possible to solve every partial differential equation analytically so numerical methods providing a good agreement in those cases where solutions not exist or we are unable to solve partial differential equation analytically. References: 1. Sastry.s.s, june, (2012) '' introduction methods of numerical analysis published by Asoke k. Ghosh, PHI Learning private limited. 2. N.P.Bali, Dr Manish Goyal, (2012). Eighth Edition engineering mathematics publisher by, university science press,133 golden house, new Delhi. 3. Dr. Grewal,(2013). Ninth edition numerical methods in engineering and science, with programs in c and c++, published by: Romesh Chander Khan na , 2B nath market, NaiSarak Delhi. 4. K. SankaraRao(2012), numerical methods for Scientists and engineers ,third edition, published by Asoke K. PHI limited M-97, Connaught circus, new Delhi -110001. 5. Robinson, James C. (2001). Infinitedimensional dynamical systems: An introduction to dissipative parabolic PDEs and the theory of global attractors. Cambridge: Cambridge University Press. 6. p. Kandasamy K. Thilagavathy K. Gunavathi,(2000),Numerical methods. Publisher by, s. chand and company ltd,.