CLASS NOTES Computational Methods for Engineering Applications I Spring 2015

Size: px
Start display at page:

Download "CLASS NOTES Computational Methods for Engineering Applications I Spring 2015"

Transcription

1 CLASS NOTES Computational Methods for Engineering Applications I Spring 2015 Petros Koumoutsakos Gerardo Tauriello (Last update: July 2, 2015) IMPORTANT DISCLAIMERS 1. REFERENCES: Much of the material (ideas, definitions, concepts, eamples, etc) in these notes is taken (in some cases verbatim) for teaching purposes, from several references, and in particular the references listed below. A large part of the lecture notes is adapted from The Nature of Mathematical Modeling by Neil Gershenfeld (Cambridge University Press, 1st ed., 1998). Therefore, these notes are only informally distributed and intended ONLY as study aid for the final eam of ETHZ students that were registered for the course Computational Methods for Engineering Applications I in SS CONTENT: The present Notes are a first LaTe draft for the Lectures of Computational Methods for Engineering Applications I. The notes have been checked but there is no guarantee that they are free of mistakes. Please use with care. Again, these notes are only intended for use by the ETHZ students that were registered for the course Computational Methods for Engineering Applications I in SS 2015 and ONLY a study aid for their final eam.

2 Chapter 4 Solving Non-Linear Equations 4.1 Key Points After this class, you should understand the following points regarding the solution of non-linear equations: What are the key algorithms for non-linear equation solving When to use derivatives or their approimation in Newton s methods What is the Jacobian for Newton s method and what is its role Why do we approimate the Jacobian in Newton s methods

3 2 Chapter 4. Solving Non-Linear Equations 4.2 Introduction So far we have looked at linear systems of equations which we could write as A = b, where A is an invertible N N matri and and b are vectors of length N. For function fitting, we determined A and b from the data and computed the N unknown parameters in by solving the system A = b or equivalently solving the linear set of equations F ( ) = A b = 0. The task becomes harder if we try to find parameters = ( 1,..., N ) for a general system of N non-linear equations f i ( ) = 0 (i = 1,..., N), which we commonly write as F ( ) = 0. A single non-linear equation has the form = 0 (4.2.1) The task is to find solutions of such equations (i.e. finding the root of ). Looking at the graph of below the goal is to find points, where the curve crosses the horizontal ais. * * Eample: (adapted from book Numerical Analysis by R.L. Burden and J.D. Faires) The amount of pressure required to sink a large heavy object in a soft homogeneous soil that lies above a hard base soil can be predicted by the amount of pressure required to sink smaller objects. Let p denote the amount of pressure required to sink a circular plate of radius r at a distance d in the soft soil, where the hard soil lies at a distance D > d below the surface. p can be approimated by an equation of the form: p = k 1 e k 2r + k 3 r, (4.2.2) where k 1, k 2, k 3 depend on d and the consistency of the soil but not on r. Now the task is to find k 1, k 2, k 3. To do that we need to have 3 equations which we can obtain by taking plates of different radii r 1, r 2, r 3 and sinking them. After doing so we will get the following

4 4.3. Preliminaries 3 system of equations: p 1 = k 1 e k 2r 1 + k 3 r 1, p 2 = k 1 e k 2r 2 + k 3 r 2, (4.2.3) p 3 = k 1 e k 2r 3 + k 3 r 3. Eample with one unknown: Population growth Let N(t) be the number of people at time t. Let λ be the birth rate. Then the equation describing the populaition growth has the form: dn(t) dt = λn(t). (4.2.4) Assume that we also have an immigration at a constant rate u. Then the population growth equation will include an additional term: dn(t) dt = λn(t) + u. (4.2.5) The solution of the Eq. (4.2.5) is given by the following formula: where N 0 is a constant indicating the initial population size. N(t) = N 0 e λt + u λ (eλt 1), (4.2.6) Numerical eample. Suppose we have initially 1,000,000 people. Assume that 15,000 people immigrate every year and that 1,080,000 people are present at the end of the year. What is the birth rate of this population? To find the birth rate we need to solve the following equation for λ (remember that t = 1 [year]): 1, 080, 000 = 1, 000, 000e λ + 15, 000 (e λ 1). (4.2.7) λ As in the previous eample we have a non-linear equation and the question now is how one can solve it. 4.3 Preliminaries Eistence and Uniqueness Recall that for linear problems finding the solution of A = b required that A 1 0 or that A is non-singular. For a function f : R R define the bracket as the interval, where the sign of f differs at the endpoints.

