Root Finding Methods

Size: px
Start display at page:

Download "Root Finding Methods"

Transcription

1 Root Finding Methods Let's take a simple problem ax 2 +bx+c=0 Can calculate roots using the quadratic equation or just by factoring Easy and does not need any numerical methods How about solving for the roots of e -x x = 0? How do we solve this? Can't do analytically Could try graphically, however this requires human observation Good for one problem, not so good for multiple problems Numerical analysis normally requires multiple problems Could do some sort of trail an error method... This is good but where to start? How to ensure stability? What are the errors? What is so special about root solving methods? Where is it in reality?

2 Root Finding Methods Roots come about when we have a balance Kirchoff's Laws Electrical Engineering Newton's Laws of Motion Mechanical, Civil Engineering (Dynamics) Energy balance problems ( KE, PE) Mechanical, Civil Engineering Force balance Mechanical, Civil Engineering (Statics) Mass balance Chemical Engineering Heat balance Chemical Engineering Etc. Roots come from basic laws we should remember from Physics what are they? Yes?

3 Conservation Laws Noether's theorem -- Symmetry implies conservation (breaking symmetry is a phase change) Conservation of Energy Historically promoted by engineers over the objections of physicists First Law of Thermodynamics Chemical Engineering Voltage Balance Electrical Engineering Invariant under time translation Conservation of linear momentum (or just momentum) Force balance -- Civil and Mechanical Engineering No external force is required Invariant under translation Conservation of angular momentum Angular analogy to linear momentum Civil and Mechanical Engineering No external torque is required Invariant under rotations

4 Conservation Laws Symmetry implies conservation (breaking symmetry is a phase change) Conservation of electric charge Current balance Electrical Engineering Charge in a node must eventually leave the a node Conservation of mass Mass balance equation -- Chemical Engineering Mass into a system must equal mass out of a system plus any accumulated mass in the system Conservation of baryon number Baryon number balance Nuclear Engineering In a nuclear reaction the sum of baryon numbers going into a reaction must be equal to the sum of baryon numbers of the final products Similar laws are conservation of leptons and conservation of strangeness Conservation fails in certain instances if the equivalence of energy and mass is not considered, but it never fails in reality...just in our understanding of what is going on.

5 Example of Equations Example is a simple circuit used in electrical engineering Kirchoff's Law that the sum of voltages in a closed loop is zero This idea is applicable to physics as well All based off conservation of energy Example circuit: V L =L di dt V C = q C V R =Ri Charge the capacitor with the voltage Switch to the RLC circuit and let's get an equation that deals with roots V L +V C +V R =0 L di dt + q C +Ri=0 i= dq dt Therefore L d2 q dq +R 2 dt dt + q C =0

6 Example of Equations General solution is very standard, let q = e dt Substitute into the previous equation Ld 2 e dt Rd e dt edt C =0 Ld 2 Rd 1 =0 This isacharacteristic equationwith dbeing the eigenvalues C Eigenvalues are fundamental to the system They are the roots of this problem as well Here seems simple, but beyond the second-order equation it could be difficult Lets assume a solution and from there produce an answer to this problem Assumeasolutionof i Thenq=c 1 e i c 2 e i whichisthe general solution

7 Example of Equations Newton's Law of Motion Let us assume we have a 1 kg mass that is subject to a force f(t) Therefore f t =t e t 1kg dv dt =t e t v t = e t whichwe integrate over t t If alpha is known this is not really a numerical problem, however one may wish to know what values of alpha will produce certain results Can't solve explicitly for alpha Therefore in those cases alpha is implicit We rewrite the equationas f = e t t v t Solvefor f =0whichgives usaroot type problem

8 Example of Equations Chemical type problem (Van der Wall forces) Normally we learn the gas law PV = nrt, however that is for an extremely ideal situation, so it is preferable to make some modifications to achieve a more realistic equation... P a 2 v b =RT v where v= V n f v = P a 2 v b RT v solvefor f v =0whichgivesus aroot type problem R is the universal gas constant (re: chemistry class), a is a correction to the intermolecular force, and b is a correction for the real volume of a gas 2 b=n a 3 R 3 0

9 Bracketing methods So how can we solve for roots without using a graphical method or by trail and error (at least by hand)? We use the method most people use when they are playing the game of guessing a number between 1 and 100 In order to do this however we would need to bracket our roots as in the game above (1 to 100) Bracketing the roots have a number of advantages, but some disadvantages as well. Pros: Convergence Cons: Slow, not good for multiple roots tightly packed

10 Bisection Method Bisection Method Two guess, x l and x h that should be tested by see if f(x l )f(x h ) < 0 Estimate a new root by using the equation x new = x l+ x h 2 Repeat the estimate of a new root until you reach a tolerance that is acceptable using the following conditions f(x l )f(x new ) < 0 then x h =x new f(x l )f(x new ) > 0 then x l =x new f(x l )f(x new ) = 0 then x new = root (here 0 is within your tolerance)

11 Bisection Method Error Bisection Method error Δ x=x u x l ϵ 0 =Δ x zeroth approximation ϵ 1 = Δ x 2 first approximation ϵ 2 = Δ x 2 2 second approximation... ϵ n = Δ x 2 n n th approximation ln (ϵ n )=ln(δ x) nln (2) n= ln (Δ x) ln (ϵ n ) ln (2) n= ln (Δ x) ϵ n ln (2) n=log 2( Δ x ϵ n )

