Newton’s Method finds Zeros Efficiently finds Zeros of an equation: –Solves f(x)=0 Why do we care?

Slides:



Advertisements
Similar presentations
Polynomial Inequalities in One Variable
Advertisements

Copyright © Cengage Learning. All rights reserved.
Numerical Computation Lecture 4: Root Finding Methods - II United International College.
Polynomial Approximation PSCI 702 October 05, 2005.
CSE 330: Numerical Methods
Numeriska beräkningar i Naturvetenskap och Teknik 1.Solving equations.
ROOTS OF EQUATIONS Student Notes ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier.
APPLICATIONS OF DIFFERENTIATION Newton’s Method In this section, we will learn: How to solve high-degree equations using Newton’s method. APPLICATIONS.
Notes, part 5. L’Hospital Another useful technique for computing limits is L'Hospital's rule: Basic version: If, then provided the latter exists. This.
Lectures on Numerical Methods 1 Numerical Methods Charudatt Kadolkar Copyright 2000 © Charudatt Kadolkar.
The Derivative. Objectives Students will be able to Use the “Newton’s Quotient and limits” process to calculate the derivative of a function. Determine.
NUMERICAL METHODS WITH C++ PROGRAMMING
Notes, part 4 Arclength, sequences, and improper integrals.
Calculator Shortcut – Solving Trinomials
Roots of Equations Chapter 3. Roots of Equations Also called “zeroes” of the equation –A value x such that f(x) = 0 Extremely important in applications.
Solving Non-Linear Equations (Root Finding)
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Write the equation for transformation of.
Aim: What are the higher degree function and equation? Do Now: a) Graph f(x) = x 3 + x 2 – x – 1 on the calculator b) How many times does the graph intersect.
Write the equation for transformation of.
Lecture 3 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
Lecture 6 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
4.5: Linear Approximations, Differentials and Newton’s Method.
Problem of the Day No calculator! What is the instantaneous rate of change at x = 2 of f(x) = x2 - 2 ? x - 1 A) -2 C) 1/2 E) 6 B) 1/6 D) 2.
Numerical Methods.
Rational Functions Analysis and Graphing PART 1 Analysis and Graphing PART 1 Our Learning objective: Is to explore and explain why the denominator of.
Newton’s Method, Root Finding with MATLAB and Excel
Numerical Methods and Computational Techniques Solution of Transcendental and Polynomial Equations.
LINEARIZATION AND NEWTON’S METHOD Section 4.5. Linearization Algebraically, the principle of local linearity means that the equation of the tangent.
Lecture 5 - Single Variable Problems CVEN 302 June 12, 2002.
AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………..
ME 142 Engineering Computation I Root Finding & Iterative Solutions.
Solving Non-Linear Equations (Root Finding)
Numerical Methods Solution of Equation.
4.8 Newton’s Method Mon Nov 9 Do Now Find the equation of a tangent line to f(x) = x^5 – x – 1 at x = 1.
Linearization, Newton’s Method
SOLVING NONLINEAR EQUATIONS. SECANT METHOD MATH-415 Numerical Analysis 1.
Section 2.4 – Calculating the Derivative Numerically.
Warm Up Write an equation of the tangent line to the curve at the given point. 1)f(x)= x 3 – x + 1 where x = -1 2)g(x) = 3sin(x/2) where x = π/2 3)h(x)
Chapter 1 Limits and Their Properties Unit Outcomes – At the end of this unit you will be able to: Understand what calculus is and how it differs from.
LECTURE 2 OF NUMERICAL METHODS 7.2 Solutions of Non-Linear Equations.
4.5: Linear Approximations, Differentials and Newton’s Method Greg Kelly, Hanford High School, Richland, Washington.
1 4.8 – Newton’s Method. 2 The Situation Let’s find the x-intercept of function graphed using derivatives and tangent lines. |x1|x1 |x2|x2 |x3|x3 Continuing,
CSE 330: Numerical Methods. Introduction The bisection and false position method require bracketing of the root by two guesses Such methods are called.
Polynomial & Rational Inequalities
1.1 A Preview of Calculus What is Calculus????????????????????
UNIT 1 TEST REVIEW ALGEBRA II
CS B553: Algorithms for Optimization and Learning
Topic 8-3 Polynomials, Linear Factors & Zeros
L5-11 Quadratic Systems, (by graphing) Text pp 213 – 218 Workbook pp 183 – 188 Essential Question: Can I find the solutions to a system that involves.
Warmup Solve:
Warmup Solve:
The graph of a function f(x) is given below
Calculus BC AP/Dual, Revised © : Lagrange's Error Bound
College Algebra Chapter 3 Polynomial and Rational Functions
SOLUTION OF NONLINEAR EQUATIONS
Section 4.8: Newton’s Method
A step-by-step process of trial and improvement
ROOTS OF EQUATIONS.
3.8 Newton’s Method How do you find a root of the following function without a graphing calculator? This is what Newton did.
3.8: Newton’s Method Greg Kelly, Hanford High School, Richland, Washington.
4.5: Linear Approximations, Differentials and Newton’s Method
College Algebra Chapter 3 Polynomial and Rational Functions
Characteristics of Polynomials: Domain, Range, & Intercepts
3.8: Newton’s Method Greg Kelly, Hanford High School, Richland, Washington.
Choose the differential equation corresponding to this direction field
Copyright © Cengage Learning. All rights reserved.
MATH 1910 Chapter 3 Section 8 Newton’s Method.
EE, NCKU Tien-Hao Chang (Darby Chang)
Presentation transcript:

Newton’s Method finds Zeros Efficiently finds Zeros of an equation: –Solves f(x)=0 Why do we care?

Newton’s 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)-a=0 ). –Factor Polynomials –Find minima and maxima (Where does f ´ (x)=0 ?) –Find singular points (Where does 1/ f(x) blow up?)

Newton’s Method: Graphical Form

This is the function It has only one zero, at x = ??

This is the function It has only one zero, at x = 1

Newton’s Method is as follows: 1) Guess a point. Let’s use x o =4.

Newton’s Method is as follows: 1) Guess a point. Let’s use x o =4. 2) At that point on the graph,

Newton’s Method is as follows: 1) Guess a point. Let’s use x=4. 2) At that point on the graph, Draw the tangent.

Newton’s Method is as follows: 1) Guess a point. Let’s use x=4. 2) At that point on the graph, Draw the tangent. 3) Follow the tangent to the x -axis:

Newton’s Method is as follows: 1) Guess a point. Let’s use x o =4. 2) At that point on the graph, Draw the tangent. 3) Follow the tangent to the x -axis: That’s our new guess.

Repeat those steps, Until the answer doesn’t change: That’s the root!

Remember our steps: 1) Guess a point: in this case, x o =4. Newton’s Method: Algebraic Form

Remember our steps: 1) Guess a point: in this case, x o =4. (x o,0)

Remember our steps: 1) Guess a point: in this case, x o =4. 2) At that point on the graph, (x o,0) (x o, f ( x o ) )

Remember our steps: 1) Guess a point: in this case, x o =4. 2) At that point on the graph, Draw the tangent. (x o,0) (x o, f ( x o ) ) Slope: f ´ ( x o )

Remember our steps: 1) Guess a point: in this case, x o =4. 2) At that point on the graph, Draw the tangent. 3) Follow the tangent to the x -axis: That’s our new guess. (x o,0) (x o, f ( x o ) ) Slope: f ´ ( x o ) (x o -??,0)

(x o,0) (x o, f ( x o ) ) Slope: f ´ ( x o ) (x o -??, f ( x o ) -f ( x o ) )

(x o,0) (x o, f ( x o ) ) Slope: f ´ ( x o )

(x o,0) (x o, f ( x o ) ) Slope: f ´ ( x o ) Newton’s Method iterates to find a zero: (“iterate” means feed the answer back in to find the next answer) At each step,

(x o,0) (x o, f ( x o ) ) Newton’s Method iterates to find a zero:At each step, (x 2,0) (x 3,0)(x 1,0)

Your Turn f(x)=(x+3)(x+1)(x-1)(x-3) Your 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: That’s our new guess. Your Turn Repeat those steps, Until the result doesn’t change: That’s the root! f(x)=(x+3)(x+1)(x-1)(x-3)

Approximating Zeros Newton’s Method isn’t the only way: –Use 1 guess, derivative Newton’s Method –Use 2 guesses, interval must contain a zero Bisection Method Secant Method False Position Method Computers & Calculators: –One of the interval methods

Why does the TI-89 Lie?! Bust out your calculators and find TI-89: input x^2 into the first y-input. Graph that equation. Then hit F5 followed by 2:Zero and then type in -1 and 1. Wait 30 seconds or more. TI-83:input x^2 into the first y-input. Graph that equation. Push second Calc and then choose your bounds but do not choose 0 as your guess.

Roots 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.

How can we Break it? How can we make Newton’s Method Fail? (Newton’s Method: –Want to find roots of an equation –Using an initial guess, –Iterate the equation –Until result doesn’t change)

How can we Break it? Ask a stupid question –No real roots –Roots at infinity Break the equation:

How can we Break it? Ask a stupid question –No real roots –Roots at infinity Break the equation: –Function that is not continuous –Function that doesn’t have derivative –Function that doesn’t change sign at root Equivalently: derivative is zero at the root. Use a foolish initial guess –What happens?

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? What happens when you guess Foolishly?

Are there Foolish Guesses? Let’s 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)=(x+3)(x+1)(x-1)(x-3)

Complex Map of Guesses Let’s extend to complex plane: look at function Where does this have zeros?

f(x)=(x+3)(x+1)(x-1)(x-3)

Complex Map of Guesses Let’s extend to complex plane: look at function Where does this have zeros? (At 1, -1, i, -i )

Complex Map of Guesses You might think the map of guesses looks like this:

Complex Map of Guesses In fact, it looks like this:

Complex Map of Guesses This is a “Newton’s Method” fractal Type of ‘Julia Set’ Fractal At each point of boundary, EVERY color touches! Program to explore this and other fractals: