APPLICATIONS OF DIFFERENTIATION 4. 4.8 Newton’s Method In this section, we will learn: How to solve high-degree equations using Newton’s method. APPLICATIONS.

Slides:



Advertisements
Similar presentations
1 MA 1128: Lecture 19 – 4/19/11 Quadratic Formula Solving Equations with Graphs.
Advertisements

APPLICATIONS OF DIFFERENTIATION
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
APPLICATIONS OF DIFFERENTIATION 4. So far, we have been concerned with some particular aspects of curve sketching:  Domain, range, and symmetry (Chapter.
INTEGRALS Areas and Distances INTEGRALS In this section, we will learn that: We get the same special type of limit in trying to find the area under.
INFINITE SEQUENCES AND SERIES
3 DERIVATIVES. In this section, we will learn: How functions are defined implicitly. 3.6 Implicit Differentiation DERIVATIVES.
Copyright © Cengage Learning. All rights reserved. 5 Integrals.
LIMITS The Limit of a Function LIMITS Objectives: In this section, we will learn: Limit in general Two-sided limits and one-sided limits How to.
APPLICATIONS OF DIFFERENTIATION 4. In Sections 2.2 and 2.4, we investigated infinite limits and vertical asymptotes.  There, we let x approach a number.
8 TECHNIQUES OF INTEGRATION. There are two situations in which it is impossible to find the exact value of a definite integral. TECHNIQUES OF INTEGRATION.
FP1: Chapter 2 Numerical Solutions of Equations
3 DERIVATIVES.
DERIVATIVES 3. We have seen that a curve lies very close to its tangent line near the point of tangency. DERIVATIVES.
The powers of General Form
CHAPTER 2 LIMITS AND DERIVATIVES. 2.2 The Limit of a Function LIMITS AND DERIVATIVES In this section, we will learn: About limits in general and about.
LIMITS AND DERIVATIVES
Introduction This chapter gives you several methods which can be used to solve complicated equations to given levels of accuracy These are similar to.
The importance of sequences and infinite series in calculus stems from Newton’s idea of representing functions as sums of infinite series.  For instance,
 The functions that we have met so far can be described by expressing one variable explicitly in terms of another variable.  For example,, or y = x sin.
FUNCTIONS AND MODELS 1. In this section, we assume that you have access to a graphing calculator or a computer with graphing software. FUNCTIONS AND MODELS.
4.6 Graphing with Calculus and Calculators In this section, we will learn about: The interaction between calculus and calculators. APPLICATIONS OF DIFFERENTIATION.
INTEGRALS Areas and Distances INTEGRALS In this section, we will learn that: We get the same special type of limit in trying to find the area under.
LIMITS AND DERIVATIVES 2. In Sections 2.2 and 2.4, we investigated infinite limits and vertical asymptotes.  There, we let x approach a number.  The.
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.
APPLICATIONS OF DIFFERENTIATION 4. A polynomial behaves near infinity as its term of highest degree. The polynomial behaves like the polynomial Near infinity.
Copyright © Cengage Learning. All rights reserved. 4 Applications of Differentiation.
3 DIFFERENTIATION RULES. The functions that we have met so far can be described by expressing one variable explicitly in terms of another variable. 
3 DERIVATIVES. The functions that we have met so far can be described by expressing one variable explicitly in terms of another variable.  For example,,
In Sections 2.2 and 2.4, we investigated infinite limits and vertical asymptotes.  There, we let x approach a number.  The result was that the values.
Copyright © Cengage Learning. All rights reserved. 11 Infinite Sequences and Series.
3 DERIVATIVES. The functions that we have met so far can be described by expressing one variable explicitly in terms of another variable.  For example,,
Precalculus Polynomial & Rational --- Part One V. J. Motto.
INTEGRALS 5. INTEGRALS In Chapter 2, we used the tangent and velocity problems to introduce the derivative—the central idea in differential calculus.
Integrals  In Chapter 2, we used the tangent and velocity problems to introduce the derivative—the central idea in differential calculus.  In much the.
Copyright © Cengage Learning. All rights reserved. 4 Integrals.
“Teach A Level Maths” Vol. 2: A2 Core Modules
In section 11.9, we were able to find power series representations for a certain restricted class of functions. Here, we investigate more general problems.
Limits and Derivatives 2. The Limit of a Function 2.2.
LIMITS AND DERIVATIVES The Limit of a Function LIMITS AND DERIVATIVES In this section, we will learn: About limits in general and about numerical.
DIFFERENTIAL EQUATIONS 10. DIFFERENTIAL EQUATIONS Unfortunately, it’s impossible to solve most differential equations in the sense of obtaining an explicit.
Numerical Methods.
CHAPTER 3 NUMERICAL METHODS
Example Ex. Find Sol. So. Example Ex. Find (1) (2) (3) Sol. (1) (2) (3)
Iteration Methods “Mini-Lecture” on a method to solve problems by iteration Ch. 4: (Nonlinear Oscillations & Chaos). Some nonlinear problems are solved.
3 DIFFERENTIATION RULES. We have:  Seen how to interpret derivatives as slopes and rates of change  Seen how to estimate derivatives of functions given.
§3.6 Newton’s Method. The student will learn about
In Chapters 6 and 8, we will see how to use the integral to solve problems concerning:  Volumes  Lengths of curves  Population predictions  Cardiac.
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Linearization, Newton’s Method
INTEGRALS We saw in Section 5.1 that a limit of the form arises when we compute an area. We also saw that it arises when we try to find the distance traveled.
5 INTEGRALS.
Representations of Functions as Power Series INFINITE SEQUENCES AND SERIES In this section, we will learn: How to represent certain functions as sums of.
Copyright © Cengage Learning. All rights reserved. 4 Integrals.
Lecture 4 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
INTEGRALS 5. INTEGRALS In Chapter 3, we used the tangent and velocity problems to introduce the derivative—the central idea in differential calculus.
P2 Chapter 8 CIE Centre A-level Pure Maths © Adam Gibson.
Trigonometric Identities
Copyright © Cengage Learning. All rights reserved.
Solution of Equations by Iteration
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
How to solve high-degree equations
Section 4.8: Newton’s Method
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
MATH 1910 Chapter 3 Section 8 Newton’s Method.
Presentation transcript:

APPLICATIONS OF DIFFERENTIATION 4

4.8 Newton’s Method In this section, we will learn: How to solve high-degree equations using Newton’s method. APPLICATIONS OF DIFFERENTIATION

Suppose that a car dealer offers to sell you a car for $18,000 or for payments of $375 per month for five years.  You would like to know what monthly interest rate the dealer is, in effect, charging you. INTRODUCTION

To find the answer, you have to solve the equation 48x(1 + x) 60 - (1 + x) = 0  How would you solve such an equation? Equation 1 INTRODUCTION

For a quadratic equation ax 2 + bx + c = 0, there is a well-known formula for the roots. For third- and fourth-degree equations, there are also formulas for the roots.  However, they are extremely complicated. HIGH-DEGREE POLYNOMIALS

If f is a polynomial of degree 5 or higher, there is no such formula. HIGH-DEGREE POLYNOMIALS

Likewise, there is no formula that will enable us to find the exact roots of a transcendental equation such as cos x = x. TRANSCENDENTAL EQUATIONS

We can find an approximate solution by plotting the left side of the equation.  Using a graphing device, and after experimenting with viewing rectangles, we produce the graph below. APPROXIMATE SOLUTION Figure 4.8.1, p. 269

We see that, in addition to the solution x = 0, which doesn’t interest us, there is a solution between and  Zooming in shows that the root is approximately ZOOMING IN Figure 4.8.1, p. 269

If we need more accuracy, we could zoom in repeatedly. That becomes tiresome, though. ZOOMING IN

A faster alternative is to use a numerical rootfinder on a calculator or computer algebra system.  If we do so, we find that the root, correct to nine decimal places, is NUMERICAL ROOTFINDERS

How do those numerical rootfinders work?  They use a variety of methods.  Most, though, make some use of Newton’s method, also called the Newton-Raphson method. NUMERICAL ROOTFINDERS

We will explain how the method works, for two reasons:  To show what happens inside a calculator or computer  As an application of the idea of linear approximation NEWTON’S METHOD

The geometry behind Newton’s method is shown here.  The root that we are trying to find is labeled r. Figure 4.8.2, p. 269

We start with a first approximation x 1, which is obtained by one of the following methods:  Guessing  A rough sketch of the graph of f  A computer- generated graph of f NEWTON’S METHOD Figure 4.8.2, p. 269

Consider the tangent line L to the curve y = f(x) at the point (x 1, f(x 1 )) and look at the x-intercept of L, labeled x 2. NEWTON’S METHOD Figure 4.8.2, p. 269

Here’s the idea behind the method.  The tangent line is close to the curve.  So, its x-intercept, x 2, is close to the x-intercept of the curve (namely, the root r that we are seeking).  As the tangent is a line, we can easily find its x-intercept. NEWTON’S METHOD Figure 4.8.2, p. 269

To find a formula for x 2 in terms of x 1, we use the fact that the slope of L is f’(x 1 ). So, its equation is: y - f(x 1 ) = f’(x 1 )(x - x 1 ) NEWTON’S METHOD

As the x-intercept of L is x 2, we set y = 0 and obtain: 0 - f(x 1 ) = f’(x 1 )(x 2 - x 1 ) If f’(x 1 ) ≠ 0, we can solve this equation for x 2 :  We use x 2 as a second approximation to r. SECOND APPROXIMATION

Next, we repeat this procedure with x 1 replaced by x 2, using the tangent line at (x 2, f(x 2 )).  This gives a third approximation: THIRD APPROXIMATION

If we keep repeating this process, we obtain a sequence of approximations x 1, x 2, x 3, x 4,... SUCCESSIVE APPROXIMATIONS Figure 4.8.3, p. 270

In general, if the nth approximation is x n and f’(x n ) ≠ 0, then the next approximation is given by: Equation/Formula 2 SUBSEQUENT APPROXIMATION

If the numbers x n become closer and closer to r as n becomes large, then we say that the sequence converges to r and we write: CONVERGENCE

The sequence of successive approximations converges to the desired root for functions of the type illustrated in the previous figure. However, in certain circumstances, it may not converge. CONVERGENCE

Consider the situation shown here. You can see that x 2 is a worse approximation than x 1.  This is likely to be the case when f’(x 1 ) is close to 0. NON-CONVERGENCE Figure 4.8.4, p. 270

It might even happen that an approximation falls outside the domain of f, such as x 3.  Then, Newton’s method fails.  In that case, a better initial approximation x 1 should be chosen. NON-CONVERGENCE Figure 4.8.4, p. 270

See Exercises 29–32 for specific examples in which Newton’s method works very slowly or does not work at all. NON-CONVERGENCE

Starting with x 1 = 2, find the third approximation x 3 to the root of the equation x 3 – 2x – 5 = 0 NEWTON’S METHOD Example 1

We apply Newton’s method with f(x) = x 3 – 2x – 5 and f’(x) = 3x 2 – 2  Newton himself used this equation to illustrate his method.  He chose x 1 = 2 after some experimentation because f(1) = -6, f(2) = -1, and f(3) = 16. NEWTON’S METHOD Example 1

Equation 2 becomes: NEWTON’S METHOD Example 1

With n = 1, we have: NEWTON’S METHOD Example 1

With n = 2, we obtain:  It turns out that this third approximation x 3 ≈ is accurate to four decimal places. NEWTON’S METHOD Example 1

The figure shows the geometry behind the first step in Newton’s method in the example.  As f’(2) = 10, the tangent line to y = x 3 - 2x - 5 at (2, -1) has equation y = 10x – 21  So, its x-intercept is x 2 = 2.1 NEWTON’S METHOD Figure 4.8.5, p. 271

Suppose that we want to achieve a given accuracy—say, to eight decimal places— using Newton’s method.  How do we know when to stop? NEWTON’S METHOD

The rule of thumb that is generally used is that we can stop when successive approximations x n and x n+1 agree to eight decimal places.  A precise statement concerning accuracy in the method will be given in Exercise 39 in Section NEWTON’S METHOD

Notice that the procedure in going from n to n + 1 is the same for all values of n. It is called an iterative process.  This means that the method is particularly convenient for use with a programmable calculator or a computer. ITERATIVE PROCESS

Use Newton’s method to find correct to eight decimal places.  First, we observe that finding is equivalent to finding the positive root of the equation x 6 – 2 = 0  So, we take f(x) = x 6 – 2  Then, f’(x) = 6x 5 Example 2 NEWTON’S METHOD

So, Formula 2 (Newton’s method) becomes: NEWTON’S METHOD Example 2

Choosing x 1 = 1 as the initial approximation, we obtain:  As x 5 and x 6 agree to eight decimal places, we conclude that to eight decimal places. NEWTON’S METHOD Example 2

Find, correct to six decimal places, the root of the equation cos x = x.  We rewrite the equation in standard form: cos x – x = 0  Therefore, we let f(x) = cos x – x  Then, f’(x) = –sinx – 1 Example 3 NEWTON’S METHOD

So, Formula 2 becomes: NEWTON’S METHOD Example 3

To guess a suitable value for x 1, we sketch the graphs of y = cos x and y = x.  It appears they intersect at a point whose x-coordinate is somewhat less than 1. NEWTON’S METHOD Example 3 Figure 4.8.6, p. 272

So, let’s take x 1 = 1 as a convenient first approximation.  Then, remembering to put our calculator in radian mode, we get:  As x 4 and x 5 agree to six decimal places (eight, in fact), we conclude that the root of the equation, correct to six decimal places, is Example 3 NEWTON’S METHOD

Instead of using this rough sketch to get a starting approximation for the method in the example, we could have used the more accurate graph that a calculator or computer provides. NEWTON’S METHOD Figure 4.8.6, p. 272

This figure suggests that we use x 1 = 0.75 as the initial approximation. NEWTON’S METHOD Figure 4.8.7, p. 272

Then, Newton’s method gives:  So we obtain the same answer as before—but with one fewer step. NEWTON’S METHOD

You might wonder why we bother at all with Newton’s method if a graphing device is available.  Isn’t it easier to zoom in repeatedly and find the roots as we did in Section 1.4? NEWTON’S METHOD VS. GRAPHING DEVICES

If only one or two decimal places of accuracy are required, then indeed the method is inappropriate and a graphing device suffices. However, if six or eight decimal places are required, then repeated zooming becomes tiresome. NEWTON’S METHOD VS. GRAPHING DEVICES

It is usually faster and more efficient to use a computer and the method in tandem.  You start with the graphing device and finish with the method. NEWTON’S METHOD VS. GRAPHING DEVICES