12 Bisection Method Error Can use the error in the bisection method to determine the tolerance we want The bisection method is Easy Converges Slow in most cases (which isn't an issue if you only intend to use it once)

13 False Position (regula falsi) Method False position method improves the bisection method which is inefficient in many cases However not perfect; occasionally bisection method is better (which my graph here illustrates) Use knowledge of magnitudes of function to improve guess See the figure; using similar figures we have f (x l ) x r x l = f (x u ) x r x u

14 False Position (regula falsi) Method Rearranging the terms above we get x r =x u f (x u )(x l x u ) f (x l ) f ( x u ) Still need to be able to chose the right points though, so first you must be assure that your lower and upper points are on opposite sides of the function f ( x l ) f (x u )<0 Then you need to chose whether to keep the lower or upper point f (x l ) f ( x r )>0 f ( x l ) f (x r )=0 f ( x l ) f (x r )<0 then x l =x r then x r =root then x u =x r

15 False Position (regula falsi) Method In the case of a sticking situation of the root not moving efficiently enough you could use the bisection method once to get it moving more efficiently The idea of using two or more methods to get to a root efficiently is used many times in root finding methods

16 Open methods Bracketing the roots have a number of advantages, but some disadvantages as well. Uses two or more bounding points Pros: Convergence Cons: Slow, not good for multiple roots tightly packed Disadvantages of the bracketing method can be huge if multiple roots need to be calculated in a numerical problem, so in order to speed up the process another method is available called an open method Uses only one point and hopefully moves towards the root Pros: Fast Cons: May not converge

17 Fixed-Point Iteration Method Fixed-point iteration Method Open Method (only one starting point) f (x)=0 x i +1 =g (x i ) where g(x i )is part of f (x) Example would be f ( x)=e x x=0 x i +1 =e x i

18 Fixed-Point Iteration Method Basically the approach of two lines intersecting as being the same as the two functions of those lines subtracted and set equal to zero Requires an initial guess that must be close to the true root (however most open methods are like that...) Not very useful in general Useful for developing other root finding methods

19 Newton-Raphson (Newton) Method Newton Method Open Method Use iterative method that comes from Taylor series f ( x i+1 )= f ( x i )+( x i+1 x i ) f ' ( x i ) So if we set this equation equal to zero (root equation), therefore x i+1 = x i f ( x i) f ' ( x i ) This is a very popular method Pros: Fast Cons: Need derivative; need guess close to true root; may not converge

20 Newton-Raphson (Newton) Method 2-D Newton Method (non-linear) Can be extended to many variables by just taking the Taylor series with multiple variables f ( x i+1, y i+1 )= f ( x i, y i )+ x f ( x i, y i )( x i+1 x i )+ y f ( x i, y i )( y i+1 y i ) However remember that we to solve a two or more variable equation we will need two or more equations v i+1 =v i + v i x ( x i+1 x i )+ v i y ( y i+1 y i ) w i+1 =w i + w i x ( x i+1 x i )+ w i y ( y i+1 y i ) So if we set these equations equal to zero and rewrite these equations we get v i w i y v i x i+1 = x i J w i y w i v i x w i y i+1 = y i J v i x J is a Jacobian matrix (which we are taking the determinant of above)

21 Jacobian The Jacobian matrix (should have had this in Calculus, but for review) is =[ J v i x w i x v i ] y w i y

22 Secant Method Secant Method Open Method that uses two initial guesses like with bracketing methods Does not require a derivative as the Newton method does

23 Secant Method Secant Method Open Method that uses two initial guesses like with bracketing methods Difference between false-position method is replacement of new starting values False-position method must stay bracketed so initial guesses must bracket the root Secant method is not bracketed so initial guesses do not need to bracket the root Basically secant method uses the backward finite divided difference to replace Newton's method, might not be the best way to go... Start with the equation y-y 1 = m(x-x 1 ) and look for x intercept (which is x i+1 ) x i+1 =x i f (x i )(x i 1 x i ) f ( x i 1 ) f (x i ) Advantage of this method is it does not require a derivative like the Newton method Maybe slower than Newton method though Has all the problems that all open methods have

24 Multiple Roots Multiple roots Bracketing method not effective to get multiple roots Any derivative method (Newton and Secant fall under this category) will have trouble with multiple roots as well because the derivative goes to zero at the root as well A way out of this is that the function itself will go to zero faster than the derivative therefore a test could be made Method to modify Newton method is to define a new function which is a ratio of the original function to its derivative. This new function's roots will be the same as the original function's roots. u(x)= f (x) f ' ( x) x i+1 = x i u( x i) u' ( x i ) f ( x i ) f ' ( x i ) x i+1 = x i f ' ( x i ) 2 f ( x i ) f ' ' ( x i )

25 Brent Method Brent Method A method that combines two speedy open methods with one bracketing method to ensure a convergent direction Secant method Inverse quadratic interpolation method Parabola (three points) instead of two (which would be a linear interpolation which is like what the secant method does) Inverse because there is the possibility of the parabola not intersecting the x-axis; so it is inversed x=f(y) Need a discussion of quadratic interpolation that is outside the time requirements of this class (sorry) Bisection method

26 Root Finding Methods Bairstow's Method, Bernoulli's Method, Bisection, Brent's Method Crout's Method Durand-Kerner method Graeffe's Method Halley's Irrational Formula, Halley's Method, Halley's Rational Formula, Horner's Method (~Newton's Method), Householder's Method Jenkins-Traub Method Laguerre's Method, Larkin's Method, Lehmer-Schur Method, Lin's Method Muller's Method Ridder's Method Schröder's Method, Secant Method, Splitting Circle Method Etc. Note the number of methods! Clearly an important subject

27 Root Finding Methods Householder's Method is an iteration method like Halley's method has similar problems to Newton-Raphson Methods. Jenkins-Traub Method is a complicated black-box method used by IMSL. Standard (most likely combines methods). Laguerre's Method converges from any starting point. For polynomials...requires first and second derivative. Larkin's Method is an iteration of the Horner's Method. Lehmer-Schur Method is a root finding method that generalizes bracketing for the complex plane. Lin's Method is a root method for quartic equations (x 4 type equations). Muller's Method is a generalization of the secant method using three points. Sort of like the inverse quadratic interpolation method.

28 Root Finding Methods Ridder's Method is a variation on the false position method using an exponential. Schröder's Method is a powerful method for robustly getting roots. Can be used for multiple roots that are in the same neighborhood. Splitting circle method is used for finding roots of a polynomial with a high degree of precision. Newton's Method and Horner's Method (with divided differences) are related

