BEKG 2452 NUMERICAL METHODS Solution of Nonlinear Equations

Similar documents
Chapter 2 Solutions of Equations of One Variable

Numerical Methods. Roots of Equations

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

An Improved Hybrid Algorithm to Bisection Method and Newton-Raphson Method

NUMERICAL METHODS. x n+1 = 2x n x 2 n. In particular: which of them gives faster convergence, and why? [Work to four decimal places.

Numerical Analysis. EE, NCKU Tien-Hao Chang (Darby Chang)

Root Finding For NonLinear Equations Bisection Method

Regent College Maths Department. Further Pure 1 Numerical Solutions of Equations

6.3 METHODS FOR ADVANCED MATHEMATICS, C3 (4753) A2

Numerical Methods Lecture 3

Nonlinear Equations. Your nonlinearity confuses me.

Midterm Review. Igor Yanovsky (Math 151A TA)

CHAPTER 4 ROOTS OF EQUATIONS

Worksheet 9. Topics: Taylor series; using Taylor polynomials for approximate computations. Polar coordinates.

SBAME CALCULUS OF FINITE DIFFERENCES AND NUMERICAL ANLAYSIS-I Units : I-V

Numerical Methods. King Saud University

Solutions of Equations in One Variable. Newton s Method

Goals for This Lecture:

Analysis Methods in Atmospheric and Oceanic Science

Lecture 10: Finite Differences for ODEs & Nonlinear Equations

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.

Analysis Methods in Atmospheric and Oceanic Science

CHAPTER 10 Zeros of Functions

Solution of Algebric & Transcendental Equations

Solution of Nonlinear Equations: Graphical and Incremental Sea

Numerical mathematics with GeoGebra in high school

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

Nonlinear Equations. Chapter The Bisection Method

Math 181, Exam 2, Fall 2014 Problem 1 Solution. sin 3 (x) cos(x) dx.

BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination December, 2015 BCS-054 : COMPUTER ORIENTED NUMERICAL TECHNIQUES

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

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

Newton-Raphson Type Methods

Scientific Computing. Roots of Equations

NUMERICAL AND STATISTICAL COMPUTING (MCA-202-CR)

Zeros of Functions. Chapter 10

Solution of nonlinear equations

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

CHAPTER-II ROOTS OF EQUATIONS

Chapter 2. First-Order Differential Equations

Correlation with College Board Advanced Placement Course Descriptions

The Derivative of a Function Measuring Rates of Change of a function. Secant line. f(x) f(x 0 ) Average rate of change of with respect to over,

M.SC. PHYSICS - II YEAR

Chapter 4. Solution of a Single Nonlinear Algebraic Equation

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

(a) Show that there is a root α of f (x) = 0 in the interval [1.2, 1.3]. (2)

NON-LINEAR ALGEBRAIC EQUATIONS Lec. 5.1: Nonlinear Equation in Single Variable

APPROXIMATION OF ROOTS OF EQUATIONS WITH A HAND-HELD CALCULATOR. Jay Villanueva Florida Memorial University Miami, FL

JUST THE MATHS UNIT NUMBER DIFFERENTIATION APPLICATIONS 5 (Maclaurin s and Taylor s series) A.J.Hobson

A first order divided difference

AIMS Exercise Set # 1

SECTION A. f(x) = ln(x). Sketch the graph of y = f(x), indicating the coordinates of any points where the graph crosses the axes.

11.5. The Chain Rule. Introduction. Prerequisites. Learning Outcomes

Topics Covered in Calculus BC

Candidates are expected to have available a calculator. Only division by (x + a) or (x a) will be required.

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

A2 MATHEMATICS HOMEWORK C3

1.8. Integration using Tables and CAS

Solutionbank Edexcel AS and A Level Modular Mathematics

YOU CAN BACK SUBSTITUTE TO ANY OF THE PREVIOUS EQUATIONS

AN INTRODUCTION TO CLASSICAL REAL ANALYSIS

The iteration formula for to find the root of the equation

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

Figure 1: Graph of y = x cos(x)

APPLICATIONS OF DIFFERENTIATION

A Library of Functions

Numerical Optimization

Intermediate Algebra Chapter 12 Review

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.

Fixed-Point Iteration

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}

Math 113 (Calculus 2) Exam 4

Line Search Methods. Shefali Kulkarni-Thaker

Numerical Methods. Root Finding

Radnor High School Course Syllabus Advanced Placement Calculus BC 0460

