Modi cation of Fourier Approximation for Solving Boundary...

17
Modification of Fourier Approximation for Solving 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 University Pirogova 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 stability of the method is justified theoretically for four types of coordinate map- pings, the dependencies of approximation error on values of derivatives of approximated functions are obtained. Algorithms for expanding of functions into series with coupled basis composed of Chebyshev polyno- mials and designed non-polynomial functions are implemented. It was shown that for functions having high order of smoothness and extremely steep gradients in the vicinity of bounds of segment the accuracy of pro- posed method cardinally exceeds that of Chebyshev’s approximation. For such 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 reduces to boundary value problems for differential equations having pronounced singu- larities of boundary layer type. The most popular approaches to solving them are based on construction of computational grids with piecewise linear/polynomial approximation of the unknown function in each cell of grid [1]. Such approaches provide relatively low rate of convergence and lead to essential refinement of grid in the vicinity of boundary layer and consequently to growth of computational costs and errors. In [2, 3] methods of coordinate transformations were developed which allow to decrease the influence of mentioned effect due to application of special coordinate mappings eliminating the singularity. Nevertheless, the anal- ysis of key issue concerning the smoothness of such transformations and its influence on the quality of approximation method is absent. Frequently, authors Mathematical and Information Technologies, MIT-2016 β€” Mathematical modeling 406

Transcript of Modi cation of Fourier Approximation for Solving Boundary...

Page 1: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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

Page 2: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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

Page 3: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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

Page 4: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

𝐢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

Page 5: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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

Page 6: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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

Page 7: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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

Page 8: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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

Page 9: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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

Page 10: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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

Page 11: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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

Page 12: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½

οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½

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

Page 13: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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

Page 14: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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

Page 15: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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

Page 16: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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

Page 17: Modi cation of Fourier Approximation for Solving Boundary ...ceur-ws.org/Vol-1839/MIT2016-p36.pdfping, boundary value problem, Fourier series, Chebyshev polynomial, non-polynomial

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