29 Root Finding Methods Inverse Quadratic Interpolation uses three points (as opposed to two) Bailey's, Lambert's or Hutton's Methods used for problematic roots like x 10-1 Bairstow's Method (helps for quadratics factors of the complex conjugate) finds roots of a polynomial using only real arithmetic Bernoulli's Method for polynomial roots Bisection we did in class Brent's Method (Van Wijngaarden-Deker-Brent) combines secant, bisection (bracketing), and inverse quadratic interpolation needs three points and will apparently always converge... Crout's Method solves N 2 equations (good for multiple roots, equations) Durand-Kerner Method (Weierstrass) finds roots of a polynomial using complex number arithmetic (a generalization of Bairstow's method)

30 Root Finding Methods Graeffe's Method was used in the 19 th and 20 th century, but fell out of favor as it exceeded floating point arithmetic limits on computers. Malajovich and Zubelli re-design this method to work more efficiently. Note: uses Vieta's formulae (green book) Halley's Irrational Formula uses third-order Taylor series expansion (related to Laguerre's method) Halley's Method (Halley's Rational Formula, Tangent Hyperbolas method)

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane.

Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane. Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Spring 2018 Instructor: Dr. Sateesh Mane c Sateesh R. Mane 2018 3 Lecture 3 3.1 General remarks March 4, 2018 This

More information

ROOT FINDING REVIEW MICHELLE FENG

ROOT FINDING REVIEW MICHELLE FENG ROOT FINDING REVIEW MICHELLE FENG 1.1. Bisection Method. 1. Root Finding Methods (1) Very naive approach based on the Intermediate Value Theorem (2) You need to be looking in an interval with only one

More information

PART I Lecture Notes on Numerical Solution of Root Finding Problems MATH 435

PART I Lecture Notes on Numerical Solution of Root Finding Problems MATH 435 PART I Lecture Notes on Numerical Solution of Root Finding Problems MATH 435 Professor Biswa Nath Datta Department of Mathematical Sciences Northern Illinois University DeKalb, IL. 60115 USA E mail: dattab@math.niu.edu

More information

Numerical Analysis Fall. Roots: Open Methods

Numerical Analysis Fall. Roots: Open Methods Numerical Analysis 2015 Fall Roots: Open Methods Open Methods Open methods differ from bracketing methods, in that they require only a single starting value or two starting values that do not necessarily

More information

cha1873x_p02.qxd 3/21/05 1:01 PM Page 104 PART TWO

cha1873x_p02.qxd 3/21/05 1:01 PM Page 104 PART TWO cha1873x_p02.qxd 3/21/05 1:01 PM Page 104 PART TWO ROOTS OF EQUATIONS PT2.1 MOTIVATION Years ago, you learned to use the quadratic formula x = b ± b 2 4ac 2a to solve f(x) = ax 2 + bx + c = 0 (PT2.1) (PT2.2)

More information

3.1 Introduction. Solve non-linear real equation f(x) = 0 for real root or zero x. E.g. x x 1.5 =0, tan x x =0.

3.1 Introduction. Solve non-linear real equation f(x) = 0 for real root or zero x. E.g. x x 1.5 =0, tan x x =0. 3.1 Introduction Solve non-linear real equation f(x) = 0 for real root or zero x. E.g. x 3 +1.5x 1.5 =0, tan x x =0. Practical existence test for roots: by intermediate value theorem, f C[a, b] & f(a)f(b)

More information

CHAPTER 4 ROOTS OF EQUATIONS

CHAPTER 4 ROOTS OF EQUATIONS CHAPTER 4 ROOTS OF EQUATIONS Chapter 3 : TOPIC COVERS (ROOTS OF EQUATIONS) Definition of Root of Equations Bracketing Method Graphical Method Bisection Method False Position Method Open Method One-Point

More information

15 Nonlinear Equations and Zero-Finders

15 Nonlinear Equations and Zero-Finders 15 Nonlinear Equations and Zero-Finders This lecture describes several methods for the solution of nonlinear equations. In particular, we will discuss the computation of zeros of nonlinear functions f(x).

More information

Chapter 1. Root Finding Methods. 1.1 Bisection method

Chapter 1. Root Finding Methods. 1.1 Bisection method Chapter 1 Root Finding Methods We begin by considering numerical solutions to the problem f(x) = 0 (1.1) Although the problem above is simple to state it is not always easy to solve analytically. This

More information

Solving Non-Linear Equations (Root Finding)

Solving Non-Linear Equations (Root Finding) Solving Non-Linear Equations (Root Finding) Root finding Methods What are root finding methods? Methods for determining a solution of an equation. Essentially finding a root of a function, that is, a zero

More information

SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS BISECTION METHOD

SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS BISECTION METHOD BISECTION METHOD If a function f(x) is continuous between a and b, and f(a) and f(b) are of opposite signs, then there exists at least one root between a and b. It is shown graphically as, Let f a be negative

More information

Solution of Algebric & Transcendental Equations

Solution of Algebric & Transcendental Equations Page15 Solution of Algebric & Transcendental Equations Contents: o Introduction o Evaluation of Polynomials by Horner s Method o Methods of solving non linear equations o Bracketing Methods o Bisection

More information

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science EAD 115 Numerical Solution of Engineering and Scientific Problems David M. Rocke Department of Applied Science Taylor s Theorem Can often approximate a function by a polynomial The error in the approximation

More information

Zeroes of Transcendental and Polynomial Equations. Bisection method, Regula-falsi method and Newton-Raphson method

Zeroes of Transcendental and Polynomial Equations. Bisection method, Regula-falsi method and Newton-Raphson method Zeroes of Transcendental and Polynomial Equations Bisection method, Regula-falsi method and Newton-Raphson method PRELIMINARIES Solution of equation f (x) = 0 A number (real or complex) is a root of the

More information

Root Finding (and Optimisation)

Root Finding (and Optimisation) Root Finding (and Optimisation) M.Sc. in Mathematical Modelling & Scientific Computing, Practical Numerical Analysis Michaelmas Term 2018, Lecture 4 Root Finding The idea of root finding is simple we want

More information

by Martin Mendez, UASLP Copyright 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

