Newton s Method and Linear Approximations

Similar documents
Newton s Method and Linear Approximations 10/19/2011

Newton s Method and Linear Approximations

ROOT FINDING REVIEW MICHELLE FENG

Math 4329: Numerical Analysis Chapter 03: Newton s Method. Natasha S. Sharma, PhD

Christmas Calculated Colouring - C1

Chapter 3: Root Finding. September 26, 2005

Chapter 2 notes from powerpoints

S56 (5.1) Polynomials.notebook August 25, 2016

z = f (x; y) = x 3 3x 2 y x 2 3

Module 5 : Linear and Quadratic Approximations, Error Estimates, Taylor's Theorem, Newton and Picard Methods

Polynomial Functions

2-7 Solving Quadratic Inequalities. ax 2 + bx + c > 0 (a 0)

BEE1024 Mathematics for Economists

DEPARTMENT OF MATHEMATICS

Math 10b Ch. 8 Reading 1: Introduction to Taylor Polynomials

Elliptic Curves. Dr. Carmen Bruni. November 4th, University of Waterloo

6x 2 8x + 5 ) = 12x 8. f (x) ) = d (12x 8) = 12

Goals for This Lecture:

X. Numerical Methods

Core Mathematics 1 Quadratics

9.5. Polynomial and Rational Inequalities. Objectives. Solve quadratic inequalities. Solve polynomial inequalities of degree 3 or greater.

8.7 MacLaurin Polynomials

Math 234. What you should know on day one. August 28, You should be able to use general principles like. x = cos t, y = sin t, 0 t π.

Math 120 Winter Handout 3: Finding a Formula for a Polynomial Using Roots and Multiplicities

July 21 Math 2254 sec 001 Summer 2015

Grade 11/12 Math Circles Elliptic Curves Dr. Carmen Bruni November 4, 2015

SKILL BUILDER TEN. Graphs of Linear Equations with Two Variables. If x = 2 then y = = = 7 and (2, 7) is a solution.

Announcements. Topics: Homework: - sections , 6.1 (extreme values) * Read these sections and study solved examples in your textbook!

Root Finding (and Optimisation)

Curve Fitting. Objectives

2.8 Linear Approximation and Differentials

Section 2.8: The Power Chain Rule

CHAPTER 2 POLYNOMIALS KEY POINTS

Solution Choose several values for x, and find the corresponding values of (x), or y.

Unit 3: HW3.5 Sum and Product

A. Incorrect! Apply the rational root test to determine if any rational roots exist.

8.7 Taylor s Inequality Math 2300 Section 005 Calculus II. f(x) = ln(1 + x) f(0) = 0

polynomial function polynomial function of degree n leading coefficient leading-term test quartic function turning point

Systems of Equations and Inequalities. College Algebra

The absolute value (modulus) of a number

8.3 Numerical Quadrature, Continued

Department of Mathematics, University of Wisconsin-Madison Math 114 Worksheet Sections (4.1),

Chapter 1: Precalculus Review

Families of Functions, Taylor Polynomials, l Hopital s

UNC Charlotte 2004 Algebra with solutions

2-2: Evaluate and Graph Polynomial Functions

Unit 8 - Polynomial and Rational Functions Classwork

Roots are: Solving Quadratics. Graph: y = 2x 2 2 y = x 2 x 12 y = x 2 + 6x + 9 y = x 2 + 6x + 3. real, rational. real, rational. real, rational, equal

2t t dt.. So the distance is (t2 +6) 3/2

SYSTEMS OF NONLINEAR EQUATIONS

Algebra 2 Notes AII.7 Polynomials Part 2

Exam 2. Average: 85.6 Median: 87.0 Maximum: Minimum: 55.0 Standard Deviation: Numerical Methods Fall 2011 Lecture 20

11.11 Applications of Taylor Polynomials. Copyright Cengage Learning. All rights reserved.

Analysis Methods in Atmospheric and Oceanic Science

Analysis Methods in Atmospheric and Oceanic Science

MA202 Calculus III Fall, 2009 Laboratory Exploration 2: Gradients, Directional Derivatives, Stationary Points

8.8. Applications of Taylor Polynomials. Infinite Sequences and Series 8

1 Lecture 24: Linearization

Chapter 0.B.3. [More than Just] Lines.

Numerical differentiation

Polynomial Functions and Models

CONTENTS COLLEGE ALGEBRA: DR.YOU

(0, 0), (1, ), (2, ), (3, ), (4, ), (5, ), (6, ).

Sect Polynomial and Rational Inequalities

