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

Chapter 2 notes from powerpoints

S56 (5.1) Polynomials.notebook August 25, 2016

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)

Algebra 2 Notes AII.7 Polynomials Part 2

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

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

Goals for This Lecture:

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

X. Numerical Methods

Chapter 3: Root Finding. September 26, 2005

Core Mathematics 1 Quadratics

8.7 MacLaurin Polynomials

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

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

Christmas Calculated Colouring - C1

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

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

July 21 Math 2254 sec 001 Summer 2015

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

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

2.8 Linear Approximation and Differentials

Section 2.8: The Power Chain Rule

Curve Fitting. Objectives

CHAPTER 2 POLYNOMIALS KEY POINTS

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

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

A short presentation on Newton-Raphson method

DEPARTMENT OF MATHEMATICS

Unit 3: HW3.5 Sum and Product

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

Calculus I Homework: The Derivatives of Polynomials and Exponential Functions Page 1

The absolute value (modulus) of a number

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

Systems of Equations and Inequalities. College Algebra

Chapter 1: Precalculus Review

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

Unit 8 - Polynomial and Rational Functions Classwork

Families of Functions, Taylor Polynomials, l Hopital s

2-2: Evaluate and Graph Polynomial Functions

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

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

SYSTEMS OF NONLINEAR EQUATIONS

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

BEE1024 Mathematics for Economists

1 Lecture 24: Linearization

Roots of equations, minimization, numerical integration

Analysis Methods in Atmospheric and Oceanic Science

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

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

Numerical differentiation

CONTENTS COLLEGE ALGEBRA: DR.YOU

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

Polynomial Functions and Models

Sect Polynomial and Rational Inequalities

CS 323: Numerical Analysis and Computing

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

Numerical Methods. Lecture Notes #08 Discrete Least Square Approximation

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

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

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

APPLICATIONS OF DIFFERENTIATION

Review for the Final Exam

Chapter 3: Polynomial and Rational Functions

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

Unit 2 Rational Functionals Exercises MHF 4UI Page 1

Integration of Rational Functions by Partial Fractions

Section 4.1: Polynomial Functions and Models

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

Name: Date: Honors Physics

Assessment Exemplars: Polynomials, Radical and Rational Functions & Equations

Calculus I Exam 1 Review Fall 2016

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

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

Function Junction: Homework Examples from ACE

Practice Test - Chapter 2

Polynomials 6c Classifying the Zeros of a Polynomial Functions

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

Solutions to MAT 117 Test #3

Georgia Department of Education Common Core Georgia Performance Standards Framework CCGPS Advanced Algebra Unit 2

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

Practice Test - Chapter 2

Lecture2 The implicit function theorem. Bifurcations.

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

Announcements. Related Rates (last week), Linear approximations (today) l Hôpital s Rule (today) Newton s Method Curve sketching Optimization problems

Homework For each of the following matrices, find the minimal polynomial and determine whether the matrix is diagonalizable.

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

Concept Category 4. Polynomial Functions

CS 323: Numerical Analysis and Computing

DISCRIMINANT EXAM QUESTIONS

Review: Power series define functions. Functions define power series. Taylor series of a function. Taylor polynomials of a function.

Transcription:

Newton s Method and Linear Approximations

Curves are tricky. Lines aren t. 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 (x) = 7x 6 + 9x 2 + 14x i x i f (x i ) f (x i ) tangent line x-intercept 0 0.5 1 2 3

f (x) = x 7 + 3x 3 + 7x 2 1 f (x) = 7x 6 + 9x 2 + 14x i x i f (x i ) f (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 (x) = 7x 6 + 9x 2 + 14x i x i f (x i ) f (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 (x) = 7x 6 + 9x 2 + 14x i x i f (x i ) f (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 (x) = 7x 6 + 9x 2 + 14x i x i f (x i ) f (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 (x) = 7x 6 + 9x 2 + 14x i x i f (x i ) f (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 (x) = 7x 6 + 9x 2 + 14x i x i f (x i ) f (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 (x) = 7x 6 + 9x 2 + 14x i x i f (x i ) f (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 (x 0 ) (x x 0 ). To find where this intersects the x-axis, solve 0 = f (x 0 ) + f (x 0 ) (x x 0 ) to get x = x 0 f (x 0) f (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 (x 0 ) (x x 0 ). To find where this intersects the x-axis, solve 0 = f (x 0 ) + f (x 0 ) (x x 0 ) to get x = x 0 f (x 0) f (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 (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 (x 0 ) (x x 0 ). To find where this intersects the x-axis, solve 0 = f (x 0 ) + f (x 0 ) (x x 0 ) to get x = x 0 f (x 0) f (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 (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 (x) = i x i f (x i ) f (x i ) x i+1 = x i f (x i ) f (x i ) 0 1 1 2

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 (x) = 2x 1 i x i f (x i ) f (x i ) x i+1 = x i f (x i ) f (x i ) 0 1 1 1 2 1 2 1 3 5/3 1.667 2 5/3 1/9 7/3 34/21 1.619

Back to the example: f (x) = x 7 + 3x 3 + 7x 2 1 f (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 (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 (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 (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 2 1 1 2 3

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

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

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

Linear approximations If f (x) is differentiable at a, then the tangent line to f (x) at x = a is y = f (a) + f (a) (x a). For values of x near a, then f (x) f (a) + f (a) (x a). This is the linear approximation of f about x = a. We usually call the line L(x).

Approximate 5:

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

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

Approximate 5: Our last approximation told us This isn t great... (3 2 = 9) 1 5 L(5) = 1 + (5 1) = 3 2 Better: Use the linear approximation about x = 4! The tangent line is so Better! (2.25 2 = 5.0625) L(x) = 2 + 1 (x 4) 4 1 5 L(5) = 2 + (5 4) = 2.25 4

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

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

Even better approximations... The linear approximation is the line which satisfies L(a) = f (a) + f (a)(a a) = f (a) and L (a) = d dx ( f (a) + f (a)(x a) ) = f (a) A better approximation might be a quadratic polynomial p 2 (x) which also satisfies p 2 (a) = f (a): p 2 (x) = f (a) + f (a)(x a) + 1 2 f (a)(x a) 2 or a cubic polynomial p 3 (x) which also satisfies p (3) 3 (a) = f (3) (a): p 3 (x) = f (a) + f (a)(x a) + 1 2 f (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 (a)(a a) = f (a) and L (a) = d dx ( f (a) + f (a)(x a) ) = f (a) A better approximation might be a quadratic polynomial p 2 (x) which also satisfies p 2 (a) = f (a): p 2 (x) = f (a) + f (a)(x a) + 1 2 f (a)(x a) 2 or a cubic polynomial p 3 (x) which also satisfies p (3) 3 (a) = f (3) (a): p 3 (x) = f (a) + f (a)(x a) + 1 2 f (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)