by Martin Mendez, UASLP Copyright 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 5 by Martin Mendez, 1 Roots of Equations Part Why? b m b a + b + c = 0 = aa 4ac But a 5 4 3 + b + c + d + e + f = 0 sin + = 0 =? =? by Martin Mendez, Nonlinear Equation Solvers Bracketing Graphical

More information

a factors The exponential 0 is a special case. If b is any nonzero real number, then

a factors The exponential 0 is a special case. If b is any nonzero real number, then 0.1 Exponents The expression x a is an exponential expression with base x and exponent a. If the exponent a is a positive integer, then the expression is simply notation that counts how many times the

More information

Chapter 6. Nonlinear Equations. 6.1 The Problem of Nonlinear Root-finding. 6.2 Rate of Convergence

Chapter 6. Nonlinear Equations. 6.1 The Problem of Nonlinear Root-finding. 6.2 Rate of Convergence Chapter 6 Nonlinear Equations 6. The Problem of Nonlinear Root-finding In this module we consider the problem of using numerical techniques to find the roots of nonlinear equations, f () =. Initially we

More information

CHAPTER-II ROOTS OF EQUATIONS

CHAPTER-II ROOTS OF EQUATIONS CHAPTER-II ROOTS OF EQUATIONS 2.1 Introduction The roots or zeros of equations can be simply defined as the values of x that makes f(x) =0. There are many ways to solve for roots of equations. For some

More information

NUMERICAL AND STATISTICAL COMPUTING (MCA-202-CR)

NUMERICAL AND STATISTICAL COMPUTING (MCA-202-CR) NUMERICAL AND STATISTICAL COMPUTING (MCA-202-CR) Autumn Session UNIT 1 Numerical analysis is the study of algorithms that uses, creates and implements algorithms for obtaining numerical solutions to problems

More information

Lecture 8. Root finding II

Lecture 8. Root finding II 1 Introduction Lecture 8 Root finding II In the previous lecture we considered the bisection root-bracketing algorithm. It requires only that the function be continuous and that we have a root bracketed

More information

Numerical Methods. Root Finding

Numerical Methods. Root Finding Numerical Methods Solving Non Linear 1-Dimensional Equations Root Finding Given a real valued function f of one variable (say ), the idea is to find an such that: f() 0 1 Root Finding Eamples Find real

More information

Root Finding: Close Methods. Bisection and False Position Dr. Marco A. Arocha Aug, 2014

Root Finding: Close Methods. Bisection and False Position Dr. Marco A. Arocha Aug, 2014 Root Finding: Close Methods Bisection and False Position Dr. Marco A. Arocha Aug, 2014 1 Roots Given function f(x), we seek x values for which f(x)=0 Solution x is the root of the equation or zero of the

More information

Bisection and False Position Dr. Marco A. Arocha Aug, 2014

Bisection and False Position Dr. Marco A. Arocha Aug, 2014 Bisection and False Position Dr. Marco A. Arocha Aug, 2014 1 Given function f, we seek x values for which f(x)=0 Solution x is the root of the equation or zero of the function f Problem is known as root

More information

Order of convergence

Order of convergence Order of convergence Linear and Quadratic Order of convergence Computing square root with Newton s Method Given a > 0, p def = a is positive root of equation Newton s Method p k+1 = p k p2 k a 2p k = 1

More information

Goals for This Lecture:

Goals for This Lecture: Goals for This Lecture: Learn the Newton-Raphson method for finding real roots of real functions Learn the Bisection method for finding real roots of a real function Look at efficient implementations of

More information

AIMS Exercise Set # 1

AIMS Exercise Set # 1 AIMS Exercise Set #. Determine the form of the single precision floating point arithmetic used in the computers at AIMS. What is the largest number that can be accurately represented? What is the smallest

More information

Roots of Equations. ITCS 4133/5133: Introduction to Numerical Methods 1 Roots of Equations

Roots of Equations. ITCS 4133/5133: Introduction to Numerical Methods 1 Roots of Equations Roots of Equations Direct Search, Bisection Methods Regula Falsi, Secant Methods Newton-Raphson Method Zeros of Polynomials (Horner s, Muller s methods) EigenValue Analysis ITCS 4133/5133: Introduction

More information

CLASS NOTES Models, Algorithms and Data: Introduction to computing 2018

CLASS NOTES Models, Algorithms and Data: Introduction to computing 2018 CLASS NOTES Models, Algorithms and Data: Introduction to computing 2018 Petros Koumoutsakos, Jens Honore Walther (Last update: April 16, 2018) IMPORTANT DISCLAIMERS 1. REFERENCES: Much of the material

More information

Mock Final Exam Name. Solve and check the linear equation. 1) (-8x + 8) + 1 = -7(x + 3) A) {- 30} B) {- 6} C) {30} D) {- 28}

Mock Final Exam Name. Solve and check the linear equation. 1) (-8x + 8) + 1 = -7(x + 3) A) {- 30} B) {- 6} C) {30} D) {- 28} Mock Final Exam Name Solve and check the linear equation. 1) (-8x + 8) + 1 = -7(x + 3) 1) A) {- 30} B) {- 6} C) {30} D) {- 28} First, write the value(s) that make the denominator(s) zero. Then solve the

More information

Part 2 - Beginning Algebra Summary

Part 2 - Beginning Algebra Summary Part - Beginning Algebra Summary Page 1 of 4 1/1/01 1. Numbers... 1.1. Number Lines... 1.. Interval Notation.... Inequalities... 4.1. Linear with 1 Variable... 4. Linear Equations... 5.1. The Cartesian

More information

Motivation: We have already seen an example of a system of nonlinear equations when we studied Gaussian integration (p.8 of integration notes)

Motivation: We have already seen an example of a system of nonlinear equations when we studied Gaussian integration (p.8 of integration notes) AMSC/CMSC 460 Computational Methods, Fall 2007 UNIT 5: Nonlinear Equations Dianne P. O Leary c 2001, 2002, 2007 Solving Nonlinear Equations and Optimization Problems Read Chapter 8. Skip Section 8.1.1.

More information

Optimization. Totally not complete this is...don't use it yet...

