numerical method for evaluating the integrable function on ... - CiteSeerX

1 downloads 0 Views 368KB Size Report
Keywords: Numerical method; Integrable function; Taylor series. 1. ... The general method for deriving Numerical differentiation formulae is to differentiate the ...
Rajesh Kumar Sinha et. al. / International Journal of Engineering Science and Technology Vol. 2(6), 2010, 2200-2206

NUMERICAL METHOD FOR EVALUATING THE INTEGRABLE FUNCTION ON A FINITE INTERVAL RAJESH KUMAR SINHA Department of Mathematics, National Institute of Technology, Patna-800005, Bihar, India

RAKESH KUMAR Dravidian University, Kuappm, Andhra Pradesh, India

Abstract: The proposed method in this article is based on numerical method for evaluating the function on finite interval. Stress has been done on evaluation of Integrable function within a closed finite interval which provides the results based on Trapeziodal Rules, Simpson’s rule and also Newton-cote’s formula. In this paper, an alternative approach is attempted in order to discard the Taylor Polynomials as the approach follows the evaluation of derivative of function. Keywords: Numerical method; Integrable function; Taylor series 1. Introduction Numerical analysis is the study of algorithms that use numerical approximation for the problems of continuous mathematics. Numerical analysis continues this long tradition of practical mathematical calculations. Much like the Babylonian approximation, modern numerical analysis does not seek exact answers, since the exact answers are often impossible to obtain in practice. Instead, much of numerical analysis is concerned with obtaining approximate solutions while maintaining reasonable bounds on errors. It finds applications in all fields of engineering and the physical sciences. Ordinary differential equations appear in the movement of heavenly bodies (planets, stars and galaxies); optimization occurs in portfolio management; numerical linear algebra is important for data analysis; stochastic differential equations and Markov chains are essential in simulating living cells for medicine and biology. Integration is an important concept in mathematics and, together with differentiation, is one of the two main operations in calculus. The term integral may also refer to the notion of antiderivative, a function F whose derivative is the given function ƒ. In mathematics, an integrable function is a function whose integral exists. Let f(x) be defined on finite interval (a, b), that is, b

 f ( x)dx a

(1)

This may be evaluated under the assumption that f(x) is integrable. The curve is represented by a function which is expressed in the form of polynomial. If f(x)  0 and lie in finite interval (a, b) the value of integral (1) is the area bounded by the curve y = f(x) and the co-ordinates x = a and x = b. If the function F is such that F   f then (1) takes the form of

ISSN: 0975-5462

2200

Rajesh Kumar Sinha et. al. / International Journal of Engineering Science and Technology Vol. 2(6), 2010, 2200-2206 b

 f ( x)dx  F (b)  F (a) a

Here an obvious approach is to replace the Integral f of equation (1) by approximating polynomial and integrating the Polynomial provided the Taylor polynomial is being discarded. The discard of the Taylor polynomial is being made since it requires the evaluation of derivatives of f. This means Taylor polynomial is not being considered when integration is of the function under finite interval (a, b) [1-3]. Thus this concept provides a study of inverse problem of differentiation. Using an Interpolations polynomial constructed at equally spaced points x r  x 0  rh , where 0  x  n . Assuming, f(n+1) to be continuous on (x0, xn) From (1)

s s s   f f ( x 0  sh )  f 0     f 0  .......     n f 0  h n  1  1  n  n  1   where  s  ( x 0 , x n )

( n 1)

 s  (2)

The paper is organized as follows section 2 covers the basic principle along with proposed method for evaluating integrable function. Section 3 covers the result and discussion. 2. Proposed Method The general method for deriving Numerical differentiation formulae is to differentiate the Interpolating Polynomial. This formula provided a resulting corresponded to derivative forms. But the equation (2) follows with Newton’s forward difference formula; the method of derivation being the same with regard to some other formulae by replacing (x0, xn) by an appropriate larger interval when s lies outside the interval 0  s  1. Since under the assumption of given conceptions there can be constructed different Integration rule by choosing different values of n in equation (2). With n = 0, the first derivative of f given by [4-6] x1



x0

1

f ( x ) dx  hf 0  h 2  s  f ( s ) dx

(3)

0

Since there has been remark Newton’s forward difference for deriving function with difference operator  ,  2 ,  3 ........ as first, second, third …… differences usually defined in the study of calculus of finite differences. There does not exists Newton forward differences rather other formulae such as Newton Backward differences and Sterling formula give the expressions corresponding to first, second …….. derivatives of the functions. Thus the required mathematical expressions corresponding to derivatives following with stated formulae is given by s ( s  1) 2 s ( s  1)( s  2) 3 f ( x )  f 0  s f 0   f0   f 0  ...... (4) 2 3 where x = x0 + sh

