Lecture 4 Numerical Analysis. Solution of Non-Linear Equations Chapter 2.

Slides:



Advertisements
Similar presentations
Numerical Methods: Finding Roots Department of Mathematics University of Leicester.
Advertisements

Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
1 MA 1128: Lecture 19 – 4/19/11 Quadratic Formula Solving Equations with Graphs.
Unit-I Roots of Equation
7 INVERSE FUNCTIONS.
APPLICATIONS OF DIFFERENTIATION Newton’s Method In this section, we will learn: How to solve high-degree equations using Newton’s method. APPLICATIONS.
Lectures on Numerical Methods 1 Numerical Methods Charudatt Kadolkar Copyright 2000 © Charudatt Kadolkar.
Dr. Marco A. Arocha Aug,  “Roots” problems occur when some function f can be written in terms of one or more dependent variables x, where the.
NUMERICAL METHODS WITH C++ PROGRAMMING
Bracketing Methods Chapter 5 The Islamic University of Gaza
FP1: Chapter 2 Numerical Solutions of Equations
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.
Introduction This chapter gives you several methods which can be used to solve complicated equations to given levels of accuracy These are similar to.
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.
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.
Chapter 3 Roots of Equations. Objectives Understanding what roots problems are and where they occur in engineering and science Knowing how to determine.
Numerical Methods for Engineering MECN 3500
Numerical Methods.
CHAPTER 3 NUMERICAL METHODS
Copyright © 2011 Pearson, Inc. P.5 Solving Equations Graphically, Numerically and Algebraically.
Dr. Jie Zou PHY Chapter 2 Solution of Nonlinear Equations: Lecture (II)
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 5 Bracketing Methods.
Numerical Methods Solution of Equation.
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.
Math 20-1 Chapter 9 Linear and Quadratic Inequalities 9.2 Quadratic Inequalities in One Variable Teacher Notes.
SOLVING NONLINEAR EQUATIONS. SECANT METHOD MATH-415 Numerical Analysis 1.
Warm-Up Solve each equation by factoring. 1) x x + 36 = 02) 2x 2 + 5x = 12.
3.4 Chapter 3 Quadratic Equations. x 2 = 49 Solve the following Quadratic equations: 2x 2 – 8 = 40.
LECTURE 2 OF NUMERICAL METHODS 7.2 Solutions of Non-Linear Equations.
Numerical Methods and Optimization C o u r s e 1 By Bharat R Chaudhari.
P2 Chapter 8 CIE Centre A-level Pure Maths © Adam Gibson.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 2 / Chapter 5.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
CHAPTER 3 NUMERICAL METHODS
Solving Equations Graphically, Numerically, and Algebraically
Numerical Analysis Lecture 5.
LECTURE 4 OF SOLUTIONS OF NON-LINEAR EQUATIONS OBJECTIVES
Numerical Methods and Analysis
Numerical Methods.
Numerical Analysis Lecture12.
LECTURE 3 OF SOLUTIONS OF NON -LINEAR EQUATIONS.
Chapter 5: Inverse, Exponential, and Logarithmic Functions
Numerical Methods.
Solution of Equations by Iteration
Numerical Analysis Lecture 7.
Numerical Analysis Lecture 45.
Chapter 1: False-Position Method of Solving a Nonlinear Equation
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Numerical Analysis Lecture 26.
Copyright © Cengage Learning. All rights reserved.
Intermediate Value Theorem
Copyright © Cengage Learning. All rights reserved.
Intermediate Value Theorem
A step-by-step process of trial and improvement
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.
Copyright © Cengage Learning. All rights reserved.
FP1: Chapter 2 Numerical Solutions of Equations
Chapter 5: Exponential and Logarithmic Functions
Copyright © Cengage Learning. All rights reserved.
MATH 1910 Chapter 3 Section 8 Newton’s Method.
1 Newton’s Method.
Numerical Methods for solutions of equations
Solving Quadratic Equations by Factoring
Presentation transcript:

Lecture 4 Numerical Analysis

Solution of Non-Linear Equations Chapter 2

Introduction Bisection Method Regula-Falsi Method Method of iteration Newton - Raphson Method Muller’s Method Graeffe’s Root Squaring Method

