Use of Iteration Technique to Find Zeros of Functions and Powers of Numbers

Total Page:16

File Type:pdf, Size:1020Kb

Use of Iteration Technique to Find Zeros of Functions and Powers of Numbers USE OF ITERATION TECHNIQUE TO FIND ZEROS OF FUNCTIONS AND POWERS OF NUMBERS Many functions y=f(x) have multiple zeros at discrete points along the x axis. The location of most of these zeros can be estimated approximately by looking at a graph of the function. Simple roots are the ones where f(x) passes through zero value with finite value for its slope while double roots occur for functions where its derivative also vanish simultaneously. The standard way to find these zeros of f(x) is to use the Newton-Raphson technique or a variation thereof. The procedure is to expand f(x) in a Taylor series about a starting point starting with the original estimate x=x0. This produces the iteration- 2 df (xn ) 1 d f (xn ) 2 0 = f (xn ) + (xn+1 − xn ) + (xn+1 − xn ) + ... dx 2! dx2 for which the function vanishes. For a function with a simple zero near x=x0, one has the iteration- f (xn ) xn+1 = xn − with x0 given f ′(xn ) For a double root one needs to keep three terms in the Taylor series to yield the iteration- − f ′(x ) + f ′(x)2 − 2 f (x ) f ′′(x ) n n n ∆xn+1 = xn+1 − xn = f ′′(xn ) To demonstrate how this procedure works, take the simple polynomial function- 2 4 f (x) =1+ 2x − 6x + x Its graph and the derivative look like this- There appear to be four real roots located near x=-2.6, -0.3, +0.7, and +2.2. None of these four real roots equal to an integer, however, they correspond to simple zeros near the values indicated. Look at the zero near x=2.2. Starting with x0=2.2, we find, using the first iteration procedure above, that- x[0] := 2.2 x[1] := 2.211 x[2] := 2.2116138 x[3] := 2.21161381622825 x[4] := 2.2116138162282563591881310847 So that after four iterations we have a 28 digit accurate result. The remaining three zeros are found at -2.574111055, -0.275377309, and 0.637874548. Next look at the non-linear function f(x)=exp(-x)-x. It has just one zero near x0=0.6. The zero is simple and so can again be obtained to any degree of accuracy by using just the two term Taylor series approximation. We find after three iterations, that- x[3] :=0.5671432904097838 a number with 16 digit accuracy. If one instead uses the more complicated quadratic iteration given above, one finds the more accurate 56 digit approximation- x[3]:=.5671432904097838729999686622103555497538157871865125081 at the third iteration. Clearly the quadratic iteration converges faster than the standard linearized version of the Newton-Raphson approach, but one pays for it by having a more complicated expression required in the iteration. Consider next the function- 2 3 2 f (x) = x(x −1) = x − 2x + x which has a simple zero at x=0 and a double zero at x=1. To find the root by iteration near x=1 clearly presents a problem when using the Newton-Raphson approach since df(1)dx vanishes causing f(1)/[df(1)/dx] to become indeterminate. However the quadratic iteration will work fine. We there have- xn+1(x) = 2 2 2 3 2 [3xn − 4xn +1] (3xn − 4xn +1) − 2(xn − 2xn + xn )(6xn − 4) xn (x) − + [6xn − 4] [6xn − 4] So taking x0=1, we find x1=1. Hence the unique double root is x∞=1. Next let us consider finding the pth power of a number N. This time our iteration is not dealing with the zero of a function but rather with the series expansion about a p known power N0 . The binomial expansion reads- p (N − N ) N p = N p 1+ 0 = 0 N 0 pN p−1 p( p −1)N p−2 N p + 0 (N − N ) + 0 (N − N )2 + .. 0 1! 0 2! 0 Keeping just the first two terms in this expansion, one has the iteration- p p p−1 [Nn+1 ]= []Nn + p []Nn (Nn+1 − Nn ) with N0 given One can simplify things somewhat by replacing Nn+1 in the second term on the right p by N∞and letting x=N . This produces the iteration formula- [1−(1/ p)] 1/ p 1/ p xn+1 = xn + p(xn ) [x∞ − xn ) Let us demonstrate this approach for the square root of two starting with x0=1.We find- x[0] := 1 x[1] := 1.5 x[2] := 1.41 x[3] := 1.41421 x[4] := 1.41421356237 x[5] := 1.41421356237309504880168 x[6] := 1.41421356237309504880168872420969807856967187537 To find the square of 63 we choose x0=3600 and get on iteration- x[0] := 3600 x[1] := 3960. x[2] := 3968.99 x[3] := 3968.99999 x[4] := 3968.99999999999999 x[5] := 3968.999999999999999999999999999 x[6] := 3969.000000000000000000000000000000000000000000 so that 632=3969 exactly. December 2010 .
Recommended publications
  • Lesson 1: Solutions to Polynomial Equations
    NYS COMMON CORE MATHEMATICS CURRICULUM Lesson 1 M3 PRECALCULUS AND ADVANCED TOPICS Lesson 1: Solutions to Polynomial Equations Classwork Opening Exercise How many solutions are there to the equation 푥2 = 1? Explain how you know. Example 1: Prove that a Quadratic Equation Has Only Two Solutions over the Set of Complex Numbers Prove that 1 and −1 are the only solutions to the equation 푥2 = 1. Let 푥 = 푎 + 푏푖 be a complex number so that 푥2 = 1. a. Substitute 푎 + 푏푖 for 푥 in the equation 푥2 = 1. b. Rewrite both sides in standard form for a complex number. c. Equate the real parts on each side of the equation, and equate the imaginary parts on each side of the equation. d. Solve for 푎 and 푏, and find the solutions for 푥 = 푎 + 푏푖. Lesson 1: Solutions to Polynomial Equations S.1 This work is licensed under a This work is derived from Eureka Math ™ and licensed by Great Minds. ©2015 Great Minds. eureka-math.org This file derived from PreCal-M3-TE-1.3.0-08.2015 Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. NYS COMMON CORE MATHEMATICS CURRICULUM Lesson 1 M3 PRECALCULUS AND ADVANCED TOPICS Exercises Find the product. 1. (푧 − 2)(푧 + 2) 2. (푧 + 3푖)(푧 − 3푖) Write each of the following quadratic expressions as the product of two linear factors. 3. 푧2 − 4 4. 푧2 + 4 5. 푧2 − 4푖 6. 푧2 + 4푖 Lesson 1: Solutions to Polynomial Equations S.2 This work is licensed under a This work is derived from Eureka Math ™ and licensed by Great Minds.
    [Show full text]
  • 5.2 Polynomial Functions 5.2 Polynomialfunctions
    5.2 Polynomial Functions 5.2 PolynomialFunctions This is part of 5.1 in the current text In this section, you will learn about the properties, characteristics, and applications of polynomial functions. Upon completion you will be able to: • Recognize the degree, leading coefficient, and end behavior of a given polynomial function. • Memorize the graphs of parent polynomial functions (linear, quadratic, and cubic). • State the domain of a polynomial function, using interval notation. • Define what it means to be a root/zero of a function. • Identify the coefficients of a given quadratic function and he direction the corresponding graph opens. • Determine the verte$ and properties of the graph of a given quadratic function (domain, range, and minimum/maximum value). • Compute the roots/zeroes of a quadratic function by applying the quadratic formula and/or by factoring. • !&etch the graph of a given quadratic function using its properties. • Use properties of quadratic functions to solve business and social science problems. DescribingPolynomialFunctions ' polynomial function consists of either zero or the sum of a finite number of non-zero terms, each of which is the product of a number, called the coefficient of the term, and a variable raised to a non-negative integer (a natural number) power. Definition ' polynomial function is a function of the form n n ) * f(x =a n x +a n ) x − +...+a * x +a ) x+a +, − wherea ,a ,...,a are real numbers andn ) is a natural number. � + ) n ≥ In a previous chapter we discussed linear functions, f(x =mx=b , and the equation of a horizontal line, y=b .
    [Show full text]
  • Factors, Zeros, and Solutions
    Mathematics Instructional Plan – Algebra II Factors, Zeros, and Solutions Strand: Functions Topic: Exploring relationships among factors, zeros, and solutions Primary SOL: AII.8 The student will investigate and describe the relationships among solutions of an equation, zeros of a function, x-intercepts of a graph, and factors of a polynomial expression. Related SOL: AII.1d, AII.4b, AII.7b Materials Zeros and Factors activity sheet (attached) Matching Cards activity sheet (attached) Sorting Challenge activity sheet (attached) Graphing utility Colored paper Graph paper Vocabulary factor, fundamental theorem of algebra, imaginary numbers, multiplicity, polynomial, rate of change, real numbers, root, slope, solution, x-intercept, y-intercept, zeros of a function Student/Teacher Actions: What should students be doing? What should teachers be doing? Time: 90 minutes 1. Have students solve the equation 3x + 5 = 11. Then, have students set the left side of the equation equal to zero. Tell students to replace zero with y and consider the line y = 3x − 6. Instruct them to graph the line on graph paper. Review the terms slope, x- intercept, and y-intercept. Then, have them perform the same procedure (i.e., solve, set left side equal to zero, replace zero with y, and graph) for the equation −2x + 6 = 4. They should notice that in both cases, the x-intercept is the same as the solution to the equation. 2. Students explored factoring of zeros in Algebra I. Use the following practice problem to review: y = x2 + 4x + 3. Facilitate a discussion with students using the following questions: o “What is the first step in graphing the given line?” o “How do you find the factors of the line?” o “What role does zero play in graphing the line?” o “In how many ‘places’ did this line cross (intersect) the x-axis?” o “When the function crosses the x-axis, what is the value of y?” o “What is the significance of the x-intercepts of the graphs?” 3.
    [Show full text]
  • Elementary Functions, Student's Text, Unit 21
    DOCUMENT RESUME BD 135 629 SE 021 999 AUTHOR Allen, Frank B.; And Others TITLE Elementary Functions, Student's Text, Unit 21. INSTITUTION Stanford Univ., Calif. School Mathematics Study Group. SPONS AGENCY National Science Foundation, Washington, D.C. PUB DATE 61 NOTE 398p.; For related documents, see SE 021 987-022 002 and ED 130 870-877; Contains occasional light type EDRS PRICE MF-$0.83 HC-$20.75 Plus Postage. DESCRIPTO2S *Curriculum; Elementary Secondary Education; Instruction; *Instructional Materials; Mathematics Education; *Secondary School Mathematics; *Textbooks IDENTIFIERS *Functions (Mathematics); *School Mathematics Study Group ABSTRACT Unit 21 in the SMSG secondary school mathematics series is a student text covering the following topics in elementary functions: functions, polynomial functions, tangents to graphs of polynomial functions, exponential and logarithmic functions, and circular functions. Appendices discuss set notation, mathematical induction, significance of polynomials, area under a polynomial graph, slopes of area functions, the law of growth, approximation and computation of e raised to the x power, an approximation for ln x, measurement of triangles, trigonometric identities and equations, and calculation of sim x and cos x. (DT) *********************************************************************** Documents acquired by ERIC include many informal unpublished * materials not available from other sources. ERIC makes every effort * * to obtain the best copy available. Nevertheless, items of marginal * * reproducibility are often encountered and this affects the quality * * of the microfiche and hardcopy reproductions ERIC makes available * * via the ERIC Document Reproduction Service (EDRS). EDRS is not * responsible for the quality of the original document. Reproductions * * supplied by EDRS are the best that can be made from the original.
    [Show full text]
  • Applications of Derivatives
    5128_Ch04_pp186-260.qxd 1/13/06 12:35 PM Page 186 Chapter 4 Applications of Derivatives n automobile’s gas mileage is a function of many variables, including road surface, tire Atype, velocity, fuel octane rating, road angle, and the speed and direction of the wind. If we look only at velocity’s effect on gas mileage, the mileage of a certain car can be approximated by: m(v) ϭ 0.00015v 3 Ϫ 0.032v 2 ϩ 1.8v ϩ 1.7 (where v is velocity) At what speed should you drive this car to ob- tain the best gas mileage? The ideas in Section 4.1 will help you find the answer. 186 5128_Ch04_pp186-260.qxd 1/13/06 12:36 PM Page 187 Section 4.1 Extreme Values of Functions 187 Chapter 4 Overview In the past, when virtually all graphing was done by hand—often laboriously—derivatives were the key tool used to sketch the graph of a function. Now we can graph a function quickly, and usually correctly, using a grapher. However, confirmation of much of what we see and conclude true from a grapher view must still come from calculus. This chapter shows how to draw conclusions from derivatives about the extreme val- ues of a function and about the general shape of a function’s graph. We will also see how a tangent line captures the shape of a curve near the point of tangency, how to de- duce rates of change we cannot measure from rates of change we already know, and how to find a function when we know only its first derivative and its value at a single point.
    [Show full text]
  • Optimization Algorithms on Matrix Manifolds
    00˙AMS September 23, 2007 © Copyright, Princeton University Press. No part of this book may be distributed, posted, or reproduced in any form by digital or mechanical means without prior written permission of the publisher. Chapter Six Newton’s Method This chapter provides a detailed development of the archetypal second-order optimization method, Newton’s method, as an iteration on manifolds. We propose a formulation of Newton’s method for computing the zeros of a vector field on a manifold equipped with an affine connection and a retrac­ tion. In particular, when the manifold is Riemannian, this geometric Newton method can be used to compute critical points of a cost function by seeking the zeros of its gradient vector field. In the case where the underlying space is Euclidean, the proposed algorithm reduces to the classical Newton method. Although the algorithm formulation is provided in a general framework, the applications of interest in this book are those that have a matrix manifold structure (see Chapter 3). We provide several example applications of the geometric Newton method for principal subspace problems. 6.1 NEWTON’S METHOD ON MANIFOLDS In Chapter 5 we began a discussion of the Newton method and the issues involved in generalizing such an algorithm on an arbitrary manifold. Sec­ tion 5.1 identified the task as computing a zero of a vector field ξ on a Riemannian manifold equipped with a retraction R. The strategy pro­ M posed was to obtain a new iterate xk+1 from a current iterate xk by the following process. 1. Find a tangent vector ηk Txk such that the “directional derivative” of ξ along η is equal to ∈ ξ.
    [Show full text]
  • Lesson 11 M1 ALGEBRA II
    NYS COMMON CORE MATHEMATICS CURRICULUM Lesson 11 M1 ALGEBRA II Lesson 11: The Special Role of Zero in Factoring Student Outcomes . Students find solutions to polynomial equations where the polynomial expression is not factored into linear factors. Students construct a polynomial function that has a specified set of zeros with stated multiplicity. Lesson Notes This lesson focuses on the first part of standard A-APR.B.3, identifying zeros of polynomials presented in factored form. Although the terms root and zero are interchangeable, for consistency only the term zero is used throughout this lesson and in later lessons. The second part of the standard, using the zeros to construct a rough graph of a polynomial function, is delayed until Lesson 14. The ideas that begin in this lesson continue in Lesson 19, in which students will be able to associate a zero of a polynomial function to a factor in the factored form of the associated polynomial as a consequence of the remainder theorem, and culminate in Lesson 39, in which students apply the fundamental theorem of algebra to factor polynomial expressions completely over the complex numbers. Classwork Scaffolding: Here is an alternative opening Opening Exercise (12 minutes) activity that may better illuminate the special role of Opening Exercise zero. ퟐ ퟐ Find all solutions to the equation (풙 + ퟓ풙 + ퟔ)(풙 − ퟑ풙 − ퟒ) = ퟎ. For each equation, list some possible values for 푥 and 푦. The main point of this opening exercise is for students to recognize and then formalize that the statement “If 푎푏 = 0, then 푎 = 0 or 푏 = 0” applies not only when 푎 and 푏 are 푥푦 = 10, 푥푦 = 1, numbers or linear functions (which we used when solving a quadratic equation), but also 푥푦 = −1, 푥푦 = 0 applies to cases where 푎 and 푏 are polynomial functions of any degree.
    [Show full text]
  • Real Zeros of Polynomial Functions
    333353_0200.qxp 1/11/07 2:00 PM Page 91 Polynomial and Chapter 2 Rational Functions y y y 2.1 Quadratic Functions 2 2 2 2.2 Polynomial Functions of Higher Degree x x x −44−2 −44−2 −44−2 2.3 Real Zeros of Polynomial Functions 2.4 Complex Numbers 2.5 The Fundamental Theorem of Algebra Polynomial and rational functions are two of the most common types of functions 2.6 Rational Functions and used in algebra and calculus. In Chapter 2, you will learn how to graph these types Asymptotes of functions and how to find the zeros of these functions. 2.7 Graphs of Rational Functions 2.8 Quadratic Models David Madison/Getty Images Selected Applications Polynomial and rational functions have many real-life applications. The applications listed below represent a small sample of the applications in this chapter. ■ Automobile Aerodynamics, Exercise 58, page 101 ■ Revenue, Exercise 93, page 114 ■ U.S. Population, Exercise 91, page 129 ■ Impedance, Exercises 79 and 80, page 138 ■ Profit, Exercise 64, page 145 ■ Data Analysis, Exercises 41 and 42, page 154 ■ Wildlife, Exercise 43, page 155 ■ Comparing Models, Exercise 85, page 164 ■ Media, Aerodynamics is crucial in creating racecars.Two types of racecars designed and built Exercise 18, page 170 by NASCAR teams are short track cars, as shown in the photo, and super-speedway (long track) cars. Both types of racecars are designed either to allow for as much downforce as possible or to reduce the amount of drag on the racecar. 91 333353_0201.qxp 1/11/07 2:02 PM Page 92 92 Chapter 2 Polynomial and Rational Functions 2.1 Quadratic Functions The Graph of a Quadratic Function What you should learn ᭿ Analyze graphs of quadratic functions.
    [Show full text]
  • Root-Finding 3.1 Physical Problems
    Physics 200 Lecture 3 Root-Finding Lecture 3 Physics 200 Laboratory Monday, February 14th, 2011 The fundamental question answered by this week's lab work will be: Given a function F (x), find some/all of the values xi for which F (xi) = 0. It's a f g modest goal, and we will use a simple method to solve the problem. But, as we shall see, there are a wide range of physical problems that have, at their heart, just such a question. We'll start in the simplest, polynomial setting, and work our way up to the \shooting" method. 3.1 Physical Problems We'll set up some direct applications of root-finding with familiar physical examples, and then shift gears and define a numerical root-finding routine that can be used to solve a very different set of problems. 3.1.1 Orbital Motion In two-dimensions, with a spherically symmetric potential (meaning here that V (x; y; z) = V (r), a function of a single variable, r x2 + y2 + z2, ≡ the distance to the origin) we can use circular coordinates to write the total p energy of a test particle moving under the influence of this potential as 1 E = m r_2 + r2 φ_2 + V (r): (3.1) 2 Conservation of momentum tells us that the z-component of angular mo- 2 mentum is conserved, with Lz = (r p) = m r φ_, so we can rewrite the × z 1 of 13 3.1. PHYSICAL PROBLEMS Lecture 3 energy as: 1 1 L2 E = m r_2 + z + V (r) (3.2) 2 2 m r2 ≡U(r) where U(r) defines an “effective potential"| { we{z have} turned a two-dimensional problem into a one-dimensional problem for the coordinate r, and an effec- tive potential that governs the motion in this setting.
    [Show full text]
  • Zeros of a Quadratic Function TEACHER NOTES MATH NSPIRED
    Zeros of a Quadratic Function TEACHER NOTES MATH NSPIRED Math Objectives • Students will determine the linear factors of a quadratic function. • Students will connect the algebraic representation to the geometric representation. • Students will discover that the zeros of the linear factors are the zeros of the quadratic function. • Students will discover that the zeros of the quadratic function are the zeros of its linear factors. TI-Nspire™ Technology Skills: • Students will use appropriate tools strategically (CCSS Download a TI-Nspire Mathematical Practice). • document • Students will look for and make use of structure (CCSS • Open a document Mathematical Practice). • Move between pages • Grab and drag a point Vocabulary • zeros Tech Tips: • Make sure the font size on your TI-Nspire handheld is About the Lesson set to Medium. • This lesson involves merging graphical and algebraic • You can hide the function representations of a quadratic function and its linear factors. entry line by pressing • As a result, students will: /G. • Manipulate the parameters of the linear functions and observe the resulting changes in the quadratic function. Lesson Materials: • Find the zeros of the quadratic function by finding the zeros of Student Activity its linear factors. Zeros_of_a_Quadratic_Function _Student.pdf • Solve quadratic equations by factoring and be able to explain Zeros_of_a_Quadratic_Function why this process is valid. _Student.doc TI-Nspire document Zeros_of_a_Quadratic_Function TI-Nspire™ Navigator™ System .tns • Use Screen Capture to examine patterns that emerge. Visit www.mathnspired.com for • Use Live Presenter to engage and focus students. lesson updates and tech tip • Use Teacher Edition computer software to review student videos. documents. ©2011 Texas Instruments Incorporated 1 education.ti.com Zeros of a Quadratic Function TEACHER NOTES MATH NSPIRED Discussion Points and Possible Answers Tech Tip: If students experience difficulty dragging a point on the slider, check to make sure that they have moved the arrow close to the point.
    [Show full text]
  • Teaching Concepts Foundational to Calculus Using Inquiry
    TEACHING CONCEPTS FOUNDATIONAL TO CALCULUS USING INQUIRY AND TECHNOLOGY A Thesis Presented to The Graduate Faculty of The University of Akron In Partial Fulfillment of the Requirements for the Degree Master of Science Benjamin David Marko May, 2006 TEACHING CONCEPTS FOUNDATIONAL TO CALCULUS USING INQUIRY AND TECHNOLOGY Benjamin David Marko Thesis Approved: Accepted: Advisor Dean of the College Dr. Antonio R. Quesada Dr. Ronald F. Levant Co-Advisor Dean of the Graduate School Dr. Linda Marie Saliga George R. Newkome, Ph.D. Department Chair Date Dr. Kevin L. Kreider ii ABSTRACT There is currently a push in the state of Ohio to enhance the teaching of concepts foun- dational to Calculus in grades 8-12. Evidence of this came in the spring of 2005 when the Ohio Department of Education called for grant proposals to develop programs that are focused on topics that are foundations to Calculus. Further, the National Council of Teachers of Mathematics has stressed the effective use of technology and inquiry in their past and current standards. This thesis contains inquiry-based lessons that explore concepts that would traditionally be taught in the Calculus classroom, but can be used in lower level courses such as Algebra. The use of the graphing calculator is essential for each one of these lessons to allow students the opportunity to explore more mathematical concepts in a less time consuming manner. iii ACKNOWLEDGEMENTS I would like to take this time to thank a number of people without whom this thesis would not have been possible. Thanks to my advisors, Dr. Antonio Quesada and Dr.
    [Show full text]
  • Algebra, Functions, and Data Analysis Curriculum Guide Revised 2010
    Mathematics Algebra, Functions, and Data Analysis Curriculum Guide Revised 2010 This page is intentionally left blank. ALGEBRA, FUNCTIONS, AND DATA ANALYSIS CURRICULUM GUIDE (Revised 2010) PRINCE WILLIAM COUNTY SCHOOLS Introduction The Mathematics Curriculum Guide serves as a guide for teachers when planning instruction and assessment. It defines the content knowledge, skills, and understandings that are measured by the Standards of Learning assessment. It provides additional guidance to teachers as they develop an instructional program appropriate for their students. It also assists teachers in their lesson planning by identifying essential understandings, defining essential content knowledge, and describing the intellectual skills students need to use. This Guide delineates in greater specificity the content that all teachers should teach and all students should learn. The format of the Curriculum Guide facilitates teacher planning by identifying the key concepts, knowledge, and skills that should be the focus of instruction for each objective. The Curriculum Guide is divided into sections: Curriculum Information , Essential Knowledge and Skills , Key Vocabulary , Essential Questions and Understandings , Teacher Notes and Elaborations, Resources, and Sample Instructional Strategies and Activities . The purpose of each section is explained below. Curriculum Information : This section includes the objective, focus or topic, and in some, not all, foundational objectives that are being built upon. Essential Knowledge and Skills : Each objective is expanded in this section. What each student should know and be able to do in each objective is outlined. This is not meant to be an exhaustive list nor is a list that limits what taught in the classroom. This section is helpful to teachers when planning classroom assessments as it is a guide to the knowledge and skills that define the objective.
    [Show full text]