df ( x ) df ( x ) ds   dx ds dx 

(5)

 1 2s  1 2 3s  6s  2 3  f0   f 0 ............. f 0  2 6 h  2

(6)

The above formula can be used for computing the value df ( x) dx for non- tabular values of x. For tabular values dx of x, the formula take a simpler form, for by setting x = x0, we obtain s = 0 and hence from equation (6)

ISSN: 0975-5462

2201

Rajesh Kumar Sinha et. al. / International Journal of Engineering Science and Technology Vol. 2(6), 2010, 2200-2206

1 1 1 1   df ( x )     f 0  2 f 0  3 f 0  4 f 0  ........   dx  h 2 3 4  x  x0 Differentiating

 d 2 f ( x) 1  2 6s  6 3 12 s 2  36 s  22 4  2  f 0   f0   f 0  ....... 2 6 24 dx h   2  d f ( x)  1  11 4   2   2 f 0  3 f 0   f 0  ........    2 12   dx  x  x0 h  For computing higher derivatives may be obtained by successive differentiation. In a similar way, different formulae can be derived by starting with other interpolation formulae. From the above mathematical expression in stated formulae forward difference operator are being used in case of derivatives of different kinds under interval x  x0 and x  xn . Since x  x0  sh such that dx  hds ; the required integrand on the right side of equation (3) is continuous function of s, where s does not change sign on (0,1) and f ( s ) . Using mean value theorem integral there is a number s  s with  s  (x0 , x1 ) such that x1



x0

1

f ( x ) dx  hf 0  h 2 f ( s )  sds 0

replacing x1





by

s

f ( x ) dx  hf 0 

x0

1 2 h f  ( ) 2

(7)

The first term on the right of equation (7) is the integration rule (also called a quadrature rule); the second term is the error term. Since the integral is approximated by the rectangle of width h= x1 – x0 , it is known as rectangular quadrature rule. Putting n = 1 and integrating f(x) over (x0, x1), x1



f ( x ) dx  hf 0 

x0

1 s 1 h  f 0  3 f ( )    ds 2 2 0 

where f  is assumed continuous on (x0, x1).

Since the mean value theorem for Integrals sates that if f is continuous and g is Integrable on Interval (a, b) and g(x)  0 for a  x  b; there exist a number   (a, b) such that b

 a

b

f ( x ) g ( x )  f ( )  g ( x ) dx a

s    2 In this case,   does not change sign on [0, 1], x1



x0

h h3 f ( x)dx  ( f 0  f 1 )  f ( ) 2 12

ISSN: 0975-5462

(8)

2202

Rajesh Kumar Sinha et. al. / International Journal of Engineering Science and Technology Vol. 2(6), 2010, 2200-2206 where    x0 , x1  and is usually distinct from the  appearing in equation (7). This is the trapezoidal rule plus error term. The integral is approximated by 1 2 h  f 0  f1  . The Trapezoidal rule is usually applied in a composite form. To estimate the integral of f over (a, b), we divide (a, b) into N sub-intervals of equal length h   b  a  N . The end points of the sub-intervals are x1  a  ih, i  0,1,.....N , so that x0  a and xN  b .

Applying trapezoidal rule to each sub-intervals [ si-1, xi ], i  1,2,..........N . Distinguishing the numbers  occurring in the error terms, from (8) xN



x0

h h3 h h3   f ( x)dx  ( f 0  f1 )  f (1 )  ............  ( f N 1  f N )  f ( N ) 2 12 2 12

Maintaining the assumption that f  is continuous on (a, b), combining the error terms b



f ( x ) dx 

a

for some

h Nh 3 ( f 0  2 f 1  2 f 2  .....  2 f N 1  f N )  f ( ), 2 12

  (a, b). This can be rewritten as

b



f ( x)dx  h( f 0  f 1  ....  f N 1 ) 

a

h h2 ( f N  f 0 )  ( x N  x0 ) f ( ). 2 12

(9)

Since x N -x0  Nh , equation (9) reveals that the composite Trapezoidal rule consists of the composite rectangular rule plus the correction term h  f N  f 0  2 . It can be observed that the rule is exact for every polynomial belonging to P1. Stressing on a generalization of the composite trapezoidal rule, that is, Gregory’s formula xN



m

f ( x ) dx  h( f 0  .....  f N )  h  C j 1 ( j f N  ( 1) j  j f 0 ), j 0

x0

where

0  C j  (  1) j   j 1 

(10)

s  ds 