Optimization. Totally not complete this is...don't use it yet... Optimization Totally not complete this is...don't use it yet... Bisection? Doing a root method is akin to doing a optimization method, but bi-section would not be an effective method - can detect sign

More information

Lecture 5: Random numbers and Monte Carlo (Numerical Recipes, Chapter 7) Motivations for generating random numbers

Lecture 5: Random numbers and Monte Carlo (Numerical Recipes, Chapter 7) Motivations for generating random numbers Lecture 5: Random numbers and Monte Carlo (Numerical Recipes, Chapter 7) Motivations for generating random numbers To sample a function in a statistically controlled manner (i.e. for Monte Carlo integration)

More information

INTRODUCTION TO NUMERICAL ANALYSIS

INTRODUCTION TO NUMERICAL ANALYSIS INTRODUCTION TO NUMERICAL ANALYSIS Cho, Hyoung Kyu Department of Nuclear Engineering Seoul National University 3. SOLVING NONLINEAR EQUATIONS 3.1 Background 3.2 Estimation of errors in numerical solutions

More information

Review. Numerical Methods Lecture 22. Prof. Jinbo Bi CSE, UConn

Review. Numerical Methods Lecture 22. Prof. Jinbo Bi CSE, UConn Review Taylor Series and Error Analysis Roots of Equations Linear Algebraic Equations Optimization Numerical Differentiation and Integration Ordinary Differential Equations Partial Differential Equations

More information

Numerical Methods in Informatics

Numerical Methods in Informatics Numerical Methods in Informatics Lecture 2, 30.09.2016: Nonlinear Equations in One Variable http://www.math.uzh.ch/binf4232 Tulin Kaman Institute of Mathematics, University of Zurich E-mail: tulin.kaman@math.uzh.ch

More information

Solution of Nonlinear Equations

Solution of Nonlinear Equations Solution of Nonlinear Equations (Com S 477/577 Notes) Yan-Bin Jia Sep 14, 017 One of the most frequently occurring problems in scientific work is to find the roots of equations of the form f(x) = 0. (1)

More information

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 5. Nonlinear Equations

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 5. Nonlinear Equations Lecture Notes to Accompany Scientific Computing An Introductory Survey Second Edition by Michael T Heath Chapter 5 Nonlinear Equations Copyright c 2001 Reproduction permitted only for noncommercial, educational

More information

Outline. Scientific Computing: An Introductory Survey. Nonlinear Equations. Nonlinear Equations. Examples: Nonlinear Equations

Outline. Scientific Computing: An Introductory Survey. Nonlinear Equations. Nonlinear Equations. Examples: Nonlinear Equations Methods for Systems of Methods for Systems of Outline Scientific Computing: An Introductory Survey Chapter 5 1 Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign

More information

MA094 Part 2 - Beginning Algebra Summary

MA094 Part 2 - Beginning Algebra Summary MA094 Part - Beginning Algebra Summary Page of 8/8/0 Big Picture Algebra is Solving Equations with Variables* Variable Variables Linear Equations x 0 MA090 Solution: Point 0 Linear Inequalities x < 0 page

More information

Lecture 9. Polynomials. x+c 3. c 1. x 2 +c 4. +c 2. x 2 =0. c 3. 4 c 1. , c 2

Lecture 9. Polynomials. x+c 3. c 1. x 2 +c 4. +c 2. x 2 =0. c 3. 4 c 1. , c 2 1 Introduction The equation Lecture 9 Polynomials p(x)= x +c 4 x 3 =0 (1) is one equation in one unknown, and the root finding methods we developed previously can be applied to solve it. However this is

More information

x is also called the abscissa y is also called the ordinate "If you can create a t-table, you can graph anything!"

x is also called the abscissa y is also called the ordinate If you can create a t-table, you can graph anything! Senior Math Section 6-1 Notes Rectangular Coordinates and Lines Label the following 1. quadrant 1 2. quadrant 2 3. quadrant 3 4. quadrant 4 5. origin 6. x-axis 7. y-axis 8. Ordered Pair (x, y) at (2, 1)

More information

Scientific Computing. Roots of Equations

Scientific Computing. Roots of Equations ECE257 Numerical Methods and Scientific Computing Roots of Equations Today s s class: Roots of Equations Polynomials Polynomials A polynomial is of the form: ( x) = a 0 + a 1 x + a 2 x 2 +L+ a n x n f

More information

Chapter 3: Root Finding. September 26, 2005

Chapter 3: Root Finding. September 26, 2005 Chapter 3: Root Finding September 26, 2005 Outline 1 Root Finding 2 3.1 The Bisection Method 3 3.2 Newton s Method: Derivation and Examples 4 3.3 How To Stop Newton s Method 5 3.4 Application: Division

More information

Zeros of Functions. Chapter 10

Zeros of Functions. Chapter 10 Chapter 10 Zeros of Functions An important part of the mathematics syllabus in secondary school is equation solving. This is important for the simple reason that equations are important a wide range of

More information

Mathematical Focus 1 Complex numbers adhere to certain arithmetic properties for which they and their complex conjugates are defined.

Mathematical Focus 1 Complex numbers adhere to certain arithmetic properties for which they and their complex conjugates are defined. Situation: Complex Roots in Conjugate Pairs Prepared at University of Georgia Center for Proficiency in Teaching Mathematics June 30, 2013 Sarah Major Prompt: A teacher in a high school Algebra class has

More information

Chapter 4. Solution of Non-linear Equation. Module No. 1. Newton s Method to Solve Transcendental Equation

Chapter 4. Solution of Non-linear Equation. Module No. 1. Newton s Method to Solve Transcendental Equation Numerical Analysis by Dr. Anita Pal Assistant Professor Department of Mathematics National Institute of Technology Durgapur Durgapur-713209 email: anita.buie@gmail.com 1 . Chapter 4 Solution of Non-linear

More information

CS 450 Numerical Analysis. Chapter 5: Nonlinear Equations

CS 450 Numerical Analysis. Chapter 5: Nonlinear Equations Lecture slides based on the textbook Scientific Computing: An Introductory Survey by Michael T. Heath, copyright c 2018 by the Society for Industrial and Applied Mathematics. http://www.siam.org/books/cl80