Bisection Method (Bolzano)

Example Solve x 3 – 9x + 1 = 0 for the root between x = 2 and x = 4 by the bisection method.

Solution Given f (x) = x 3 – 9x + 1. Here f (2) = -9, f (4) = 29. Therefore, f (2) f (4) < 0 and hence the root lies between 2 and 4. Let x 0 = 2, x 1 = 4. Now, we define as a first approximation to a root of f (x) = 0 and note that f (3) = 1, so that f (2) f (3) < 0. Thus the root lies between 2 and 3

We further define, and note that f (x 3 ) = f (2.5) < 0, so that f (2.5) f (3) < 0. Therefore, we define the mid-point, Similarly, x 5 = and x 6 = and the process can be continued until the root is obtained to the desired accuracy.

These results are presented in the table. n xnxnxnxn f ( x n )

Regula-Falsi Method Method of false position

Here, we choose two points x n and x n -1 such that f (x n ) and f (x n-1 ) are of opposite signs. Intermediate value property suggests that the graph of y = f (x) crosses the x-axis between these two points and therefore, a root say lies between these two points.

Thus, to find a real root of f (x) = 0 using Regula-Falsi method, we replace the part of the curve between the points A[x n, f(x n )] and B[x n-1, f (x n-1 )] by a chord in that interval and we take the point of intersection of this chord with the x-axis as a first approximation to the root.

Now, the equation of the chord joining the points A and B is (2.1) Setting y = 0 in Eq. (2.1), we get

Hence, the first approximation to the root of f (x) = 0 is given by (2.2) we observe that f (x n-1 ) and f (x n+1 ) are of opposite sign. Thus, it is possible to apply to above procedure, to determine the line through B and A 1 and so on. Hence, the successive approximations to the root of f (x) = 0 is given by Eq. (2.2).

Example Use the Regula-Falsi method to compute a real root of the equation x 3 – 9x + 1 = 0, (i) if the root lies between 2 and 4 (ii) if the root lies between 2 and 3. Comment on the results.

Solution Let f (x) = x 3 – 9x + 1. f (2) = – 9 and f (4) = 29. Since f (2) and f (4) are of opposite signs, the root of f (x) = 0 lies between 2 and 4.

Taking x 1 = 2, x 2 = 4 and using Regula-Falsi method, the first approximation is given by

Now f (x 3 ) = – Since f (x 2 ) and f (x 3 ) are of opposite signs, the root lies between x 2 and x 3. The second approximation to the root is given as

Therefore f (x 4 ) = – Now, since f (x 2 ) and f (x 4 ) are of opposite signs, the third approximation is obtained from and f (x 5 ) = –

This procedure can be continued till we get the desired result. The first three iterations are shown as in the table. nx n+1 f (x n+1 )

(ii) f (2) = – 9 and f (3) = 1. Since f (2) and f (3) are of opposite signs, the root of f (x) = 0 lies between 2 and 3. Taking x 1 = 2, x 2 = 3 and using Regula-Falsi method, the first approximation is given by

Since f (x 2 ) and f (x 3 ) are of opposite signs, the root lies between x 2 and x 3. The second approximation to the root is given as

Now, we observe that f (x 2 ) and f (x 4 ) are of opposite signs, the third approximation is obtained from

This procedure can be continued till we get the desired result. The first three iterations are shown as in the table. nx n+1 f (x n+1 )

We observe that the value of the root as a third approximation is evidently different in both the cases, while the value of x 5, when the interval considered is (2, 3), is closer to the root. Important observation: The initial interval (x 1, x 2 ) in which the root of the equation lies should be sufficiently small.

Example Use Regula-Falsi method to find a real root of the equation log x – cos x = 0 accurate to four decimal places after three successive approximations.

Solution Given f (x) = log x – cos x. We observe that f (1) = ,and f (2)= = Since f (1) and f (2) are of opposite signs, the root lies between x 1 = 1, x 2 = 2.

The first approximation is obtained from

Now, since f (x 1 ) and f (x 3 ) are of opposite signs, the second approximation is obtained as

Similarly, we observe that f (x 1 ) and f (x 4 ) are of opposite signs, so, the third approximation is given by The required real root is

Lecture 4 Numerical Analysis