Download presentation
Presentation is loading. Please wait.
Published byRandall Dean Modified over 6 years ago
1
Dr J Frost (jfrost@tiffin.kingston.sch.uk)
GCSE Iteration Dr J Frost @DrFrostMaths Last modified: 20th June 2017
2
Term to term formulae A sequence is generated using the following term-to-term formula. π π is the first term. π₯ 1 =3, π₯ π+1 = π₯ π +2 What would be the first 4 terms of the sequence? π π =π π π = π π +π=π π π = π π +π=π π π = π π +π=π ? ? ? ? How therefore do we interpret π₯ π+1 = π₯ π +2? βEach term is the previous term plus 2β ?
3
Test Your Understanding
1 Why do you think the sequence refers to the first term as π 0 rather than π 1 ? Because π π indicates the number of slugs βafter 0 daysβ, i.e. the initial value. ? 119 ? 2 A sequence is defined as: π₯ 1 =5, π₯ 2 =2 π₯ π+2 =2 π₯ π+1 β π₯ π Determine π₯ 5 . π π =π π π β π π =βπ π π =π π π β π π =βπ π π =π π π β π π =βπ ?
4
Iteration ? ? a ? ? ? ? Solve π₯= π₯+1 using:
The quadratic formula (hint: square both sides first and make one side 0) Iteration We turn the equation into a term-to-term formula, by making the left-hand-side π₯ π+1 and any instance of π₯ on the RHS π₯ π . Donβt worry yet about why it worksβ¦ ? a ? π₯ 2 =π₯+1 π₯ 2 βπ₯β1=0 π=1, π=β1, π=β1 π₯= 1Β± π₯= =1.618β¦ π₯ π+1 = π₯ π +1 π₯ 0 =1 You will always be given a starting value in the exam. The 0 means weβve done β0 iterationsβ. Use your term-to-term formula to get successively better solutions to the original equation. π₯ 1 = π₯ 0 +1 = β¦ π₯ 2 = π₯ 1 +1 = β¦ π₯ 3 = π₯ 2 +1 = β¦ π₯ 4 = π₯ 3 +1 = β¦ ? Use the ANS key to reuse the previous answer. If you type in 1=, then type π΄ππ+1 , you can then spam the equals key! Bro Note: We only want the positive solution because in the original equation, the RHS is positive (square rooting canβt give a negative value) and thus the LHS, i.e. π₯ must be positive. ? ? ? We could keep going for ever to keep getting more accurate solutions. The exam will usually tell you how many iterations it wants (here we did 4).
5
Why use iteration then? In the previous example, we could have found out the βexactβ answer using the quadratic formula. However, for some functions, the exact solution is either complicated and difficult to calculate: ? π π +π π π βππ+π=π or thereβs no βexactβ expression at all! (involving roots, sin, cos, etc.) ? πβ ππ¨π¬ π =π Exact solution not expressible ο Iteration therefore is an intelligent way of doing βtrial and improvementβ that gets us the solution correct to progressively more and more decimal places on each iteration, even if there is no way to write the answer in a 100% accurate way.
6
Another Example Bro-Exam Note: Most exam questions have two parts: the first will get you to rearrange the equation so you have π₯ on its own on the LHS [Edexcel New SAMs Paper 3H Q14c] a) Show that the equation π₯ 3 +4π₯=1 can be arranged to give π₯= 1 4 β π₯ 3 4 ? ππ=πβ π π π= π π β π π π Bro Tip: Use the target expression as clues for how to rearrange. Each term is over 4, which suggests we need to divide by 4 at some point. b) Starting with π₯ 0 =0, use the iteration formula π₯ π+1 = 1 4 β π₯ π twice, to find an estimate for the solution of π₯ 3 +4π₯=1. Write all the digits on your calculator display. π π =π π π = π π β π π π =π.ππ π π = π π β π.π π π π =π.ππππππππ For iterative methods, give your answer as a decimal NOT as a fraction. Why? Because fractions imply an exact answer, but this method only gets an approximation of the solution) ? ?
7
Test Your Understanding
a) Show that the equation π₯ 3 βπ₯β19=0 can be arranged to give π₯= 3 π₯+19 ? π₯ 3 =π₯+19 π₯= 3 π₯+19 b) Starting with π₯ 0 =0, use the iteration formula π₯ π+1 = 3 π₯ π +19 four times to find an approximate solution to π₯ 3 βπ₯β19=0 Write all the digits on your calculator display. ? π₯ 0 =0 π₯ 1 = β¦ π₯ 2 = β¦ π₯ 3 = β¦ π₯ 4 = β¦
8
Roots and Showing Roots Lie in a Range
Terminology: The roots are the solutions of an equation in the form π π₯ =0. If π¦=π(π₯) then the roots are the π₯-intercepts of the graph. 2 βπ₯ βπ₯=0 Show that the equation has a root between 0 and 1. π βπ βπ=π>π π βπ βπ=β π π <π So π βπ βπ must be equal to 0 for π<π<π a ? The key is to show that substituting into the left gives <0 for one of them and >0 for the other (make sure you write β<0β and β>0β. Therefore it must pass 0 somewhere in between. Rearrange to the form π₯=π π₯ to set up an iterative formula. π βπ =π π π+π = π β π π b ? Choose a starting value (from step (a)) and generate the sequence. π π =π.π π π =π.πππ, π π =π.πππ, π π =π.πππ, π π =π.πππ, π π =π.πππ c ? We could have chosen any starting value between 0 and 1. Preferably near the middle!
9
Exercise For each iterative formula, find π₯ 1 , π₯ 2 , π₯ 3 and π₯ 4 correct to three decimal places π₯ π+1 = 1 π₯ π +1, π₯ 0 =1.5 π π =π.πππ, π π =π.π, π π =π.πππ, π π =π.πππ π₯ π+1 =2β π₯ π 3 8 , π₯ 0 =1.5 π π =π.πππ, π π =π.πππ, π π =π.πππ, π π =π.πππ π₯ π+1 = 5 π₯ π β1 2 , π₯ 0 =2 π π =π.πππ, π π =π.πππ, π π =π.πππ, π π =π.πππ π₯ π+1 = 1 5β2 π₯ π , π₯ 0 =0.5 π π =π.ππ, π π =π.πππ, π π =π.πππ, π π =π.πππ 1 3 Show that π₯ 2 +4π₯β29=0 can be written in the form π₯= 29β4π₯ . π π =ππβππ π= ππβππ Use the iteration formula π₯ π+1 = 3 π₯ π +19 to find π₯ 4 to 3 decimal places. Start with π₯ 0 =0. π π =π.πππ π π =π.πππ π π =π.πππ π π =π.πππ Show that π₯β π₯ β1=0 has a root between 2.6 and 2.7 π.πβ π.π βπ=βπ.πππ<π π.πβ π.π βπ=π.πππ>π Therefore π.π<π<π.π Using π₯ π+1 = π₯ π +1 and π₯ 0 =2.6, find π₯ 3 to 3 decimal places. π π =π.πππ, π π =π.πππ π π =π.πππ ? ? ? ? ? 4 ? ? For the equation π₯β π₯+3 =0, we can use the iterative formula π₯ π+1 = π₯ π +3 and π₯ 0 =2. Explain the relationship between the values of π₯ 1 , π₯ 2 , π₯ 3 and the equation π₯β π₯+3 =0 π π , π π , π π are successfully closer approximations to a root/solution of πβ π+π =π 2 ? ?
10
Why does this method work?
Note: You are not expected to know this for your GCSE exams. Solve π₯= π₯+1 This is known as a staircase diagram (given the shape!) Recall we used the recurrence π₯ π+1 = π₯ π +1 π=π π= π+π Finding the solution to π₯= π₯+1 is the same as sketching π¦=π₯ and π¦= π₯+1 and seeing the point at which they intersect. This value of π₯ is the solution to π₯= π₯+1 This gives π₯ 1 =1.414β¦ This is then fed back into π₯ π +1 for the next iteration, i.e. the π¦ value becomes the new π₯ value! This is equivalent to moving to the line π¦=π₯. π π π β π π When π₯ 0 =1, we would find π₯ This is the π¦ value on the π¦= π₯+1 graph. We can repeat this process using π₯ 1 =1.414β¦ to get π₯ 2 .
11
There are questions on iteration available on the DFM Homework Platform.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.