More information

ab = c a If the coefficients a,b and c are real then either α and β are real or α and β are complex conjugates

ab = c a If the coefficients a,b and c are real then either α and β are real or α and β are complex conjugates Further Pure Summary Notes. Roots of Quadratic Equations For a quadratic equation ax + bx + c = 0 with roots α and β Sum of the roots Product of roots a + b = b a ab = c a If the coefficients a,b and c

More information

Quadratics. SPTA Mathematics Higher Notes

Quadratics. SPTA Mathematics Higher Notes H Quadratics SPTA Mathematics Higher Notes Quadratics are expressions with degree 2 and are of the form ax 2 + bx + c, where a 0. The Graph of a Quadratic is called a Parabola, and there are 2 types as

More information

A2 HW Imaginary Numbers

A2 HW Imaginary Numbers Name: A2 HW Imaginary Numbers Rewrite the following in terms of i and in simplest form: 1) 100 2) 289 3) 15 4) 4 81 5) 5 12 6) -8 72 Rewrite the following as a radical: 7) 12i 8) 20i Solve for x in simplest

More information

C-1. Snezana Lawrence

C-1. Snezana Lawrence C-1 Snezana Lawrence These materials have been written by Dr. Snezana Lawrence made possible by funding from Gatsby Technical Education projects (GTEP) as part of a Gatsby Teacher Fellowship ad-hoc bursary

More information

Newton s Method and Linear Approximations

Newton s Method and Linear Approximations 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

More information

Lecture 7: Numerical Tools

Lecture 7: Numerical Tools Lecture 7: Numerical Tools Fatih Guvenen January 10, 2016 Fatih Guvenen Lecture 7: Numerical Tools January 10, 2016 1 / 18 Overview Three Steps: V (k, z) =max c,k 0 apple u(c)+ Z c + k 0 =(1 + r)k + z

More information

Parabolas and lines

Parabolas and lines Parabolas and lines Study the diagram at the right. I have drawn the graph y = x. The vertical line x = 1 is drawn and a number of secants to the parabola are drawn, all centred at x=1. By this I mean

More information

Chapter 4 Notes, Calculus I with Precalculus 3e Larson/Edwards

Chapter 4 Notes, Calculus I with Precalculus 3e Larson/Edwards 4.1 The Derivative Recall: For the slope of a line we need two points (x 1,y 1 ) and (x 2,y 2 ). Then the slope is given by the formula: m = y x = y 2 y 1 x 2 x 1 On a curve we can find the slope of a

More information

1. Method 1: bisection. The bisection methods starts from two points a 0 and b 0 such that

1. Method 1: bisection. The bisection methods starts from two points a 0 and b 0 such that Chapter 4 Nonlinear equations 4.1 Root finding Consider the problem of solving any nonlinear relation g(x) = h(x) in the real variable x. We rephrase this problem as one of finding the zero (root) of a

More information

QUADRATIC FUNCTIONS AND MODELS

QUADRATIC FUNCTIONS AND MODELS QUADRATIC FUNCTIONS AND MODELS What You Should Learn Analyze graphs of quadratic functions. Write quadratic functions in standard form and use the results to sketch graphs of functions. Find minimum and

More information

Hence a root lies between 1 and 2. Since f a is negative and f(x 0 ) is positive The root lies between a and x 0 i.e. 1 and 1.

Hence a root lies between 1 and 2. Since f a is negative and f(x 0 ) is positive The root lies between a and x 0 i.e. 1 and 1. The Bisection method or BOLZANO s method or Interval halving method: Find the positive root of x 3 x = 1 correct to four decimal places by bisection method Let f x = x 3 x 1 Here f 0 = 1 = ve, f 1 = ve,

More information

Roots and Coefficients of a Quadratic Equation Summary

Roots and Coefficients of a Quadratic Equation Summary Roots and Coefficients of a Quadratic Equation Summary For a quadratic equation with roots α and β: Sum of roots = α + β = and Product of roots = αβ = Symmetrical functions of α and β include: x = and

More information

Finding the Equation of a Graph. I can give the equation of a curve given just the roots.

Finding the Equation of a Graph. I can give the equation of a curve given just the roots. National 5 W 7th August Finding the Equation of a Parabola Starter Sketch the graph of y = x - 8x + 15. On your sketch clearly identify the roots, axis of symmetry, turning point and y intercept. Today

More information

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

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 Solving Quadratics Graph: y = 2x 2 2 y = x 2 x 12 y = x 2 + 6x + 9 y = x 2 + 6x + 3 Roots are: real, rational real, rational real, rational, equal real, irrational 1 To find the roots algebraically, make

More information

Chapter 1A -- Real Numbers. iff. Math Symbols: Sets of Numbers