5 4 Chapter 4. Solving Non-Linear Equations If f is continuous and signf(a) signf(b), then the Intermediate Value Theorem implies that there eists [a, b] such that f( ) = 0. Note I : There is no simple analog of this theorem for the multi-dimensional case. Note II : Non-linear equations may have roots for which = 0 and f () = 0 (i.e. they have roots with multiplicity m > 1) as shown in the figures below: =1 =1 =1 =1 Graph of the function = Graph of the function = Sensitivity and Conditioning Conditioning of root finding problem is opposite to that of evaluating function. The condition number for the root of f : R R is 1 f ( (4.3.1) ) The root is ill-conditioned if the tangent line is nearly horizontal. Furthermore, roots with multiplicity m > 1 are ill-conditioned. For systems of N non-linear equations, the condition number of the root finding problem for root of F : R N R N is J 1 ( ), where J is the Jacobian of f. J is a N N matri with elements J( ) i,j = f i ( )/ j. Consider an approimate solution to = 0: f( ) 0 or 0, (4.3.2) where is the true solution. We notice that a small residual f( ) implies an accurate solution (i.e. 0) only if the problem is well-conditioned.

6 4.4. Bisection Method 5 Convergence Rate Many schemes proceed by iteratively improving an estimate (k) with a better estimate (k+1). The error for (k) is given by E (k) = (k) (4.3.3) The sequence of (k) converges with rate r if E (k+1) lim k E (k) r = C (4.3.4) where C is finite and non zero. There are three common cases according to the value of r: r = 1: linear r > 1: superlinear r = 2: quadratic 4.4 Bisection Method The bisection method is based on the intermediate value theorem. The method works by beginning with an initial bracket and then halving the length until a solution has been isolated as accurately as desired. We start with an initial bracket [a, b] and a desired tolerance tol. We then refine [a, b] according to Algorithm 1 (see also Fig. 4.2). Notes: The bisection method makes no use of actual function values, only of their signs.

7 6 Chapter 4. Solving Non-Linear Equations The bisection method is certain to converge, but slowly. At each iteration the length of interval containing the solution is reduced by 1/2. So the method is linearly convergent with r = 1 and C = 0.5. In terms of binary numbers, one bit of accuracy is gained in the approimate solution for each iteration of the bisection method. Given the starting interval [a, b] after k iterations, the interval is (b a)/2 k, so achieving an error tolerance of tol requires m = log 2 ((b a)/tol) steps, regardless of f. Algorithm 1 Bisection Method Steps: while (b a) > tol do m (a + b)/2 if sign(f(a)) = sign(f(m)) then a m else b m end if end while f(b) a P1 P2 P4 P3 b f(p1) f(a) Figure 4.2: Iterative approach used in the bisection method, where P k denotes the m value in Algorithm 1 at the k-th iteration.

8 4.5. Newton s Method 7 f( (0) ) * θ (2) (1) (0) tan( ) = f((0) ) (0) (1) = f 0 ( (0) ) ) (0) (1) = f((0) ) f 0 ( (0) ) ) (1) = (0) f( (0) ) f 0 ( (0) ) Figure 4.3: Graphical eample of Newton iterations as we follow the tangents of. 4.5 Newton s Method In a linear problem the equivalent of the linear problem A b = 0 is = 0 as in Eq. (4.2.1) (or F ( ) = 0 for a system of equations). We epect to solve = 0 by starting from a guess (k) and improving it by computing the net guess (k+1). Everything in a sense depends on what is known of (k). Normally, we can calculate f( (k) ) and see how close it is to 0. Can we estimate f( (k+1) ) from f( (k) ) too? Let s use the first terms of a Taylor series: f( (k+1) ) = f( (k) ) + f ( (k) )( (k+1) (k) ). (4.5.1) Note that we dropped all higher terms from the Taylor series. We can now solve f( (k+1) ) = 0 in Eq. (4.5.1) and get that: f ( (k) )( (k+1) (k) ) = f( (k) ) (4.5.2) (k+1) = (k) f((k) ) f ( (k) ) (4.5.3) Graphically the procedure is visualized in Fig Newton s method approimates the non-linear function f near (k) by the tangent line at f( (k) ). Convergence for simple roots is quadratic. For roots of multiplicity m > 1, the convergence is linear unless we modify the iteration (Eq. (4.5.3)) to (k+1) = (k) mf( (k) )/f ( (k) ) Problems with Newton s Method Newton s method requires evaluation of both function and derivative at each iteration. Evaluating the derivative may be epensive or inconvenient so we replace this with a finite difference approimation.

9 8 Chapter 4. Solving Non-Linear Equations KEY IDEA: If something is epensive or inconvenient to compute, replace it with a numerical approimation. Let f ( (k) ) = f((k) ) f( (k 1) ) (k) (k 1) (4.5.4) then the method reads as (k+1) = (k) f( (k) (k) (k 1) ) f( (k) ) f( (k 1) ) (4.5.5) This is called the secant method. The convergence rate of the method is r Secant Method The secant method approimates the non-linear function f by a secant line through previous two iterations (see Fig. 4.4). As we saw above the secant method uses a linear approimation of the function to construct its derivative. This idea can be etended so that higher order interpolations can be used. Quadratic interpolation (Müller s method) has convergence r Other eamples include inverse interpolation, or linear fractional intepolation. k k-1 k+1 Figure 4.4: Iterative approach used in the secant method.

10 4.5. Newton s Method Solving systems of non-linear equations We are given a system of N non-linear equations f i ( ) = 0 (i = 1,..., N) where = ( 1,..., N ) is a vector of N unknowns: f 1 ( ) 0 f F ( ) = 2 ( ). = 0. = 0 (4.5.6) f N ( ) 0 The picture of Newton s method (see Fig. 4.3) is similar when trying to solve Eq. (4.5.6). We now have N surfaces f i ( ), each with a tangent plane at (k). The surfaces intersect in a curve that crosses the plane at 0 at. The tangent planes, on the other hand, intersect in a tangent line that crosses (k+1). The method succeeds when (k+1) is close to. The algebraic derivations remain however the same or quite similar. The main change is that the derivative f is replaced by the Jacobian matri J, which is a N N matri with elements J( ) i,j = f i ( )/ j : f 1 ( ) 1 f 2 ( ) 1 J( ) =. f N ( ) 1 The modified Taylor series (see Eq. (4.5.1)) now becomes and the update rule (see Eq. (4.5.3)) becomes f 1 f 1 ( ) ( ) 2 N f 2 f 2 ( ) ( ) 2 N..... f N f N ( ) ( ) 2 N (4.5.7) F ( (k+1) ) = F ( (k) ) + J( (k) )( (k+1) (k) ) (4.5.8) In practice, we never invert J( (k) ) and instead solve for y k and update as (k+1) = (k) + y k. (k+1) = (k) J 1 ( (k) ) F ( (k) ) (4.5.9) J( (k) ) y k = F ( (k) ) (4.5.10) The convergence of Newton s method for systems of equations is usually quadratic, provided that the Jacobian matri is non-singular. We note that for a linear system, we have F ( ) = A b and J( ) = A. A single iteration of Newton s method then computes (1) = (0) J 1 ( (0) ) F ( (0) ) = (0) A 1 A (0) + A 1 b = A 1 b, (4.5.11)

11 10 Chapter 4. Solving Non-Linear Equations which gives the same solution as when simply solving the system A = b. To sum up: we start with an initial approimation (0) and iteratively improve the approimation by computing new approimations (k) as in Algorithm 2. Algorithm 2 Newton s method Input: (0), {vector of length N with initial approimation} tol, {tolerance: stop if (k) (k 1) < tol} k ma, {maimal number of iterations: stop if k > k ma } Output: (k), {solution of F ( (k) ) = 0 within tolerance tol} (or a message if k > k ma reached) Steps: k 1 while k k ma do Calculate F ( (k 1) ) and N N matri J( (k 1) ) Solve the N N linear system J( (k 1) ) y = F ( (k 1) ) (k) (k 1) + y if y < tol then break end if k k + 1 end while Computational Cost For large N and dense Jacobians J, the cost of Newton s method can be substantial. It costs O(N 2 ) to build the matri J and solving the linear system in Eq. (4.5.10) costs O(N 3 ) operations (if J is a dense matri). Secant Updating Method Reduce the cost of Newton s Method by: using function values at successive iterations to build approimate Jacobians and avoid eplicit evaluations of the derivatives (note that this is also necessary if for some reason you cannot evaluate the derivatives analytically) update factorization (to solve the linear system) of approimate Jacobians rather than refactoring it each iteration

12 4.5. Newton s Method 11 Most secant methods are superlinear. Modified Newton Method: The simplest approach is to keep J fied during the iterations of Newton s method. So instead of updating or recomputing J, we compute J (0) = J( (0) ) once and (instead of Eq. (4.5.10)) solve J (0) y k = F ( (k) ). (4.5.12) This can be done efficiently by performing a LU decomposition of J (0) once and use it over and over again for different F ( (k) ). This removes the O(N 3 ) cost of solving the linear system. We only have to evaluate F ( (k) ) and can then compute y k in O(N 2 ) operations. This method can only succeed if J is not changing rapidly. Quasi Newton Method: A method in between Newton and modified Newton is the quasi Newton method which changes J at every step without recomputing the derivatives f i ( )/ j (see Eq. (4.5.7)). It instead updates J (0) = J( (0) ) by using information from the step itself. After the first step we know: = (1) (0) and F = F ( (1) ) F ( (0) ). So derivatives of the f i are in the direction of. Then the net J (1) is adjusted to satisfy: for eample by the rank-1 update J (1) = J (0) + J (1) = F (4.5.13) ( F ) J (0) ( ) T ( ) T ( ). (4.5.14) The advantage of the rank-1 update is that it allows the LU decomposition of J (1) to be computed in O(N 2 ) given the LU decomposition of J (0). As in the modified Newton s method, this essentially reduces the cost of solving the linear system from O(N 3 ) to O(N 2 ).

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

Scientific Computing: An Introductory Survey

Scientific Computing: An Introductory Survey Scientific Computing: An Introductory Survey Chapter 5 Nonlinear Equations Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign Copyright c 2002. Reproduction

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

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

Nonlinear Equations. Chapter The Bisection Method

Nonlinear Equations. Chapter The Bisection Method Chapter 6 Nonlinear Equations Given a nonlinear function f(), a value r such that f(r) = 0, is called a root or a zero of f() For eample, for f() = e 016064, Fig?? gives the set of points satisfying y

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

Variable. Peter W. White Fall 2018 / Numerical Analysis. Department of Mathematics Tarleton State University

Variable. Peter W. White Fall 2018 / Numerical Analysis. Department of Mathematics Tarleton State University Newton s Iterative s Peter W. White white@tarleton.edu Department of Mathematics Tarleton State University Fall 2018 / Numerical Analysis Overview Newton s Iterative s Newton s Iterative s Newton s Iterative

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

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

3.3.1 Linear functions yet again and dot product In 2D, a homogenous linear scalar function takes the general form:

3.3.1 Linear functions yet again and dot product In 2D, a homogenous linear scalar function takes the general form: 3.3 Gradient Vector and Jacobian Matri 3 3.3 Gradient Vector and Jacobian Matri Overview: Differentiable functions have a local linear approimation. Near a given point, local changes are determined by

More information

CLASS NOTES Computational Methods for Engineering Applications I Spring 2015

CLASS NOTES Computational Methods for Engineering Applications I Spring 2015 CLASS NOTES Computational Methods for Engineering Applications I Spring 2015 Petros Koumoutsakos Gerardo Tauriello (Last update: July 27, 2015) IMPORTANT DISCLAIMERS 1. REFERENCES: Much of the material

More information

(One Dimension) Problem: for a function f(x), find x 0 such that f(x 0 ) = 0. f(x)

(One Dimension) Problem: for a function f(x), find x 0 such that f(x 0 ) = 0. f(x) Solving Nonlinear Equations & Optimization One Dimension Problem: or a unction, ind 0 such that 0 = 0. 0 One Root: The Bisection Method This one s guaranteed to converge at least to a singularity, i not

More information

1. Nonlinear Equations. This lecture note excerpted parts from Michael Heath and Max Gunzburger. f(x) = 0

1. Nonlinear Equations. This lecture note excerpted parts from Michael Heath and Max Gunzburger. f(x) = 0 Numerical Analysis 1 1. Nonlinear Equations This lecture note excerpted parts from Michael Heath and Max Gunzburger. Given function f, we seek value x for which where f : D R n R n is nonlinear. f(x) =

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

Computational Methods. Solving Equations

Computational Methods. Solving Equations Computational Methods Solving Equations Manfred Huber 2010 1 Solving Equations Solving scalar equations is an elemental task that arises in a wide range of applications Corresponds to finding parameters

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

Numerical Methods I Solving Nonlinear Equations

Numerical Methods I Solving Nonlinear Equations Numerical Methods I Solving Nonlinear Equations Aleksandar Donev Courant Institute, NYU 1 donev@courant.nyu.edu 1 MATH-GA 2011.003 / CSCI-GA 2945.003, Fall 2014 October 16th, 2014 A. Donev (Courant Institute)

More information

Exact and Approximate Numbers:

Exact and Approximate Numbers: Eact and Approimate Numbers: The numbers that arise in technical applications are better described as eact numbers because there is not the sort of uncertainty in their values that was described above.

More information

SOLVING EQUATIONS OF ONE VARIABLE

SOLVING EQUATIONS OF ONE VARIABLE 1 SOLVING EQUATIONS OF ONE VARIABLE ELM1222 Numerical Analysis Some of the contents are adopted from Laurene V. Fausett, Applied Numerical Analysis using MATLAB. Prentice Hall Inc., 1999 2 Today s lecture

More information

Root Finding For NonLinear Equations Bisection Method

Root Finding For NonLinear Equations Bisection Method Root Finding For NonLinear Equations Bisection Method P. Sam Johnson November 17, 2014 P. Sam Johnson (NITK) Root Finding For NonLinear Equations Bisection MethodNovember 17, 2014 1 / 26 Introduction The

More information

Continuity at a Point

Continuity at a Point Continuity at a Point When we eplored the limit of f() as approaches c, the emphasis was on the function values close to = c rather than what happens to the function at = c. We will now consider the following

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

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

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

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

Math Numerical Analysis

Math Numerical Analysis Math 541 - Numerical Analysis Lecture Notes Zeros and Roots Joseph M. Mahaffy, jmahaffy@mail.sdsu.edu Department of Mathematics and Statistics Dynamical Systems Group Computational Sciences Research Center

More information

Outline. Math Numerical Analysis. Intermediate Value Theorem. Lecture Notes Zeros and Roots. Joseph M. Mahaffy,

