Download presentation

Presentation is loading. Please wait.

Published byKaylin Crull Modified over 2 years ago

1
© Boardworks Ltd 2006 1 of 54 Contents © Boardworks Ltd 2006 1 of 54 Using graphs to solve equations The change-of-sign rule Solving equations by iteration Review of the trapezium rule Simpson's rule Examination-style questions Simpson's rule

2
© Boardworks Ltd 2006 2 of 54 Simpson's rule When we used the trapezium rule we split the area that we were trying to find equal strips and then fitted straight lines to the curve. This led to approximations that often had a large percentage error. Simpson's rule also works by dividing the area to be found into equal strips, but instead of fitting straight lines to the curve we fit parabolas. The general form of a parabolic curve is y = ax 2 + bx + c. If we are given the coordinates of any three non-collinear points we can draw a parabola through them. We can find the equation of this parabola using the three points to give us three equations in the three unknowns, a, b and c.

3
© Boardworks Ltd 2006 3 of 54 Defining a parabola using three points

4
© Boardworks Ltd 2006 4 of 54 Simpson’s rule Consider the following parabola passing through the three points P, Q and R with coordinates (– h, y 0 ),(0, y 1 ) and ( h, y 2 ). If we take the equation of the parabola to be y = ax 2 + bx + c then we can write the area, A, of the two strips from – h to h as: x 0 y y0y0 y1y1 y2y2 P Q R We can use these points to define the area, A, divided by the ordinates y 0, y 1 and y 2, into two strips of equal width, h. –h–h h A

5
© Boardworks Ltd 2006 5 of 54 Simpson’s rule We can find a and c using the points (– h, y 0 ), (0, y 1 ) and ( h, y 2 ) to write three equations: When y = y 0 and x = – h : y 0 = a (– h ) 2 + b (– h ) + c = ah 2 – bh + c y 1 = c y 2 = ah 2 + bh + c When y = y 1 and x = 0: When y = y 2 and x = h : Adding the first and last equations together gives: y 0 + y 2 = 2 ah 2 + 2 c y 0 + y 2 = 2 ah 2 + 2 y 1 Since c = y 1

6
© Boardworks Ltd 2006 6 of 54 Simpson’s rule So, We can now use this to write the area, A, in terms of the ordinates y 0, y 1 and y 2 : In general, the area under any quadratic function, q ( x ), divided into two equal strips from x = a to x = b is given by: 2 ah 2 = y 0 + y 2 – 2 y 1 It is best not to isolate a because we actually want an expression for. where h =.

7
© Boardworks Ltd 2006 7 of 54 Simpson’s rule This forms the basis of Simpson’s rule where we divide the area under a curve into an even number of strips and fit a parabola to the curve across every pair of strips. The area of each pair of strips is taken to be approximately: If there are four strips (with 5 ordinates) the area will be: Adding another pair of strips would give the area as:

8
© Boardworks Ltd 2006 8 of 54 Simpson’s rule In general, for n strips the approximate area under the curve y = f ( x ) between the x -axis and x = a and x = b is given by: Where n is an even number and. This can be more easily remembered as: ( y first + y last + 4(sum of y odds ) + 2(sum of y evens )) This is Simpson’s rule. Don’t forget that Simpson’s rule can only be used with an even number of strips (or an odd number of ordinates).

9
© Boardworks Ltd 2006 9 of 54 x y 0 Simpson’s rule Let’s apply Simpson’s rule to approximate the area under the curve y = e –2 x between x = 0, x = 2 and the x -axis. Let’s use four strips as we did when we approximated this area before. 2 y = e –2 x y1y1 1 y2y2 y3y3 y4y4 y0y0 These five points define two parabolas over each pair of strips. The coordinates of the five points can be found using a table: 1 210 x

10
© Boardworks Ltd 2006 10 of 54 Simpson’s rule Using Simpson’s rule with h = gives: = 0.493 (to 3 s.f.) When we calculated this area using the same number of strips with the trapezium rule we obtained an area of 0.531 (to 3 s.f.). This result had a percentage error of 8.15%. Comparing the area given by Simpson’s rule to the actual area gives us a percentage error of: Therefore, Simpson’s rule is much more accurate than the trapezium rule using the same number of strips.

11
© Boardworks Ltd 2006 11 of 54 Contents © Boardworks Ltd 2006 11 of 54 Using graphs to solve equations The change-of-sign rule Solving equations by iteration Review of the trapezium rule Simpson's rule Examination-style questions

12
© Boardworks Ltd 2006 12 of 54 Examination-style question 1 a)Use Simpson's rule with five ordinates to find an approximate value for to 3 decimal places. b) Use integration by parts to find the exact value of the definite integral given in part a). c) Give the percentage error of the approximation found in part a) to 2 decimal places. a) If there are five ordinates there are four strips. The width of each strip is therefore

13
© Boardworks Ltd 2006 13 of 54 Examination-style question 1 Using Simpson's rule: 321 x 0 b)Let and So and

14
© Boardworks Ltd 2006 14 of 54 Examination-style question 1 Integrating by parts: c) The percentage error is 3.28%

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google