(11) 1

If m  N the rule uses values f(xi) with every xi  (x0 , xN ) with m = 0, since C1=  , equation (1) is simply the 2 Trapezoidal rule. From (10), it can be stated that if m=2k or m=2k +1 then the rule equation (10) has error O(h2k+1) and integrates exactly every polynomial belonging to P2k+ 1. Thus it is desirable to use equation (10) with an even value of m. For example, if m = 2 and N  2, x1

 f ( x)dx  h( f

x0

0

 ......  f N ) 

5h h h ( f 0  f N )  ( f1  f N 1 )  ( f 2  f N  2 ) 8 6 24

which is exact if f  P3 . For the derivation of Gregory’s formula.

ISSN: 0975-5462

2203

Rajesh Kumar Sinha et. al. / International Journal of Engineering Science and Technology Vol. 2(6), 2010, 2200-2206 Returning to equation (2), put n=3 and integrate f(x) over

(x0 , x2 ) . This time the error term contains the binomial

s   (x , x ) 4 coefficient   which does change sign over 0 2 , However, it can be shown that, in this case the error term can still be written in the form (using Mean Value Theorem)

s h 5 ( 4)    ds   f   4 90 0  2

5

h f x2



( 4)

f ( x)dx 

x0

h h 5 ( 4) f   ( f 0  4 f1  f 2 )  3 90

where   (x0 , x2 ) . This is called Simpson’s rule. Like the trapezoidal rule, Simpson’s rule is usually applied in composite form. Combining the error terms as we did for the trapezoidal rule, we obtain. x2 N

h

 f ( x)dx  3 ( f

0

 4 f 1  2 f 2  4 f 3  ........  2 f 2 N  2  4 f 2 N 1  f 2 N )  ( x2 N  x0 )

x0

where   (x0 , x2 N )

h 4 ( 4) f ( ) 180

Furthermore, a remark may be given relating to study of composite form of Simpson’s rule that required even numbers of sub-intervals for which Chosen weight are applicable corresponding to values on n. by such stated conditions there is stressed in derivation of Simpson’s rule [7-9]. Since, the basis of Trapezoidal rule and Simpson’s rule in more generalized forms using weights wi, (i = 1, 2, 3, ….. n) the required integrand of the function f(x) over the interval (x0, xn) is obtained as xn



f ( x ) dx 

n

w i0

x0

i

f ( x 0  ih ) (12)

where wi are chosen so that the rule is exact if f  Pn. These are called the closed Newton cotes formulae which contributes Simpson’s rule when different weights are evaluated in form of sub-intervals. In any Integration rule such as equation (12) the numbers wi are called the weight since the rule consist of a weighted sum of certain function value. Now, to review on set formulae that is Newton Cotes, there arise the technical terms closed and open that refer to whether the end points x0 & xn are not included in the Simpson’s rule. Thus, the required form of Open Newton Cotes may be obtain in the following expression is given by xn



n

f ( x ) dx ~   wi f ( x 0  ih ) i0

x0

To obtain the simplest Newton-Cotes rule we integrate equation (3) with n = 1 over the interval ( x0 - h,x0  h) such that the required expression for given integral is written as x0  h



f ( x ) dx  2 hf 0  h

x0  h

ISSN: 0975-5462

s 1  2  f  s ds 1

3

2204

Rajesh Kumar Sinha et. al. / International Journal of Engineering Science and Technology Vol. 2(6), 2010, 2200-2206

s   2 As in the derivation of Simpson’s rule, the error term here is double some, since   change sign on [-1, 1], as the mean value theorem is not applicable here. However, again it is possible to write the error in the form

s 1 h f    ds  h 3 f   2 3 1  1

3

Applying this rule to f on the interval [x0, x1], x1



x0

1  h3  f ( x ) dx hf  x 0  h   f   2  24 

(13)

where   ( x0 , x1 ) , this is known as mid-point rule [10-11]. Obviously the mid point rule is found more economical than the Trapezoidal rule on interval (x0, x1). Since both have accuracy of order h3 but equation (14) requires only one evaluation of r instead of two evaluation for the trapezoidal rule. This is misleading since the composite form (14) is given by xN

N 1

x0

r 0

 f ( x ) dx  h 

h2 1   f  xr  h   ( x N  x0 ) f   2  24 

(14)

where   (x0, xN) Here N is required for evaluation of f that the function f(x) which only one fewer that the N + 1 evaluation required by the composite trapezoidal rule as stated above. 3. Result and Discussion Each Quadrature rule where the concept of weights exists, integration of the function over the interval (xn, xn+1) is done where xn is defined as xn  x0  nh . This relation holds for ordinary differential equation though it is conveniently use the backward difference form of interpolating polynomial constructed as x  xn , xn -1 ,........, x n - m , where m  n. thus for s > 0, there is existing a mathematical relation used with backward difference operators  in general form given by

