ebook img

ERIC EJ853815: Numerical Integration PDF

2009·0.26 MB·English
by  ERIC
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview ERIC EJ853815: Numerical Integration

Numerical integration Gerry Sozio St Mary Star of the Sea College, Wollongong <[email protected]> Senior secondary students cover numerical integration techniques in their mathematics courses. In particular, students would be familiar with the midpoint rule, the elementary trapezoidal rule and Simpson’s rule. The following paper derives these techniques by methods which secondary students may not be familiar with and an approach that undergraduate students should be familiar with. Secondary students will also find interesting the two-point Gauss rule, which is an extension of the trapezoidal rule. There are many applica- tions of integral calculus and developing a deeper understanding of some of the numerical methods will increase understanding of the techniques. The methods chosen in this paper have been investigated as secondary students will be familiar with their applications. However, secondary text books and teachers may not use the techniques covered in this paper, and this alternate approach may increase the understanding of the importance and applica- tions of the techniques, as well as increase an appreciation of the beauty of mathematics in general. The paper also provides a detailed summary of the techniques that will be beneficial for undergraduate students. Numerical integration enables approximations to be found for A u s t r where the integral for f(x) cannot be written in terms of elementary func- alia n tions. A use of the definite integral is to determine the area between a curve S e and the horizontal axis (see Figure 1). n io In this article the midpoint rule, the elementary trapezoidal rule, the two- r M point Gauss rule and Simpson’s elementary rule will be developed. a t h e m a The general form of a numerical integration rule — also known as the t ic s quadrature rule — is J o u r n a l 2 3 In this form, N is a natural number, w are called the weights or coefficients and (1 i ) 43 o zi o S Figure 1 the values of f(x) are called the ordinates. The quadrature rule is not exact for every f(x). However, the rule can be exact for some simple functions such as 1, x, x2. Say we wish to integrate by choosing an appropriate w and f(x ) and N = 1, i.e.: 1 1 If we consider f(x) = 1, then f(x ) = 1. 1 Now, So, w .f(x ) = w .1 = w 1 1 1 1 By equating and w .f(x ), then w = 1. 1 1 1 Say we now consider f(x) = x, then f(x ) = x . 1 1 1) ( 3 2 al Now, n r u o J So, w .f(x ) = w .x . 1 1 1 1 s c ti a m By equating and w .f(x ), then: w .x = . But since w = 1, then x = . e 1 1 1 1 1 1 h t a M r Therefore which is the midpoint rule on [0, 1]. o ni e S n a Now, consider the midpoint rule on [a, b]. ali r t s Say, u A 44 N If f(x) = 1, then . um e r ic Also, w .f(x ) = w .1 = w a 1 1 1 1 l in t e Therefore, w = b – a. g 1 r a t Consider f(x) = x, then io n Now, w .f(x ) = w .x ; but, w = b – a, so, 1 1 1 1 1 Therefore, which is the midpoint rule on [a,b]. Note that the midpoint rule will integrate linear functions exactly. In using the endpoints of the interval when using the simple quadrature rule, we can commence with x = 0, x = 1 where N = 2; i.e.: 1 2 As there are two unknowns, w and w are chosen such that 1 and x can be 1 2 exactly integrated. Now, when f(x) = 1 then A u s t r That is, w1f(0) + w2f(1) = w1.1 + w2.1 = w1.w2 alia n S e as f(0) = f(1)= 1. n io So, w1 = w2 = 1. r M a t Letting f(x) = x h e m a t ic s Then, w .f(0) + w .f(1) = w .0 + w .1 = w 1 2 1 2 2 J o u r n as f(0) = 0 and f(1)= 1. a l 2 3 Therefore, w = , which leads to w = . 2 1 (1 ) 45 o zi o Thus S Now, consider the interval [a,b] where x = a and x = b. 1 2 When f(x) = 1, Also, w f(a) + w f(b) = w + w 1 2 1 2 Therefore, w + w = b – a. 1 2 Now, when f(x) = x, Also, w f(a) + w f(b) = w a + w b. 1 2 1 2 Now, w + w = b – a …(1) 1 2 …(2) Multiply Equation (1) by a and subtract from Equation (2): Therefore, the general form of the elementary trapezoidal rule on [a,b] is: This Rule will integrate linear functions exactly. The two-point Gauss rule is an extension of the trapezoidal rule. N = 2 is now considered. This quadrature rule is of the form: 1) ( 3 2 al n r and unlike the trapezoidal rule in which x and x are fixed at the ends of the u 1 2 o J interval, x and x are not predetermined. 1 2 s c As there are four unknowns, w , w , x and x are chosen such that 1, x, x2 ti 1 2 1 2 a m and x3 can be exactly integrated. e h t a M When f(x) = 1: r o ni e S n a ali r t s u A 46 N When f(x) = x: u m e r ic a l in t e g r a t When f(x) = x2: io n When f(x) = x3: In solving these four equations in four unknowns: This gives the two-point Gauss rule: The technique to solve the above system of equations is difficult and beyond secondary school methods. An appropriate method can be found in Kelly (1967, p. 57). When considering the general integral: A u the Two-Point Gauss Rule can be derived similarly by considering the follow- s t r ing integrals: alia n S e For f(x) = 1: n io r M a t h e m a t ic s J o u r n a l 2 3 (1 ) 47 o zi o S The solutions to the simultaneous equations are: Hence, The technique to solve the above systems of equations is difficult, and an appropriate method can be found in Kelly (1967, p. 57). Simpson’s elementary rule will now be considered, with N = 3. Say on the interval [0,1] we choose for Then Values need to be chosen for w , w and w such that 1, xand x2can be exactly 1) 1 2 3 ( integrated. 3 2 al n r For f(x) = 1: u o J s c ti a m e h t a M For f(x) = x: r o ni e S n a ali r t s u A 48 N For f(x) = x2: u m e r ic a l in t e g r a t io n Solving the three simultaneous equations: Hence, the elementary Simpson’s rule is given by: Simpson’s rule integrates quadratics as well as cubics exactly. If the interval [a,b] is taken it can be shown that the elementary Simpson’s rule is given by: A parabola is taken that passes through the following points of the func- tion in the interval [a,b]: (a,f(a)), (b,f(b)) and (a+b,f(a+b)). The area under the parabola then estimates the area under the function. Following is a proof. Let F(x) = Ax2 + Bx + C be the equation of a parabola, then: A u s t r a lia n S e n io r M a t h e m a t ic s J o u r n To improve the accuracy of applications of the discussed rules, the number a l 2 of sample points can be increased by deriving more complicated rules or by 3 dividing the range into many sub-intervals. (1 ) 49 o zi As can be seen, the numerical integration methods are able to approxi- o S mate a value for a definite integral using the values of the function at points within the interval of the integrand. Acknowledgement Ideas for this article are based on MATH142: Notes For Mathematics 1C, Part 2 (2005), School of Mathematics & Applied Statistics, University of Wollongong. Reference Kelly, L. G. (1967). Handbook of numerical methods and applications. Reading, MA: Addison- Wesley. 1) ( 3 2 al n r u o J s c ti a m e h t a M r o ni e S n a ali r t s u A 50

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.