Modi cation of Fourier Approximation for Solving Boundary...
Transcript of Modi cation of Fourier Approximation for Solving Boundary...
Modification of Fourier Approximation forSolving Boundary Value Problems Having
Singularities of Boundary Layer Type
Boris Semisalov and Georgy Kuzmin
Institute of Computational Technologies, SB RAS,Academic Lavrentiev av. 6, 630090, Novosibirsk, Russia,
Novosibirsk State UniversityPirogova str. 1, 630090, Novosibirsk, Russia
[email protected],[email protected]
Abstract. A method for approximating smooth functions has been de-veloped using non-polynomial basis obtained by mapping of Fourier se-ries domain to the segment [β1, 1]. High rate of convergence and stabilityof the method is justified theoretically for four types of coordinate map-pings, the dependencies of approximation error on values of derivativesof approximated functions are obtained. Algorithms for expanding offunctions into series with coupled basis composed of Chebyshev polyno-mials and designed non-polynomial functions are implemented. It wasshown that for functions having high order of smoothness and extremelysteep gradients in the vicinity of bounds of segment the accuracy of pro-posed method cardinally exceeds that of Chebyshevβs approximation. Forsuch functions method allows to reach an acceptable accuracy using onlyπ = 10 basis elements (relative error does not exceed 1 per cent)
Keywords: singular perturbation, small parameter, coordinate map-ping, boundary value problem, Fourier series, Chebyshev polynomial,non-polynomial basis, estimate of convergence rate, collocation method
1 Introduction
By now, a huge amount of urgent scientific and technological problems reducesto boundary value problems for differential equations having pronounced singu-larities of boundary layer type. The most popular approaches to solving them arebased on construction of computational grids with piecewise linear/polynomialapproximation of the unknown function in each cell of grid [1]. Such approachesprovide relatively low rate of convergence and lead to essential refinement of gridin the vicinity of boundary layer and consequently to growth of computationalcosts and errors. In [2,3] methods of coordinate transformations were developedwhich allow to decrease the influence of mentioned effect due to application ofspecial coordinate mappings eliminating the singularity. Nevertheless, the anal-ysis of key issue concerning the smoothness of such transformations and itsinfluence on the quality of approximation method is absent. Frequently, authors
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
406
restrict their self by transforming uniform or more special grid and performingnumerical experiments using finite difference or spectral methods [2]β [5].
In the present paper a step aside from the traditional grid approaches is madeand the approximations based on mapping of Fourier series domain to the seg-ment [β1, 1] are used to approximate functions having singularities of boundarylayer type. One of such mappings assigned by function cos(π₯) transforms Fourierbasis to basis composed of Chebysev polynomials. A special feature inherent tothese bases is the absence of saturation of corresponding approximations [6]. Itmeans that using Fourier and Chebyshev bases allows to obtain the asymptoticof error of best polynomial approximation while approximating functions havingany order of smoothness or singularities in complex plain. The loss of effective-ness of the mentioned approximations while solving problems having singularitiesof boundary layer type is caused by degradation of asymptotical properties ofbest polynomial approximations with fast increase of gradients of approximatedfunction. In order to eliminate this problem, trigonometric Fourier basis can betransformed into non-polynomial algebraic one retaining all its good propertiesof high convergence rate and computational stability, but specially adapted toapproximation of smooth functions having singularities of boundary layer type.
2 Preliminary information. Problem description
In framework of approximation theory of continuous and smooth functionsπ(π₯) (π₯ β π· β R) that are elements of spaces πΆ(π·), π π
π (π,π·) = {π β πΆπ(π·) :
|π (π)| β€π = π(π)} the following notions are often used (see for example [6]).
1. Norms of function βπβ = maxπ₯βπ·
|π |, βπβπ =
(β«π·
ππ(π₯)ππ₯
) 1π
.
2. Finite-dimensional approximating space πΎπ with elements used forapproximation of π(π₯) that usually are series or polynomials including π sum-mands or monomials.
3. Operator of approximation (or simply approximation) of functionπ(π₯) is a continues mapping ππ performing a projection of functional space onapproximating one (ππ : πΆ(π·) β πΎπ or ππ : π π
π (π,π·) β πΎπ).4. Best approximation of function π β πΆ(π·) is element ππ(π,πΎπ) β πΎπ
providing the lower bound to be reached π*π(π,πΎπ) = = π*π(π) = infπβπΎπ
βπ β πβ.
5. Method without saturation (loose definition) is a method of approxi-mation of function π(π₯) having asymptotic of error of the best polynomial ap-proximation for any order of smoothness of π(π₯). Rigorous definition based onthe analysis of asymptotic of Alexandrovβs diameters is given in [6].
The results obtained in works by Lebegue, Faber, Jackson, Bernstain al-low to separate three classes of smooth functions with fundamentally differentasymptotical behavior of errors of best approximations in space πΎπ of algebraicpolynomials of πth power. The similar asymptotical behavior is valid for periodicfunctions and trigonometrical polynomials
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
407
I. If π(π₯) β π ππ (π,π·) is π-times continuously differentiable function on
segment π· and all its derivatives up to order π are bounder by value π(π), then
supπβπ π
π (π,π·)
π*π(π,πΎπ) β€π(π)πΆππβπ, (1)
where πΆπ depends on π only, [7].II. If π(π₯) β πΆβ(π·) is infinite differentiable function with a singularity (like
pole) on complex plain, then one can find a number π (0 < π < 1) and a sequenceof polynomials ππ(π₯), such that
βπ(π₯) β ππ(π₯)β β€ πΆππ, π₯ β π·, (2)
here π < 1 is defined by location of singularity in complex plain, πΆ is constant, [8].III. If π(π₯) β πΈππ‘ is entire function, then
π*π(π,πΎπ) β€ π(π)(diamπ·)π21β2π
π!, (3)
where π(π) = βπ (π)β = π(π!). It follows from estimates of error of polynomialinterpolation (see [9]) and CauchyβHadamard inequality.
Remark 1. For smooth functions of I and III classes the accuracy of best approxi-mations depends on maximal values of derivatives of function on π· (values ofπ(π) and π(π) in (1), (3)). For functions of class II the error can be definedthrough the values of function itself beyond the segment π· on complex plain.
In order to implement the properties of best approximations in this work theFourier and Chebyshev series are used. Note that such approximations are equalin a specific sense. Indeed, let π β πΆ([β1, 1]), then performing the change ofvariable π₯ = cos π, π β [0, 2π] one can obtain 2π-periodic even function π(π) =
π(cos π). Fourier decomposition of it is π(π) =ββπ=0
ππ cos(ππ). Hence
π(π₯) =
ββ
π=0
ππ cos(π arccos(π₯)) =
ββ
π=0
ππππ(π₯). (4)
In other words Chebyshev polynomials ππ(π₯) can by obtained by mapping Fourierseries domain to the segment [β1, 1], see [10]. In [6] is proved that such approx-imations presents the methods without saturation and therefore they are ex-tremely efficient for solving problems with smooth solutions. However, if valuesπ(π), πΆ, π(π) in (1)β(3) are large, then it can be wrong.
A simple example is a boundary-value problem for differential equation ofsecond order with small factor π of second derivative
ππ2π
ππ₯2β π = ππβ²β²(π₯) β π(π₯), π(β1) = 1, π(1) = β1, (5)
here π₯ β [β1, 1], π(π₯) is a given smooth function. Solution to the problem is
π(π₯) = π(π₯) + π(π₯), π(π₯) = πΆ1ππ΄(0.5π₯+0.5) + πΆ2π
βπ΄(0.5π₯+0.5),
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
408
πΆ1 =1 + πβπ΄
πβπ΄ β ππ΄, πΆ2 =
1 + ππ΄
ππ΄ β πβπ΄.
Here π(π₯) is an exponential boundary value component of π(π₯), πΆ1, πΆ2, π΄ =β1/π are constants. Table 1 shows the values of dimension of πΎπ ensuring that
the relative errors of approximation is never higher than 1 per cent. These resultswere obtained in accordance with the estimates of best polynomial approxima-tions (1), (3), while function π(π₯) has different orders of smoothness.
Table 1. Dimension π ensuring that relative error of approximationis not higher than 1 per cent
Order of The value of small parameter πsmoothness π = 10β4 π = 10β6 π = 10β8 π = 10β10
π = 1 146 430 1 170 100 19 537 000 219 560 000π = 2 5 997 65 952 714 010 7 643 800π = 3 2 265 24 251 256 530 2 691 200π = 4 1 426 15 037 157 040 1 629 500π = 5 1 090 11 390 118 000 1 215 900entire function 136 1 359 13 591 135 910
Thus, it can be observed that the higher order of smoothness is, the less datais necessary for recovering solution with a desired accuracy. However, even inthe case of infinitely differentiable function a space πΎπ of dimension of manythousands can be required to reach considerably low accuracy of 1 per cent. Thiseffect is shown on Fig 1 where a graph of solution to a problem (5) is given withπ(π₯) β‘ 0 (i.e. a graph of function π(π₯)) and logarithm of error of approximationof π(π₯) in space of Chebyshev polynomials
π = maxπ₯β[β1,1]
|π(π₯) βπβ1βπ=0
ππππ(π₯)|.
β1 β0.5 0 0.5 1β1
β0.5
0
0.5
1
0 20 40 60 80 100β15
β10
β5
0ba
n
log10οΏ½
x
(x)οΏ½
Fig. 1. Solution to the problem (5) with π = 10β3 (solid line), π = 10β4 (dash line),π = 10β6 (dote-and-dash line): a β graph of π(π₯); b β dependance of log10 π on π
Fig. 1 shows that the values of π, given in Table 1 for function π(π₯) areoverestimated. This effect can be explained by concentration of Chebyshev nodes
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
409
in the vicinity of boundary layers, see. [10], [11]. Considering a problem withboundary layer of size π having solution without singularities in inner part ofthe segment [β1, 1], to reach an accuracy of 1 per cent one should use a basis of
π β 3/βπ (6)
Chebyshev polynomials for approximation of unknown function. In the consid-ered case π β 5.6/π΄ (here condition π(π) = 0.1 is used). Appearance of expres-sion
βπ in the denominator of fraction is caused by concentration of Cheby-
shev nodes. Indeed, uniformly distributed zeroes of trigonometrical monomialscos(ππ) are concentrated in the vicinity of points Β±1 under the map π₯ = cos(π)(see fig. 2 a). Moreover as cos(π) βΌ 1βπ2/2 when π β 0 and the first Chebyshevnode π₯1 = cos(π1) = cosπ/2π, then |1 β π₯1| βΌ π2/8π2. Further, the empiri-cal requirement that even three nodes should lay on the boundary layer gives
3|1 β π₯1| β€ π or π β 3π
2β
2βπ
that corresponds to (6).
3 Description of a method
For efficient approximation of function having boundary layer component a mod-ification of map π₯ = cos(π) that transformed Fourier basis to Chebyshev one (4)is proposed. According to (6) a natural requirement is to use stronger concen-tration of zeroes of basis functions in the vicinity of segment borders (see 2 b).
Let us assume that π· = [β1, 1]. Define a function π₯ = Γ¦(π¦) : [β1, 1] β [β1, 1]satisfying the following basic requirements:
1) function Γ¦(π¦) is bijective mapping, Γ¦(1) = 1, Γ¦(β1) = β1;2) Γ¦(π¦) is an infinite differentiable or even entire function;3) an inverse function π¦ = Γ¦β1(π₯) can be expressed in analytical form or easily
computed;4) a derivative Γ¦β²(π¦) in the vicinity of points Β±1 is close to zero.
Note that concentration of zeroes of basis functions in the vicinity of segmentborders can be obtained due to the last requirement. One of possible forms offunction Γ¦(π¦) is given on fig 2 b.
For approximation of function π(π₯), π₯ β [β1, 1] let us consider the expansionof 2π-periodic even function π(Γ¦(cos π)) (π β R) into Fourier series:
π(Γ¦(π¦)) = π(Γ¦(cos π)) βπβ1β
π=0
ππ cos(ππ). (7)
As a result one obtains
π(π₯) β ππ(π₯) =
πβ1β
π=0
ππ cos[π arccos(Γ¦β1(π₯))]. (8)
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
410
0 0.5 1 1.5 2 2.5 3β1
β0.5
0
0.5
1
1 2 3 4 5 6 7 8 9 10 11
1234
56
7
89
1110
β1 β0.5 0 0.5 1β1
β0.5
0
0.5
1 9
1 2 3 4 5 6 7 8 9 10 11
87
5
32
1011
4
1
a
b
y=cos οΏ½οΏ½
x=ae(y)y
Fig. 2. Concentration of nodes of trigonometrical monomials cos(ππ) as π = 11 (indi-cated by arrows): a β using mapping π¦ = cos(π), b β using mapping π₯ = Γ¦(π¦)
Here we denote π¦ = cos π. Thus, the basis of approximating space πΎπ can bespecified as π΅π(π₯) = cos[π arccos(Γ¦β1(π₯))], where zeroes of π΅π(π₯) are π₯ππ =
Γ¦
(cos
(2π+ 1)π
2π
), π,π = 0, ..., π β 1. Note, that under the properties 1, 3,
Γ¦(π¦), π΅π(π₯) are bijective easily computed functions.
Lemma 1. Approximation (8) is equivalent to expansion of function π(Γ¦(π¦))into series with basis consists of Chebyshev polynomials ππ(π¦) = cos(π arccos(π¦)),that is why
1) for approximations (8) error estimations of best approximations (1)β(3) hold;
2) elements of matrices Bπ β πππ = π΅π(π₯ππ), π,π = 0, ..., πβ 1 do not dependon Γ¦.
The proof of Lemma 1 is obvious taking into account (8) and that Cheby-shev and Fourier expansions are approximations without saturation. The secondcondition of Lemma 1 concerns numerical approximation of π by collocationmethod with nodes π₯ππ. Lemma declares that such a method is universal, itsproperties do not depend on the choice of function Γ¦(π¦).
To settle a key question on rate of growth of coefficients π(π), π(π) inestimates (1), (3) the following property was proved.
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
411
Lemma 2. For derivative of composed function the followin equality is valid
[π(Γ¦(π¦))](π) =
πβ
π=1
π (π)(Γ¦(π¦))
[ β
πππ=(πΌ1,...,πΌπ)πΌ1+...+πΌπ=π
πΆπππ
πβ
π=1
(Γ¦(π¦))(πΌπ)
], (9)
where the second summation goes over all possible integer partitions of numberπ β πππ, that consist of π positive integer numbers πΌ1,...,πΌπ, π = 1, ..., πΏ; πΆπππ areconstants. Moreover βπ as π = 1 and π = π one has: πΏ = 1, πΆπ11 = 1, πΆππ1 = 1.
This Lemma corresponds to the well-known Fa di Brunoβs formula and canbe proved using mathematical induction technique.
4 Analysis of four types of function Γ¦(π¦).
Now let us propose and investigate four types of function Γ¦(π¦). To this endthe following notations are necessary. Let π·π β π·, π·π β π· be neighborhoods ofboundaries of segment π· representing boundary layers, π·0 be a certain neighbor-hood of central point of π·. Let us denote by βΒ·βπΏ, βΒ·βπ· the supremum norms ofcontinues function on π·π βͺπ·π and on π·0 correspondingly. Further, we assumeπ = β1, π = 1, βπ < π, π΄π βπ (π )β = βπ (π +1)β, where π΄π > 1 is constant, π is or-der of smoothness of π(π₯). Typically for problems with boundary layer one hasπ΄π >> 1. Let π΄ = max
π <ππ΄π , π(π΄) be a size of boundary layer (as it follows from
the example with exponential boundary layer, π depends on π΄, see comments to
formula (6)), π(π (π )) be such value that limπ΄1,...,π΄πβ1ββ
π(π (π ))
βπ (π )βπΏ= 0.
I. Trigonometric function
Γ¦(π¦) = sin
(ππ¦
2
). (10)
Theorem 1. Let π2(π΄)π΄ β 0 as π΄ β β. For the approximation (8) withfunction Γ¦(π¦) of form (10) the estimate (1) is valid, but constant
π(π) = πΆππ/2 π(π/2)πβπ (π/2)β + π(π (π/2)) (if π is even),
π(π) = πΆπ[π/2]ππ(π΄)(π/2)πβπ ([π/2])β + π(π ([π/2])) (if π is odd),
where [π ] denotes integer part of number π , πΆππ/2 π, πΆπ[π/2]π are coefficients of (9),
corresponding to integer partitions ππ/2 π = (2, ..., 2β β π/2
), π[π/2] π = (2, ..., 2β β [π/2]
, 1).
II. Polynomial of third power
Γ¦(π¦) = ππ¦3 + ππ¦2 + ππ¦ + π. (11)
After taking into account properties 1)β4) of Γ¦(π¦)-function one obtains π = π =0, π = 1 β π, 1 β€ π β€ 1.5. Assuming π = π, one gets
Γ¦(π¦) = (1 β π)π¦3 + ππ¦, (12)
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
412
where 1 β€ π β€ 1.5 is free parameter equal to the value of derivative Γ¦β²(0) anddetermining the value Γ¦β²(Β±1): as πβ 1.5 Γ¦β²(Β±1) β 0.
Theorem 2. For approximation (8) with function Γ¦(π¦) of form (12) as π = 1.5and π2(π΄)π΄β 0 as π΄β β the estimate (1) is valid, but constant
π(π) = πΆππ/2 π3π/2βπ (π/2)β + π(π (π/2)) (if π is even),
π(π) = πΆπ[π/2]ππ(π΄)3[π/2]+1βπ ([π/2])β + π(π ([π/2])) (if π is odd),where πΆππ/2 π, πΆ
π[π/2]π are the same as in theorem 1.
Theorems 1,2 can be proved using Lemmas 1,2 and taking into account thatvalues of first derivatives of considered Γ¦-functions in points Β±1 vanishes. Thecomponent βπ (π/2)β appears in the obtained expressions for π(π) because thesecond derivative of Γ¦-functions in points Β±1 are not equal to zero. This com-ponent grows much slower than βπ (π)β.
Remark 2. By changing in given theorems index βπβ on index βπβ, one canobtain similar results for case of entire π(π₯), namely the similar equalities forπ(π) from estimate (3) when Γ¦(π¦) has form (10), (12).
Let us consider another approach to construction of Γ¦(π¦)-function, it doesnot require first derivative of Γ¦(π¦) to be equal to zero in points Β±1, but requiresall the derivatives to be very small in vicinity of Β±1.
III. FunctionΓ¦(π¦) = arctan(ππ¦)/π, π = arctan π. (13)
Theorem 3. If in expression (8) function Γ¦(π¦) of form (13) has parameter
π << π+πβ2
ββπ (π)βπΏβπ (π)βπ·
= ππ, βπ = 1, 2, ..., π, (14)
then (8) satisfies the estimate of accuracy of best approximation (3) with π(π)equals for large π and π΄ to the following
π(π) = max
( βπ (π)βπΏπ(ππ)πβ1
,βπ β²βπΏπ
π!
)+ π(π!) + π(π (π)). (15)
Values
π β π* =2
ππβ1
ββπ (π)βπΏβπ β²βπΏ
1
π!(16)
under condition 1.56 < π << minπ=1,...,π
ππ provide maximal rate of decrease of right
part of (3) with growth of π and π(ππ)πβ1-time profit in accuracy in comparisonwith the best polynomial approximation.
IV. Function
Γ¦(π¦) = π(
2
1 + exp(βππ¦)β 1
), π =
1 + exp(βπ)
1 β exp(βπ). (17)
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
413
Theorem 4. Let π(π₯) βπ ππ (π,π·), π > 1 and in expression (8) function Γ¦(π¦)
of form (17) has parameter, satisfying the inequalities
π <<1
πΌπ π (πΌπ π½π ) = ππ , βπ = 1, ..., π β 1, π << π π
ββπ (π)βπΏβπ (π)βπ·
= π0, (18)
where π (π₯) is the Lambert π -function (the inverse function to π₯ = π€ exp(π€)),
πΌπ =π
π β π , π½π = 4πΌπ π πβπ
ββπ (π +1)βπΏβπ (π +1)βπ·
. In this case (8) satisfies the estimate of
accuracy of best approximation (1) with π(π) equals for large π and π΄ to thefollowing
π(π) = max
(βπ (π)βπΏ(2ππ exp(βπ))πβ1, βπ β²βπΏππ!
)+ π(π!) + π(π (π)). (19)
Values
π β π* = βπ(β1
2πβ1
ββπ β²βπΏπ!βπ (π)βπΏ
)(20)
under condition 1.57 < π << minπ =0,1,...,πβ1
ππ provide maximal rate of decrease of
right part of (1) with growth of π and (exp(π)/(2ππ))πβ1-time profit in accuracyin comparison with the best polynomial approximation. Here it is considered thebranch of function π (π₯) such that π (π₯) β ββ as π₯ β 0.
Theorems 3,4 can be proved using Lemmas 1,2 and asymptotical analysisof growth of πth derivative of π [Γ¦(π¦)] with grows of π. These results can beextended to case of estimates (1), (3).
5 Computation of approximate values of functions withboundary value components
In this section one can find an experimental confirmation of results of theorems 1β4 considering approximation of solution to the boundary value problem (5) withexponential boundary layer. Detailed comments on correspondence of theoreticaland experimental data given on fig. 3β5 and in Tables 2β5, are absent. Suchcorrespondence becomes obvious if in theorems 1β4 one supposes the valuesπ΄1, ..., π΄πβ1 to be equal to the value of π΄ from formula of solution π(π₯) tothe problem (5). This identification is correct because the values of derivativesπ (π)(Β±1) grow with a rate of π΄π.
To implement the approximation according to (8) four considered types offunction Γ¦(π¦) were used, expressions for inverse functions Γ¦β1(π₯) were obtainedand the values of zeroes of basis functions of approximations π₯ππ were specified.
1. Sinus (sin), Γ¦π (π¦) = sin
(ππ¦
2
):
Γ¦β1π (π₯) =
2 arcsinπ₯
π, π₯ππ = sin
[π cos( (2π+1)π
2π )
2
], π = 0, ..., πβ 1.
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
414
2. Polynomial (pol), Γ¦π(π¦) = (1 β π)π¦3 + ππ¦:
Γ¦β1π (π₯) = π
[β cos
arccos π§
3+
β3 sin
arccos π§
3
],
π =
βπ
3(πβ 1), π§ =
β3β
3π₯βπβ 1
2π3/2,
π₯ππ = (1 β π) cos3[
(2π + 1)π
2π
]+ π cos
[(2π + 1)π
2π
], π = 0, ..., πβ 1.
These expressions were obtained using Cardanoβs method and analysis of threebranches of inverse function Γ¦β1
π (π₯).
3. Function inverse to tangents (tg), Γ¦π‘(π¦) =arctan(ππ¦)
arctan(π):
Γ¦β1π‘ (π₯) =
tan(π₯ arctan π)
π, π₯ππ =
arctan
[π cos( (2π+1)π
2π )
]
arctan(π), π = 0, ..., πβ 1.
4. Function including exponent (exp), Γ¦π(π¦) = π[
2
1 + exp(βππ¦)β 1
]:
Γ¦β1π (π₯) = β 1
πln
[2
ππ₯+ 1β 1
], π₯ππ = π
[2
exp{β π cos( (2π+1)π
2π )}
+ 1β 1
],
π = 0, ..., πβ 1.
5.1 Approximations of boundary layer component π(π₯)
In this section results on numerical approximation of the solution π(π₯) to theboundary-value problem (5) are given for different values of small parameterπ = 10β3, ..., 10β10. Let us consider first the case π(π₯) β‘ 0, then π(π₯) = π(π₯) isan exponential boundary value component.
For searching the coefficients ππ of the expansion (8), where π = 0, ..., πβ 1a system of π equations should be composed:
πβ1β
π=0
πππ΅π(π₯ππ ) = π(π₯ππ ).
Matrix of this system with elements bjk = π΅π(π₯ππ ) is πΆ = (bjk). Denoting column
vectors
πΌ = (π0, π1, ..., ππ )π , π½ = (π(π₯0), π(π₯1), ..., π(π₯π ))π ,
one obtains a system of linear algebraic equations (SLAE) πΆπΌ = π½. Finally thecoefficients of expansion (8) can be expressed in form πΌ = πΆβ1π½.
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
415
Remark 3. It was established by computations that the growth of number ofbasis function π does not affect the condition number of matrix πΆ. The first fivedigits of it 1.4142 remain invariable while π grows from 1 to 200. This meansthat using the orthogonal transformations matrix πΆ can be inverted on computerwith high precision.
The algorithm of searching coefficients ππ, π = 0, ..., πβ 1 was implementedon MATLAB programming language for the following values of small parameter
π = 10β3, 10β4, ..., 10β10.For each of considered types of Γ¦(π¦) a grid of points (π§1, π§2, ..., π§πΎ) was gen-
erated on the segment [β1; 1]. It was used for searching the maximal deviationof a given function π(π₯) form its approximation ππ(π₯) by enumeration over allpoints. Due to the fact that function has boundary layer in the vicinity of pointsβ1 and 1 a grid for enumeration was composed of large amount of Chebyshevnodes providing significant concentration of grid near the bounds of segment.The number of nodes π§1, π§2, ..., π§πΎ was chosen so that the doubling of it does notaffect first 2β3 digits of error π = max
π=1,...,πΎ|π(π§π) β ππ(π§π)|.
For example if π = 10β5 and function Γ¦π‘(π¦) is used, the experiments showthat for π = 48
as πΎ = 100 000 point the error π = 2.7737 Γ 10β13, (21)
as πΎ = 200 000 points the error π = 2.7734 Γ 10β13. (22)
Consequently, we conclude that number πΎ = 100 000 is sufficient for esti-mating the error π with desired accuracy.
Now let us use a single coordinate plain to represent dependencies of log10 πon the number of basis functions π of approximation ππ for different typesof function Γ¦(π¦) together with well known Chebyshev approximations. (see.fig. 3, 4). Number of points for enumeration πΎ here is equal to a maximal one ofall πΎ obtained for each of considered types. Note that the values of parametersπ, π, π in these results are taken from the vicinity of their βoptimalβ values (seeTable 2). Further method for searching these values is explained.
Table 2. βOptimalβ values of parameters
Parameter Value of small parameter πof approximation 10β3 10β4 10β5 10β6 10β7 10β8 10β9 10β10
π 1.1 1.2 1.3 1.35 1.45 1.46 1.48 1.48π 1.2 1.6 3.5 15 35 75 300 680π 1.3 2.5 3 4.5 5.5 6.8 8.2 9.4
On given figures one can observe that the decrease of values of small pa-rameter π results in fast decrease of convergence rate of Chebyshev expansions.Whereas, the methods designed using functions Γ¦π‘(π¦), Γ¦π(π¦) do not significantly
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
416
οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½
οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½
log
log
10
10
a
b οΏ½
οΏ½
n
n
0 20 40 60β15
β10
β5
0
- sin- polynom- Chebyshev- exp- tan
0 20 40 60 80 100
β10
β5
0
Fig. 3. Dependencies of log10 π on number π for values π = 10β4 (b), π = 10β6 (b)
οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½
οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½
log
log
10
10
a
b
οΏ½
οΏ½
n
n
- sin- polynom- Chebyshev- exp- tan
0 20 40 60 80 100 120
β10
β5
0
0 20 40 60 80 100 120
β10
β5
0
Fig. 4. Dependencies of log10 π on number π for values π = 10β8 (a), π = 10β10 (b)
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
417
change their convergence rate while decreasing small parameter. As it was al-ready proved, increase of π, π allows one to reduce the influence of steep gradient.
Now let us estimate βoptimalβ values of parameters π, π, π for approximationsbased on Γ¦π, Γ¦π‘, Γ¦π. To this end the dependencies of logarithm of error log10 πon π and value of parameter of function Γ¦(π¦) were represented in Cartesiancoordinate system, see those for Γ¦π‘ on fig. 5, 6.
οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½
οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½
log
log
10
10
a
bοΏ½
οΏ½
n
n
b
b
0
20
40
00.5
1
β10
β5
0
020
4060
010
2030
β10
β5
0
Fig. 5. Dependencies of value log10 π on the number π and the value of parameter π ofmethod with function Γ¦π‘ as π = 10β4 (a), π = 10β6 (b), π = 10β8 (c), π = 10β10 (d)
The error was computed in a similar way as before, e.g. for Γ¦π‘ and π = 10β8
parameter π goes over all integer values from 0 to 100. Maximal convergence rateis provided by such a value π = π* that specifies maximal slope of a curve layingin section of the represented surface by a plain π = π* = const(or π = const, or π= const). For Γ¦π‘ and π = 10β8 π* β [60; 80]. This segment is marked with circleon the graph of fig. 6.
5.2 Approximation of solution of inhomogeneous problem (5)
Let us consider a function π(π₯) that is solution to (5) with π(π₯) = sin(ππ₯). Hereπ(π₯) provides a perturbation in inner points of domain of problem. A questionis how such perturbations can affect convergence of proposed methods.
π(π₯) = πΆ1ππ΄( 1
2π₯+12 ) + πΆ2π
βπ΄( 12π₯+
12 ) + sin(ππ₯),
πΆ1 =1 + πβπ΄
πβπ΄ β ππ΄, πΆ2 =
1 + ππ΄
ππ΄ β πβπ΄, π΄ =
β1/π.
(23)
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
418
log
log
10
10
a
b
0
20
40
60
0 2040 60 80
100
β10
β5
0
020
4060
0 200 400 600 800 1000 1200
β10
β5
0
b
οΏ½
οΏ½
οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½
οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½
bn
n
Fig. 6. Dependencies of value log10 π on the number π and the value of parameter π ofmethod with function Γ¦π‘ as π = 10β8 (a), π = 10β10 (b)
Let π be maximal values of deviation of approximation (8) from the valuesof function (23). π was computed in numerical experiments by enumeration overpoints π§1, ..., π§πΎ as it was described, for different types of Γ¦(π¦) and various valuesof π and π: π = 10β3, ..., 10β10. The values of parameters π, π, π were taken fromTable 2 excluding cases of small π. Numerical experiments showed that thesmaller π is, the stronger appears the dependence of convergence rate on π.
While using functions Γ¦π , Γ¦π, Γ¦π approximation errors for (23) agree withthose obtained for π(π₯) = π(π₯) (see fig 3, 4). βOptimalβ values of parameters πand π in these cases retain too. However the approximation based on Γ¦π‘ looseits convergence rate much faster. This effect is explained by inequality for π (seeestimate (14)) that turns out to be more essential than, for example, (18). Evenfor moderate values of βπ (π +1)βπ· (in our case βπ βπ (π +1)βπ· β 1) one obtainsthat value of π should be considerably less than those given in Table 2. Then,according to (15), π(π) becomes large and the convergence rate decreases.
In order to obtain efficient approximation with function Γ¦π‘ a coupled basisπ΅π(π₯)βͺ ππ(π₯) (π = 0, ...,π¦, π = 0, ...,π , π¦ +π = πβ 2) should be used. It iscomposed of designed functions π΅π(π₯) and Chebyshev polynomials ππ(π₯):
π(π₯) βπ¦β
π=0
πππ΅π(π₯) +
πβ
π=0
ππππ(π₯),
ππ(π₯) = cos(π arccos(π₯)), π΅π(π₯) = cos(π arccos
[tan(π₯π)/π
]).
(24)
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
419
The idea of a method consists in two steps: first function π(π₯) should be
expand in basis ππ(π₯) and then difference π(π₯) βπβπ=0
ππππ(π₯) should be ap-
proximated using π΅π(π₯). Let us compose matrices
πΆ = (πΎππ), πΎππ = ππ(π₯π), where π₯π = cos
[(2π+ 1)π
2(π + 1)
], π, π = 0, ...,π ;
B = (πππ), πππ = π΅π(π₯π), where π₯π =
(arctan
[π cos(
(2π + 1)π
2(π¦ + 1))])/π,
π, π = 0, ...,π¦.Introducing the notations of vectors πΌ = (π0, ..., ππ¦), πΎ = (π0, ..., ππ ), ππΌ =(π(π₯0), ..., π(π₯π¦)), ππΎ = (π(π₯0), ..., π(π₯π )) one can found the coefficients of ex-pansion in Chebysev basis πΎ = πΆβ1ππΎ . Further the following SLAE was composed
BπΌ = ππΌ β πΆπΎ,
πΆππ = ππ(π₯π) = cos
(π arccos
[arctan
{π cos(
(2π + 1)π
2(π¦ + 1))
}/π]).
and the values of coefficients π0, ..., ππ¦ were obtained
πΌ = Bβ1[ππΌ β πΆπΆβ1ππΎ
]. (25)
The computations by formula (25) can be modified. So, for small parametersπ = 10β4, π = 10β6 the domain of distribution of Chebyshev nodes in (24)was narrowed from segment [β1; 1] to [β0.85; 0.85] in case π = 10β4 and to[β0.95; 0.95] in case π = 10β6.
Tables 3β5 show the value of approximation error π obtained for function(23) using Chebyshev basis and the designed ones π΅π with functions Γ¦(π¦) offour considered types. If value of parameters of Γ¦(π¦) differs from those givenin Table 2 than it is explicitly indicated in brackets. So does a number of basisfunctions π΅π(π₯) plus number of basis polynomials ππ(π₯) for approximationsobtained using Γ¦π‘, see (24).
Table 3. Values of π obtained for function (23) with π = 10β6
π Chebyshev sin(π¦) πππ(π¦) exp(π¦) tan(π¦)
10 0.997 0.168 0.208 0.069(5.5) 0.036(60, 7 + 3)20 0.727 0.047 0.064(1.5) 0.005 5.21Γ 10β4(80, 14 + 6)30 0.359 0.007 0.025 2.4418Γ 10β5 7.935Γ 10β6(50, 23 + 7)40 0.147 7.659Γ 10β4 0.001 3.679Γ 10β7 4.283Γ 10β8(14, 30 + 10)50 0.051 5.419Γ 10β5 2.216Γ 10β5 1.936Γ 10β9 2.637Γ 10β10(14, 38 + 12)60 0.015 8.019Γ 10β6 5.348Γ 10β7 3.738Γ 10β11 1.436Γ 10β12(9, 47 + 13)70 0.004 7.348Γ 10β7 2.533Γ 10β8 5.473Γ 10β13 2.625Γ 10β13(9, 57 + 13)80 7Γ 10β4 3.346Γ 10β8 7.458Γ 10β10 3.321Γ 10β13 2.26Γ 10β13(9, 67 + 13)90 1.2Γ 10β4 2.941Γ 10β9 1.791Γ 10β11 3.375Γ 10β13 2.597Γ 10β13(9, 77 + 13)
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
420
Table 4. Values of π obtained for function (23) with π = 10β8
π Chebyshev sin(π¦) πππ(π¦) exp(π¦) tan(π¦)
10 1.0000 0.5024 0.5903(1.5) 0.2040(7.8) 0.0463(650, 7 + 3)20 1.0000 0.1972 0.6521 0.0366 6.0843Γ 10β4(180, 14 + 6)30 0.9987 0.1119 0.2743 3.5359Γ 10β4 1.2506Γ 10β5(140, 23 + 7)40 0.9730 0.0208 0.0873 1.0721Γ 10β5 5.3592Γ 10β8(110, 30 + 10)50 0.8920 0.0130 0.0186 3.8726Γ 10β7 4.9031Γ 10β10(90, 39 + 11)60 0.7705 0.0032 0.0020 8.8276Γ 10β9 3.4193Γ 10β12(90, 47 + 13)70 0.6384 0.0011 4.28Γ 10β4 4.0243Γ 10β10 1.8532Γ 10β12(90, 57 + 13)80 0.5144 3.7Γ 10β4 1.42Γ 10β4 9.3578Γ 10β12 1.9960Γ 10β12(90, 67 + 13)90 0.4059 5.7Γ 10β5 1.27Γ 10β5 4.3484Γ 10β12 2.3292Γ 10β12(90, 77 + 13)
Table 5. Values of π obtained for function (23) with π = 10β10
π Chebyshev sin(π¦) πππ(π¦) exp(π¦) tan(π¦)
10 1.0000 1.0005 1.0003 0.3875(10.4) 0.0529(6500, 7 + 3)20 1.0000 0.3498 0.9986 0.0391 4.7344Γ 10β4(4000, 13 + 7)30 1.0000 0.2231 0.9282 0.0027 1.0203Γ 10β5(1200, 22 + 8)40 1.0000 0.2041 0.7389 2.1276Γ 10β4 9.2063Γ 10β8(1100, 31 + 9)50 1.0000 0.1418 0.5336 1.5681Γ 10β5 3.5014Γ 10β10(1100, 38 + 12)60 1.0000 0.0700 0.3642 1.0989Γ 10β6 2.1094Γ 10β11(1100, 47 + 13)70 1.0000 0.0226 0.2371 7.3964Γ 10β8 2.2963Γ 10β11(1100, 57 + 13)80 0.9999 0.0223 0.1470 4.8155Γ 10β9 1.8534Γ 10β11(1100, 67 + 13)90 0.9994 0.0124 0.0865 3.0489Γ 10β10 2.1706Γ 10β11(1100, 77 + 13)100 0.9973 0.0041 0.0481 4.0388Γ 10β11 2.1034Γ 10β11(1100, 87 + 13)
6 Conclusion
In this work a method for approximating smooth functions having bound-ary layer components was developed, justified and implemented. It is based onexpansion of function into series with basis consisting of non-polynomial func-tions obtained from trigonometric Fourier one by special mapping operation.Such representation ensures the estimations of accuracy of best polynomial ap-proximations, but essentially reduces the values of coefficients in them. That iswhy convergence can be observed starting from small number of basis elements.Moreover the proposed approximations have good properties of numerical sta-bility inherent to Fourier expansions.
Further development and successful application of the method is connectedwith analysis of different forms of Γ¦-function. Proposed method can be modifiedfor approximation of functions having singularity in inner point of domain, oreven for problems with unknown position of singularity. From the other side,combination of these approximations with collocation methods will allow to de-sign efficient algorithms for solving singularly-perturbed boundary value prob-lems for differential equations.
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
421
Acknowledgments. This work was supported by Integrated program of basicscientific research of SB RAS No. 24, project II.2 βDesign of computationaltechnologies for calculation and optimal design of hybrid composite thin-walledstructuresβ.
References
1. Kadalbajoo, M. K., Gupta, V.: A brief survey on numerical methods for solving sin-gularly perturbed problems. Applied Mathimatics and Computation. 217(8), 3641β3716 (2010).
2. Kreiss, H.-O., Nichols, N. K., Brown, D. L. Numerical methods for stiff two-pointboundary value problems. SIAM J. Numer. Anal. 23 (2), 325β368 (1986).
3. Liseikin, V. D., Likhanova, Yu. V., Shokin, Yu. I. Numerical grids and coordinatetransformations for the solution of singularly perturbed problems. Nauka. Novosi-birsk (2007, in Russian).
4. Liu., W., Tang, T. Error analysis for a Galerkin-spectral method with coordinatetransformation for solving singularly perturbed problems. Appl. Numer. Math. 38,315-345 (2001).
5. Wang, Yi., Chen, S. A rational spectral collocation method for solving a class ofparameterized singular perturbation problems. J. of Comput. and Appl. Math. 233,2652-2660 (2010).
6. Babenko, K.I.: Fundamentals of numerical analysis. Regular and chaotic dynamics,Moscow-Izhevsk (2002, in Russian).
7. Jackson, D.: On Approximation by Trigonometric Sums and Polynomials. Trans.Amer. Math. Soc. 13, 491β515 (1912).
8. Dzydyk, V. K.: Introduction to the Theory of Uniform Approximation of Functionsby Means of Polynomials. Nauka, Moscow (1977, in Russian).
9. Bakhvalov, N.S., Zhidkov, N.P., Kobelβkov, G.M.: Numerical methods. Textbook.Nauka, Moscow (1987, in Russian).
10. Boyd, J.: Chebyshev and Fourier Spectral Methods. Second Edition. University ofMichigan (2000).
11. Orszag, S. A., Israeli, M.: Numerical simulation of viscouse incompressible flows.Ann. Rev. Fluid Mech. 6, 281β318 (1974).
Mathematical and Information Technologies, MIT-2016 β Mathematical modeling
422