Mathematics Lecture. 6 Chapter. 4 APPLICATIONS OF DERIVATIVES. By Dr. Mohammed Ramidh

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

Lesson 23: The Defining Equation of a Line

1.1: The bisection method. September 2017

Numerical Methods

Limits of Exponential, Logarithmic, and Trigonometric Functions

SOLVING EQUATIONS OF ONE VARIABLE

A2 MATHEMATICS HOMEWORK C3

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.

NUMERICAL METHODS FOR SOLVING EQUATIONS

OCR A2 Level Mathematics Core Mathematics Scheme of Work

1.5 Continuity Continued & IVT

Chapter 3: Root Finding. September 26, 2005

Assignment 5 Name MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MATH 1242 FINAL EXAM Spring,

INTRODUCTION, FOUNDATIONS

INTRODUCTION TO NUMERICAL ANALYSIS

Chapter 6: Messy Integrals

Parametric Equations

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

A Review of Bracketing Methods for Finding Zeros of Nonlinear Functions

B L U E V A L L E Y D I S T R I C T C U R R I C U L U M & I N S T R U C T I O N Mathematics AP Calculus BC

Continuity. MATH 161 Calculus I. J. Robert Buchanan. Fall Department of Mathematics

Pre-calculus 12 Curriculum Outcomes Framework (110 hours)

School of Sciences Indira Gandhi National Open University Maidan Garhi, New Delhi (For January 2012 cycle)

Transcription:

BEKG 2452 NUMERICAL METHODS Solution of Nonlinear Equations Ser Lee Loh a, Wei Sen Loi a a Fakulti Kejuruteraan Elektrik Universiti Teknikal Malaysia Melaka

Lesson Outcome Upon completion of this lesson, the student should be able to: 1. Identify the range that contains root(s). 2. Compute roots for nonlinear equations by using Bisection method, Simple Fixed-Point iteration and Newton-Raphson method.

Solution of a Nonlinear Equation, f(x)=0 (Polynomial, trigonometric, exponential, logarithmic equations) Bisection Method Simple Fixed-Point Iteration Newton- Raphson Method Intermediate Value Theorem - Find the range that contains a root (answer) Start the iteration with respective algorithm to get the approximation solution

2.1 Intermediate Value Theorem Let! " = 0 be a non-linear equation. If! " is a continuous function and % & % ' < ), then there exist at least a root in the interval *,,. When two points are connected by a curve: One point below x-axis One point above x-axis Then there will be at least one root where the curve crosses the x-axis.

2.1 Intermediate Value Theorem Example 2.1: Given! " = " $ 8" 5, use intermediate value theorem to find the interval that contains the negative root. Solution:! 0 = 5 < 0! 1 = 4 > 0! 0! 1 < 0 Hence, the interval that contains the negative root is ( 1,0).

2.1 Intermediate Value Theorem Exercise 2.1: 1) Use intermediate value theorem to find the interval that contains the root for! " = " $ + " + 3. 2) Use intermediate value theorem to find the interval that contains the smallest positive root of " = 2 sin ".

2.2 Bisection Method The bisection method in mathematics is a rootfinding method that repeatedly bisects an interval and then selects a subinterval that contains the root for further processing. From (a,b), y a d c c is the midpoint of a and b we choose (a,c), d is the midpoint of a and c then we choose (d,c) and so on until the range is small enough. b x

2.2.1 Bisection Method Algorithm Write & ' = 0, Find the initial interval *,,, ' (*,,) Stop the iteration, ' = 1 2 Yes Compute 1 2 = 3 456 4 7 Set < = 0 and &(1 2 ) Is, 2 * 2 < ; or &(1 2 ) < ;?? where ; is the specified tolerance Follow one path only No If & 1 2 = 0 If & * 2 & 1 2 < 0 Set * 259 = * 2 and, 259 = 1 2 If & 1 2 &, 2 < 0 Set * 259 = 1 2 and, 259 =, 2 Repeat the iteration, < = < + 1

Example 2.2: Find the root of! " = " $ 3 by using bisection method accurate to within ' = 0.002 and taking 1,2 as starting interval. (Answer correct to 4 decimal places) Take that!(. / ) < ' for your calculation.

Solution: Root,! = 1.7324

Example 2.3 Using the bisection method, find the root of! " = " $ " 1 accurate to within ' = 0.001. Given that " * = 1 and " + = 2.

