“Teach A Level Maths” Vol. 2: A2 Core Modules

Slides:



Advertisements
Similar presentations
“Teach A Level Maths” Vol. 1: AS Core Modules
Advertisements

“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 2: A2 Core Modules
“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 2: A2 Core Modules
“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 2: A2 Core Modules
32: The function 32: The function © Christine Crisp “Teach A Level Maths” Vol. 2: A2 Core Modules.
“Teach A Level Maths” Vol. 2: A2 Core Modules
“Teach A Level Maths” Vol. 2: A2 Core Modules
“Teach A Level Maths” Vol. 2: A2 Core Modules
“Teach A Level Maths” Vol. 1: AS Core Modules
2: Inverse Functions © Christine Crisp “Teach A Level Maths” Vol. 2: A2 Core Modules.
Estimating the Standard Deviation © Christine Crisp “Teach A Level Maths” Statistics 2.
1: Straight Lines and Gradients © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
“Teach A Level Maths” Vol. 2: A2 Core Modules
13: Stationary Points © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
© Christine Crisp “Teach A Level Maths” Vol. 2: A2 Core Modules 47: Solving Differential Equations.
Definite Integration and Areas 01 It can be used to find an area bounded, in part, by a curve e.g. gives the area shaded on the graph The limits of integration...
Coordinate geometry © Christine Crisp.
6: Roots, Surds and Discriminant © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
Introduction This chapter gives you several methods which can be used to solve complicated equations to given levels of accuracy These are similar to.
46: Indices and Laws of Logarithms
“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 1: AS Core Modules
49: A Practical Application of Log Laws © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
41: Trig Equations © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
1: Straight Lines and Gradients © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
42: Harder Trig Equations “Teach A Level Maths” Vol. 1: AS Core Modules.
“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 2: A2 Core Modules
6: Discriminant © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
42: Harder Trig Equations “Teach A Level Maths” Vol. 1: AS Core Modules.
42: Harder Trig Equations © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
20: Stretches © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
Iteration
Sign Change Re-cap Show that each of the following have a solution for x: 1.The intersection of (between 1.8 and 1.9) and 2.The intersection of(between.
41: Trig Equations © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
43: Quadratic Trig Equations and Use of Identities © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
Linearization, Newton’s Method
9: Linear and Quadratic Inequalities © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
13: Stationary Points © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
Iteration The solution lies between 0 and 1. e.g. To find integer bounds for we can sketch and  0 and 1 are the integer bounds. We often start by finding.
12: Tangents and Gradients © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
8: Simultaneous Equations and Intersections © Christine Crisp “Teach A Level Maths” Vol. 1: AS Core Modules.
“Teach A Level Maths” Vol. 1: AS Core Modules
42: Harder Trig Equations
The exact values can be found by solving the equations simultaneously
Numerical Methods.
“Teach A Level Maths” Vol. 1: AS Core Modules
Numerical Methods.
“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 2: A2 Core Modules
“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 2: A2 Core Modules
43: Quadratic Trig Equations and Use of Identities
“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 1: AS Core Modules
42: Harder Trig Equations
“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 2: A2 Core Modules
Lucan Community College Leaving Certificate Mathematics
“Teach A Level Maths” Vol. 1: AS Core Modules
“Teach A Level Maths” Vol. 1: AS Core Modules
Presentation transcript:

“Teach A Level Maths” Vol. 2: A2 Core Modules 17: Iteration using © Christine Crisp

There are some equations that we can’t solve. e.g. However, we can find an approximate solution to some of these equations. The approximation can be very accurate, say to 6 or more decimal places. There are several methods of finding approximate solutions and in this presentation we will study one of them.

There are 2 stages to getting a solution: Stage 1. Find a 1st estimate Stage 2. Find a formula to improve the estimate. Sometimes we can just spot an approximate solution to an equation. If we can’t quickly spot an approximation, we can use a method involving finding bounds for the solution.

Bounds are numbers which lie on either side of the solution. If these are integers we call them integer bounds. e.g. To find integer bounds for we can sketch and This is the point . . . where and so the x coordinate gives the solution to

0 and 1 are the integer bounds. Bounds are numbers which lie on either side of the solution. If these are integers we call them integer bounds. e.g. To find integer bounds for we can sketch and The solution lies between 0 and 1. 0 and 1 are the integer bounds. a We usually call the solution a, so . Autograph 1

0 and 1 are the integer bounds. Bounds are numbers which lie on either side of the solution. If these are integers we call them integer bounds. e.g. To find integer bounds for we can sketch and The solution lies between 0 and 1. 0 and 1 are the integer bounds. a We usually call the solution a, so . Our first approximation to a, is any number between the bounds, say

Rearrange the equation to get zero on one side. e.g. For , get Algebraic Method Rearrange the equation to get zero on one side. e.g. For , get The solution, a, is now where At a, a To the left of a, e.g. at x = 0, To the right of a, e.g. at x = 1,

Rearrange the equation to get zero on one side. e.g. For , get Autograph 2 has opposite signs on the left and right of a. a To the left of a, e.g. at x = 0, To the right of a, e.g. at x = 1,

If we want to show that 0 and 1 are integer bounds, we show that has different signs at 0 and 1. Rearrange the equation to the form Let Define : Find :

The Algebraic Method: If we want to show that 0 and 1 are integer bounds, we show that has different signs at 0 and 1. Rearrange the equation to the form Let Define : Change of sign So there is a root inbetween Find : Find : The change of sign

The Algebraic Method: If we want to show that 0 and 1 are integer bounds, we show that has different signs at 0 and 1. Rearrange the equation to the form Let Define : Change of sign So there is a root inbetween Find : Find : The change of sign So the root a lies between these values, say You must always include this line.

It is possible to find bounds that are closer than the nearest integers. For example, to find bounds accurate to 1 decimal place, we could use a decimal search. So if we had , a decimal search would calculate looking for a change of sign. However, integer bounds are good enough for the method of iteration we are studying.

e.g. 1 (a) Using a graphical calculator, or otherwise, sketch, on the same axes, the graphs of and (b) From the sketch, find integer bounds for the solution, a, of the equation (c) Use an algebraic method to confirm these are correct and give a 1st approximate solution. Solution: (a) (b) a is the x-value at the point of intersection, so 0 and 1 are integer bounds. a

e.g. 1 (a) Using a graphical calculator, or otherwise, sketch, on the same axes, the graphs of and (b) From the sketch, find integer bounds for the solution, a, of the equation (c) Use an algebraic method to confirm these are correct and give a 1st approximate solution. (c) ( Confirm bounds are 0 and 1 ) Rearrange equation to : Define : So, The change of sign A 1st approximation is any number between 0 and 1.

The 1st approximate solution lies anywhere between the bounds The 1st approximate solution lies anywhere between the bounds. The next stage is to improve this estimate. Rearrange the equation to the form . You may spot lots of ways of doing this. e.g. e.g. For the equation :

The 1st approximate solution lies anywhere between the bounds The 1st approximate solution lies anywhere between the bounds. The next stage is to improve this estimate. Rearrange the equation to the form . You may spot lots of ways of doing this. e.g. e.g. For the equation : (i) Square: or (ii) Rearrange: Cube root: or (iii) Rearrange: Divide by :

Let’s take the 2nd arrangement: Our 1st estimate of a we will call x0. We substitute x0 into the r.h.s. of the formula and the result gives the new estimate x1. ( Some people start with x1 which is just as good. ) We now have We will then keep repeating the process so we write the formula as This is called an iterative formula. to iterate means to repeat

So, Starting with we get ( 6 d.p. ) Because we are going to repeat the calculation, we use the ANS function on the calculator. Type and press ENTER Type the r.h.s. of the equation, replacing x with ANS, using the ANS button, giving Press ENTER and you get ( 6 d.p. ) Pressing ENTER again replaces with and gives the next estimate and so on.

We get Although I’ve only written down 6 decimal places, the calculator is using the greatest possible accuracy. If we continue to iterate we eventually get ( to 6 d.p. )

SUMMARY To find an approximation to a solution ( or root ) of an equation: Find a 1st approximation, often by finding integer bounds for the solution. Let this be x0 . Rearrange the equation into the form Write the arrangement as an iterative formula: Key x0 into a calculator and ENTER. Key the r.h.s. of the formula into the calculator, replacing x with ANS. Press ENTER as many times as required to get the solution to the specified accuracy.

In the previous presentation, we found the approximate solution to Using the formula with we got The solution to the equation we called a. We can illustrate the iteration process on a diagram.

For we draw and So, a is the x-coordinate of the point of intersection. ( to 6 d.p. ) We’ll zoom in on the graph to enlarge the part near the intersection. Autograph

We started the iteration with and we substituted to get . On the diagram we draw from to the curve . . .

y-value, We started the iteration with and we substituted to get . On the diagram we draw from to the curve . . . x which gives a y-value,

y-value, We started the iteration with and we substituted to get . On the diagram we draw from to the curve . . . x x which gives a y-value, By drawing across to y = x this y-value gives the point where x . This is .

In the iteration, is now substituted into to give . On the diagram we draw from to the curve . . . x x giving the next y-value. x The next line converts this y-value to and so on.

In the iteration, is now substituted into to give . On the diagram we draw from to the curve . . . x x giving the next y-value. x The next line converts this y-value to and so on. The lines are drawn to the curve and y = x alternately, starting by joining to the curve.

The diagram we’ve drawn illustrates a convergent, oscillating sequence. This is called a cobweb diagram.

Looking at the original graph, we have

There were 3 rearrangements found earlier Rearrange the equation to the form . e.g. For the equation : (i) Square: Graph 2 or (ii) Rearrange: Cube root: or (iii) Rearrange: Divide by : Graph 3

Some arrangements of an equation give formulae which do not give a solution. We earlier met 3 arrangements of (iii) (ii) (i) We used (ii) with to find the solution ( to 6 d.p. ) Now try (i) with We get and after a while the sequence just oscillates between 1 and 0. This iterative sequence does not converge.

Now try the formula with We get The iteration then fails because we are trying to square root a negative number. Some arrangements of an equation give an iterative sequence which converges to a solution; others do not converge. The next presentation investigates convergence of iterative sequences.

SUMMARY To draw a diagram illustrating iteration: Draw and on the same axes. Mark on the x-axis and draw a line parallel to the y-axis from to ( the curve ). Continue the cobweb line, going parallel to the x-axis to meet Repeat Continue the cobweb line, going parallel to the y-axis to meet

e.g. 1(a) Show that the equation has a root a in the interval . (b) Using the arrangement write down an iterative formula and use it to find the root correct to 4 decimal places. Solution: (a) Let Then, Change of sign

e.g. 1(a) Show that the equation has a root a in the interval . (b) Using the arrangement write down an iterative formula and use it to find the root correct to 4 decimal places. Solution: (b) gives Let It takes about 7 iterations to reach (4 d.p.)

Exercise 1. (a) Show that the equation has a solution a between 2 and 3. (b) Use the iterative formula with to find the solution, giving your answer correct to 4 d.p. 2. (a) Show that the equation has a solution between 1 and 2. (b) Use the iterative formula with to find the solution, giving your answer correct to 4 d.p.

Solutions 1. (a) Show that the equation has a solution between 2 and 3. Solution: (a) Let Change of sign (b) Use the iterative formula with to find the solution, giving your answer correct to 4 d.p. ( 4 d.p. ) Autograph

Solutions 2. (a) Show that the equation has a solution between 1 and 2. Solution: Let Change of sign (b) Use the iterative formula with to find the solution, giving your answer correct to 4 d.p. Solution: We need ( 4 d.p. ) Autograph

The following slides contain repeats of information on earlier slides, shown without colour, so that they can be printed and photocopied. For most purposes the slides can be printed as “Handouts” with up to 6 slides per sheet.

There are some equations that we can’t solve. However, we can find an approximate solution to some of these equations. e.g. There are several methods of finding approximate solutions and in this presentation we will study one of them. The approximation can be very accurate, say to 6 or more decimal places.

There are 2 stages to getting a solution: Stage 1. Find a 1st estimate Stage 2. Find a formula to improve the estimate. Sometimes we can just spot an approximate solution to an equation. The solution to If we can’t quickly spot an approximation, we can use a method involving finding bounds for the solution. is quite close to 0 as the l.h.s. is then 0 and the r.h.s. is 1.

0 and 1 are the integer bounds. The solution lies between 0 and 1. e.g. To find integer bounds for we can sketch and a 0 and 1 are the integer bounds. We often start by finding numbers ( bounds ) that lie on either side of the solution. If these are integers we call them integer bounds. Our first approximation to a, is any number between the bounds, say We usually call the solution a, so .

Rearrange the equation to the form Find : Change of sign The change of sign Our 1st estimate of a is between these values, say Define : Let The Algebraic Method: If we want to show that 0 and 1 are integer bounds, we show that has different signs at 0 and 1.

Solution: (c) ( Confirm bounds are 0 and 1 ) e.g. 1 (a) Using a graphical calculator, or otherwise, sketch, on the same axes, the graphs of and Rearrange equation to : Define : The change of sign (b) From the sketch, find integer bounds for the solution, a, of the equation (c) Use an algebraic method to confirm these are correct and give a 1st approximate solution. A 1st approximation is any number between 0 and 1. So,

You may spot lots of ways of doing this. e.g. Rearrange the equation to the form . The 1st approximate solution lies anywhere between the bounds. The next stage is to improve this estimate. (i) Square: (ii) Rearrange: Cube root: (iii) Rearrange: Divide by : e.g. For the equation :

to iterate means to repeat Let’s take the 2nd arrangement: Our 1st estimate of a we will call x0. We substitute x0 into the r.h.s. of the formula and the result gives the new estimate x1. We now have We will then keep repeating the process so we write the formula as This is called an iterative formula. ( Some people start with x1 which is just as good. )

SUMMARY To find an approximation to a solution ( or root ) of an equation: Find a 1st approximation, often by finding integer bounds for the solution. Let this be x0 . Rearrange the equation into the form Write the arrangement as an iterative formula: Key x0 into a calculator and ENTER. Key the r.h.s. of the formula into the calculator, replacing x with ANS. Press ENTER as many times as required to get the solution to the specified accuracy.

e.g. 1(a) Show that the equation has a root a in the interval . (b) Using the arrangement write down an iterative formula and use it to find the root correct to 4 decimal places. Solution: (a) Let Change of sign

Solution: (b) gives Let It takes about 7 iterations to reach (4 d.p.)

Some arrangements of an equation give formulae which do not give a solution. We earlier met 3 arrangements of ( to 6 d.p. ) We used (ii) with to find the solution Trying (i) with gives and after a while the sequence just oscillates between 1 and 0. The iterative sequence does not converge.

gives Trying the arrangement with The iteration then fails because we are trying to square root a negative number. Some arrangements of an equation give an iterative sequence which converges to a solution; others do not converge.