Week 2 Techniques of Integration

Similar documents
1.4 Techniques of Integration

Partial Fractions. June 27, In this section, we will learn to integrate another class of functions: the rational functions.

MATH 1231 MATHEMATICS 1B Calculus Section 1: - Integration.

7.5 Partial Fractions and Integration

Integration 1/10. Integration. Student Guidance Centre Learning Development Service

8.7 MacLaurin Polynomials

5.5. The Substitution Rule

Integration by parts Integration by parts is a direct reversal of the product rule. By integrating both sides, we get:

MA1131 Lecture 15 (2 & 3/12/2010) 77. dx dx v + udv dx. (uv) = v du dx dx + dx dx dx

Chapter 5: Integrals

Section 7.3 Double Angle Identities

INTEGRATING RADICALS

8.3 Partial Fraction Decomposition

Partial Fractions. Combining fractions over a common denominator is a familiar operation from algebra: 2 x 3 + 3

Course Notes for Calculus , Spring 2015

(x 3)(x + 5) = (x 3)(x 1) = x + 5. sin 2 x e ax bx 1 = 1 2. lim

b n x n + b n 1 x n b 1 x + b 0

MATH 250 TOPIC 13 INTEGRATION. 13B. Constant, Sum, and Difference Rules

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

4.8 Partial Fraction Decomposition

DRAFT - Math 102 Lecture Note - Dr. Said Algarni

2012 HSC Notes from the Marking Centre Mathematics Extension 2

Precalculus Review. Functions to KNOW! 1. Polynomial Functions. Types: General form Generic Graph and unique properties. Constants. Linear.

MATH 1231 S2 2010: Calculus. Section 2: Techniques of integration.

Example. Evaluate. 3x 2 4 x dx.

Chapter 8B - Trigonometric Functions (the first part)

Coach Stones Expanded Standard Pre-Calculus Algorithm Packet Page 1 Section: P.1 Algebraic Expressions, Mathematical Models and Real Numbers

C. Finding roots of trinomials: 1st Example: x 2 5x = 14 x 2 5x 14 = 0 (x 7)(x + 2) = 0 Answer: x = 7 or x = -2

x n cos 2x dx. dx = nx n 1 and v = 1 2 sin(2x). Andreas Fring (City University London) AS1051 Lecture Autumn / 36

Math 222, Exam I, September 17, 2002 Answers

1 Lesson 13: Methods of Integration

Ch 4 Differentiation

Functions and their Graphs

MA40S Pre-calculus UNIT C Trigonometric Identities CLASS NOTES Analyze Trigonometric Identities Graphically and Verify them Algebraically

October 27, 2018 MAT186 Week 3 Justin Ko. We use the following notation to describe the limiting behavior of functions.

The above statement is the false product rule! The correct product rule gives g (x) = 3x 4 cos x+ 12x 3 sin x. for all angles θ.

MSM120 1M1 First year mathematics for civil engineers Revision notes 3

PURE MATHEMATICS AM 27

Solutions to Exam 1, Math Solution. Because f(x) is one-to-one, we know the inverse function exists. Recall that (f 1 ) (a) =

Mathematics 136 Calculus 2 Everything You Need Or Want To Know About Partial Fractions (and maybe more!) October 19 and 21, 2016

Module M5.5 Further integration

Page 1. These are all fairly simple functions in that wherever the variable appears it is by itself. What about functions like the following, ( ) ( )