Extended Introduction to Computer Science CS1001.py. Lecture 8 part A: Finding Zeroes of Real Functions: Newton Raphson Iteration

CS 323: Numerical Analysis and Computing

Numerical Methods. Lecture Notes #08 Discrete Least Square Approximation

Taylor Polynomials. James K. Peterson. Department of Biological Sciences and Department of Mathematical Sciences Clemson University

Core 1 Module Revision Sheet J MS. 1. Basic Algebra

Q 0 x if x 0 x x 1. S 1 x if x 1 x x 2. i 0,1,...,n 1, and L x L n 1 x if x n 1 x x n

f (x) = x 2 Chapter 2 Polynomial Functions Section 4 Polynomial and Rational Functions Shapes of Polynomials Graphs of Polynomials the form n

Q1. Discuss, compare and contrast various curve fitting and interpolation methods

Chapter 3: Polynomial and Rational Functions

Unit 2 Rational Functionals Exercises MHF 4UI Page 1

APPLICATIONS OF DIFFERENTIATION

Review for the Final Exam

Convex Optimization. Lecture 12 - Equality Constrained Optimization. Instructor: Yuanzhang Xiao. Fall University of Hawaii at Manoa

Integration of Rational Functions by Partial Fractions

Section 4.1: Polynomial Functions and Models

Name: Date: Honors Physics

Assessment Exemplars: Polynomials, Radical and Rational Functions & Equations

Polynomials: Adding, Subtracting, & Multiplying (5.1 & 5.2)

Calculus I Exam 1 Review Fall 2016

Going between graphs of functions and their derivatives: Mean value theorem, Rolle s theorem, and intervals of increase and decrease

Practice Test - Chapter 2

Name: AK-Nummer: Ergänzungsprüfung January 29, 2016

The Mean Value Theorem. Bad examples

Function Junction: Homework Examples from ACE

A short presentation on Newton-Raphson method

Solutions to MAT 117 Test #3

March 5, 2009 Name The problems count as marked. The total number of points available is 131. Throughout this test, show your work.

The marks achieved in this section account for 50% of your final exam result.

CS 259C/Math 250: Elliptic Curves in Cryptography Homework 1 Solutions. 3. (a)

Practice Test - Chapter 2

Unit 1 Vocabulary. A function that contains 1 or more or terms. The variables may be to any non-negative power.

Section 4.1 Polynomial Functions and Models. Copyright 2013 Pearson Education, Inc. All rights reserved

Lecture2 The implicit function theorem. Bifurcations.

Polynomials 6c Classifying the Zeros of a Polynomial Functions

DISCRIMINANT EXAM QUESTIONS

f(x) f(c) is the limit of numbers less than or equal to 0 and therefore can t be positive. It follows that

Transcription:

Newton s Method and Linear Approximations

Newton s Method for finding roots Goal: Where is f (x) =0? f (x) =x 7 +3x 3 +7x 2 1 2-1 -0.5 0.5-2

Newton s Method for finding roots Goal: Where is f (x) =0? f (x) =x 7 +3x 3 +7x 2 1 2-1 -0.5 0.5 x0-2

Newton s Method for finding roots Goal: Where is f (x) =0? f (x) =x 7 +3x 3 +7x 2 1 2-1 -0.5 0.5 x0-2

Newton s Method for finding roots Goal: Where is f (x) =0? f (x) =x 7 +3x 3 +7x 2 1 0.3 0.4 0.5 x0

Newton s Method for finding roots Goal: Where is f (x) =0? f (x) =x 7 +3x 3 +7x 2 1 0.3 0.4 0.5 x1 x0

Newton s Method for finding roots Goal: Where is f (x) =0? f (x) =x 7 +3x 3 +7x 2 1 0.3 0.4 0.5 x1 x0

Newton s Method for finding roots Goal: Where is f (x) =0? f (x) =x 7 +3x 3 +7x 2 1 0.36 0.38 x1

Newton s Method for finding roots Goal: Where is f (x) =0? f (x) =x 7 +3x 3 +7x 2 1 x2 0.36 0.38 x1

f (x) =x 7 +3x 3 +7x 2 1 f 0 (x) =7x 6 +9x 2 + 14x i x i f (x i ) f 0 (x i ) tangent line x-intercept 0 0.5 1 2 3

f (x) =x 7 +3x 3 +7x 2 1 f 0 (x) =7x 6 +9x 2 + 14x i x i f (x i ) f 0 (x i ) tangent line x-intercept 0 0.5 1.133 9.359 y = 1.133 + 9.359(x 0.5) 0.379 1 2 3

