Download presentation
Presentation is loading. Please wait.
1
C3 Chapter 4: Numerical Methods
Dr J Frost Last modified: 30th August 2015
2
Overview ? ? ? Finding the root of a function π π₯ is to:
solve the equation π π =π However, for some functions, the βexactβ root is either complicated and difficult to calculate: ? ? π π +π π π βππ+π=π or thereβs no βalgebraicβ expression at all! (involving roots, logs, sin, cos, etc.) ? πβ ππ¨π¬ π =π Exact solution not expressible ο In an exam you are expected to: Be able to prove that a root lies within a range. Use βnumerical methodsβ to find approximations for a root. Prove a solution is correct to a certain degree of accuracy. π=πβ ππ¨π¬ π Root
3
#1: Proving a solution lies in a range
Show that π π₯ =π π₯ +2π₯β3 has a root between π₯=0.5 and π₯=0.6 ? π 0.5 =β0.351 π 0.6 =0.022β¦ There is a change in sign, so root must lie between 0.5 and 0.6 Bro Exam Tip: In the mark scheme theyβre looking for: Finding the function output for the two values. Referring to a βchange in signβ. 0.5,β0.351 0.6, 0.022 If the π¦ value goes from negative to positive or vice versa, then clearly the π¦ values must pass 0 somewhere in between.
4
#2: Using iteration to approximate a root
π is just a constant like π is. Weβll learn about it in a later chapter, but for now you can find it to the right of your calculator. Edexcel C3 Jan 2013 a ? 0= π π₯β1 +π₯β6 6βπ₯= π π₯β1 ln 6βπ₯ =π₯β1 ln 6βπ₯ +1=π₯ ! To solve π π₯ =0 by an iterative method, rearrange into a form π₯=π π₯ and use the iterative formula π₯ π+1 =π π₯ π Weβll see why it works later.
5
#2: Using iteration to approximate a root
Edexcel C3 Jan 2013 π₯ 0 , π₯ 1 , π₯ 2 represent successively better approximations of the root, where π₯ 0 is the starting value. Bro Tip: Initially type π₯ 0 (i.e. 2) onto your calculator. Now just type: ln 6βπ΄ππ +1 And then spam your = key to get successive iterations. b ? π₯ 0 =2 π₯ 1 = ln 6β2 +1=2.386β¦ π₯ 2 = ln 6β2.386β¦ +1=2.2847β¦ π₯ 3 =2.3125
6
#3: Proving a solution to a given accuracy
Edexcel C3 Jan 2013 Thinking back to Year 8, if the root is correct to 3dp, whatβs the smallest and greatest value it could be? Smallest: Greatest: Clearly if we can prove the solution lies in this range, then it would round to How can we prove the solution lies in this range? As we did before! π π.ππππ =βπ.ππππππ π π.ππππ =π.πππππ Change of sign so solution is in range [π.ππππ, π.ππππ]. ? ? ?
7
Why do it work? Why do we rearrange to the form π₯=π(π₯) before using π₯ π+1 =π π₯ π . Why does it (usually) converge to the correct root? π₯= 2 π₯ 2 +2 π₯ π+1 = 2 π₯ π 2 +2 π π₯ =β π₯ 3 +2 π₯ 2 β2 1: Since π₯= 2 π₯ weβre looking for the point where the lines π¦=π₯ and π¦= 2 π₯ intersect. 4: And we repeat this two-step process of calculating π¦ and then making the new π₯ that π¦. We can see weβre spiralling inwards towards the root. 3: But that output gets used as the new input to the iterative formula, i.e. the π¦ value π₯ π+1 gets used as the new π₯. This is equivalent to moving horizontally to the red π¦=π₯ line. 2: Suppose we started with the approximation π₯ 0 =1.5. Then would give us the π¦ value on the blue line. π₯ 0
8
Complete the past paper questions provided (solutions on next slides)
Exercises Complete the past paper questions provided (solutions on next slides) File Ref: C3-Chp4-NumericalMethodsExamQuestion
9
June 2009 Q1
10
Jan 2010 Q2
11
June 2012 Q2
12
June 2011 Q2
13
June 2008 Q7
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.