Chapter 1A -- Real Numbers. iff. Math Symbols: Sets of Numbers Fry Texas A&M University! Fall 2016! Math 150 Notes! Section 1A! Page 1 Chapter 1A -- Real Numbers Math Symbols: iff or Example: Let A = {2, 4, 6, 8, 10, 12, 14, 16,...} and let B = {3, 6, 9, 12, 15, 18,

More information

King Fahd University of Petroleum and Minerals Prep-Year Math Program Math Term 161 Recitation (R1, R2)

King Fahd University of Petroleum and Minerals Prep-Year Math Program Math Term 161 Recitation (R1, R2) Math 001 - Term 161 Recitation (R1, R) Question 1: How many rational and irrational numbers are possible between 0 and 1? (a) 1 (b) Finite (c) 0 (d) Infinite (e) Question : A will contain how many elements

More information

Quadratic Functions. Key Terms. Slide 1 / 200. Slide 2 / 200. Slide 3 / 200. Table of Contents

Quadratic Functions. Key Terms. Slide 1 / 200. Slide 2 / 200. Slide 3 / 200. Table of Contents Slide 1 / 200 Quadratic Functions Table of Contents Key Terms Identify Quadratic Functions Explain Characteristics of Quadratic Functions Solve Quadratic Equations by Graphing Solve Quadratic Equations

More information

Quadratic Functions. Key Terms. Slide 2 / 200. Slide 1 / 200. Slide 3 / 200. Slide 4 / 200. Slide 6 / 200. Slide 5 / 200.

Quadratic Functions. Key Terms. Slide 2 / 200. Slide 1 / 200. Slide 3 / 200. Slide 4 / 200. Slide 6 / 200. Slide 5 / 200. Slide 1 / 200 Quadratic Functions Slide 2 / 200 Table of Contents Key Terms Identify Quadratic Functions Explain Characteristics of Quadratic Functions Solve Quadratic Equations by Graphing Solve Quadratic

More information

Slide 1 / 200. Quadratic Functions

Slide 1 / 200. Quadratic Functions Slide 1 / 200 Quadratic Functions Key Terms Slide 2 / 200 Table of Contents Identify Quadratic Functions Explain Characteristics of Quadratic Functions Solve Quadratic Equations by Graphing Solve Quadratic

More information

5. Hand in the entire exam booklet and your computer score sheet.

5. Hand in the entire exam booklet and your computer score sheet. WINTER 2016 MATH*2130 Final Exam Last name: (PRINT) First name: Student #: Instructor: M. R. Garvie 19 April, 2016 INSTRUCTIONS: 1. This is a closed book examination, but a calculator is allowed. The test

More information

GENG2140, S2, 2012 Week 7: Curve fitting

GENG2140, S2, 2012 Week 7: Curve fitting GENG2140, S2, 2012 Week 7: Curve fitting Curve fitting is the process of constructing a curve, or mathematical function, f(x) that has the best fit to a series of data points Involves fitting lines and

More information

CHAPTER 10 Zeros of Functions

CHAPTER 10 Zeros of Functions CHAPTER 10 Zeros of Functions An important part of the maths syllabus in secondary school is equation solving. This is important for the simple reason that equations are important a wide range of problems

More information

Numerical Solution of f(x) = 0

Numerical Solution of f(x) = 0 Numerical Solution of f(x) = 0 Gerald W. Recktenwald Department of Mechanical Engineering Portland State University gerry@pdx.edu ME 350: Finding roots of f(x) = 0 Overview Topics covered in these slides

More information

Function Junction: Homework Examples from ACE

Function Junction: Homework Examples from ACE Function Junction: Homework Examples from ACE Investigation 1: The Families of Functions, ACE #5, #10 Investigation 2: Arithmetic and Geometric Sequences, ACE #4, #17 Investigation 3: Transforming Graphs,

More information

Numerical Methods Dr. Sanjeev Kumar Department of Mathematics Indian Institute of Technology Roorkee Lecture No 7 Regula Falsi and Secant Methods

Numerical Methods Dr. Sanjeev Kumar Department of Mathematics Indian Institute of Technology Roorkee Lecture No 7 Regula Falsi and Secant Methods Numerical Methods Dr. Sanjeev Kumar Department of Mathematics Indian Institute of Technology Roorkee Lecture No 7 Regula Falsi and Secant Methods So welcome to the next lecture of the 2 nd unit of this

More information

Bisection Method. and compute f (p 1 ). repeat with p 2 = a 2+b 2

Bisection Method. and compute f (p 1 ). repeat with p 2 = a 2+b 2 Bisection Method Given continuous function f (x) on the interval [a, b] with f (a) f (b) < 0, there must be a root in (a, b). To find a root: set [a 1, b 1 ] = [a, b]. set p 1 = a 1+b 1 2 and compute f

More information

Module 2: Reflecting on One s Problems

Module 2: Reflecting on One s Problems MATH55 Module : Reflecting on One s Problems Main Math concepts: Translations, Reflections, Graphs of Equations, Symmetry Auxiliary ideas: Working with quadratics, Mobius maps, Calculus, Inverses I. Transformations

More information

Today s class. Numerical differentiation Roots of equation Bracketing methods. Numerical Methods, Fall 2011 Lecture 4. Prof. Jinbo Bi CSE, UConn

Today s class. Numerical differentiation Roots of equation Bracketing methods. Numerical Methods, Fall 2011 Lecture 4. Prof. Jinbo Bi CSE, UConn Today s class Numerical differentiation Roots of equation Bracketing methods 1 Numerical Differentiation Finite divided difference First forward difference First backward difference Lecture 3 2 Numerical

More information

Section 1.1. Chapter 1. Quadratics. Parabolas. Example. Example. ( ) = ax 2 + bx + c -2-1

Section 1.1. Chapter 1. Quadratics. Parabolas. Example. Example. ( ) = ax 2 + bx + c -2-1 Chapter 1 Quadratic Functions and Factoring Section 1.1 Graph Quadratic Functions in Standard Form Quadratics The polynomial form of a quadratic function is: f x The graph of a quadratic function is a

More information

Algebra II. A2.1.1 Recognize and graph various types of functions, including polynomial, rational, and algebraic functions.

Algebra II. A2.1.1 Recognize and graph various types of functions, including polynomial, rational, and algebraic functions. Standard 1: Relations and Functions Students graph relations and functions and find zeros. They use function notation and combine functions by composition. They interpret functions in given situations.

More information

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by 1. QUESTION (a) Given a nth degree Taylor polynomial P n (x) of a function f(x), expanded about x = x 0, write down the Lagrange formula for the truncation error, carefully defining all its elements. How

More information

3.1 Derivative Formulas for Powers and Polynomials

3.1 Derivative Formulas for Powers and Polynomials 3.1 Derivative Formulas for Powers and Polynomials First, recall that a derivative is a function. We worked very hard in 2.2 to interpret the derivative of a function visually. We made the link, in Ex.

More information

Midterm Review. Igor Yanovsky (Math 151A TA)

Midterm Review. Igor Yanovsky (Math 151A TA) Midterm Review Igor Yanovsky (Math 5A TA) Root-Finding Methods Rootfinding methods are designed to find a zero of a function f, that is, to find a value of x such that f(x) =0 Bisection Method To apply

More information

Math Academy I Fall Study Guide. CHAPTER ONE: FUNDAMENTALS Due Thursday, December 8

Math Academy I Fall Study Guide. CHAPTER ONE: FUNDAMENTALS Due Thursday, December 8 Name: Math Academy I Fall Study Guide CHAPTER ONE: FUNDAMENTALS Due Thursday, December 8 1-A Terminology natural integer rational real complex irrational imaginary term expression argument monomial degree

More information

AS PURE MATHS REVISION NOTES

AS PURE MATHS REVISION NOTES AS PURE MATHS REVISION NOTES 1 SURDS A root such as 3 that cannot be written exactly as a fraction is IRRATIONAL An expression that involves irrational roots is in SURD FORM e.g. 2 3 3 + 2 and 3-2 are

More information

Observations Homework Checkpoint quizzes Chapter assessments (Possibly Projects) Blocks of Algebra

Observations Homework Checkpoint quizzes Chapter assessments (Possibly Projects) Blocks of Algebra September The Building Blocks of Algebra Rates, Patterns and Problem Solving Variables and Expressions The Commutative and Associative Properties The Distributive Property Equivalent Expressions Seeing

More information

Numerical Methods. Scientists. Engineers

Numerical Methods. Scientists. Engineers Third Edition Numerical Methods for Scientists and Engineers K. Sankara Rao Numerical Methods for Scientists and Engineers Numerical Methods for Scientists and Engineers Third Edition K. SANKARA RAO Formerly,

More information

Practical Algebra. A Step-by-step Approach. Brought to you by Softmath, producers of Algebrator Software

Practical Algebra. A Step-by-step Approach. Brought to you by Softmath, producers of Algebrator Software Practical Algebra A Step-by-step Approach Brought to you by Softmath, producers of Algebrator Software 2 Algebra e-book Table of Contents Chapter 1 Algebraic expressions 5 1 Collecting... like terms 5

More information

Math 5a Reading Assignments for Sections

Math 5a Reading Assignments for Sections Math 5a Reading Assignments for Sections 4.1 4.5 Due Dates for Reading Assignments Note: There will be a very short online reading quiz (WebWork) on each reading assignment due one hour before class on

More information

MEI Core 1. Basic Algebra. Section 1: Basic algebraic manipulation and solving simple equations. Manipulating algebraic expressions

MEI Core 1. Basic Algebra. Section 1: Basic algebraic manipulation and solving simple equations. Manipulating algebraic expressions MEI Core Basic Algebra Section : Basic algebraic manipulation and solving simple equations Notes and Examples These notes contain subsections on Manipulating algebraic expressions Collecting like terms

More information

Numerical Analysis MTH603

Numerical Analysis MTH603 Numerical Analysis Course Contents Solution of Non Linear Equations Solution of Linear System of Equations Approximation of Eigen Values Interpolation and Polynomial Approximation Numerical Differentiation

More information

Program : M.A./M.Sc. (Mathematics) M.A./M.Sc. (Final) Paper Code:MT-08 Numerical Analysis Section A (Very Short Answers Questions)

Program : M.A./M.Sc. (Mathematics) M.A./M.Sc. (Final) Paper Code:MT-08 Numerical Analysis Section A (Very Short Answers Questions) Program : M../M.Sc. (Mathematics) M../M.Sc. (Final) Paper Code:MT-08 Numerical nalysis Section (Very Short nswers Questions) 1. Write two examples of transcendental equations. (i) x 3 + sin x = 0 (ii)

More information

Newton s Method and Linear Approximations

Newton s Method and Linear Approximations 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

More information

Review 1. 1 Relations and Functions. Review Problems

Review 1. 1 Relations and Functions. Review Problems Review 1 1 Relations and Functions Objectives Relations; represent a relation by coordinate pairs, mappings and equations; functions; evaluate a function; domain and range; operations of functions. Skills

More information

Roots of equations, minimization, numerical integration

Roots of equations, minimization, numerical integration Roots of equations, minimization, numerical integration Alexander Khanov PHYS6260: Experimental Methods is HEP Oklahoma State University November 1, 2017 Roots of equations Find the roots solve equation

More information

Algebra 1 Unit & Lesson Overviews Mathematics

Algebra 1 Unit & Lesson Overviews Mathematics Unit:1.1 Equations Days : 11 How do you interpret, evaluate and write algebraic expressions that model real-world situations? What are some of the different methods for solving linear equations? How can

More information

Solving Polynomial and Rational Inequalities Algebraically. Approximating Solutions to Inequalities Graphically

Solving Polynomial and Rational Inequalities Algebraically. Approximating Solutions to Inequalities Graphically 10 Inequalities Concepts: Equivalent Inequalities Solving Polynomial and Rational Inequalities Algebraically Approximating Solutions to Inequalities Graphically (Section 4.6) 10.1 Equivalent Inequalities

More information

Reading Mathematical Expressions & Arithmetic Operations Expression Reads Note

Reading Mathematical Expressions & Arithmetic Operations Expression Reads Note Math 001 - Term 171 Reading Mathematical Expressions & Arithmetic Operations Expression Reads Note x A x belongs to A,x is in A Between an element and a set. A B A is a subset of B Between two sets. φ

More information

5 Finding roots of equations

5 Finding roots of equations Lecture notes for Numerical Analysis 5 Finding roots of equations Topics:. Problem statement. Bisection Method 3. Newton s Method 4. Fixed Point Iterations 5. Systems of equations 6. Notes and further

More information

A Review of Bracketing Methods for Finding Zeros of Nonlinear Functions

A Review of Bracketing Methods for Finding Zeros of Nonlinear Functions Applied Mathematical Sciences, Vol 1, 018, no 3, 137-146 HIKARI Ltd, wwwm-hikaricom https://doiorg/101988/ams018811 A Review of Bracketing Methods for Finding Zeros of Nonlinear Functions Somkid Intep

More information

FLORIDA STANDARDS TO BOOK CORRELATION

FLORIDA STANDARDS TO BOOK CORRELATION FLORIDA STANDARDS TO BOOK CORRELATION Florida Standards (MAFS.912) Conceptual Category: Number and Quantity Domain: The Real Number System After a standard is introduced, it is revisited many times in

More information