- Research
- Open access
- Published:
Implicit methods for the first derivative of the solution to heat equation
Advances in Difference Equations volume 2018, Article number: 430 (2018)
Abstract
We propose special difference problems of the four point scheme and the six point symmetric implicit scheme (Crank and Nicolson) for the first partial derivative of the solution \(u ( x,t ) \) of the first type boundary value problem for a one dimensional heat equation with respect to the spatial variable x. A four point implicit difference problem is proposed under the assumption that the initial function belongs to the Hölder space \(C^{5+\alpha }\), \(0<\alpha <1\), the nonhomogeneous term given in the heat equation is from the Hölder space \(C_{x,t}^{3+\alpha ,\frac{3+\alpha }{2}}\), the boundary functions are from \(C^{\frac{5+\alpha }{2}}\), and between the initial and boundary conditions the conjugation conditions up to second order \((q=0,1,2)\) are satisfied. When the initial function belongs to \(C^{7+\alpha }\), the nonhomogeneous term is from \(C_{x,t}^{5+\alpha ,\frac{5+\alpha }{2}}\), the boundary functions are from \(C^{\frac{7+\alpha }{2}}\) and the conjugation conditions up to third order (\(q=0,1,2,3\)) are satisfied, a six point implicit difference problem is given. It is proven that the solution of the given four point and six point difference problems converge to the exact value of \(\frac{\partial u}{\partial x}\) on the grids of order \(O ( h^{2}+\tau ) \) and \(O ( h^{2}+\tau ^{2} ) \), respectively, where h is the step size in spatial variable x and τ is the step size in time. Theoretical results are justified by numerical examples.
1 Introduction
In science, especially in mathematical physics, not only the calculation of the solution of the differential equation but also the calculation of the first and second derivatives of the solution is very important to provide information about some physical phenomena [1]. For example, Tuttle [2] in a theory of the drying wood adopts the fundamental hypothesis that the rate of which transfusion takes place transversely with respect to the wood fibers (\(\frac{\partial \theta }{\partial t}\)) is proportional to the slope of the moisture gradient (\(\frac{\partial^{2}\theta }{\partial x^{2}}\)), where θ is the moisture content expressed as a percentage of the oven-dry weight of the wood. Therefore, accurate approximation of \(\frac{\partial \theta }{ \partial x}\) is very important to provide information about the moisture gradient. Since the differentiation operation is ill-conditioned, to find a highly accurate approximation for the derivatives of the solution of a differential equation is problematic.
In [3] the uniform convergence of the difference derivatives over the whole grid domain to the corresponding derivatives of the exact solution for the two dimensional Laplace equation with order \(O ( h^{2} ) \) is proved. In [4], under the conditions that the boundary functions belong to \(C^{6,\lambda }\), \(0< \lambda <1\), on the sides of the rectangle and are continuous on the vertices and second, fourth order derivatives satisfy the compatibility conditions on the vertices which result from the Laplace equation, difference schemes are constructed for the first and pure second order derivatives of the solution. It is proved that the order of convergence of the solutions of these difference schemes is \(O ( h^{4} )\).
For the 3D Laplace equation on a rectangular parallelepiped, recent studies are given in [5] and [6] and the constructed difference schemes converge with the order of \(O ( h ^{2} ) \) and \(O ( h^{4} ) \), respectively, to the first and pure second derivatives of the exact solution of the 3D Dirichlet problem. It is assumed in [5] that the fourth derivatives of the boundary functions on the faces of a parallelepiped satisfy the Hölder condition, and on the edges their second derivatives satisfy the compatibility condition, whereas in [6] they are assumed to have sixth order derivatives satisfying the Hölder condition on the faces, and their second and fourth order derivatives satisfy the compatibility conditions on the edges. Most recently, in [7] difference schemes on a cubic grid for obtaining the solution of the Dirichlet problem for the 3D Laplace equation on a rectangular parallelepiped, its first and pure second derivatives difference schemes are constructed and the approximate values of the first and pure second derivatives converge with orders \(O ( h^{6} \vert \ln h \vert ) \) and \(O ( h^{5+\lambda } )\), \(0<\lambda <1\), respectively. It is assumed that the boundary functions on the faces have seventh derivatives satisfying the Hölder condition and on the edges their second, fourth and sixth derivatives satisfy the compatibility condition. At the same time in [8], an \(O( h^{p-1}) \), \(p\in [ 4,5]\) order of approximation for the first order derivatives of the solution of the 3D Laplace equation is proven under a weaker assumption on the smoothness of the boundary functions on the faces of the parallelepiped than those used in [6].
In this study special difference problems of four point and six point symmetric implicit difference schemes for the derivative of the solution \(u ( x,t ) \) of the first type boundary value problem for one dimensional heat equation with respect to the spatial variable x are proposed. For the construction of the four point implicit difference problem we require that:
-
(a)
the initial function belongs to \(C^{5+\alpha }\), the nonhomogeneous term given in the heat equation is from \(C_{x,t}^{3+\alpha ,\frac{3+\alpha }{2}}\), the boundary functions are from \(C^{\frac{5+\alpha }{2}}\), and the conjugation conditions of orders \(q=0,1,2\) are satisfied at the corners of the boundary. For the construction of the six point implicit difference problem it is assumed that:
-
(b)
the initial function belongs to \(C^{7+\alpha }\), the nonhomogeneous term is from \(C_{x,t}^{5+\alpha ,\frac{5+\alpha }{2}}\), the boundary functions are from \(C^{\frac{7+\alpha }{2}}\), and the conjugation conditions of orders \(q=0,1,2,3 \) are satisfied.
The work is organized as follows: In Sect. 2, for the approximate solution of first type boundary value problem for one dimensional heat equation we use four point implicit or six point symmetric implicit schemes [9] under the assumption that the boundary value problem satisfies the conditions (a) or (b) respectively. In both cases for the error function we provide a pointwise prior estimation depending on \(\varUpsilon ( x,t ) \), which is the distance from the current grid point in the domain to the boundary. In Sect. 3, we consider the boundary value problem satisfying the conditions (a) and propose a special four point implicit difference problem for the approximation of \(\frac{\partial u}{\partial x}\). We prove that the solution of the constructed difference scheme converges uniformly to the exact value of \(\frac{\partial u}{\partial x}\) on the grids of order \(O ( h^{2}+ \tau ) \) where h is the step size in spatial variable x and τ is the step size in time. In Sect. 4, we require that the boundary value problem satisfies the conditions (b) hence, a special six point implicit difference problem for the approximation of \(\frac{\partial u}{\partial x}\) is proposed. Uniform convergence of order \(O ( h^{2}+\tau^{2} ) \) for this scheme is shown. In Sect. 5, to justify the theoretical results numerical examples are constructed and obtained results are presented via tables and figures. In Sect. 6, concluding remarks are given.
2 Implicit difference solution of first type boundary value problem for one dimensional heat equation
2.1 Basic notations and first type boundary value problem
Based on Section 5, Chapter IV in [10], we give the following definitions. We denote by \(\mathcal{L} ( x,t,\frac{\partial }{\partial x},\frac{ \partial }{\partial t} ) \) the linear parabolic differential operator with real coefficients
Let Ω be a bounded domain in n-dimensional Euclidean space \(E_{n}\). It is assumed that the coefficients of the operator of (1) are defined in a layer \(D=E_{n}\times ( 0,T ) \). In the cylindrical domain \(Q=\varOmega \times ( 0,T ) \) with lateral surface \(S_{T}\) or more precisely the set of points \(( x,t ) \) of \(E_{n+1}\) with \(x= ( x_{1},x_{2},\ldots,x _{n} ) \in S\), \(t\in [ 0,T ] \) where S is the sufficiently smooth boundary of Ω and that \(\overline{\varOmega }= \varOmega \cup S\), the first type boundary value problem is given as
Let q be a non-negative integer. We use the notations
and the operator
From (2), (5) and (7), Eq. (6) can be rewritten as
The conjugation (compatibility) conditions up to order \(m\geq 0\) are
Let Q̅ and \(\overline{S}_{T}\) be the closure of Q and \(S_{T}\), respectively, and \(s>0\) be a non-integer number. Further, \(C_{x,t}^{s,s/2} ( \overline{Q} ) \) denotes the classical Hölder space of functions \(u ( x,t ) \) that are continuous in Q̅ together with all derivatives of the form \(\partial_{t}^{j_{0}}\partial_{x}^{j}\) for \(2j_{0}+j< s\) and have finite norm defined in \(C_{x,t}^{s,s/2} ( \overline{Q} ) \). \(C^{s} ( \overline{\varOmega } ) \) is the Hölder space whose elements are continuous functions \(g ( x ) \) in Ω̅ having in Ω̅ continuous derivatives up to order \([ s ] \) inclusively, and have finite norm defined in \(C^{s} ( \overline{\varOmega } ) \) (see [10]).
Theorem 1
(From Theorem 5.2, Section 5, Chapter IV in [10])
Suppose \(s>0\) is a non-integer number, the coefficients of the operator \(\mathcal{L} \) belongs to the class \(C_{x,t}^{s,\frac{s}{2}} ( \overline{Q} ) \), and the boundary S belongs to the class \(C^{s+2}\). Then, for any \(f\in C_{x,t}^{s,\frac{s}{2}} ( \overline{Q} ) \), \(\varphi ( x ) \in C^{s+2} ( \overline{\varOmega } ) \), and \(\phi ( x,t ) \in C_{x,t}^{s+2,\frac{s}{2}+1} ( \overline{S}_{T} ) \) satisfying the compatibility conditions (10) up to order \([ \frac{s}{2} ] +1\), problem (2)–(4) has a unique solution from the class \(C_{x,t}^{s+2,\frac{s}{2}+1} ( \overline{Q} )\).
2.2 Implicit difference solution of one dimensional problem
Take \(\varOmega = ( 0,b ) \), \(\sigma_{T}= ( 0,T ) \), and Ω̅, \(\overline{\sigma }_{T}\) are the closure of these sets respectively, also \(Q_{T}= \{ ( x,t ) :0< x< b,0< t \leq T \} \), \(\gamma_{1}= \{ ( 0,t ) :t\in \overline{\sigma }_{T} \} \), \(\gamma_{2}= \{ ( x,0 ) :x\in \overline{\varOmega } \} \), and \(\gamma _{3}= \{ ( b,t ) :t\in \overline{\sigma }_{T} \} \). Let \(\gamma =\bigcup _{i=1}^{3}\gamma_{i}\) represent the boundary of \(Q_{T}\), and \(\overline{Q}_{T}=Q_{T}\cup \gamma \). We use the notations \(\partial_{t}^{k}=\frac{\partial^{k}}{\partial t^{k}}\), \(\partial_{x}^{k}=\frac{\partial^{k}}{\partial x^{k}}\) and \(D_{t}^{k}=\frac{d ^{k}}{dt^{k}}\), \(D_{x}^{k}=\frac{d^{k}}{dx^{k}}\) to present the kth partial and ordinary derivatives respectively with respect to time variable t, spatial variable x. We consider the first type boundary value problem for a one dimensional heat equation:
where \(L\equiv \frac{\partial }{\partial t}-a\frac{\partial^{2}}{ \partial x^{2}}\) and \(a>0\) constant, then the functions on the right side of (5), (8) and (9) are
respectively, where \(f^{ ( 0 ) } ( x ) =f ( x,0 ) \) and \(f^{ ( q ) } ( x ) =\partial_{t}^{q}f (x,t )|_{t=0}\). Also
Furthermore, the conjugation conditions up to order \(m\geq 0\) in (10) for the one dimensional problem (11)–(13) are derived as
Problem 1
Let \(\alpha \in ( 0,1 ) \)
-
(i)
The boundary value problem (11)–(13) satisfying the conditions
$$ \begin{aligned} &u_{0} ( x ) \in C^{5+\alpha } ( \overline{\varOmega } ) ,\qquad f ( x,t ) \in C_{x,t}^{3+\alpha ,\frac{3+\alpha }{2}} ( \overline{Q}_{T} ) \quad \mbox{and} \\ & u_{j} ( t ) \in C^{\frac{5+\alpha }{2}} ( \overline{\sigma }_{T}), \quad j=1,2, \end{aligned} $$(20)and the conjugation conditions (19) up to second order \((q=0,1,2)\).
-
(ii)
The boundary value problem (11)–(13) satisfying the conditions
$$ \begin{aligned} &u_{0} ( x ) \in C^{7+\alpha } ( \overline{\varOmega } ) ,\qquad f ( x,t ) \in C_{x,t}^{5+\alpha ,\frac{5+\alpha }{2}} ( \overline{Q}_{T} ) \quad \mbox{and} \\ & u_{j} ( t ) \in C^{\frac{7+\alpha }{2}} ( \overline{\sigma }_{T}), \quad j=1,2, \end{aligned} $$(21)and the conjugation conditions (19) up to third order (\(q=0,1,2,3\)).
Theorem 2
Problem 1(i) has a unique solution \(u ( x,t ) \) belonging to the class \(C_{x,t}^{5+\alpha ,\frac{5+\alpha }{2}} ( \overline{Q}_{T} ) \). The Problem 1(ii) has a unique solution \(u ( x,t ) \) belonging to the class \(C_{x,t}^{7+\alpha ,\frac{7+\alpha }{2}} ( \overline{Q}_{T} ) \).
Proof
The proof of Theorem 2 follows from Theorem 1. □
We define
and \(\overline{\omega }_{h,\tau }=\overline{\omega }_{h}\times \omega_{\tau }\) where the set of internal nodes are defined by
The set of nodes on \(\gamma_{i}\) \(i=1,2,3\) are presented by
respectively. Assume that \(c_{1}, c_{2}, \ldots \) are positive constants independent from h and τ; in each section, those constants are enumerated anew. For the numerical solution of the Problem 1(i), we use the four point difference problem (\(\varrho =3\)) and for the numerical solution of the Problem 1(ii), we use the six point symmetric difference problem (\(\varrho =6\)) [9]. We denote the solution of these difference problems by ũ and use the notations \(\widetilde{u}_{m}^{0}=\widetilde{u} ( x_{m},0 ) \) on \(\overline{\omega }_{h,0}\), \(\widetilde{u}_{0}^{j}=\widetilde{u} ( 0,t_{j} ) \) on \(\omega_{0,\tau }\), and \(\widetilde{u} _{N}^{j}=\widetilde{u} ( b,t_{j} ) \) on \(\omega_{b,\tau }\). The difference schemes are as follows:
where
The operator \(\varTheta^{3}\widetilde{u}_{m}^{h,\tau }\) is the central difference formula and \(\varTheta^{6}\widetilde{u}_{m}^{h,\tau }\) is the averaging central difference formula with three points and six points respectively, for approximating \(\partial_{x}^{2}u\). Here \(t_{j+ \frac{1}{2}}=t_{j}+0.5\tau \), \(f ( x,t ) \) is the given function in (11) and \(u_{0} ( x ) \) given in (12), \(u_{1} ( t ) \), \(u_{2} ( t ) \) given in (13) are the initial and boundary functions, respectively. Consider the following systems:
where \(\widehat{g}^{h,\tau }\), \(\overline{g}^{h,\tau }\) are given functions and \(\vert \widehat{g}^{h,\tau } \vert \leq \overline{g}^{h,\tau }\) on \(\omega_{h,\tau }\) also \(\widehat{q}_{ \overline{t},m}^{h,\tau }\), \(\overline{q}_{\overline{t},m}^{h,\tau }\) are difference formulae analogous to (31) and \(\varTheta^{\varrho }\widehat{q}_{m}^{h,\tau }\), \(\varTheta^{\varrho }\overline{q}_{m}^{h, \tau }\) are difference formulae analogous to (32) or (33) for \(\varrho =3\) or \(\varrho =6\), respectively.
Lemma 3
The solution q̂ of the system (35)–(37) and the solution q̅ of the system (38)–(40) satisfy the inequality
for any r by the four point implicit scheme (\(\varrho =3\)) and for \(r\leq 1\), by the six point symmetric implicit scheme (\(\varrho =6\)) where \(r=\frac{a\tau }{h^{2}}\).
Proof
Taking into consideration that the canonical form of the equation \(\widehat{q}_{\overline{t},m}^{h,\tau }=a\varTheta^{3}\widehat{q}_{m}^{h,\tau }+\widehat{g}^{h,\tau }\) is
in the form \(A(P)\widehat{q}(P) =\sum _{Q\in \operatorname{Patt} ( P ) }B ( P,Q ) \widehat{q} ( Q ) +F ( P ) \) where \(P=P ( x_{m},t_{j+1} ) \) as a node of the grid \(\omega_{h,\tau }\) and \(\operatorname{Patt} ( P ) \) consists of the nodes \(Q_{1}= ( x_{m},t_{j} ) \), \(Q_{2}= ( x_{m-1},t_{j+1} ) \), \(Q_{3}= ( x_{m+1},t _{j+1} ) \in \overline{\omega }_{h,\tau }\). It is easily seen that \(A ( P ) >0\), \(B ( P,Q ) >0\) for every \(Q\in \operatorname{Patt} ( P ) \) and \(D ( P ) =0\) where \(D ( P ) =A ( P ) -\sum _{Q\in \operatorname{Patt} ( P ) }B ( P,Q ) \). Similarly the canonical form of the equation \(\widehat{q}_{\overline{t},m}^{h,\tau }=a\varTheta^{6}\widehat{q}_{m}^{h, \tau }+\widehat{g}^{h,\tau }\) is
where \(P=P ( x_{m},t_{j+1} ) \) and \(\operatorname{Patt} ( P ) \) consists of the nodes \(Q_{1}= ( x_{m},t_{j} ) ,Q_{2}= ( x _{m-1},t_{j+1} ) , \newline Q_{3}= ( x_{m+1},t_{j+1} ) \), \(Q_{4}= ( x_{m-1},t_{j} ) \), \(Q_{5}= ( x_{m+1},t_{j} ) \). Here \(A ( P ) >0\), \(D ( P ) =0\) and \(B ( P,Q ) \geq 0\) for every \(Q\in \operatorname{Patt} ( P ) \) if \(r=\frac{a\tau }{h^{2}}\leq 1\). The proof follows from the comparison theorem (see Chap. 4 in [9]) because the coefficients of the finite difference schemes (42) and (43) satisfy all conditions of the comparison theorem for any r and for \(r\leq 1\), respectively. □
Lemma 4
For the solution of the problem
the following inequality holds true:
where
for any r by the four point implicit scheme (\(\varrho =3\)) and for \(r\leq 1\), by the symmetric six point implicit scheme (\(\varrho =6\)). Here, \(\varUpsilon =\varUpsilon ( x,t ) \) is the distance from the current point \(( x,t ) \in \overline{\omega }_{h,\tau }\) to the boundary γ of \(Q_{T}\).
Proof
For the four point implicit scheme ( \(\varrho =3\)), we consider the functions
which are the solutions of \(q_{\overline{t},m}^{h,\tau }=a\varTheta^{3}q _{m}^{h,\tau }+h^{2}+\tau \) on \(\omega_{h,\tau }\). On the basis of Lemma 3 we obtain
For the six point symmetric implicit scheme \(( \varrho =6 ) \), we consider the functions
which are the solutions of \(q_{\overline{t},m}^{h,\tau }=a\varTheta^{6}q _{m}^{h,\tau }+h^{2}+\tau^{2}\) on \(\omega_{h,\tau }\). Using Lemma 3 we obtain
□
Theorem 5
The solution ũ of the four point finite difference problem (28)–(30) (\(\varrho =3\)) satisfies the following pointwise estimation:
for any value of r where u is the exact solution of Problem 1(i). The solution ũ of the six point finite difference problem (28)–(30) (\(\varrho =6\)) satisfies the following pointwise estimation:
for \(r\leq 1\) where u is the exact solution of Problem 1(ii).
Proof
On the basis of Theorem 2, the exact solution u of Problem 1(i) belongs to \(C_{x,t}^{5+\alpha ,\frac{5+\alpha }{2}} ( \overline{Q}_{T} ) \). Therefore, \(\partial_{x}^{4}u\) and \(\partial_{t}^{2}u\) are bounded up to the boundary. Let \(\varepsilon _{u}^{h,\tau }=\widetilde{u}-u\) on \(\overline{\omega }_{h,\tau }\). Obviously the error function \(\varepsilon_{u}^{h,\tau }\) satisfies
where \(\psi_{u}=a\varTheta^{3}u-u_{\overline{t},m}+\varPhi f^{h,\tau }\). Using Taylor’s formula for the function \(u ( x,t ) \) about the node \(( x_{m},t_{j+1} ) \) shows that \(\psi_{u}=O ( h^{2}+ \tau ) \) and applying Lemma 3 to the problem (44)–(46) for \(\varrho =3\) and (56)–(58) and on the basis of Lemma 4 we obtain \(\vert \varepsilon_{u}^{h,\tau } \vert \leq c_{1}\varUpsilon ( h^{2}+\tau ) \). From Theorem 2, the exact solution u of Problem 1(ii) belongs to \(C_{x,t}^{7+\alpha ,\frac{7+\alpha }{2}} ( \overline{Q}_{T} ) \). Hence, the derivatives \(\partial_{x}^{4}u\), \(\partial_{t}^{3}u\) are bounded up to the boundary. The error function \(\varepsilon_{u}^{h,\tau }\) satisfies the following difference problem:
Using Taylor’s formula for the function \(u ( x,t ) \) about the node \(( x_{m},t_{j+\frac{1}{2}} ) \) shows that \(\psi_{u}=O ( h^{2}+\tau^{2} ) \). Applying Lemma 3 to the six point implicit difference problem (44)–(46) (\(\varrho =6\)) and (59)–(61) and on the basis of Lemma 4 we obtain \(\vert \varepsilon_{u}^{h,\tau } \vert \leq c_{2}\varUpsilon ( h^{2}+\tau^{2} ) \). □
3 Implicit four point difference approximation of \(\partial _{x}u\)
Problem 2
-
(i)
Given the Problem 1(i), we denote \(p_{i}= \partial_{x}u\) on \(\gamma_{i}\), \(i=1,2,3\) and set up the next boundary value problem for \(v=\partial_{x}u\),
$$\begin{aligned}& Lv = \partial_{x}f ( x,t ) \quad \mbox{on }Q_{T}, \end{aligned}$$(62)$$\begin{aligned}& v ( x,0 ) = p_{2}\quad \mbox{on }\gamma_{2}, \end{aligned}$$(63)$$\begin{aligned}& v ( 0,t ) = p_{1}\quad \mbox{on }\gamma_{1},\qquad v ( b,t ) =p_{3}\quad \mbox{on }\gamma_{3}, \end{aligned}$$(64)where \(f ( x,t ) \) is the given function in (11).
We take
$$\begin{aligned}& p_{1h} = \frac{1}{2h} \bigl( -3u_{1} ( t ) +4 \widetilde{u} ( h,t ) -\widetilde{u} ( 2h,t ) \bigr) \quad \mbox{on } \omega_{0,\tau }, \end{aligned}$$(65)$$\begin{aligned}& p_{2h} = \partial_{x}u_{0}(x)\quad \mbox{on } \overline{\omega }_{h,0}, \end{aligned}$$(66)$$\begin{aligned}& p_{3h} = \frac{1}{2h} \bigl( 3u_{2} ( t ) -4 \widetilde{u} ( b-h,t ) +\widetilde{u} ( b-2h,t ) \bigr) \quad \mbox{on } \omega_{b,\tau }, \end{aligned}$$(67)and \(u_{0} ( x ) \) given in (12), \(u_{1} ( t ) \), \(u_{2} ( t ) \) given in (13) are the initial and boundary functions, respectively, ũ is the solution of the four point difference problem (28)–(30) (\(\varrho =3\)).
Lemma 6
The following inequality holds:
where u is the solution of the differential Problem 1(i) and ũ is the solution of the four point difference problem (28)–(30) (\(\varrho =3\)).
Proof
Taking into consideration Theorem 2, and using (65) and (67) and Theorem 5, we have
□
Lemma 7
The following inequality is true:
where ũ is the solution of the four point difference problem (28)–(30) (\(\varrho =3\)).
Proof
On the basis of Theorem 2, the exact solution \(u\in C_{x,t} ^{5+\alpha ,\frac{5+\alpha }{2}} ( \overline{Q}_{T} ) \). Then at the end points \(( 0,\sigma \tau ) \in \omega_{0,\tau }\) and \(( b,\sigma \tau ) \in \omega_{b,\tau }\) of each line segment \([ ( x,t ) :0\leq x\leq b, 0< t\leq T ] \) (65) and (67) give the second order approximation of \(\partial_{x}u\), respectively. From the truncation error formula (see [11]) it follows that
Using Lemma 6 and the estimation (66), (71) follows. □
We construct the following difference problem for the numerical solution of Problem 2(i):
where the \(p_{ih}\) are defined by (65)–(67) and \(\varPhi \partial_{x}f^{h,\tau }=\partial_{x}f |_{ ( x_{m},t_{j+1} ) }\) and ũ is the solution of the four point difference problem (28)–(30) (\(\varrho =3\)).
Theorem 8
The solution ṽ of the finite difference problem (72)–(74) satisfies
where \(v=\partial_{x}u\) is the exact solution of Problem 2(i).
Proof
Let
where \(v=\partial_{x}u\). Denote by \(\Vert \varepsilon_{v}^{h,\tau } \Vert =\max_{\overline{\omega }_{h,\tau }} \vert \widetilde{v}-v \vert \). From (72)–(74) and (76) we have
where \(\psi_{v}=a\varTheta^{3}v-v_{\overline{t},m}+\varPhi \partial_{x}f ^{h,\tau }\). We take
where
From Lemma 7 and by maximum principle for the solution of the system (81)–(83) we have
The solution \(\varepsilon_{v}^{2,h,\tau }\) of system (84)–(86) is the error of the approximate solution obtained by the finite difference method for the boundary value Problem 2(i) when the boundary values satisfy the conditions
Since the function \(v=\partial_{x}u\) satisfies Eq. (62) with the initial function \(p_{2}\) on \(\gamma_{2}\) and boundary functions \(p_{1}\), \(p_{3}\) on \(\gamma_{1}\) and \(\gamma_{3}\), respectively, and on the basis of Theorem 1 and the maximum principle, we obtain
4 Implicit six point symmetric difference approximation of \(\partial _{x}u\)
Problem 2
-
(ii)
Given the Problem 1(ii), we denote \(p_{i}=\partial_{x}u\) on \(\gamma_{i}\), \(i=1,2,3\) and set up the boundary value problem (62)–(64) for \(v=\partial_{x}u\).
Lemma 9
The following inequality holds:
where u is the solution of the differential Problem 1(ii) and ũ is the solution of the symmetric six point difference problem (28)–(30) (\(\varrho =6\)) for \(r\leq 1\) and \(p_{ih}\) are defined by (65)–(67).
Proof
On the basis of Theorem 2, and from (65), (67) and using Theorem 5, we have
□
Lemma 10
The following inequality is true:
where ũ is the solution of the six point difference problem (28)–(30) (\(\varrho =6\)) for \(r\leq 1\).
Proof
Using Theorem 2, the proof is analogous to the proof of Lemma 7. □
We propose the following six point difference problem for the numerical solution of Problem 2(ii):
where \(p_{ih}\) are defined by (65)–(67) and \(\varPhi \partial_{x}f^{h,\tau }=\partial_{x}f |_{ ( x_{m},t_{j+\frac{1}{2}} ) }\) and ũ is the solution of the six point difference problem (28)–(30) (\(\varrho =6\)) for \(r\leq 1\).
Theorem 11
For \(r\leq 1\), the solution ṽ of the finite difference problem (94)–(96) satisfies
where \(v=\partial_{x}u\) is the exact solution of Problem 2(ii).
Proof
The proof is analogous to the proof of Theorem 8. From (94)–(96) and (76) we have
where \(\psi_{v}=a\varTheta^{6}v-v_{\overline{t},m}+\varPhi \partial_{x}f ^{h,\tau }\). We take
where
From Lemma 10 and by the maximum principle for the solution of the system (102)–(104) we have
The solution \(\varepsilon_{v}^{2,h,\tau }\) of system (105)–(107) is the error of the approximate solution obtained by the finite difference method for the boundary value Problem 2(ii) when the boundary values satisfy the conditions
Since the function \(v=\partial_{x}u\) satisfies Eq. (62) with the initial function \(p_{2}\) on \(\gamma_{2}\) and boundary functions \(p_{1}\), \(p_{3}\) on \(\gamma_{1}\) and \(\gamma_{3}\), respectively and on the basis of Theorem 1 and the maximum principle in Chap. 4 of [9] we obtain
5 Numerical aspects
Two problems are considered such that the first type boundary value problem for the one dimensional heat equation in Example 1 and in Example 2 are chosen as examples for Problem 1(i) and Problem 1(ii), respectively, and the exact first derivatives of their solutions with respect to x are known. The third example is also given as an example of Problem 1(ii), however, the exact first derivative of the solution of this problem with respect to x is not given. All the computations are carried out in double precision using the Fortran programming language. For the constructed examples we take \(Q_{T}= \{ ( x,t ) :0< x<1,0<t\leq 1 \} \), \(\gamma_{1}= \{ ( 0,t ) :0\leq t\leq 1 \} \), \(\gamma_{2}= \{ ( x,0 ) :0\leq x\leq 1 \} \), and \(\gamma_{3}= \{ ( 1,t ) :0\leq t\leq 1 \} \), and the constant a in the operator \(L\equiv \frac{\partial }{\partial t}-a\frac{\partial^{2}}{\partial x^{2}}\) is taken as \(a=1\).
Example 1
where \(f ( x,t ) =-\frac{13}{5}x^{\frac{26}{5}}t^{ \frac{8}{5}}\sin ( t^{\frac{13}{5}} ) +\frac{13}{5}t^{ \frac{8}{5}}-\frac{26}{5}\frac{21}{5}x^{\frac{16}{5}}\cos ( t ^{\frac{13}{5}} ) +\frac{\pi^{2}}{4}\sin ( \frac{\pi }{2}x ) \). Using the proposed implicit four point difference scheme (28)–(30) (\(\varrho =3\)) we obtain the approximate solution ũ by the applying the Gauss–Thomas method [12] for solving an algebraic system of equations at each time level with space step size \(h=2^{-\mu }\) and time step size \(\tau =2^{-\lambda }\) where μ, λ are positive integers. Next the boundary value problem for \(v=\frac{\partial u}{\partial x}\) is constructed using the obtained approximate solution ũ and the proposed Problem 2(i). Furthermore, the approximate solution ṽ of the difference problem (72)–(74) is obtained at the same grid points. The exact solution is known: \(v ( x,t ) =\frac{26}{5}x^{\frac{21}{5}}\cos ( t^{ \frac{13}{5}} ) +\frac{\pi }{2}\cos ( \frac{\pi }{2}x ) \); and we denote the maximum error on the grid points by \(\Vert \varepsilon_{v}^{h,\tau } \Vert =\max_{\overline{\omega }_{h,\tau }}\vert \widetilde{v}-v \vert \). Table 1 demonstrates the maximum errors for fixed \(r=2^{-\omega }\), \(\omega =2,3\), and the order of convergence
of ṽ with respect to h and τ for Example 1. Table 2 represents the maximum errors for \(h=2^{-9}\), \(\tau =2^{-\lambda }\), \(\lambda =6,7,8,9,10,11\) and the order of convergence
of ṽ with respect to τ for Example 1. According to the definition of the maximum error the third and fourth columns of Table 1 and Table 2 present the theoretical upper bound errors given in (75). Note that the \(O(h^{2}+\tau )\) order of convergence corresponds to ≍22 of the quantities defined by (113), and ≍21 of the quantities defined by (114). Figure 1 presents the error function \(\vert \varepsilon_{v}^{2^{-7},2^{-17}} \vert = \vert \widetilde{v}-v \vert \) for \(h=2^{-7}\), and \(\tau =2^{-17}\) for Example 1. The maximum errors \(\Vert \varepsilon_{v}^{2^{-9},\tau } \Vert \) when \(h=2^{-9}\), with respect to τ, are shown in Fig. 2 and the maximum errors \(\Vert \varepsilon_{v}^{h,2^{-17}} \Vert \) when \(\tau =2^{-17}\), with respect to h, are demonstrated by Fig. 3 for Example 1. Figure 4 shows the exact solution \(v ( x,t ) =\partial_{x}u\), and the grid function \(v^{2^{-7},2^{-17}}\)presenting the approximate solution ṽ of \(\partial_{x}u\) when \(h=2^{-7}\), \(\tau =2^{-17}\) for Example 1 is presented in Fig. 5.
Example 2
where \(f ( x,t ) =-\frac{5}{36}x^{\frac{36}{5}}t^{ \frac{13}{5}}\sin ( t^{\frac{18}{5}} ) +t^{\frac{13}{5}}- \frac{31}{18}x^{\frac{26}{5}}\cos ( t^{\frac{18}{5}} ) +\frac{ \pi^{2}}{4}\sin ( \frac{\pi x}{2} ) \). Using the proposed implicit six point difference scheme (28)–(30) (\(\varrho =6\)) we obtain the approximate solution ũ by applying the Gauss–Thomas method [12] for solving algebraic system of equations at each time level for \(r=2^{-\omega }\) where ω is nonnegative integer. Next the boundary value problem for \(v=\frac{\partial u}{\partial x}\) is constructed from the proposed Problem 2(ii) using the obtained approximate solution ũ. Furthermore, the approximate solution ṽ for \(\frac{\partial u}{\partial x}\) is obtained at the same grid points by solving the system of equations using (94)–(96), and compared on the grids with the known exact solution \(v ( x,t ) =\frac{5}{18}x^{\frac{31}{5}}\cos ( t^{\frac{18}{5}} ) +\frac{ \pi }{2}\cos ( \frac{\pi x}{2} ) \). We use
to present the order of convergence of ṽ with respect to h and τ. Note that \(O(h^{2}+\tau^{2})\) order of convergence corresponds to ≍22 of the quantity by (116). Table 3 shows the maximum errors for \(h=2^{-\mu }\), \(\mu =4,5,6,7,8\) and \(\tau =2^{-\lambda }\), \(\lambda =13,14,15,16,17\), respectively, and the orders \(\widetilde{\Re }_{v}^{h,\tau }\) for Example 2. The third and fourth columns of this table present the theoretical upper bound errors given in (97). Figure 6 presents the error function \(\vert \varepsilon_{v}^{2^{-7},2^{-17}} \vert \) for \(h=2^{-7}\), and \(\tau =2^{-17}\) for Example 2. The maximum errors \(\Vert \varepsilon_{v}^{h,2^{-17}} \Vert \) when \(\tau =2^{-17}\), with respect to h, is demonstrated by Fig. 7 for Example 2. Figure 8 shows the exact solution \(v ( x,t ) =\partial_{x}u\), and the grid function \(v^{2^{-7},2^{-17}}\)presenting the approximate solution ṽ of \(\partial_{x}u\) when \(h=2^{-7},\tau =2^{-17}\) for Example 2.
Example 3
where \(f ( x,t ) =0.0001\frac{25}{7}x^{\frac{50}{7}}t^{ \frac{18}{7}}\cos ( t^{\frac{25}{7}} ) +0.001\frac{25}{7}t ^{\frac{18}{7}}-0.0001\frac{50}{7}\frac{43}{7}x^{\frac{36}{7}}\sin ( t^{\frac{25}{7}} ) -e^{-x}\). The initial function, the boundary functions and the nonhomogeneous term \(f ( x,t ) \) in Example 3 satisfy the conditions (21) of Problem 1(ii). Using the proposed implicit six point difference problem (28)–(30) (\(\varrho =6\)) we obtain the approximate solution ũ at each time level. Next the boundary value problem for \(v=\frac{\partial u}{\partial x}\) is constructed from the proposed Problem 2(ii) using the obtained approximate solution ũ; then the approximate solution ṽ of \(v=\partial_{x}u\) is obtained at the same grid points by solving the system of equations resulting from (94)–(96). Let \(v^{2^{-\mu },2^{-\lambda }} ( x,t ) \) be the approximate solution ṽ at \(( x,t ) \) when \(h=2^{-\mu }\) and \(\tau =2^{-\lambda }\). The exact solution v is not given. To verify the order of convergence of the computed solution ṽ to the exact solution v we compute the solution at grid points with successively reduced step sizes h and τ by a factor of two and the ratio of the absolute successive errors (see Chap. 2 of [13]). Table 4 presents \(v^{2^{-\mu },2^{-\lambda }} ( x,t ) \) at the grid points \(( 0.125,1 ) \), \(( 0.25,1 ) \), \(( 0.375,1 ) \), \(( 0.5,1 ) \), \(( 0.625,1 ) \), \(( 0.75,1 ) \) and \(( 0.875,1 ) \) for the pairs \(( \mu ,\lambda ) = ( 5,13 ) , ( 6,14 ) , ( 7,15 ) , ( 8,16 , ) \) which means that the step sizes h in x and τ in t are halved successively. Table 5 demonstrates the absolute error ratios
and the corresponding orders
for the considered points at \(t=1\). By analyzing the values of \(p_{1}\) and \(p_{2}\) in the third and fifth columns of Table 5, respectively, we conclude that the order of convergence is quadratic in the two variables x and t on \(t=1\). Figure 9 illustrates the grid function \(v^{2^{-8},2^{-16}}\)presenting the approximate solution ṽ of \(v=\partial_{x}u\) when \(h=2^{-8}\), \(\tau =2^{-16}\) for Example 3.
6 Concluding remarks
Special difference problems of four point and six point implicit schemes for the first derivative of the solution \(u ( x,t ) \) of the first type boundary value problem for a one dimensional heat equation with respect to the spatial variable x are given. It is assumed that the initial function, boundary functions and the nonhomogeneous term in the heat equation possess a number of derivatives in the variables x and t necessary in this connection for performing current and subsequent manipulation in approximating \(\frac{\partial u}{\partial x}\). We prove that the solution of the proposed four point and six point difference schemes converge to the exact value of \(\frac{\partial u}{ \partial x}\) on the grids of order \(O ( h^{2}+\tau ) \) and \(O ( h^{2}+\tau^{2} ) \), respectively.
Remark 12
These results can be used in some domain decomposition methods allowing for parallel computation [14, 15]. Furthermore, the proposed approach may be applicable to similar equations, given in the phenomena of impact of a moving foot on the transfer of heat from a constantly heated warm water into the foot immersed within a footbath [16] and the enhancement of performance by increasing the thermal efficiency of a direct absorption solar collector based on an alimino-water nanofluid [17].
Remark 13
The proposed approach can also be applied to finding second order derivatives of the solution of the first type boundary value problem for a one dimensional heat equation and this research will be presented in a subsequent article. Also the methodology may be extended to a two dimensional heat equation.
References
Bateman, H.: Partial Differential Equations of Mathematical Physics. Dover, New York (1944)
Tuttle, F.: A mathematical theory of the drying of wood. J. Franklin Inst. 200, 609–614 (1925)
Volkov, E.A.: On convergence in \(C_{2}\) of a difference solution of the Laplace equation on a rectangle. Russ. J. Numer. Anal. Math. Model. 14(3), 291–298 (1999)
Dosiyev, A.A., Sadeghi, M.M.H.: A fourth order accurate approximation of the first and pure second derivatives of the Laplace equation on a rectangle. Adv. Differ. Equ. 2015, Article ID 67 (2015). https://doi.org/10.1186/s13662-015-0408-8
Volkov, E.A.: On the grid method by approximating the derivatives of the solution of the Dirichlet problem for the Laplace equation on the rectangular parallelpiped. Russ. J. Numer. Anal. Math. Model. 19(3), 209–278 (2004)
Dosiyev, A.A., Sadeghi, M.M.H.: On a highly accurate approximation of the first and pure second derivatives of the Laplace equation in a rectangular parellelpiped. Adv. Differ. Equ. 2016, Article ID 145 (2016). https://doi.org/10.1186/s13662-016-0868-5
Dosiyev, A.A., Abdussalam, A.: On the high order convergence of the difference solution of Laplace’s equation in a rectangular parallelepiped. Filomat 32(3), 893–901 (2018)
Dosiyev, A.A., Sarikaya, H.: 14-point difference operator for the approximation of the first derivatives of a solution of Laplace’s equation in a rectangular parallelepiped. Filomat 32(3), 791–800 (2018)
Samarskii, A.A.: The Theory of Difference Schemes. Dekker, New York (2001)
Ladyženskaja, O.A., Solonnikov, V.A., Ural’ceva, N.N.: Linear and Quasi-Linear Equations of Parabolic Type. Translation of Mathematical Monographs, vol. 23. Am. Math. Soc, Providence (1967)
Burden, R.L., Faires, J.D.: Numerical Analysis. Cengage Learning, Boston (2011)
Fausett, L.V.: Applied Numerical Analysis Using Matlab. Pearson Prentice Hall, Upper Saddle River (2008)
Einarsson, B.: Accuracy and Reliability in Scientific Computing. SIAM, Philadelphia (2005)
Kuznetsov, Y.: New algorithms for approximate realization of implicit difference schemes. Sov. J. Numer. Anal. Math. Model. 3(2), 99–114 (1998). https://doi.org/10.1515/rnam.1988.3.2.99
Dawson, C.N., Du, Q., Dupont, T.F.: A finite difference domain decomposition algorithm for numerical solution of the heat equation. Math. Comput. 57(195), 63–71 (1991)
Turkyilmazoglu, M.: Heat transfer from warm water to a moving foot in a footbath. Appl. Therm. Eng. 98, 280–287 (2016)
Turkyilmazoglu, M.: Performance of direct absorption solar collector with nanofluid mixture. Energy Conserv. Manag. 114, 1–10 (2016)
Acknowledgements
The authors thank Professor A.A. Dosiyev for his attention to this work and valuable advices.
Funding
Not applicable.
Author information
Authors and Affiliations
Contributions
The authors contributed equally to the writing of this paper. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Buranay, S.C., Farinola, L.A. Implicit methods for the first derivative of the solution to heat equation. Adv Differ Equ 2018, 430 (2018). https://doi.org/10.1186/s13662-018-1887-1
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s13662-018-1887-1