0% found this document useful (0 votes)
32 views20 pages

Newton-Raphson Method - Lesson

Uploaded by

Mariam Saeed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views20 pages

Newton-Raphson Method - Lesson

Uploaded by

Mariam Saeed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 20

Newton-Raphson Method

(Newton’s Method)
Jamie Frost
www.drfrost.org
@DrFrostMaths

Contact the resource team:


[email protected]
@DrFrostResource

Dr Frost Learning is a registered


Last modified:21st November 2024 charity in England and Wales (no
1194954)
Teacher Notes
Prerequisite
Knowledge Future Links
• Fixed-point iteration to solve • Bisection method
equations. • Linear interpolation method for
locating roots.
• Secant method.
• Order of convergence of
numerical methods.
• Forward difference method and
central different method for
approximating derivatives.

Throughout the slides, this symbol refers to a web link.


Unless
Key: otherwise specified, this will be to some functionality
within DF.
Key Points Solution step – All slides include
click to reveal pedagogical detail in the
! To be written ‘Notes’ section for each
in books Question/Discussion slide.
Dr Frost Learning is a registered
Prompt charity in England and Wales (no
Using the Dr Frost online platform
TEACHERS STUDENTS
Generate a Start an
random independent
worksheet practice involving
involving skills in skills in this
this PowerPoint PowerPoint.
(for printing or
online task
setting).
drfrost.org/w/83 drfrost.org/p/83
9 9
Clicking this box takes you to a single question practice for a
drfrost.org/s/123a
subskill to allow you further Test Your Understanding opportunities. (e.g.
drfrost.org/s/123a)
Skills in this Lesson
611 Solving equations using the Newton-Raphson method (Newton's method)
611a Use a given point and given gradient to perform one iteration of the Newton-
Raphson method.
611b Understand the conditions under which the Newton-Raphson method fails.
611c Form an iterative formula using the Newton-Raphson method.
611d Use the Newton-Raphson method to find the root of a function.
611e Use the Newton-Raphson method to find the solution of an equation given in the
form

611f Use the Newton-Raphson method to find the turning point Dr


of Frost Learning is a registered
a graph.
charity in England and Wales (no
How to use these slides
Though many slides in this resource will have titles specific to the topic, the slide titles in the
table below are used consistently within DFL resources for specific pedagogical purposes.
Any atypical use of a slide type, including any change of animation* or intended use, will be
outlined in the Teacher Notes for the slide.
Slide Title Explanation Default Animations*
To be used as a prior knowledge check or to review
Recap prerequisite knowledge. Can be used as a starter or as part of Green click-to-reveal boxes.
the main lesson.
To be used to highlight key concepts or theorems. This could
Usually in sequence with
The Big include the ‘why’ of the topic - including “real-life” contextual
some green click-to-reveal
Idea scenarios, or putting into context of other mathematical
boxes.
concepts (past and future).
Solution animates in
Example To be modelled by the teacher.
sequence.
Green click-to-reveal boxes.
Test Your
To be completed by students and used for Assessment for For multi-step answers,
Understandi
Learning, primarily using mini-whiteboards. reveal in parts or click final
ng
answer to reveal full solution.
To be used as ‘Example’ &‘Test Your Understanding’ above, Example animates in
To be used as ‘Example’ &‘Test Your Understanding’ above,
Example within the same slide to provide scaffold via visible modelled sequence,
Examplefollowed
animates byinTYU
Example within the same slide to provide scaffold via visible modelled
Problem solution. question with
sequence. Clickgreen click-to-
the header to
Problem solution.
Pair TYU column is blank initially, to focus attention on example. reveal boxes for solution
reveal TYU question, then
Pair TYU column is blank initially, to focus attention on example.
Reveal question by clicking ‘Test Your Understanding’ steps.
green click-to-reveal boxes.
banner.
To be used as fluency practice. Multiple questions in rapid Green click-to-reveal boxes.
Quickfire succession,
To be used for calculations
as fluency that can
practice. be completed
Multiple questions mentally.
in rapid For multi-step
Green answers,
click-to-reveal boxes.
Questions
Quickfire Often used forfor
succession, shorter questions/
calculations that formulae or to isolate
can be completed a small
mentally. reveal in parts oranswers,
For multi-step click final
Questions Often used for shorterpart of the method.
questions/ formulae or to isolate a small line toin
reveal reveal
partsfull solution.
or click final
part of the method. line to reveal full solution.
To be used as a diagnostic question. Multiple choice questions,
Multi-choice with
To be plausible
used distractors,
as a diagnostic to allow
question. teachers
Multiple
Dr Frost to diagnose
choice
Learning is questions, Arrowinpoints
a registered charity Englandto answer,
and Wales on (no
Recap: Numerical Methods
Numerical methods are a family of techniques that allow us to
approximate the value of something, e.g. area under a curve or
solutions to equations, when we can’t work it out exactly (or it
would be difficult to find exactly).
See skill
We wish to solve the equation 609.
a
Show that By
Using the iterative formula and a starting value of , substituting
b the current
find the approximate solution to the equation after
iterations (correct to 3 d.p.). value of into
the iterative
formula, we
get the next
approximation
a b for , i.e.

Notice that at this point, is


barely changing, so is probably
close to the true solution of
Are There Other Numerical Methods for
Solving?

𝑥 0=3
We hope that our
estimate of the solution to
the equation ‘converges’
to the true solution
reasonably quickly.
Our solution was correct
to 3 decimal places by
the 4th iteration, which
isn’t bad!
But fixed-point iteration isn’t the only technique we can use.
Other methods differ in both the speed they typically converge
to the solution, but also the circumstances in which they
might fail to converge.
𝑦 𝑦 = 𝑓 ( 𝑥)
Fixed-point iteration, Newton-Raphson
and linear interpolation are all
𝑥 examples of root-finding
𝛼
Roo algorithms, where we are trying to
t find a value of such that
Introducing the Newton-Raphson Method
(also known as Newton’s
method) We wish to find the root .
Suppose we start with the
𝑦 indicated approximation of the
root, . At the moment, is far
away from the true solution .
A seemingly sensible thing to do Terminology reminder:
is to follow the direction of the The roots of a graph are its
line, i.e. use the gradient of the -intercepts, i.e. the where
tangent.
If the line was reasonably straight,
the point the tangent hits the -axis is closer to than was.
would be close to the root. We could then repeat the
process to get a better
Our current value of is approximation of the root,
now pretty close to the , which again we hope is
root . closer to .

𝛼 𝑥
𝑥2 𝑥1 𝑥0
𝒚 =𝒇 ( 𝒙 )
Demo (Courtesy of
Wikipedia)

This is German, but we’ll presume you’re not


an idiot.
Forming One Iteration of Newton Raphson
Determine the
A function is defined as . gradient and value
when .
We wish to find the value 𝑦 = 𝑓 ( 2 )=23 + 4 ( 2 2 ) − 5 ( 2 ) − 5=9
such that .
We start with as an
approximate value of . Use
the principle of Newton- 𝑦 Determine the
Raphson method once to equation of
find a better ( 2 , 9) the tangent at
approximation of , to this point.
decimal places.
𝑦 𝛼𝑥𝑥 0 𝑥 Use
1

We are
interested
Equation of tangent: where the

𝛼2 𝑥 -intercept of tangent:
tangent hits
the -axis. This
is when .
Test Your Understanding drfrost.org/
s/
611a

4 2
1 A function is defined as . 𝑦 = 𝑓 ( 1 )=1 −1 +1 −2=−1
′ 3
𝑓 ( 𝑥 )=4 𝑥 − 2 𝑥 +1
We wish to find the value
such that .
We start with as an
approximate value of . 𝑦
Use the principle of
Newton-Raphson method
once to find a better
approximation of , to 𝑚=3
decimal places.
𝑥𝛼
? 𝑥
0
𝑥
𝑦 1

( 1 , −1 )

Equation of tangent:
1𝛼 𝑥
-intercept of tangent:
When Will Newton-Raphson Fail? drfrost.org/
s/
611b

We saw that Newton-Raphson follows the tangent from a


starting point and uses the -intercept of this tangent as the
next value of .

𝑦
What starting value of for this
graph will cause the algorithm to
fail?
If the starting value of coincides with
a stationary point, then the tangent
𝑥0 𝛼 𝑥
will be horizontal and never cuts
the -axis.
tangen
t
𝑥
𝑦=
√ 1 + 𝑥2 Newton-Raphson also suffers from the
𝑦
same drawbacks as solving by fixed-
point iteration, in that it’s possible for
𝑥1 𝛼 𝑥0 𝑥2
𝑥 the values of to diverge.
In this example, the oscillate either side
of 0, but gradually getting further away
from .
Deriving an Iterative Formula for Newton-
Raphson
𝑦 To have an iterative formula, we
need in terms of , i.e. how to
get from one approximation of
the root (the th) to the next.
(𝑥𝑛 ,𝑓 ( 𝑥𝑛) )
What is the equation of this
tangent? ′
𝑦 − 𝑓 ( 𝑥 𝑛 ) = 𝑓 ( 𝑥𝑛 ) ( 𝑥 − 𝑥 𝑛 )

Where does it intersect the -axis?

Intersects at :

which rearranges to give:

! Newton-Raphson
iterative formula:
𝑥𝑛+1 𝑥 𝑛
𝑥
𝛼
𝑦 = 𝑓 ( 𝑥)
Quickfire Recurrences drfrost.org/
s/
611c

2 ! Newton-Raphson
Using the Newton-Raphson process,
iterative formula:
state the recurrence relation to find the
roots of the following functions:

( 𝒙 𝒏 )𝟑 − 𝟐
a𝑓 ( 𝑥 ) =𝑥 3 − 2 𝒙 𝒏+𝟏 = 𝒙 𝒏 − 𝟐
?
𝟑 ( 𝒙 𝒏)
𝟐
2
( 𝒙 𝒏) − 𝒙 𝒏−𝟏
𝑓b ( 𝑥 ) =𝑥 − 𝑥 − 1 𝒙 𝒏+𝟏 = 𝒙 𝒏 −
𝟐 𝒙𝒏 −𝟏
?
𝐭𝐚𝐧 𝒙 𝒏 𝟏
𝑓c ( 𝑥 ) =tan 𝑥 𝒙 𝒏+𝟏 =𝒙 𝒏 − 𝟐
=𝒙 𝒏?−
𝟐
𝐬𝐢𝐧 ( 𝟐 𝒙 𝒏 )
𝐬𝐞𝐜 𝒙 𝒏
𝐬𝐢𝐧𝟐 𝒙𝒏 𝟏
d
2
𝑓 ( 𝑥 ) =sin 𝑥 𝒙 𝒏+𝟏 =𝒙𝒏 − ? =𝒙 𝒏 − 𝐭𝐚𝐧 𝒙 𝒏
𝟐 𝐬𝐢𝐧 𝒙 𝒏 𝐜𝐨𝐬 𝒙 𝒏 𝟐
𝐥𝐧 𝒙 𝒏 − ( 𝒙 𝒏 )𝟐
2 𝒙 𝒏+𝟏 = 𝒙 𝒏 −
e 𝑓 ( 𝑥 ) =ln 𝑥 − 𝑥 𝟏 ?
−𝟐 𝒙𝒏
𝒙𝒏
The Full Process ! Newton-Raphson
iterative formula:

The equation has a root in


the range .
Determine

𝑦 𝑦 =1 −2 𝑥 sin 𝑥

Use the N-R


formula above
(replacing with )
𝛼 𝑥

Remember, on your
Taking as the first answer, type 0.5=,
approximation of , use the then write the RHS
of the formula using
Newton-Raphson process the ANS key in place
If you keep pressing ,
three times to obtain a you will see that the root of .
better approximation to , remains the same to
giving your answer to d.p., so we converged to
decimal places. the solution quickly.
Test Your Understanding drfrost.org/
s/
611d

3 ! Newton-Raphson
The equation has a root in iterative formula:
the range .

𝑦 1
𝑦 =ln 2 𝑥+ −2
𝑥

0.5 𝑥
𝛼
?

Taking as the first


approximation of , use the
Newton-Raphson process
twice to obtain a better
approximation to , giving
your answer to decimal
places.
Solving ! Newton-Raphson
iterative formula:

We wish to solve the


equation
Newton-Raphson is a
𝑦 𝑦 =𝑥 root-finding algorithm,
𝑦 =cos 𝑥 i.e. we need the
equation in the form

Determine

𝜋 3𝜋 𝑥 Use the N-R


2 2 formula above
(replacing with )

Form an iterative formula


using the Newton-Raphson
method.
Using a starting value of
, use your iteration times to
find a better approximation
for the solution, to decimal
places.
Test Your Understanding drfrost.org/
s/
611e

4 [AQA A Level Jun 2018 P1 Q8a] a Let and


The diagram shows a sector of a Area of
circle . is the midpoint of . Area of
Angle is radians.
a Given that the area of the
triangle is equal to one
?
quarter of the area of the
sector , show that .
b Use the Newton-Raphson
method with , to find as an
approximation for .
Give your answer correct to b
five decimal places.
(3 marks)

?
Finding a Turning Point Using Newton-
Raphson
Recall that at a turning point, the gradient is 0, i.e. .
We can then solve that equation using Newton-Raphson in the normal
way.
A curve has the equation
a
a Show that the turning The turning
When , points occur
point has an coordinate when
in the range . When ,
b Using as a first
approximation to the The gradient is continuous
coordinate of the turning and there is a change in sign
in the gradient. Therefore, the
point, use the Newton-
turning point must lie in
Raphson method once to
find a better
𝑦
approximation.
𝑦 =( 𝑥 −5 ) ln 𝑥
Recall that to show a root of an
equation lies in a range,
substitute in the two ends of
the range, and show there is a
0.47 2.61 𝑥 change of sign. This would
mean that must pass at some
? point.
Finding a Turning Point Using Newton-
Raphson
Recall that at a turning point, the gradient is 0, i.e. .
We can then solve that equation using Newton-Raphson in the normal
way.
A curve has the equation ! Newton-Raphson
iterative formula:
a Show that the turning
point has an coordinate
in the range .
b Using as a first b
approximation to the
coordinate of the turning We are solving
point, use the Newton- , so apply Newton-
Raphson method once to Raphson to
find a better equation.
𝑦
approximation.
𝑦 =( 𝑥 −5 ) ln 𝑥

0.47 2.61 𝑥
? Form a recurrence in the usual
way.
Test Your Understanding drfrost.org/
s/
611f

5 ! Newton-Raphson
[CCEA A Level 2019 P1 Pure
iterative formula:
Q9iii]
A curve has the equation

It can be shown that the curve


has a turning point between
and .
By taking as a first
approximation to the -
coordinate of the turning point,
use the Newton Raphson
method𝑦 once to find a better
𝑦 =( 𝑥 −5 ) ln 𝑥
approximation. ?

𝑥
?

(5 marks)

You might also like