f (x) =x 7 +3x 3 +7x 2 1 f 0 (x) =7x 6 +9x 2 + 14x i x i f (x i ) f 0 (x i ) tangent line x-intercept 0 0.5 1.133 9.359 y = 1.133 + 9.359(x 0.5) 0.379 1 0.379 2 3

f (x) =x 7 +3x 3 +7x 2 1 f 0 (x) =7x 6 +9x 2 + 14x i x i f (x i ) f 0 (x i ) tangent line x-intercept 0 0.5 1.133 9.359 y = 1.133 + 9.359(x 0.5) 0.379 1 0.379 0.170 6.619 y = 0.170 + 6.619(x 0.379) 0.353 2 3

f (x) =x 7 +3x 3 +7x 2 1 f 0 (x) =7x 6 +9x 2 + 14x i x i f (x i ) f 0 (x i ) tangent line x-intercept 0 0.5 1.133 9.359 y = 1.133 + 9.359(x 0.5) 0.379 1 0.379 0.170 6.619 y = 0.170 + 6.619(x 0.379) 0.353 2 0.353 3

f (x) =x 7 +3x 3 +7x 2 1 f 0 (x) =7x 6 +9x 2 + 14x i x i f (x i ) f 0 (x i ) tangent line x-intercept 0 0.5 1.133 9.359 y = 1.133 + 9.359(x 0.5) 0.379 1 0.379 0.170 6.619 y = 0.170 + 6.619(x 0.379) 0.353 2 0.353 0.007 6.084 y = 0.007 + 6.084(x 0.353) 0.352 3

f (x) =x 7 +3x 3 +7x 2 1 f 0 (x) =7x 6 +9x 2 + 14x i x i f (x i ) f 0 (x i ) tangent line x-intercept 0 0.5 1.133 9.359 y = 1.133 + 9.359(x 0.5) 0.379 1 0.379 0.170 6.619 y = 0.170 + 6.619(x 0.379) 0.353 2 0.353 0.007 6.084 y = 0.007 + 6.084(x 0.353) 0.352 3 0.352

f (x) =x 7 +3x 3 +7x 2 1 f 0 (x) =7x 6 +9x 2 + 14x i x i f (x i ) f 0 (x i ) tangent line x-intercept 0 0.5 1.133 9.359 y = 1.133 + 9.359(x 0.5) 0.379 1 0.379 0.170 6.619 y = 0.170 + 6.619(x 0.379) 0.353 2 0.353 0.007 6.084 y = 0.007 + 6.084(x 0.353) 0.352 3 0.352 0.00001 6.060 y = 0.00001 + 6.060(x 0.352) 0.352

Newton s Method Step 1: Pick a place to start. Call it x 0.

Newton s Method Step 1: Pick a place to start. Call it x 0. Step 2: The tangent line at x 0 is y = f (x 0 )+f 0 (x 0 ) (x where this intersects the x-axis, solve x 0 ). To find 0=f (x 0 )+f 0 (x 0 ) (x x 0 ) to get x = x 0 f (x 0 ) f 0 (x 0 ). This value is your x 1.

Newton s Method Step 1: Pick a place to start. Call it x 0. Step 2: The tangent line at x 0 is y = f (x 0 )+f 0 (x 0 ) (x where this intersects the x-axis, solve x 0 ). To find 0=f (x 0 )+f 0 (x 0 ) (x x 0 ) to get x = x 0 f (x 0 ) f 0 (x 0 ). This value is your x 1. Step 3: Repeat with your new x-value. In general, the next value is x i+1 = x i f (x i ) f 0 (x i )

Newton s Method Step 1: Pick a place to start. Call it x 0. Step 2: The tangent line at x 0 is y = f (x 0 )+f 0 (x 0 ) (x where this intersects the x-axis, solve x 0 ). To find 0=f (x 0 )+f 0 (x 0 ) (x x 0 ) to get x = x 0 f (x 0 ) f 0 (x 0 ). This value is your x 1. Step 3: Repeat with your new x-value. In general, the next value is x i+1 = x i f (x i ) f 0 (x i ) Step 4: Keep going until your x i s stabilize. What they stabilize to is an approximation of your root!

Caution! Bad places to pick: Critical points! (where f (x)=0) xi Tangent line has no x-intercept!

Caution! Bad places to pick: Critical points! (where f (x)=0) xi Tangent line has no x-intercept! Even near critical points, the algorithm goes much slower. Just stay away!

