Lectures on Numerical Methods 1 Numerical Methods Charudatt Kadolkar Copyright 2000 © Charudatt Kadolkar.

Slides:



Advertisements
Similar presentations
Newton’s Method finds Zeros Efficiently finds Zeros of an equation: –Solves f(x)=0 Why do we care?
Advertisements

Regula-Falsi Method. Type of Algorithm (Equation Solver) The Regula-Falsi Method (sometimes called the False Position Method) is a method used to find.
Bisection Method (Midpoint Method for Equations).
Unit-I Roots of Equation
Chapter 4 Roots of Equations
NUMERICAL METHODS WITH C++ PROGRAMMING
Bracketing Methods Chapter 5 The Islamic University of Gaza
Fin500J: Mathematical Foundations in Finance Topic 3: Numerical Methods for Solving Non-linear Equations Philip H. Dybvig Reference: Numerical Methods.
Section 5.5 – The Real Zeros of a Rational Function
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Theorems on continuous functions. Weierstrass’ theorem Let f(x) be a continuous function over a closed bounded interval [a,b] Then f(x) has at least one.
MATH 175: NUMERICAL ANALYSIS II Lecturer: Jomar Fajardo Rabajante IMSP, UPLB 2 nd Semester AY
I. Finding Roots II. Integrating Functions
Scientific Computing Algorithm Convergence and Root Finding Methods.
Solving Non-Linear Equations (Root Finding)
Continuity ( Section 1.8) Alex Karassev. Definition A function f is continuous at a number a if Thus, we can use direct substitution to compute the limit.
SECTION 3.5 REAL ZEROS OF A POLYNOMIAL FUNCTION REAL ZEROS OF A POLYNOMIAL FUNCTION.
Lecture 8 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
Lecture 3 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
Lecture 6 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
S ECTION 1.6 Graphs of Functions. T HE F UNDAMENTAL G RAPHING P RINCIPLE FOR F UNCTIONS The graph of a function f is the set of points which satisfy the.
Solving equations numerically The sign - change rule If the function f(x) is continuous for an interval a  x  b of its domain, if f(a) and f(b) have.
Problem of the Day No calculator! What is the instantaneous rate of change at x = 2 of f(x) = x2 - 2 ? x - 1 A) -2 C) 1/2 E) 6 B) 1/6 D) 2.
Numerical Methods.
Solving Non-Linear Equations (Root Finding)
Solution of Nonlinear Equations Topic: Bisection method
Numerical Methods Solution of Equation.
Today’s class Numerical differentiation Roots of equation Bracketing methods Numerical Methods, Lecture 4 1 Prof. Jinbo Bi CSE, UConn.
Sullivan Algebra and Trigonometry: Section 5.2 Objectives Use the Remainder and Factor Theorems Use Descartes’ Rule of Signs Use the Rational Zeros Theorem.
4.2 – The Mean Value Theorem
4 Numerical Methods Root Finding Secant Method Modified Secant
4.8 Newton’s Method Mon Nov 9 Do Now Find the equation of a tangent line to f(x) = x^5 – x – 1 at x = 1.
Recursive Methods for Finding Roots of Functions Bisection & Newton’s Method.
SOLVING NONLINEAR EQUATIONS. SECANT METHOD MATH-415 Numerical Analysis 1.
LECTURE 2 OF NUMERICAL METHODS 7.2 Solutions of Non-Linear Equations.
Lecture 4 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.
Numerical Methods and Optimization C o u r s e 1 By Bharat R Chaudhari.
Solution of Nonlinear Equations ( Root Finding Problems ) Definitions Classification of Methods  Analytical Solutions  Graphical Methods  Numerical.
1 M 277 (60 h) Mathematics for Computer Sciences Bibliography  Discrete Mathematics and its applications, Kenneth H. Rosen  Numerical Analysis, Richard.
Answers for Review Questions for Lectures 1-4. Review Lectures 1-4 Problems Question 2. Derive a closed form for the estimate of the solution of the equation.
MATH342: Numerical Analysis Sunjae Kim.
Solution of Nonlinear Equations ( Root Finding Problems )
Chapter 5 Numerical Root Findings
Numerical Analysis Lecture 5.
LECTURE 4 OF SOLUTIONS OF NON-LINEAR EQUATIONS OBJECTIVES
Solution of Nonlinear Equations (Root finding Problems
Numerical Methods and Analysis
3.7 The Real Zeros of a Polynomial Function
Secant Method.
LECTURE 3 OF SOLUTIONS OF NON -LINEAR EQUATIONS.
Sullivan Algebra and Trigonometry: Section 5
Read Chapters 5 and 6 of the textbook
3.7 The Real Zeros of a Polynomial Function
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
Numerical Analysis Lecture 7.
Important Values for Continuous functions
MATH 175: Numerical Analysis II
Intermediate Value Theorem
SOLUTION OF NONLINEAR EQUATIONS
Intermediate Value Theorem
1.4 Continuity and One-Sided Limits (Part 2)
Continuity Alex Karassev.
3.8 Newton’s Method How do you find a root of the following function without a graphing calculator? This is what Newton did.
3.6 Polynomial Functions Part 2
Sec:5.2 The Bisection Method.
Copyright © Cengage Learning. All rights reserved.
MATH 1910 Chapter 3 Section 8 Newton’s Method.
Solutions for Nonlinear Equations
Presentation transcript:

Lectures on Numerical Methods 1 Numerical Methods Charudatt Kadolkar Copyright 2000 © Charudatt Kadolkar

Lectures on Numerical Methods 2 Nonlinear Equations: Roots –Objective is to find a solution of F(x) = 0 Where F is a polynomial or a transcendental function, given explicitly. –Exact solutions are not possible for most equations. –A number x ± e, ( e > 0 ) is an approximate solution of the equation if there is a solution in the interval [x-e,x+e]. e is the maximum possible error in the approximate solution. –With unlimited resources, it is possible to find an approximate solution with arbitrarily small e.

Lectures on Numerical Methods 3 Nonlinear Equations: Roots –If the function F is calculated using floating point numbers then the rounding-off errors spread the solution to a finite interval. –Example –Let F(x) = (1 – x) 6. This function has a zero at x = 1. Range of the function is nonnegative real numbers. –It is not possible to obtain an answer that is more accurate than second decimal place. Show graph

Lectures on Numerical Methods 4 Bisection Method Let F(x) be a continuous function and let a and b be real numbers such that f(a) and f(b) have opposite signs. Then there is a x* in interval [a,b] such that F(x*) = 0. Then c = (a + b)/2 is an approximate solution with maximum possible error (b – a)/2. If f(c) and f(a) have opposite signs then the solution x* is in the interval [a,c]. Then, again, d = (c + a)/2 is an approximate solution but with max possible error (b – a)/4. Else the solution is in the interval [c,b]. The approximate solution now is (c+b)/2 with max possible error (b-a)/4. Continuing this process n times we can reduce the max possible error to (b-a)/2 n.

Lectures on Numerical Methods 5 Bisection Method Algorithm 1.Let a and b be such that f(a)*f(b) < 0 2.Let c = ( a + b ) / 2 3.If f(a) * f(c) < 0 then b = c else a = c 4.If more accuracy is required go to step 2 5.Print the approximate solution (a + b)/2 Example

Lectures on Numerical Methods 6 Regula Falsi Method Algorithm 1.Let a and b be such that f(a)*f(b) < 0 2.Let c = ( f(b)*a – f(a) * b ) / (f(b) – f(a)) 3.If f(a) * f(c) < 0 then b = c else a = c 4.If more accuracy is required go to step 2 5.Print the approximate solution (a + b)/2 Example

Lectures on Numerical Methods 7 Terminating Iterative Method –Let eps > 0 be a small number. –|b – a| < eps –|b – a| / |a| < eps –| f(c) | < eps –Number of iterations

Lectures on Numerical Methods 8 Newton Raphson Method Algorithm 1.Input xOld 2.xNew = xOld – f(xOld) / f’(xOld) 3.If not satisfied go to step 2 4.Print xNew

Lectures on Numerical Methods 9 Fixed Point Iterations Convert the given equation in the form x = g(x) Examples x 2 – 1 = 0 can be written as x = 1 / x or x = x 2 + x –1 x 2 + x – 2 = 0 can be written as x = 2 – x 2 x = sqrt(2 – x)