Title: Newtons Method
1Newtons Method
- Presented by Flip and Marcus
2Newtons Method finds Zeros
- Efficiently finds Zeros of an equation
- Solves f(x)0
- Why do we care?
3Newtons Method finds Zeros
- Efficiently finds Zeros of an equation
- Solves f(x)0
- Why do we care?
- Can make any solve for value problem (f(x)a)
- into a find a zero problem (f(x)-a0).
- Factor Polynomials
- Find minima and maxima (Where does f(x)0?)
- Find singular points (Where does 1/f(x) blow up?)
4Newtons Method Graphical Form
5This is the function It has only one zero, at
x ??
6This is the function It has only one zero, at
x 1
7Newtons Method is as follows 1) Guess a point.
Lets use xo4.
8Newtons Method is as follows 1) Guess a point.
Lets use xo4. 2) At that point on the graph,
9Newtons Method is as follows 1) Guess a point.
Lets use x4. 2) At that point on the
graph, Draw the tangent.
10Newtons Method is as follows 1) Guess a point.
Lets use x4. 2) At that point on the
graph, Draw the tangent. 3) Follow the tangent
to the x-axis
11Newtons Method is as follows 1) Guess a point.
Lets use xo4. 2) At that point on the
graph, Draw the tangent. 3) Follow the tangent
to the x-axis Thats our new guess.
12Repeat those steps, Until the answer doesnt
change Thats the root!
13Newtons Method Algebraic Form
Remember our steps 1) Guess a point in this
case, xo4.
14(xo,0)
Remember our steps 1) Guess a point in this
case, xo4.
15(xo, f(xo))
(xo,0)
Remember our steps 1) Guess a point in this
case, xo4. 2) At that point on the graph,
16(xo, f(xo))
Slope f(xo)
(xo,0)
Remember our steps 1) Guess a point in this
case, xo4. 2) At that point on the
graph, Draw the tangent.
17(xo, f(xo))
Slope f(xo)
(xo,0)
(xo-??,0)
Remember our steps 1) Guess a point in this
case, xo4. 2) At that point on the
graph, Draw the tangent. 3) Follow the tangent
to the x-axis Thats our new guess.
18(xo, f(xo))
Slope f(xo)
(xo,0)
(xo-??, f(xo)-f(xo))
19(xo, f(xo))
Slope f(xo)
(xo,0)
20(xo, f(xo))
Slope f(xo)
(xo,0)
Newtons Method iterates to find a
zero (iterate means feed the answer back
in to find the next answer) At each step,
21(xo, f(xo))
(x2,0)
(xo,0)
(x3,0)
(x1,0)
Newtons Method iterates to find a zeroAt each
step,
22Your Turn
Your Turn
f(x)(x3)(x1)(x-1)(x-3)
23Your Turn
1) Start with the point written on your
worksheet 2) At that point on the graph, Draw
the tangent. 3) Follow the tangent to the
x-axis Thats our new guess.
Repeat those steps, Until the result doesnt
change Thats the root!
f(x)(x3)(x1)(x-1)(x-3)
24Approximating Zeros
- Newtons Method isnt the only way
- Use 1 guess, derivative
- Newtons Method
- Use 2 guesses, interval must contain a zero
- Bisection Method
- Secant Method
- False Position Method
- Computers Calculators
- One of the interval methods
25Why does the TI-89 Lie?!
- Bust out your calculators and find
- TI-89 input x2 into the first y-input. Graph
that equation. Then hit F5 followed by 2Zero and
then type in -1 and 1. Wait 30 seconds or more. - TI-83input x2 into the first y-input. Graph
that equation. Push second Calc and then choose
your bounds but do not choose 0 as your guess.
26Roots can be Dangerous!
- TI-83 uses numerical method combined with
secants. - TI-89 uses a complex algorithm that forms a
rounding error from going from 14 decimal places
to 16 decimal places back and forth.
27How can we Break it?
- How can we make Newtons Method Fail?
- (Newtons Method
- Want to find roots of an equation
- Using an initial guess,
- Iterate the equation
- Until result doesnt change)
28How can we Break it?
- Ask a stupid question
- No real roots
- Roots at infinity
- Break the equation
29How can we Break it?
- Ask a stupid question
- No real roots
- Roots at infinity
- Break the equation
- Function that is not continuous
- Function that doesnt have derivative
- Function that doesnt change sign at root
- Equivalently derivative is zero at the root.
- Use a foolish initial guess
- What happens?
30What happens when you guess Foolishly?
- Do all initial guesses go to a root?
- Do some go off to infinity?
- Do some bounce around forever?
- What root does each initial guess lead to?
31Are there Foolish Guesses?
- Lets make a map
- Each person grab a post-it note that corresponds
to the root you found - Put it up, on the axis, at the point of your
initial guess.
f(x)(x3)(x1)(x-1)(x-3)
32Complex Map of Guesses
- Lets extend to complex plane look at function
- Where does this have zeros?
33f(x)(x3)(x1)(x-1)(x-3)
34Complex Map of Guesses
- Lets extend to complex plane look at function
- Where does this have zeros? (At 1, -1, i, -i)
35Complex Map of Guesses
- You might think the map of guesses looks like
this
36Complex Map of Guesses
- In fact, it looks like this
37Complex Map of Guesses
- This is a Newtons Method fractal
- Type of Julia Set Fractal
- At each point of boundary, EVERY color touches!
- Program to explore this and other fractals
- http//xaos.sourceforge.net/