f ( x n  sh ) 

m

 ( 1)

j

j 0

 s   s j  f  f n  (  1) m 1 h m 1    m  1  j 

m 1

 s 

(15) Now, we are interested to integrate the equation (15) over the interval ( xn , xn 1 ) such that the required integral value is obtained in terms of backward difference operator  following the condition of the change of the variable x  xn  sh , such that dx  hds then the required integral changes to x n 1



xn

1  s m 1 m  2   s   ds  (  1) h f ( x ) dx  h  (  1)  f n   0  m  1 f j  j 0 0 1

m

j

j

m 1

 s ds

Applying Mean Value of theorem, x n 1



m

f ( x ) dx  h  b j  j f n  h m  2 b m  1 f

xn

ISSN: 0975-5462

j0

( m 1)

 n 

2205

Rajesh Kumar Sinha et. al. / International Journal of Engineering Science and Technology Vol. 2(6), 2010, 2200-2206 1  s b j  (1) j   ds j  0 Where  n  ( x n  m , x n 1 ) and

If it is sometimes appropriate to make use of f(xn+1) also and construct the interpolation polynomial at

x  xn 1 , xn ,................xn - m m 1  s   s  f f ( x n 1  sh )   ( 1) j   j f n 1  ( 1) m  2 h m  2  j 0 m  2  j 

This represents equation (14) with n and m increased by 1. In this case, Applying Mean Value of theorem,

x n 1



m 1

f ( x ) dx  h  C j  j f n 1  h m  3 C m  2 f j 0

xn

where

 n  ( x n  m , x n 1 )

(m2)

m2

 s 

xn  x  xn 1 corresponds to -1  s  0 .

 n 

and Cj as reported in [11] are the same numbers occuring in Gregory’s formula.

4. Conclusion The midpoint rule, Trapezoidal rule and Simpson’s rule is to introduce the technique and analysis of quadrature methods, Composite Simpson’s rule is easy to use and produces accurate approximation, unless the function oscillate is subinterval of finite. To minimize the number of nodes which maintain accuracy, study of Gaussian quadrature, Romberg integration was introduced to take advantage of the easily applied composite Trapezoidal rule and extrapolation References [1] [2] [3]

Das, S.C. (1956): The Numerical evaluation of a class of integrals, Proc. Comb. Phil. Soc., 52, pp. 442-448 Delves, L.M. (1968): The Numerical Evaluation of Principal Value Integrals, Computer Journal, Vol. 10, , P. 389. Burden Richard L., Faires J.Douglas (2007): Numerical Analysis, pp. 186-213, 7th edition, Thomson Books. [4] Birkhoff, G.D. (1906): General mean-value and remainder theorem with applications to Mechanical differentiation and quadrature, Trans., Amer. Math. Soc., Vol. 7, pp. 107-136. [5] Daniell, P.J. (1940): Remainders in interpolation and quadrature formulae, Math. Gaz., Vo. 24, pp. 238-244. [6] Huges, Thoms, (1987): The Finite element Method , Prentice Hall, Inc. [7] Bradi, Brain, (2009): A Friedly Introduction to Numerical Analysis, pp. 441-532, Pearson Education. [8] Eliott, D.A. (1963): Chebyshev Series for the Numerical Solution of Fredholm integral equation, computer journal, Vol. 6, pp. 102. [9] Atkinson, K.E. (1978): An Introduction to Numerical Analysis, John Wiley & Sons. [10] Beard, R.E. (1947). : Some notes on approximate product integration, J. Inst. Actur., 73, pp. 356-416. [11] Baker, C.T.H. (1968): On the nature of certain quadrature formulas and their errors, SIAM. J. Numerical analysis, vol. 5, pp. 783-804.

Rajesh Kumar Sinha completed his Ph.D. in Application of Numerical Analysis and Postgraduate Programme in Mathematics & Computer Science. Currently, he is working as Assistant Professor in the Department of Mathematics, National Institute of Technology, Patna. In his total 17 years of teaching experience, he guided five M.Phil and two Ph.D students. His current research area includes Numerical Method, Fuzzy Mathematics and Graph Theory and Algorithms. Rakesh Kumar completed his postgraduate degree in Mathematics from Patna University and currently working as research scholar of Doctor of Philosophy in Quadrature formula.

ISSN: 0975-5462

2206

Suggest Documents