Presentation is loading. Please wait.

Presentation is loading. Please wait.

Dr J Frost (jfrost@tiffin.kingston.sch.uk) GCSE Iteration Dr J Frost (jfrost@tiffin.kingston.sch.uk) www.drfrostmaths.com @DrFrostMaths Last modified:

Similar presentations


Presentation on theme: "Dr J Frost (jfrost@tiffin.kingston.sch.uk) GCSE Iteration Dr J Frost (jfrost@tiffin.kingston.sch.uk) www.drfrostmaths.com @DrFrostMaths Last modified:"β€” Presentation transcript:

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.


Download ppt "Dr J Frost (jfrost@tiffin.kingston.sch.uk) GCSE Iteration Dr J Frost (jfrost@tiffin.kingston.sch.uk) www.drfrostmaths.com @DrFrostMaths Last modified:"

Similar presentations


Ads by Google