You try: Approximate a root of f (x) =x 2 x 1 near x 0 = 1. 0.5-0.5 0.5 1 1.5 x0-0.5-1 f 0 (x) = i x i f (x i ) f 0 (x i ) x i+1 = x i f (x i ) f 0 (x i ) 0 1 1 2

Back to the example: f (x) =x 7 +3x 3 +7x 2 1 f 0 (x) =7x 6 +9x 2 + 14x 2-1 -0.5 0.5-2

Back to the example: f (x) =x 7 +3x 3 +7x 2 1 f 0 (x) =7x 6 +9x 2 + 14x 2-1 -0.5 0.5-2.352 r 3 0.352

Back to the example: f (x) =x 7 +3x 3 +7x 2 1 f 0 (x) =7x 6 +9x 2 + 14x 2-1 -0.5 0.5-2.352 r 1 r 2 r 3 0.352

Back to the example: f (x) =x 7 +3x 3 +7x 2 1 f 0 (x) =7x 6 +9x 2 + 14x 2-1 -0.5 0.5-2.352 r 1 1.217 r 2 0.418 r 3 0.352

Linear approximations of functions Goal: approximate functions

Linear approximations of functions Goal: approximate functions Example: approximate p 2 1 1 2 3

Linear approximations of functions Goal: approximate functions Example: approximate p 2 1 1 2 3 y =1+ 1 2 (x 1)

Linear approximations of functions Goal: approximate functions Example: approximate p 2 1 1 2 3 y =1+ 1 2 (x 1) p 2 1+ 1 2 (2 1) = 1.5

Linear approximations of functions Goal: approximate functions Example: approximate p 2 1 1 2 3 y =1+ 1 2 (x 1) p 2 1+ 1 2 (2 1) = 1.5 (p 2=1.414...)

Linear approximations If f (x) isdi erentiable at a, then the tangent line to f (x) atx = a is y = f (a)+f 0 (a) (x a). For values of xneara,then f (x) f (a)+f 0 (a) (x a). This is the linear approximation of f about x = a. Weusuallycall the line L(x).

Approximate p 5:

Approximate p 5: Our last approximation told us This isn t great... (3 2 = 9) p 1 5 L(5) = 1 + (5 1) = 3 2

Approximate p 5: Our last approximation told us This isn t great... (3 2 = 9) p 1 5 L(5) = 1 + (5 1) = 3 2 Better: Use the linear approximation about x = 4!

Even better approximations... The linear approximation is the line which satisfies L(a) =f (a)+f 0 (a)(a a) = f (a) and L 0 (a) = d dx f (a)+f 0 (a)(x a) = f 0 (a)

Even better approximations... The linear approximation is the line which satisfies L(a) =f (a)+f 0 (a)(a a) = f (a) and L 0 (a) = d dx f (a)+f 0 (a)(x a) = f 0 (a) A better approximation might be a quadratic polynomial p 2 (x) which also satisfies p 00 2 (a) =f 00 (a): p 2 (x) =f (a)+f 0 (a)(x a)+ 1 2 f 00 (a)(x a) 2

Even better approximations... The linear approximation is the line which satisfies L(a) =f (a)+f 0 (a)(a a) = f (a) and L 0 (a) = d dx f (a)+f 0 (a)(x a) = f 0 (a) A better approximation might be a quadratic polynomial p 2 (x) which also satisfies p 00 2 (a) =f 00 (a): p 2 (x) =f (a)+f 0 (a)(x a)+ 1 2 f 00 (a)(x a) 2 or a cubic polynomial p 3 (x) whichalsosatisfiesp (3) 3 (a) =f (3) (a): p 3 (x) =f (a)+f 0 (a)(x a)+ 1 2 f 00 (a)(x a) 2 + 1 2 3 f (3) (a)(x a) 3

Even better approximations... The linear approximation is the line which satisfies L(a) =f (a)+f 0 (a)(a a) = f (a) and L 0 (a) = d dx f (a)+f 0 (a)(x a) = f 0 (a) A better approximation might be a quadratic polynomial p 2 (x) which also satisfies p 00 2 (a) =f 00 (a): p 2 (x) =f (a)+f 0 (a)(x a)+ 1 2 f 00 (a)(x a) 2 or a cubic polynomial p 3 (x) whichalsosatisfiesp (3) 3 (a) =f (3) (a): p 3 (x) =f (a)+f 0 (a)(x a)+ 1 2 f 00 (a)(x a) 2 + 1 2 3 f (3) (a)(x a) 3 and so on... These approximations are called Taylor polynomials (read 2.14)