f(x) g(x) = [f (x)g(x) dx + f(x)g (x)dx

Mathematics 104 Fall Term 2006 Solutions to Final Exam. sin(ln t) dt = e x sin(x) dx.

Chapter 5: Integrals

Essex County College Division of Mathematics MTH-122 Assessments. Honor Code

PRELIM 2 REVIEW QUESTIONS Math 1910 Section 205/209

Calculus II Lecture Notes

Chapter 7: Techniques of Integration

Main topics for the First Midterm

Assignment 11 Assigned Mon Sept 27

f(g(x)) g (x) dx = f(u) du.

Chapter 13: Integrals

Calculus II Practice Test Problems for Chapter 7 Page 1 of 6

MATH 31B: MIDTERM 2 REVIEW. sin 2 x = 1 cos(2x) dx = x 2 sin(2x) 4. + C = x 2. dx = x sin(2x) + C = x sin x cos x

DuVal High School Summer Review Packet AP Calculus

Methods of Integration

Algebra Exam. Solutions and Grading Guide

3. On the grid below, sketch and label graphs of the following functions: y = sin x, y = cos x, and y = sin(x π/2). π/2 π 3π/2 2π 5π/2

2018 Mathematics. Advanced Higher. Finalised Marking Instructions

Math Final Exam Review

MATH 1010E University Mathematics Lecture Notes (week 8) Martin Li

Calculus II. Calculus II tends to be a very difficult course for many students. There are many reasons for this.

10.7 Trigonometric Equations and Inequalities

10.7 Trigonometric Equations and Inequalities

Name: AK-Nummer: Ergänzungsprüfung January 29, 2016

1. Use the properties of exponents to simplify the following expression, writing your answer with only positive exponents.

EXAM. Practice for Second Exam. Math , Fall Nov 4, 2003 ANSWERS

STEP Support Programme. Pure STEP 1 Questions

PARTIAL FRACTIONS: AN INTEGRATIONIST PERSPECTIVE

Section 5.4 The Other Trigonometric Functions

AEA 2003 Extended Solutions

GEORGE ANDROULAKIS THE 7 INDETERMINATE FORMS OF LIMITS : usually we use L Hospital s rule. Two important such limits are lim

Partial Fractions. (Do you see how to work it out? Substitute u = ax + b, so du = a dx.) For example, 1 dx = ln x 7 + C, x x (x 3)(x + 1) = a

8.5 Taylor Polynomials and Taylor Series

One important way that you can classify differential equations is as linear or nonlinear.

MATHEMATICS Lecture. 4 Chapter.8 TECHNIQUES OF INTEGRATION By Dr. Mohammed Ramidh

Feedback D. Incorrect! Exponential functions are continuous everywhere. Look for features like square roots or denominators that could be made 0.

Tangent Lines Sec. 2.1, 2.7, & 2.8 (continued)

a x a y = a x+y a x a = y ax y (a x ) r = a rx and log a (xy) = log a (x) + log a (y) log a ( x y ) = log a(x) log a (y) log a (x r ) = r log a (x).

Factors, Zeros, and Roots

Next, we ll use all of the tools we ve covered in our study of trigonometry to solve some equations.

Section 7.2 Addition and Subtraction Identities. In this section, we begin expanding our repertoire of trigonometric identities.

Core Mathematics 3 Differentiation

Integration of Rational Functions by Partial Fractions

AP Calculus Summer Packet

1 Functions and Inverses

4.5 Integration of Rational Functions by Partial Fractions

SOLUTIONS FOR PRACTICE FINAL EXAM

(Section 4.7: Inverse Trig Functions) 4.82 PART F: EVALUATING INVERSE TRIG FUNCTIONS. Think:

Chapter 7: Trigonometric Equations and Identities

18.01 Single Variable Calculus Fall 2006

Algebra & Trig Review

Practice Differentiation Math 120 Calculus I Fall 2015

Updated: January 16, 2016 Calculus II 7.4. Math 230. Calculus II. Brian Veitch Fall 2015 Northern Illinois University

Honours Advanced Algebra Unit 2: Polynomial Functions Factors, Zeros, and Roots: Oh My! Learning Task (Task 5) Date: Period:

Chapter 6. Techniques of Integration. 6.1 Differential notation

Algebra/Trigonometry Review Notes

Integration of Rational Functions by Partial Fractions

MATH1231 CALCULUS. Session II Dr John Roberts (based on notes of A./Prof. Bruce Henry) Red Center Room 3065

Transcription:

Week Techniques of Integration Richard Earl Mathematical Institute, Oxford, OX LB, October Abstract Integration by Parts. Substitution. Rational Functions. Partial Fractions. Trigonometric Substitutions. Numerical Methods. Remark We will demonstrate each of the techniques here by way of examples, but concentrating each time on what general aspects are present. Integration, though, is not something that should be learnt as a table of formulae, for at least two reasons: one is that most of the formula would be far from memorable, and the second is that each technique is more flexible and general than any memorised formula ever could be. If you can approach an integral with a range of techniques at hand you will find the subject less confusing and not be fazed by new and different functions. Remark When it comes to checking your answer there are various quick rules you can apply. If you have been asked to calculate an indefinite integral then, if it s not too complicated, you can always differentiate your answer to see if you get the original integrand back. This, of course, applies to definite integrals as well before you enter the integral s limits. Even at this point, you can still apply some simple estimation rules: if your integrand is positive (or negative) then so should your answer be; if your integrand is less than a well-known function, then its integral will be less than the integral of the well-known function. These can be useful checks to quickly apply at the end of the calculation. Integration by Parts Integration by parts (IBP) can be used to tackle products of functions, but not just any product. Suppose we have an integral f (x) g (x) in mind. This will be susceptible to IBP if one of these functions integrates, or differentiates, perhaps repeatedly, to something simpler, whilst the other function differentiates and integrates to something of the same kind. Typically then f (x) might be a polynomial which, after differentiating enough times, will become a constant; g (x) on the other hand could be something like e x, sin x, cos x, sinh x, cosh x, all of which are functions which continually integrate to something similar. This remark reflects the nature of the formula for IBP which is: Proposition (Integration by Parts) Let F and G be functions with derivatives f and g. Then F (x) g (x) F (x) G (x) f (x) G (x). These handouts are produced by Richard Earl, who is the Schools Liaison and Access Officer for mathematics, statistics and computer science at Oxford University. Any comments, suggestions or requests for other material are welcome at earl@maths.ox.ac.uk

IBP takes the integral of a product and leaves us with another integral of a product but as we commented above, the point is that f (x) should be a simpler function than F (x) was whilst G (x) should be no worse a function than g (x) was. Proof. The proof is simple we just integrate the product rule of differentiation below, and rearrange. d (F (x) G (x)) F (x) g (x)+f (x) G (x) Example 4 Determine x sin x and x e x. Clearly x will be the function that we need to differentiate down, and sin x is the function that will integrate in house. So we have, with two applications of IBP: x sin x x ( cos x) x ( cos x) [IBP] x cos x + x cos x [Rearranging] x cos x +xsin x sinx [IBP] In a similar fashion x cos x +xsin x ( cos x)+const. x cos x +xsin x + const. [Rearranging] x ex x e x à e x ex 4 e e 4 + e 4 + e 4 x ex [IBP]! 6x ex 6x ex 8 6e x 6 4 6 ex 8 [IBP] [IBP] e 8 + 8. This is by far the main use of IBP, the idea of eventually differentiating out one of the two functions. There are other important uses of IBP which don t quite fit into this type. These next two examples fall into the original class, but are a little unusual : in these cases we choose to integrate the polynomial factor instead as it is easier to differentiate the other factor. This is the case when we have a logarithm or an inverse trigonometric function as the second factor. Example 5 Evaluate (x ) ln x + and x 4 tan x. In both cases integrating the second factor looks rather daunting but each factor differentiates nicely; recall that d ln x x and that d tan x +x.

So if we apply IBP to the above examples then we get (x ) ln x + x x ln x + x x x x +, and x 4 tan x x 4x x tan x 4x x +. Here we will stop for the moment we will see how to determine these integrals, the integrands of which are known as rational functions, in section. In the same vein as this we can use IBP to integrate functions which, at first glance, don t seem to be a product this is done by treating a function F (x) as the product F (x). Example 6 Evaluate ln x and tan x. With IBP we see (integrating the and differentiating the ln x) ln x ln x x ln x x x x ln x x ln x x + const. and similarly tan x tan x x tan x x +x x tan x ln +x + const. spotting this by inspection or by using substitution (see the next section). Sometimes both functions remain in house, but we eventually return to our original integrand. Example 7 Determine e x sin x. Both of these functions now remain in house, but if we apply IBP twice, integrating the e x and differentiating the sin x, thenwesee e x sin x e x sin x e x cos x [IBP] µ e x sin x e x cos x e x ( sin x) e x (sin x cos x) e x sin x. We see that we have returned to our original integral, and so we can rearrange this equality to get e x sin x ex (sin x cos x)+const.

Substitution In many ways the hardest aspect of integration to teach, a technique that can become almost an art form, is substitution. Substition is such a varied and flexible approach that it is impossible to classify (and hence limit) its uses, and quite difficult even to find general themes within. We shall discuss later some standard trigonometric substitutions useful in integrating rational functions. For now we will simply state what substitution involves and highlight one difficulty than can occur (and cause errors) unless substitution is done carefully. Proposition 8 Let g :[c, d] [a, b] be an increasing function, such that g (c) a and g (d) b, and which has derivative g. Then b d f (x) f (g (t)) g (t) dt. a Similarly if g :[c, d] [a, b] is a decreasing function, such that g (c) b and g (d) a, then b a f (x) c c d f (g (t)) g (t) dt. The important point here is that the function g be increasing or decreasing so that it is a bijection from [c, d] to [a, b] what this technical term simply means is that to each value of x in the range [a, b] there should be exactly one value of t in the range [c, d] such that g (t) x. Here is an example of what might go wrong if substitution is incorrectly applied. Example Evaluate x. This is not a difficult integral and we would typically not think of using substitution to do this; we would just proceed and find x x ³ ( ). But suppose that we d tried to use (in a less than rigorous fashion) the substitution u x here. We d see that du x u so that du u and when x,uand when x, u 4. So surely we d find x 4 u du u 4 4 u du u/ (8 ) 7. What s gone wrong is that the assignment u x doesn t provide a bijection between [, ] and [, 4] as the values in [, ] squaretothesamevaluesasthosein[, ]. The missing / error in the answer is in fact the integral R x. If we d particularly wished to use this substitution here then it could have been correctly made by splitting our integral as x x + x and using the substitution u x separately on each integral; this would work because u x gives a bijection between [, ] and [, ], and between [, ] and [, 4]. 4

Here are some examples where substitution can be applied, provided some care is taken. Example Evaluate the following integrals +e x, π π sin x +cosx. In the first integral a substitution that might suggest itself is u +e x or u e x ;let strythefirst of these u +e x. As x varies from x to x then u varies from u to u +e. Morever u is increasing with x so that the rule u +e x is a bijection from the x-values in [, ] to the u-values in the range [, +e]. We also have that So +e x du e x (u ). +e +e du u u µ u u [substitution] [ln u ln u ] +e ln(e) ln ( + e) ln + ln +ln µ +e. du [using partial fractions] For the second integral, it would seem sensible to use u +cosxor u cosx here. Let s try the second one: u cosx. Firstly note that u is not a bijection on the range [ π/,π], it takes the same values in the range [ π/, ] as it does in the range [,π/]. In fact the integrand is odd (that is f ( x) f (x)) and so its integral between x π/ and π/ will be zero automatically. So we can write π π/ sin x +cosx π/ π/ π π/ sin x π +cosx + π/ sin x +cosx. sin x +cosx Nowwecanusethesubstitutionu cosx noticing that du sin x, when x π/,uand when x π, u, so that π π/ sin x +cosx du +u [ln +u ] (ln ln ) ln. 5

Rational Functions A rational function is one of the form a m x m + a m x m + + a b n x n + b n x n, + + b where the a i and b i are constants that is, the quotient of two polynomials. In principle, (because of the Fundamental Theorem of Algebra which says that the roots of the denominator can all be found in the complex numbers), it is possible to rewrite the denominator as b n x n + b n x n + + b p (x) p (x) p k (x) where the polynomials p i (x) are either linear factors (of the form Ax + B) or quadratic factors (Ax + Bx + C) withb < 4AC and complex conjugates for roots. From here we can use partials fractions to simplify the function.. Partial Fractions Given a rational function a m x m + a m x m + + a p (x) p (x) p k (x) where the factors in the denominator are linear or quadratic terms, we follow several simple steps to put it into a form we can integrate.. if the numerator has greater degree than the denominator, then we divide the denominator into the numerator (using polynomial long division) till we have an expression of the form P (x)+ A ix i + A i x i + + A p (x) p (x) p k (x) where P (x) is a polynomial, and the numerator A i x i + A i x i + + A now has a strictly smaller degree than the denominator p (x) p (x) p k (x). Of course, integrating the polynomial part P (x) will not cause us any difficulty so we will ignore it from now on.. Let s suppose, for now, that none of the factors in the denominator are the same. In this case we can use partial fractions to rewrite this new rational function as A i x i + A i x i + + A p (x) p (x) p k (x) α (x) p (x) + α (x) p (x) + + α k (x) p k (x) where each polynomial α i (x) is of smaller degree than p i (x). This means that we have rewritten the rational function in terms of rational functions of the form A Bx + C and Ax + B Cx + Dx + E which we will see how to integrate in the next subsection.. If however a factor, say p (x), is repeated N times say, then rather than the α (x) /p (x) term in the equation above, the best we can do with partial fractions is to reduce it to an expression of the form β (x) p (x) + β (x) (p (x)) + + β N (x) (p (x)) N where the polynomials β i (x) have smaller degree than p (x). This means the final expression may include functions of the form A (Bx + C) n and Ax + B (Cx + Dx + E) n where D < 4CE. 6

Example Use the method of partial fractions to write the following rational function in simpler form x 5 (x ) (x +). The numerator has degree 5 whilst the denominator has degree 4, so we will need to divide the denominator into the numerator first. The denominator expands out to Using polynomial long-division we see that (x ) x + x 4 x +x x +. x + x 4 x +x x + x 5 +x 4 +x +x +x + x 5 x 4 +x x +x x 4 x +x x + x 4 4x +4x 4x + x x +x So we have that x 5 (x ) (x +) x x +x ++x (x ) (x +), whichleavesustofind the constants A, B, C, D, in the identity x x +x (x ) (x +) Multiplying through by the denominator, we find A x + B (x ) + Cx + D x +. x x +x A (x ) x + + B x + +(Cx + D)(x ). As this holds for all values of x, then we can set x to deduce + B and so B. If we set x then we also get that A + + D. () Other things we can do are to compare the coefficients of x on either side which gives and to compare the coefficients of x which gives A + C () A + C D. () Substituting () into () yields D and so D /. From equation () this means that A and so C. Finally then we have x x +x (x ) (x +) x + / (x ) / x + and x 5 (x ) (x +) x ++ x + / (x ) / x +. 7

. Trigonometric Substitutions If we look now at the function we are faced with, namely x ++ x + / (x ) / x +, then only the final term is something that would cause trouble from an integrating point. To deal with such functions we recall the trigonometric identities sin θ +cos θ, +tan θ sec θ, +cot θ csc θ. (4) So a substitution of the form x tanθ into an expression like +x simplifies it to sec θ. Noting sec θ dθ we find +x sec θ dθ +tan θ sec θ dθ sec θ dθ So returning to our example we see x 5 (x ) (x +) x θ + const. tan x + const. Ã! x ++ x + / (x ) / x + +x +ln x / x tan x + const. Returning to the most general form of a rational function, we were able to reduce (using partial fractions) the problem to integrands of the form A (Bx + C) n and Ax + B (Cx + Dx + E) n where D < 4CE. Integrating functions of the firsttypecausesusnodifficulty as ( A A (Bx + C) n B( n) (Bx + C) n + const. n 6 ; ln Bx + C + const. n. A B The second integrand can be simplified, firstlybycompletingthesquareand then with a trigonometric substitution. Note that µ Cx + Dx + E C x + D + µe D. C 4C If we make a substitution of the form u x + D/C then we can simplify this integral to something of the form (au + b) du (u + k ) n for new constants a, b and k>. Part of this we can integrate directly: u du (u + k ) n ( u + k n + const. n 6 ; ln u + k + const. n. ( n) 8

The other integral du (u + k ) n can be simplified with a trigonometric substitution u k tan θ, the integral becoming du k sec θ dθ (u + k ) n k tan θ + k n sec θ dθ k n (sec θ) n k n cos n θ dθ. The n,, cases can all easily be integrated. We will see in the next section on Reduction Formulae how to deal generally with integrals of this form. For now we will simply give an example where n. Example Determine I (x +x +) Remember that the first step is to complete the square: I (x +x +) x + x + ³ x + + Our first substitution is simply a translation let u x +/ noting that du : I ³ x + du + (u +/) Then we set u tan θ to further simplify the integral. So I / sec θ dθ ( sec θ/) µ cos θ dθ ( + cos θ) dθ [using cos θ cos θ ] µθ 4 + sin θ + const. 4 (θ +sinθcos θ)+const. [using sin θ sinθcos θ] µ 4 u u u tan +sintan cos tan + const. by undoing the substitution u tan θ.

From the right-angled triangle è!!!!!!!!!!!!! + x x we see that sin tan x tan x x +x and cos tan x +x. So I 4 Ã u tan + u/ p +u / p +u / µ u tan + 6u + const. (+u )! + const. 4 µ µ µtan 4 x + 6x + + + const. (x +6x +) µ µ x + 4 tan (x +) + + const. (x +x +) This example surely demonstrates the importance of remembering the method and not the formula!. Further Trigonometric Substitutions The trigonometric identities in equation (4) can be appliedinmoregeneralcasesthanthoseaboveused for integrating rational functions above. A similar standard trigonometric integral is x sin x + const. This can be deduced in exactly the same way: this time we make use of the trigonometric identity sin θ cos θ and make a substitution x sinθ to begin this calculation. Likewise the integral x +x + could be tackled with the substitutions we used in the previous example. Multiple angle trigonometric identities can also be very useful: we have already made use of the formula cos θ cos θ to determine the integral of cos θ. Likewise, in principle,we could integrate cos n θ by first writing it in terms of cos kθ (for various k) we will see how to do this in the class on complex numbers, but approach this integral in other ways in the next section on reduction formulae.

We close this section with a look at the t-substitution, which makes use of the half-angle tangent formulas. Faced with the integral π dθ +cosθ, we make a substitution of the form t tan θ. Each of the trigonometric functions sin, cos, tan can be written in terms of t. The formulae are sin θ t t t, cos θ, tan θ +t +t t. An easy way to remember these formulae is probably by means of the right-angled triangle: +t t θtan t t If we make this substitution in the above integral then firstly we need to note that t tan(θ/) is a bijection from the range [,π) to the range [, ). Also So π dθ d tan t dθ +cosθ dt +t. + t dt +t +t dt +t + t dt +t tan t ³ π π.

4 Reduction Formulae In the previous section on integrating rational functions we were left with the problem of calculating I n cos n θ dθ, and we will approach such integrals using reduction formulae. The idea is to write I n in terms of other I k where k<n,eventually reducing the problem to calculating I, or I say, which are simple integrals. Using IBP we see I n cos n θ cos θ dθ cos n θ sin θ (n ) cos n θ ( sin θ)sinθ dθ cos n θ sin θ +(n ) cos n θ cos θ dθ cos n θ sin θ +(n ) (I n I n ). Rearranging this we see I n cosn θ sin θ + n n n I n. With this reduction formula I n can be rewritten in terms of simpler and simpler integrals until we are left onlyneedingtocalculatei, if n is even, or I,ifn is odd both these integrals are easy to calculate. Example Calculate Using the reduction formula above I 7 cos 7 θ dθ. I 7 cos6 θ sin θ 7 cos6 θ sin θ 7 cos6 θ sin θ 7 cos6 θ sin θ 7 Example 4 Calculate + 6 7 I 5 + 6 µ cos 4 θ sin θ + 4 7 5 5 I + 6cos4 θ sin θ 5 + 6cos4 θ sin θ 5 + 4 µ cos θ sin θ + 5 I + 4 cos θ sin θ 5 x e x + 48 sin θ + const. 5 This is an integral we previously calculated in the first section. We can approach this in a simpler, yet more general, fashion by setting up a reduction formula. For a natural number n let J n We can use then integration by parts to show J n x n ex x n e x e n J n if n. n ex nx

andsothecalculationinexample4simplifies enormously (at least on the eye). We first note e J e x x e, and then applying the reduction formula: J e J e µ e J e e 4 + µ e J e 8 + 8. Some integrands may involve two variables, such as: Example 5 Calculate for positive integers m, n the integral B (m, n) x m ( x) n. Calculating either B (m, ) or B (,n) is easy; for example B (m, ) x m m. (5) So it would seem best to find a reduction formula that moves us towards either of these integrals. Using integration by parts, if n we have x m x m B (m, n) ( x)n (n ) ( ) ( x)n m m + n x m ( x) n m n B (m +,n ). m So if n we can apply this to see B (m, n) n B (m +,n ) m n m n B (m +,n ) m + µ µ µ n n B (m + n, ) m m + m + n µ µ µ n n m m + m + n m + n (n )! (m + n )!/ (m )! (m )! (n )!. (m + n )! We have, in fact, already checked that this formula holds for the case n in equation (5).

5 Numerical Methods Of course it s not always possible to calculate integrals exactly and there are numerical rules that will provide approximate values for integrals approximate values, which by sampling the function more and more times, can be made better and better. Suppose that f :[a, b] R is the function we are wishing to integrate. Our idea will be to sample the function at n +evenly spread points through the interval: µ b a x k a + k for k,,,...,n, n so that x a and x n b. The corresponding y-value we will denote as y k f (x k ). For ease of notation the width between each sample we will denote as h b a n. There are various rules for making an estimate for the integrals of the function based on this data. We will consider the Trapezium Rule and Simpson s Rule. Trapezium Rule. This estimates the area as: ³ y h + y + y + + y n + y n. This estimate is arrived at (as you might guess from the name) by approximating the area under the graph with trapezia. We presume that the graph behaves linearly between (x k,y k ) and (x k+,y k+ ) and take the area under the line segment connecting these points as our contribution. Simpson s Rule. This requires that n be even and estimates the area as: h (y +4y +y +4y +y 4 + +y n +4y n + y n ). The more sophisticated Simpson s Rule works on the presumption that between the three points (x k,y k ), (x k+,y k+ ), (x k+,y k+ ) (where k is even) the function f will change quadratically and it calculates the area contributed beneath each of these quadratic curves..8.8.6.6.4.4...5.5.75.5.5 Trapezium Rule: n 4.5.5.75.5.5 Simpson s Rule: n 4 The above two graphs show applications of the trapezium rule and Simpson s rule in calculating with n 4subintervals. π/ sin x 4

Example 6 Estimate the integral x using both the trapezium rule and Simpson s rule using n intervals. This is, of course, an integral we can calculate exactly as /4. The two rules above give us: and we also have à Trapezium Approximation n + à n 8n Simpson s Approximation 6n 6n 6n n n 4. n 4n + 6n 4 + 6n. à +4 µ + + n! n X k k + µ n n µ 8n 4 (n ) (n) + µ µ! + + + n n Remark 7 Note in these calculations we make use of the formula! + Ã! + 4 n X (n) k n X (n) (k) + k k µ 4 8n 4 (n ) (n) 8n 8 4 (n ) n + nx k 4 n (n +). k We see then that the error from the Trapezium Rule is / 6n and so decreases very quickly. Amazingly Simpson s Rule does even better here and gets the answer spot on the overestimates and underestimates of area from under these quadratics actually cancel out. In general Simpson s Rule is an improvement on the Trapezium Rule with the two errors (associated with n intervals) being given by: (b a) E Trapezium 48n max { f (x) : a x b}, and Simpson s Rule with n steps (b o a)5 E Simpson n f 88n 4 max (4) (x) : a x b. Note that the error is O n 4 for the Simpson Rule but only O n for the Trapezium Rule. 5