Outline. Math Numerical Analysis. Intermediate Value Theorem. Lecture Notes Zeros and Roots. Joseph M. Mahaffy, Outline Math 541 - Numerical Analysis Lecture Notes Zeros and Roots Joseph M. Mahaffy, jmahaffy@mail.sdsu.edu Department of Mathematics and Statistics Dynamical Systems Group Computational Sciences Research

More information

Unit 2: Solving Scalar Equations. Notes prepared by: Amos Ron, Yunpeng Li, Mark Cowlishaw, Steve Wright Instructor: Steve Wright

Unit 2: Solving Scalar Equations. Notes prepared by: Amos Ron, Yunpeng Li, Mark Cowlishaw, Steve Wright Instructor: Steve Wright cs416: introduction to scientific computing 01/9/07 Unit : Solving Scalar Equations Notes prepared by: Amos Ron, Yunpeng Li, Mark Cowlishaw, Steve Wright Instructor: Steve Wright 1 Introduction We now

More information

Numerical solutions of nonlinear systems of equations

Numerical solutions of nonlinear systems of equations Numerical solutions of nonlinear systems of equations Tsung-Ming Huang Department of Mathematics National Taiwan Normal University, Taiwan E-mail: min@math.ntnu.edu.tw August 28, 2011 Outline 1 Fixed points

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

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 208 Petros Koumoutsakos, Jens Honore Walther (Last update: June, 208) IMPORTANT DISCLAIMERS. REFERENCES: Much of the material (ideas,

More information

Iteration & Fixed Point

Iteration & Fixed Point Iteration & Fied Point As a method for finding the root of f this method is difficult, but it illustrates some important features of iterstion. We could write f as f g and solve g. Definition.1 (Fied Point)

More information

Maria Cameron. f(x) = 1 n

Maria Cameron. f(x) = 1 n Maria Cameron 1. Local algorithms for solving nonlinear equations Here we discuss local methods for nonlinear equations r(x) =. These methods are Newton, inexact Newton and quasi-newton. We will show that

More information

Example - Newton-Raphson Method

Example - Newton-Raphson Method Eample - Newton-Raphson Method We now consider the following eample: minimize f( 3 3 + -- 4 4 Since f ( 3 2 + 3 3 and f ( 6 + 9 2 we form the following iteration: + n 3 ( n 3 3( n 2 ------------------------------------

More information

R x n. 2 R We simplify this algebraically, obtaining 2x n x n 1 x n x n

R x n. 2 R We simplify this algebraically, obtaining 2x n x n 1 x n x n Math 42 Homework 4. page 3, #9 This is a modification of the bisection method. Write a MATLAB function similar to bisect.m. Here, given the points P a a,f a and P b b,f b with f a f b,we compute the point

More information

9.5 HONORS Determine Odd and Even Functions Graphically and Algebraically

9.5 HONORS Determine Odd and Even Functions Graphically and Algebraically 9.5 HONORS Determine Odd and Even Functions Graphically and Algebraically Use this blank page to compile the most important things you want to remember for cycle 9.5: 181 Even and Odd Functions Even Functions:

More information

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 4

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 4 2.29 Spring 2015 Lecture 4 Review Lecture 3 Truncation Errors, Taylor Series and Error Analysis Taylor series: 2 3 n n i1 i i i i i n f( ) f( ) f '( ) f ''( ) f '''( )... f ( ) R 2! 3! n! n1 ( n1) Rn f

More information

MATH 3795 Lecture 12. Numerical Solution of Nonlinear Equations.

MATH 3795 Lecture 12. Numerical Solution of Nonlinear Equations. MATH 3795 Lecture 12. Numerical Solution of Nonlinear Equations. Dmitriy Leykekhman Fall 2008 Goals Learn about different methods for the solution of f(x) = 0, their advantages and disadvantages. Convergence

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

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: June 11, 2018) IMPORTANT DISCLAIMERS 1. REFERENCES: Much of the material (ideas,

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

Math 75B Practice Problems for Midterm II Solutions Ch. 16, 17, 12 (E), , 2.8 (S)

Math 75B Practice Problems for Midterm II Solutions Ch. 16, 17, 12 (E), , 2.8 (S) Math 75B Practice Problems for Midterm II Solutions Ch. 6, 7, 2 (E),.-.5, 2.8 (S) DISCLAIMER. This collection of practice problems is not guaranteed to be identical, in length or content, to the actual

More information

x 2 x n r n J(x + t(x x ))(x x )dt. For warming-up we start with methods for solving a single equation of one variable.

x 2 x n r n J(x + t(x x ))(x x )dt. For warming-up we start with methods for solving a single equation of one variable. Maria Cameron 1. Fixed point methods for solving nonlinear equations We address the problem of solving an equation of the form (1) r(x) = 0, where F (x) : R n R n is a vector-function. Eq. (1) can be written

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

Numerical Methods Lecture 3

Numerical Methods Lecture 3 Numerical Methods Lecture 3 Nonlinear Equations by Pavel Ludvík Introduction Definition (Root or zero of a function) A root (or a zero) of a function f is a solution of an equation f (x) = 0. We learn

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

Nonlinear Equations. Not guaranteed to have any real solutions, but generally do for astrophysical problems.

Nonlinear Equations. Not guaranteed to have any real solutions, but generally do for astrophysical problems. Nonlinear Equations Often (most of the time??) the relevant system of equations is not linear in the unknowns. Then, cannot decompose as Ax = b. Oh well. Instead write as: (1) f(x) = 0 function of one

More information

M151B Practice Problems for Exam 1

M151B Practice Problems for Exam 1 M151B Practice Problems for Eam 1 Calculators will not be allowed on the eam. Unjustified answers will not receive credit. 1. Compute each of the following its: 1a. 1b. 1c. 1d. 1e. 1 3 4. 3. sin 7 0. +

More information

is the intuition: the derivative tells us the change in output y (from f(b)) in response to a change of input x at x = b.

is the intuition: the derivative tells us the change in output y (from f(b)) in response to a change of input x at x = b. Uses of differentials to estimate errors. Recall the derivative notation df d is the intuition: the derivative tells us the change in output y (from f(b)) in response to a change of input at = b. Eamples.

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

Finding the Roots of f(x) = 0. Gerald W. Recktenwald Department of Mechanical Engineering Portland State University

Finding the Roots of f(x) = 0. Gerald W. Recktenwald Department of Mechanical Engineering Portland State University Finding the Roots of f(x) = 0 Gerald W. Recktenwald Department of Mechanical Engineering Portland State University gerry@me.pdx.edu These slides are a supplement to the book Numerical Methods with Matlab:

More information

Finding the Roots of f(x) = 0

Finding the Roots of f(x) = 0 Finding the Roots of f(x) = 0 Gerald W. Recktenwald Department of Mechanical Engineering Portland State University gerry@me.pdx.edu These slides are a supplement to the book Numerical Methods with Matlab:

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

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

M151B Practice Problems for Final Exam

M151B Practice Problems for Final Exam M5B Practice Problems for Final Eam Calculators will not be allowed on the eam. Unjustified answers will not receive credit. On the eam you will be given the following identities: n k = n(n + ) ; n k =

More information

THE SECANT METHOD. q(x) = a 0 + a 1 x. with

THE SECANT METHOD. q(x) = a 0 + a 1 x. with THE SECANT METHOD Newton s method was based on using the line tangent to the curve of y = f (x), with the point of tangency (x 0, f (x 0 )). When x 0 α, the graph of the tangent line is approximately the

More information

Review sheet Final Exam Math 140 Calculus I Fall 2015 UMass Boston

Review sheet Final Exam Math 140 Calculus I Fall 2015 UMass Boston Review sheet Final Eam Math Calculus I Fall 5 UMass Boston The eam is closed tetbook NO CALCULATORS OR ELECTRONIC DEVICES ARE ALLOWED DURING THE EXAM The final eam will contain problems of types similar

More information

Nonlinear equations can take one of two forms. In the nonlinear root nding n n

Nonlinear equations can take one of two forms. In the nonlinear root nding n n Chapter 3 Nonlinear Equations Nonlinear equations can take one of two forms. In the nonlinear root nding n n problem, a function f from < to < is given, and one must compute an n-vector x, called a root

More information

Chapter 4. Solution of a Single Nonlinear Algebraic Equation

Chapter 4. Solution of a Single Nonlinear Algebraic Equation Single Nonlinear Algebraic Equation - 56 Chapter 4. Solution of a Single Nonlinear Algebraic Equation 4.1. Introduction Life, my fris, is nonlinear. As such, in our roles as problem-solvers, we will be

More information

Page No.1. MTH603-Numerical Analysis_ Muhammad Ishfaq

Page No.1. MTH603-Numerical Analysis_ Muhammad Ishfaq Page No.1 File Version v1.5.3 Update: (Dated: 3-May-011) This version of file contains: Content of the Course (Done) FAQ updated version.(these must be read once because some very basic definition and

More information

SOLVING QUADRATICS. Copyright - Kramzil Pty Ltd trading as Academic Teacher Resources

SOLVING QUADRATICS. Copyright - Kramzil Pty Ltd trading as Academic Teacher Resources SOLVING QUADRATICS Copyright - Kramzil Pty Ltd trading as Academic Teacher Resources SOLVING QUADRATICS General Form: y a b c Where a, b and c are constants To solve a quadratic equation, the equation

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

Unconstrained Multivariate Optimization

Unconstrained Multivariate Optimization Unconstrained Multivariate Optimization Multivariate optimization means optimization of a scalar function of a several variables: and has the general form: y = () min ( ) where () is a nonlinear scalar-valued

More information

University of Waterloo Final Examination MATH 116 Calculus 1 for Engineering

University of Waterloo Final Examination MATH 116 Calculus 1 for Engineering Last name (Print): First name (Print): UW Student ID Number: University of Waterloo Final Eamination MATH 116 Calculus 1 for Engineering Instructor: Matthew Douglas Johnston Section: 001 Date: Monday,

More information

Lecture 8 Optimization

Lecture 8 Optimization 4/9/015 Lecture 8 Optimization EE 4386/5301 Computational Methods in EE Spring 015 Optimization 1 Outline Introduction 1D Optimization Parabolic interpolation Golden section search Newton s method Multidimensional

More information

In #1-5, find the indicated limits. For each one, if it does not exist, tell why not. Show all necessary work.

In #1-5, find the indicated limits. For each one, if it does not exist, tell why not. Show all necessary work. Calculus I Eam File Fall 7 Test # In #-5, find the indicated limits. For each one, if it does not eist, tell why not. Show all necessary work. lim sin.) lim.) 3.) lim 3 3-5 4 cos 4.) lim 5.) lim sin 6.)

More information

Computational Methods CMSC/AMSC/MAPL 460. Solving nonlinear equations and zero finding. Finding zeroes of functions

Computational Methods CMSC/AMSC/MAPL 460. Solving nonlinear equations and zero finding. Finding zeroes of functions Computational Methods CMSC/AMSC/MAPL 460 Solving nonlinear equations and zero finding Ramani Duraiswami, Dept. of Computer Science Where does it arise? Finding zeroes of functions Solving functional equations

More information

Chapter 10 Introduction to the Derivative

Chapter 10 Introduction to the Derivative Chapter 0 Introduction to the Derivative The concept of a derivative takes up half the study of Calculus. A derivative, basically, represents rates of change. 0. Limits: Numerical and Graphical Approaches

More information

Solving Trigonometric Equations

Solving Trigonometric Equations Solving Trigonometric Equations CHAT Pre-Calculus Section 5. The preliminary goal in solving a trig equation is to isolate the trig function first. Eample: Solve 1 cos. Isolate the cos term like you would

More information

Math Exam 1a. c) lim tan( 3x. 2) Calculate the derivatives of the following. DON'T SIMPLIFY! d) s = t t 3t

Math Exam 1a. c) lim tan( 3x. 2) Calculate the derivatives of the following. DON'T SIMPLIFY! d) s = t t 3t Math 111 - Eam 1a 1) Evaluate the following limits: 7 3 1 4 36 a) lim b) lim 5 1 3 6 + 4 c) lim tan( 3 ) + d) lim ( ) 100 1+ h 1 h 0 h ) Calculate the derivatives of the following. DON'T SIMPLIFY! a) y

More information

Solutions of Equations in One Variable. Newton s Method

Solutions of Equations in One Variable. Newton s Method Solutions of Equations in One Variable Newton s Method Numerical Analysis (9th Edition) R L Burden & J D Faires Beamer Presentation Slides prepared by John Carroll Dublin City University c 2011 Brooks/Cole,

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

Practical and Efficient Evaluation of Inverse Functions

Practical and Efficient Evaluation of Inverse Functions J. C. HAYEN ORMATYC 017 TEXT PAGE A-1 Practical and Efficient Evaluation of Inverse Functions Jeffrey C. Hayen Oregon Institute of Technology (Jeffrey.Hayen@oit.edu) ORMATYC 017 J. C. HAYEN ORMATYC 017

More information

AP Calculus AB Summer Assignment

AP Calculus AB Summer Assignment AP Calculus AB Summer Assignment Name: When you come back to school, you will be epected to have attempted every problem. These skills are all different tools that you will pull out of your toolbo this

More information

Nonlinear Equations and Continuous Optimization

Nonlinear Equations and Continuous Optimization Nonlinear Equations and Continuous Optimization Sanzheng Qiao Department of Computing and Software McMaster University March, 2014 Outline 1 Introduction 2 Bisection Method 3 Newton s Method 4 Systems

More information

Limits and the derivative function. Limits and the derivative function

Limits and the derivative function. Limits and the derivative function The Velocity Problem A particle is moving in a straight line. t is the time that has passed from the start of motion (which corresponds to t = 0) s(t) is the distance from the particle to the initial position

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

Review Problems for Test 2

Review Problems for Test 2 Review Problems for Test 2 Math 6-03/06 0 0/ 2007 These problems are provided to help you study. The fact that a problem occurs here does not mean that there will be a similar problem on the test. And

More information

Solving Nonlinear Equations

Solving Nonlinear Equations Solving Nonlinear Equations Jijian Fan Department of Economics University of California, Santa Cruz Oct 13 2014 Overview NUMERICALLY solving nonlinear equation Four methods Bisection Function iteration

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

Topic 8c Multi Variable Optimization

Topic 8c Multi Variable Optimization Course Instructor Dr. Raymond C. Rumpf Office: A 337 Phone: (915) 747 6958 E Mail: rcrumpf@utep.edu Topic 8c Multi Variable Optimization EE 4386/5301 Computational Methods in EE Outline Mathematical Preliminaries

More information

Finding roots. Lecture 4

Finding roots. Lecture 4 Finding roots Lecture 4 Finding roots: Find such that 0 or given. Bisection method: The intermediate value theorem states the obvious: i a continuous unction changes sign within a given interval, it has

More information

Determining the Roots of Non-Linear Equations Part I

Determining the Roots of Non-Linear Equations Part I Determining the Roots of Non-Linear Equations Part I Prof. Dr. Florian Rupp German University of Technology in Oman (GUtech) Introduction to Numerical Methods for ENG & CS (Mathematics IV) Spring Term

More information

Introductory Numerical Analysis

Introductory Numerical Analysis Introductory Numerical Analysis Lecture Notes December 16, 017 Contents 1 Introduction to 1 11 Floating Point Numbers 1 1 Computational Errors 13 Algorithm 3 14 Calculus Review 3 Root Finding 5 1 Bisection

More information

Find the following limits. For each one, if it does not exist, tell why not. Show all necessary work.

Find the following limits. For each one, if it does not exist, tell why not. Show all necessary work. Calculus I Eam File Spring 008 Test #1 Find the following its. For each one, if it does not eist, tell why not. Show all necessary work. 1.) 4.) + 4 0 1.) 0 tan 5.) 1 1 1 1 cos 0 sin 3.) 4 16 3 1 6.) For

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

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

Limits and Continuity

Limits and Continuity Limits and Continuity Philippe B. Laval Kennesaw State University January 2, 2005 Contents Abstract Notes and practice problems on its and continuity. Limits 2. Introduction... 2.2 Theory:... 2.2. GraphicalMethod...

More information

2.5 Absolute Value Equations and Inequalities

2.5 Absolute Value Equations and Inequalities 5 Absolute Value Equations Inequalities We begin this section by recalling the following definition Definition: Absolute Value The absolute value of a number is the distance that the number is from zero

More information

0.1. Linear transformations

0.1. Linear transformations Suggestions for midterm review #3 The repetitoria are usually not complete; I am merely bringing up the points that many people didn t now on the recitations Linear transformations The following mostly

More information

Limits and Their Properties

Limits and Their Properties Chapter 1 Limits and Their Properties Course Number Section 1.1 A Preview of Calculus Objective: In this lesson you learned how calculus compares with precalculus. I. What is Calculus? (Pages 42 44) Calculus

More information

Midterm Exam #1. (y 2, y) (y + 2, y) (1, 1)

Midterm Exam #1. (y 2, y) (y + 2, y) (1, 1) Math 5B Integral Calculus March 7, 7 Midterm Eam # Name: Answer Key David Arnold Instructions. points) This eam is open notes, open book. This includes any supplementary tets or online documents. You are

More information

C. Finding roots of trinomials: 1st Example: x 2 5x = 14 x 2 5x 14 = 0 (x 7)(x + 2) = 0 Answer: x = 7 or x = -2

C. Finding roots of trinomials: 1st Example: x 2 5x = 14 x 2 5x 14 = 0 (x 7)(x + 2) = 0 Answer: x = 7 or x = -2 AP Calculus Students: Welcome to AP Calculus. Class begins in approimately - months. In this packet, you will find numerous topics that were covered in your Algebra and Pre-Calculus courses. These are

More information

Optimization and Calculus

Optimization and Calculus Optimization and Calculus To begin, there is a close relationship between finding the roots to a function and optimizing a function. In the former case, we solve for x. In the latter, we solve: g(x) =

More information

AP Calculus Summer Homework Worksheet Instructions

AP Calculus Summer Homework Worksheet Instructions Honors AP Calculus BC Thrill-a-Minute Summer Opportunity 018 Name Favorite Pre-Calculus Topic Your summer assignment is to have the review packet (a review of Algebra / Trig. and Pre-Calculus), Chapter

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

Core Connections Algebra 2 Checkpoint Materials

Core Connections Algebra 2 Checkpoint Materials Core Connections Algebra 2 Note to Students (and their Teachers) Students master different skills at different speeds. No two students learn eactly the same way at the same time. At some point you will

More information

Maths A Level Summer Assignment & Transition Work

Maths A Level Summer Assignment & Transition Work Maths A Level Summer Assignment & Transition Work The summer assignment element should take no longer than hours to complete. Your summer assignment for each course must be submitted in the relevant first

More information

Chapter 4. Unconstrained optimization

Chapter 4. Unconstrained optimization Chapter 4. Unconstrained optimization Version: 28-10-2012 Material: (for details see) Chapter 11 in [FKS] (pp.251-276) A reference e.g. L.11.2 refers to the corresponding Lemma in the book [FKS] PDF-file

More information