Solution: n x a x b x m f(x a ) f(x m ) x b x m 1 1.0000 2.0000 1.5000-1 8.8906 0.5000 2 1.0000 1.5000 1.2500-1 1.5647 0.2500 3 1.0000 1.2500 1.1250-1 -0.0977 0.1250 4 1.1250 1.2500 1.1875-0.0977 0.6167 0.0625 5 1.1250 1.1875 1.1562-0.0977 0.2333 0.0312 6 1.1250 1.1562 1.1406-0.0977 0.0616 0.0156 7 1.1250 1.1406 1.1328-0.0977-0.0196 0.0078 8 1.1328 1.1406 1.1367-0.0197 0.0206 0.0039 9 1.1328 1.1367 1.1348-0.0197 0.0004 0.0020 10 1.1328 1.1348 1.1338-0.0197-0.0096 0.0010 The root is, x = 1.1338

Exercise 2.2: Find the root of! " = $ % (3.2 sin " 0.5 cos ") on the interval 3,4 by using bisection method accurate to within 5 = 0.05. (Answer correct to 4 decimal places) Take that!(6 7 ) < 5 for your calculation

2.3 Simple Fixed-Point Iteration Rearrange the function " # = 0 into # = & # Write the iteration formula: # '() = & # ' where & * (#, ) < 1 for all # [2, 4] Compute # '() = & # ' Is # '() # ' < 7?? where 7 is the specified tolerance Yes Stop the iteration, # = # '() Repeat the iteration, 8 = 8 + 1 No Remarks: The Fixed-point iteration may converge to a root different from the expected one, or it may diverge. Different rearrangement will converge at different rates.

Example 2.4: Given! " = " $ 2" 3. Find the root of the function by using simple fixed-point method accurate to within ( = 0.001 and taking " = 4 as starting point. (Answer correct to 4 decimal places)

Solution: a)! = #! = 2! + 3 # '! = ( )*+, and #' 4 = 0.3 < 1 This form will converge and give a solution The value converging to root of 2 = 3. 445

Solution: b)! = #! = $ %&' # (! = $ %&' * and #( 4 = 0.75 < 1 This form will converge and give a solution After 11 iterations, the value converging to root of 2 = 1

Solution: c)! = #! = $% &' ( # )! =! and # ) 4 = 4 >, This form will diverge and give no solution value diverges #! = $% &' ( is not a suitable form for simple fixed-point iteration

Example 2.5: Find the root by using simple fixed-point iteration! " = 3"% & 1 accurate to within ) = 0.0001. Assume ", = 1. (Answer correct to 4 decimal places)

Solution: There are two possible forms of! " : " =! " = $ % &'( and " =! " = ln $! + " = $ % &'(! + " = $ (! + 1 =.. 01 < 0! + 0 = 0 0 Criteria is satisfied %( Criteria is not satisfied! " = 1 3 &'(

Solution: i x i ½x i -x i+1 ½ 0 1.0000 1 0.1226 0.8774 2 0.2949 0.1722 3 0.2482 0.0467 4 0.2601 0.0119 5 0.2570 0.0031 6 0.2578 0.0008 7 0.2576 0.0002 8 0.2576 0.0000 Thus, the root that satisfies the stopping criteria is! = 0.2576.

Exercise 2.3: Locate the root of! " = $ %& " by using simple fixed-point iteration accurate to within ( = 0.003 where " (0,1]. (Answer correct to 4 decimal places)

2.4 Newton-Raphson Method Write! # = 0, Given # $ reasonably close to the root Compute!(# $ ) and! & (# $ ) where!(# $ ) 0 and! & (# $ ) 0 Set 5 = 0 Compute # *+, = # * 1(2 3) 1 4 (2 3 ) Repeat the iteration, 5 = 5 + 1 Is # *+, # * < / or!(# *+, ) < /?? where / is the specified tolerance No Yes Stop the iteration, # = # *+,

Example 2.6: Determine the root of the function! " = $ % 2 " by using Newton-Raphson method with " ( = 0.8 accurate to within, = 0.0001. (Answer correct to 4 decimal places) Take that!(" / ) <, for your calculation

Solution: " 567 = " 5!(" 5)! ( (" 5 ) Given! " = $ % ' % hence,! ( " = $ % + ' % * Check:! 0.8 = 0.2745 0! ( 0.8 = 5.3505 0 Root, " = 0.8526 Reaching stopping criteria

Exercise 2.4: Use the Newton-Raphson method to estimate the root of! " = 3" + sin " * + starting from ", = 0 accurate to within "./0 ". 0.0001. (Answer correct to 4 decimal places)