Root Finding Methods for Nonlinear Equations

Size: px
Start display at page:

Download "Root Finding Methods for Nonlinear Equations"

Transcription

1 Root Finding Methods for Nonlinear Equations Dr. Sukanta Deb Department of Physics Cotton College State University College Hostel Road, Panbazar Guwahati, Pin Assam

2 1 Learning Objectives: Numerical Methods for the Root Finding

3 2 Solution of Algebraic and Transcendental Equations A variablexis said to be a root of the functionf(x) if f(x) = 0 (1) A root of this equation is also called a zero of the function. For example, the the two roots of a quadratic equation of the form are given by ax 2 +bx+c = 0 (2) x = b± b 2 4ac, (3) 2a where a,b,c are real numbers. The quatitity b 2 4ac is called the discriminant and is denoted by D. The value ofddetermines the nature of root of the equation (2). IfD = 0, then both the two roots are real and equal (repeated roots). IfD > 0, the roots are real and distinct. IfD < 0, then the roots are imaginary. Although the quadratic equation (2) can be solved exactly there exist many functions for which the exact solution does not exist. For an instance the function f(x) = e x x (4) cannot be solved analytically. For the solutions of those functions one has to resort to the approximate numerical methods (called iterative methods) which provides an efficient means to obtain the answer. Generically, an approximate solution of a function f(x) having any form can be obtained using the iterative method. Hence based on the above two cases, there are two methods that can be used to find the roots of the equation (1). 1. Direct methods: These methods provide the exact value of the roots without any round-off error) in a finite number of steps. All the roots can be determined at the same time using these methods. 2. Iterative methods: Iterative methods, also known as trial and error, are based on the idea of succesive approximations. These methods provide an approximate value of the roots. They start with one or more initial approximations and obtain a sequence of approximations by repeating a fixed sequence of steps till the result within a prescribed tolerance (or accuracy) is obtained. In this chapter, numerical methods for finding the roots nonlinear equations using the methods of iterations will be discussed.

4 3 Rate of convergence of an iterative method The rate of convergence of an iterative process is determined by the number of iterations taken to converge to the result. An iterative method is said to be of order p or has the rate of convergence p, if p is the largest positive number for which ǫ i+1 k ǫ i p, whereǫ i,ǫ i+1 are the absolute errors in thei th,(i+1) th iterations, respectively. The constant k is called the asymptotic error constant. The higher the value of p, the faster will be the rate of convergence. Ifp = 1, the convergence is linear. Ifp = 2, the convergence is quadratic and so on. The efficiency of an iterative procedure increases with smaller value of k. For the bisection method k = 0.5. Criteria for convergence One of the most important questions regarding the iterative methods is when the iteration should be stopped. The most obvious answer is that the procedure should be stopped when the error on the solution has been reduced to a prescribed tolerance. In other words, we say that the iteration should be stopped when the numerical algorithm has converged on a solution. Let ǫ be the prescribed tolerance, i.e., we would like to obtain the root with at most of ǫ. Given following are some of the commonly used criteria for convergence (a) f(x i ) < ǫ, whereǫis the tolerance limit close to zero. (b) x i+1 x i ǫ, whereǫis called the absolute tolerance. (c) x i+1 x i x i+1 ǫ, x i+1 0. where ǫ is called relative tolerance. The criteria (a) provides an way to determine if the convergence has reached by monitoring the value of the function for the solution at each and every iteration. if a zero of the function is sought, then the approach of the function towards zero can be used as the test for termination of the iterative method. On the other hand x i+1 >> 1, then condition (b) is more stringent. If x i+1 << 1, condition (c) gives more strict convergence crterion than condition (a). However, one has the option of applying one or multiple criteria for convergnce as deemed to be appropriate. Algebraic and Transcendental Equations 1. Albebraic Equations: An algebraic function of degree n in one variable is a function y = f(x) if it satisfies an equation of the form a 0 (x)+a 1 (x)y + +a n 1 (x)y n 1 +a n (x)y n = 0, (5) where a i s are ith order (i = 1,2,...,n) polynomials in x. Polynomials are a simple class of algebraic function that are represented genereally by f n (x) = a 0 +a 1 x+a 2 x 2 + +a n 1 x n 1 +a n x n, (6)

5 4 where n is the order of the polynomial and a i s are constants (i = 0,1,...,n) and are called the coefficients of the polynomial. 2. Transcendental Equation: A function which is nonalgebraic is called a transcendental function. These include trigonometric, exponential, logarithmic, and other less familiar functions. Examples are f(x) = logx 2 1 and f(x) = e 0.2x sin(3x 5). Although the roots of the algebraic and transendental equations may be either real or complex, we will be dealing only with the methods which give real roots in this course. Broadly, these two classes of equations fall into the category of nonlineear equations, since the functions belonging to either of these classes are nonlinear inx. This chapter focusses on finding the roots of nonlinear equations applying the rules of numerical techniques. Numerical techniques for solving nonlinear equations in one variable through iterative methods can be broadly classified into categories: (i) Bracketing methods. Examples include the bisection method and the regula-falsi method. (ii) open interval methods. Examples include Newton raphson method and the secant method. In bracketing methods, two initial guesses for the roots are required which must bracket the root, i.e, they should be on either side of the root. After each and every iteration, the width of the bracket which include the root is reduced until it approximates the correct answer. The bracketing method usually guarantees the convergence if the specified bracket contains the root. Brackting methods provide reliable soltions but converge slowly. But in numerical computation, faster methods of convergence are ususllay preferred. Open interval methods yield faster rate of converegence which explains their popularity. Nontheless, open interval methods do not always guarantee a solution. Fixed-Point Iteration Method A numberpis a fixed point of a functionφ(x) ifφ(p) = p. Let us suppose that the equationf(x) = 0 is written in the formx = φ(x), i.e.,f(x) = x φ(x) = 0. Then any fixed point p of φ(x) is a root of f(x) = 0, because f(p) = p φ(p) = 0. Thus a root of f(x) = 0 can be found by finding a fixed point ofx = φ(x), which corresponds tof(x) = 0. Finding a root off(x) = 0 by finding a fixed point ofx = φ(x) clearly suggests an iterative procedure of the following type. Let x 0 be an initial approximation to the root, and form a sequencex k defined by If the sequencex k converges, then x k+1 = φ(x k ),k = 0,1,2... lim x k = p k will be a root of off(x) = 0. Figure 3 shows the working of the fixed point iteration method.

6 5 Figure 1: Working of fixed point interation method Example 1. When does Fixed point iteration converge? Solution 1. The following theorem gives us a sufficient condition on φ(x) which ensures the convergence of the sequence x k. Theorem (1) (Fixed-Point Iteration Theorem). Let f(x) be written in the form x = φ(x). Let us assume that φ(x) has the following properties: 1. For allxin [a,b], φ(x) [a,b]; that isφ(x) takes every value between a and b. 2. φ (x) exists on(a,b) with the property that there exists a positive constantr < 1 such that φ (x) r, for all x in (a,b). Then (i) there is a unique fixed pointx = p ofφ(x) in [a,b]. (ii) For any pointx 0 in [a,b], the sequencex k defined by x k+1 = φ(x k ),k = 0,1,2... converges to the fixed point x = p; that is to the root p of f(x) = 0. The proof of this Theorem requires Mean Value Theorem of calculus: Let f(x) be a continuous function in [a,b], and be differentiable on (a,b). Then there is number c (a,b) such that f (c) = f(b) f(a). b a

7 6 Proof of the Fixed point Theorem: The proof comes in three parts: Existence, Uniqueness and Convergence. We first prove that there is a root of f(x) = 0 in [a,b] and it is unique. Since a fixed point of x = φ(x) is a root of f(x) = 0, this amounts to proving that there is a fixed point in[a,b] and it is unique. We then prove that the sequencex k+1 = φ(x) converges to the root. Existence: If a = φ(a), then a is a fixed point. If b = φ(b), then b is a fixed point. Since φ(x) [a,b] for all x [a,b], we have a φ(a) and φ(b) b. Thus, we have f(a) = φ(a) a 0 and f(b) = φ(b) b 0 Therefore, by the Intermediate Value Theorem to f(x) in [a,b], we conclude that there is a root of f(x) in[a, b]. This proves the existence. Uniqueness (by contradiction): To prove uniqueness, let us suppose thatp 1 andp 2 are two fixed points in[a,b], andp 1 p 2. Now, let us apply the MVT to φ(x). We can find a numbercin(p 1,p 2 ) such that Sinceφ(p 1 ) = p 1, andφ(p 2 ) = p 2, we have φ (c) = φ(p 2) φ(p 1 ) p 2 p 1. φ (c) = p 2 p 1 p 2 p 1. That is φ (c) = 1, which is a contradiction to our assumption 2. Thus, p 1 cannot be different from p 2. Therefore, p 1 = p 2. Convergence: Let p be the root off(x) = 0. Then the absolute error at step (k +1) is given by e k+1 = p x k+1. To prove that the sequence converges, we need to show that lim e k+1 = 0. k To show this, we apply the MVT to φ(x) in[x k,p]. Then φ (c) = φ(p) φ(x k) p x k,wherex k < c < p.

8 7 That is φ (c) = p x k+1 p x k (notethat φ(p) = p andx k+1 = φ(x)) Taking absolute values on both sides, we have φ (c) = p x k+1 p x k or φ (c) = e k+1 e k Sinceφ (c) r, we have e k+1 re k. Similarly, we have e k re k 1. Thus, e k+1 r 2 e k 1. Continuing in this way, we finally have e k+1 r k+1 e 0, where e 0 is the initial error (That is, e 0 = x 0 p ). Sincer < 1, we haver k+1 0 as k. Thus, lim e k+1 = lim x k+1 p k k lim k r k+1 e 0 =0. This proves that the sequencex k converges tox = p and x = p is the only fixed point ofφ(x). Algorithm 1. The algorithm for the fixed point iteration is given below Givenf(x) = 0,ǫ and an initial pointx 0 ; Givenmax=maximum number of iterations; Find a suitable equationx = φ(x) from f(x) = 0 where 1 φ (x) 1; Fori = 0 tomax Computex i+1 = φ(x i ); If x i+1 x i < ǫ; Solution=x i+1 ; Stop the iterations; Endif Endfor Example 2. Find the root off(x) = x 3 x 2 2 using the fixed-point iteration method, given the initial value ofx 0 = 1 with iterations until x i+1 x i < ǫ where, ǫ =

9 8 Table 1: Numerical results for the above problem i x i φ(x i ) φ (x i ) x i+1 x i Solution 2. Setting f(x) = 0 suggests several representations in the form of x = φ(x), including x = ± (x 3 2),x = 2 x 2 x and x = (x2 +2) 1/3. The first two functions are not suitable as they are not defined at x 0 = 1. Obviously φ(x) = (x 2 + 2) 1/3 is a good choice as φ 2x (x) = is a monotonically increasing 3(x 2 +2) 2/3 function with values between 0 and 1. Hencex i+1 = φ(x i ) = (x 2 i +2) 1/3 is a suitable choice here. For i = 0, x 1 = (x ) 1/3 = ( ) 1/3 = , with φ (x 0 ) = The error is x 1 x 0 = = > ǫ. For i = 1, x 2 = (x ) 1/3 = ( ) 1/3 = , with φ (x 1 ) = The error is x 2 x 1 = = > ǫ. Therefore, the process continues with the next iteration. The iterations stop ati = 5, where x 6 x 5 = < ǫ. The final solution is x = x 6 = Table 27 shows the complete results from this method. Example 3. Find a real root of the following equation correct to three decimal places using the fixed point iteration method: cosx = 3x 1. Solution 3. The given equation is cosx = 3x 1. Let us rewrite the given equation as x = 1 3 (cosx+1) x =φ(x),

10 9 Table 2: Numerical results for the above problem i x i φ(x i ) φ (x i ) x i+1 x i where φ(x) = 1 3 (cosx+1) φ (x) = sin(x) 3 φ (x) 1. Therefore, the fixed point interation method can be applied. Let us take the first approximation asx 0 = 1. Then the successive approximations of the root can be obtained as follows: x 1 =φ(x 0 ) = 1 [cos(1)+1] = x 2 =φ(x 1 ) = 1 [cos( )+1] = x 3 =φ(x 2 ) = 1 [cos( )+1] = x 4 =φ(x 3 ) = 1 [cos( )+1] = x 5 =φ(x 4 ) = 1 [cos( )+1] = x 6 =φ(x 5 ) = 1 [cos( )+1] = In the fifth and the sixth iterations, the successive approximations of the roots are obtained as and , respectively. Therefore, the required root of the equation correct to three decimal places is Table 2 shows the complete results from this method. Example 4. Find a real root of the following equation correct to two decimal places using the fixed point iteration method: xe x = 1.

11 10 Solution 4. The given equation is xe x = 1. Let us rewrite the given equation as x =e x x =φ(x), where φ(x) =e x φ (x) = e x φ (x) <1, x < 1. Therefore, the fixed point interation method can be applied. Let us take the first approximation as x 0 = 0.5. Then the successive approximations of the root can be obtained as follows: x 1 =φ(x 0 ) = exp( ) = x 2 =φ(x 1 ) = exp( ) = x 3 =φ(x 2 ) = exp( ) = x 4 =φ(x 3 ) = exp( ) = x 5 =φ(x 4 ) = exp( ) = x 6 =φ(x 5 ) = exp( ) = x 7 =φ(x 6 ) = exp( ) = In the sixth and the seventh iterations, the successive approximations of the roots are obtained as and , respectively. Therefore, the required root of the equation correct to three decimal places is Table 4 shows the complete results from this method. Example 5. Find a real root of the following equation correct to three decimal places using the fixed point iteration method: 2x log 10 x 7 = 0. Solution 5. The given equation is 2x log 10 x 7 = 0. Let us rewrite the given equation as x = 1 2 (log 10x+7) x =φ(x),

12 11 Table 3: Numerical results for the above problem i x i φ(x i ) φ (x i ) x i+1 x i where φ(x) = 1 2 (log 10x+7) φ (x) = log 10e 2x φ (x) <1, x < 1. Therefore, the fixed point interation method can be applied. Let us take the first approximation asx 0 = 1. Then the successive approximations of the root can be obtained as follows: x 1 =φ(x 0 ) = 1 2 [log 10( )+7] = x 2 =φ(x 1 ) = 1 2 [log 10( )+7] = x 3 =φ(x 2 ) = 1 2 [log 10( )+7] = x 4 =φ(x 3 ) = 1 2 [log 10( )+7] = x 5 =φ(x 4 ) = 1 2 [log 10( )+7] = In the fourth and the fifth iterations, the successive approximations of the roots are obtained as and , respectively. Therefore, the required root of the equation correct to three decimal places is Table 4 shows the complete results from this method. Example 6. Find a real root of the follwing equation correctto three decimaal places: sinx = 5x 2. Solution 6. Let us first express the given equation in the form x = φ(x) and then find out which of this form will give a convergent solution of the given equation.

13 12 Table 4: Numerical results for the above problem i x i φ(x i ) φ (x i ) x i+1 x i FormI : sinx =5x 2 x = sin 1 (5x 2) x = φ(x), where φ(x) = sin 1 (5x 2) φ 5 (x) =. 1 (5x 2) 2 Now, φ (x) > 1 x for which (5x 2) 2 < 1 x < 3 5 x < 0.6 Thus the method will not give a convergent solution. FormII : where sinx =5x 2 x = 1 5 (sinx+2) x =φ(x), φ(x) = 1 5 (sinx+2) φ (x) = 1 5 cosx φ (x) 1 < 1, x cosx 1. 5

14 13 Table 5: Numerical results for the above problem i x i φ(x i ) φ (x i ) x i+1 x i Therefore, we find that the φ(x) obtained from Form II will give a convergent solution. Therefore, we choose φ(x) = 1(sinx + 2). Let us take the first approximation as x 5 0 = 1. Then the successive approximations of the root can be obtained as follows: x 1 =φ(x 0 ) = 1 [sin( )+2] = x 2 =φ(x 1 ) = 1 [sin( )+2] = x 3 =φ(x 2 ) = 1 [sin( )+2] = x 4 =φ(x 3 ) = 1 [sin( )+2] = x 5 =φ(x 4 ) = 1 [sin( )+2] = In the fourth and the fifth iterations, the successive approximations of the roots are obtained as and , respectively. Therefore, the required root of the equation correct to three decimal places is Table 5 shows the complete results from this method. //C++ program to find root by fixed point iteration method using for loop //Written by Dr. Sukanta Deb, ANDC, University of Delhi #include < iostream > #include < cmath > #include < iomanip > #define iter 30 using namespace std; double f(double x) {double p, d; d = pow(x,2.0)+2; p = pow(d,1./3);

15 14 return p; } double g(double x) { double r,s; s = pow(x,2.0)+2; r = (2 x)/(3 pow(s,2./3)); return r; } int main() { int i,n; double t,x = 1.0; double eps = 0.005; cout.precision(6); cout.setf(ios :: fixed); for(i = 0;i < iter;i++) { t = x; x = f(x); if(fabs(x t) < eps) break; } cout << The solutionis : << endl; cout << setw(10) << x; cout << endl; return 0; } The same program is implemented below using the do-while loop. //C++ program to find root by fixed point iteration method using do-while loop //Written by Dr. Sukanta Deb, ANDC, University of Delhi #include < iostream > #include < cmath > #include < iomanip > using namespace std; double f(double x) { double p,d;

16 15 d = pow(x,2.0)+2; p = pow(d,1./3); return p; } int main() { double t,x = 1.0; double eps = 0.005; cout.precision(6); cout.setf(ios :: fixed); do { t = x; x = f(x); }while(fabs(t x) > eps); cout << x = << x; cout << endl; return 0; } Bisection Method (Bolzano Method) In this topic and in the other forthcoming topics of root finding, we will need to use one or a combination of the following theorems. These theorems find their importance in the root finding methods such as bisection in particular and other methods. Theorem (2) (Intermediate Mean-Value Theorem). Let f(x) be continuous on [a,b] and let k be any number between f(a) and f(b). Then there exists a number x [a, b] such that k = f(x). Theorem (3) (Mean-Value Theorem). Let f(x) be a continuous function defined on [a, b], such that f(a)f(b) < 0 (i.e., f(a) and f(b) are of opposite sign). Then there exists at least one root c [a,b] of f(x) = 0. Theorem (4) (Rolle s Theorem). If (i) f(x) is continuous in[a, b], (ii)f (x) exists in(a,b), and (iii)f(a) = f(b) = 0, then, there exists at least one value ofx, saycsuch that f (c) = 0,wherec (a,b).

17 16 Theorem (5) (Mean Value Theorem for Derivatives). If (i) f(x) is continuous in[a, b], (ii)f (x) exists in(a,b), and then, there exists at least one value ofx, saycsuch that f (c) = f(b) f(a),where c (a,b). b a Bisection method is one of the simplest iterative methods for nonlienar root finding. This method is based on the mean value theorem 3 which states that if a function f(x) is continuous in [x l,x u ] and f(x l )f(x u ) < 0 (i.e., f(x l ) and f(x u ) are of opposite sign). Then there exists at least one root x m [x l,x u ] off(x) = 0. As the title suggests, the method is based on repeated bisections of an interval containing the root. Let us suppose that f(x l ) and f(x u ) are such that f(x l ) f(x u ) < 0. This ensures that the root lies between x l and x u. Then bisect the interval [x l,x u ] and let x m = x l+x u 2 be the middle point of [x l,x u ]. Then, there are three possibilities that can aries (i) Iff(x m ) = 0, then x m is the root. (ii) Iff(x l ) f(x m ) < 0, then the root lies in the interval(x l,x m ). Thenx l = x l ;x u = x m. Therefore, the new interval now becomes[x l,x m ] which is half of the current interval is again bisected. (iii) Iff(x l ) f(x m ) > 0, then the root lies in the interval(x m,x u ). Thenx l = x m ;x u = x u. Therefore, the new interval now becomes[x m,x u ] which is again bisected. Therfore, by repeating this interval bisection procedure, we keep on enclosing the root in a new search interval, which is halved in each iteration. This iterative cycle is terminated when the search interval becomes smaller that the prescribed tolerance or the value of the function nearly vanishes at the new x value. Let ǫ be the prescribed tolerance in the required root. Then, the iterative cycle terminates when the absolute error becomes less than or equal to the prescribed tolerance, i.e., x u x l ǫ Example 7. How many iterations are needed in order that the length interval is less than ǫ in bisection method? Solution 7. Let L 0 = x u x l be the initial search interval that contains the root. After bisecting the intervalntimes, the search interval is reduced to the length given by L n = L 0 2 n.

18 Bisection method f(x u ) f(x) 10 0 x l x m -10 f(x m ) f(x l ) x x u Figure 2: Root finding using the bisection method. We require L n ǫ L 0 2 n ǫ (x u x l ) 2 n ǫ Taking logarithm on both sides of the inequality, we get [ ] (xu x l ) log e log 2 n e ǫ log e (x u x l ) log e ǫ nlog2 n log e [ ] (xu xl ) ǫ log e 2 Example 8. What is the minimum number of iterations needed in the bisection algorithm, givenx l = 2.5, x u = 3.5 and ǫ = Solution 8. We know that the minimum number of iterations needed to obtain a root of desired accuracy is given by n [ ] log (xu x l ) e ǫ log e 2 = 10

19 18 Table 6: Minimum number of iterations required ǫ n Let us assume that the root lies in the interval (1,2), then the minimum number of iterations required to find the root within the prescribed toleranceǫare listed in Table 6. Algorithm 1. The algorithm for the bisection method is given below Givenf(x) = 0,ǫ and the initial end points[x l,x u ], wheref(x l )f(x u ) < 0; Givenmax=maximum number of iterations; Fori = 0 tomax Computex m = (x l+x u) 2.0 ; Iff(x l )f(x m ) < 0 Updatex l = x l andx u = x m ; Iff(x l )f(x m ) > 0 Updatex l = x m and x u = x u ; If x u x l < ǫ Solution =x m ; Stop the iterations; Endfor Example 9. Find a real root of the following equation correct upto two decimal places: x 3 2x 5 = 0. Solution 9. Let f(x) = x 3 2x 5 = 0. Let us try to calculate f(x) for the values of x given in Table (16). It can be seen from the table that the interval [2,3] gives the accurate and precise location of the root among the other two intervals such as[0,3],[1,3]. Therfore, we choosex l = 2 andx u = 3 as the initial two guesses for bracketing the root. First Iteration : The interval [x l,x u ] = [2,3] and f(x l ) = f(2) = 1 < 0,f(x u ) = f(3) = 16 > 0. x u x l = 3 2 = 1. Therefore, x m = (x l +x u ) = (2+3) = f(x m ) = f(2.50) = > 0. f(2) f(2.5) < 0 Root lies between[2,2.50].

20 19 Table 7: This table shows how to select the bracketing interval [a,b] so as to include the root of the equation x 3 2x 5 = 0. It can be seen that the interval [2,3] gives the accurate and precise location of the root among the other two intervals such as [0,3],[1,3]. Therfore, we choosex l = 2 and x u = 3 as the initial two guesses for bracketing the root. x f(x) = x 3 2x 5 sign[f(x)] 0 5 < < < > 0 Second Iteration : The interval [x l,x u ] = [2,50] and f(x l ) = f(2) = 1 < 0,f(x u ) = f(2.50) = > 0. x u x l = = 0.5. Therefore, Now x m = (x l +x u ) = (2+2.5) = f(x m ) = f(2.25) = > 0. f(2) f(2.25) < 0 Root lies between[2,2.25]. Third Iteration : The interval [x l,x u ] = [2,2.25] and f(x l ) = f(2) = 1 < 0,f(x u ) = f(2.25) = > 0. x u x l = = 0.25 Now, x m = (x l +x u ) = (2+2.25) = f(x m ) = f(2.125) = > 0. f(2) f(2.125) < 0 Root lies between [2,2.1250]. FourthIteration : The interval [x l,x u ] = [2,2.1250] and f(x l ) = f(2) = 1 < 0,f(x u ) = f(2.1250) = > 0. x u x l = = Now, x m = (x l +x u ) = ( ) = f(x m ) = f(2.0625) = < 0. f(2.0625) f(2.125) < 0 Root lies between [2.0625,2.1250]. FifthIteration : The interval [x l,x u ] = [2.0625,2.1250] and f(x l ) = f(2) = 1 < 0,f(x u ) =

21 20 f(2.1250) = > 0. x u x l = = Now, x m = (x l +x u ) = ( ) = f(x m ) = f(2.0938) = < 0. f(2.0938) f(2.125) < 0 Root lies between [2.0938,2.1250]. Sixth Iteration : The interval [x l,x u ] = [2.0938,2.1250] and f(x l ) = f(2.0938) = < 0,f(x u ) = f(2.1250) = > 0. x u x l = = Now, x m = (x l +x u ) = ( ) = f(x m ) = f(2.1094) = > 0. f(2.0938) f(2.1094) < 0 Root lies between [2.0938,2.1094]. Seventh Iteration : The interval[x l,x u ] = [2.0938,2.1094] andf(x l ) = f(2.0938) = < 0,f(x u ) = f(2.1094) = > 0. x u x l = = Now, x m = (x l +x u ) = ( ) = f(x m ) = f(2.1016) = > 0. f(2.0938) f(2.1016) < 0 Root lies between [2.0938,2.1016]. Eighth Iteration : The interval [x l,x u ] = [2.0938,2.1016] and f(x l ) = f(2.0938) = < 0,f(x u ) = f(2.1016) = > 0. x u x l = = Now, x m = (x l +x u ) = ( ) = f(x m ) = f(2.0977) = > 0. f(2.0938) f(2.0977) < 0 Root lies between [2.0938,2.0977]. Ninth Iteration : The interval [x l,x u ] = [2.0938,2.0977] and f(x l ) = f(2.0938) = < 0,f(x u ) = f(2.0977) = > 0. x u x l = = Now, x m = (x l +x u ) = ( ) = f(x m ) = f(2.0957) = > 0. f(2.0938) f(2.0957) < 0 Root lies between [2.0938,2.0957].

22 21 Tenth Iteration : The interval [x l,x u ] = [2.0938,2.0957] and f(x l ) = f(2.0938) = < 0,f(x u ) = f(2.0957) = > 0. x u x l = = Now, x m = (x l +x u ) 2 = ( ) 2 = Iteration x l x u x m f(x l ) f(x u ) f(x m ) x u x l Example 10. Find a real root of the following equation correct using ǫ = if the root lies in the interval[0,1]: x = cosx. Solution 10. Let f(x) = x cosx. Heref(0) = and f(b) = First Iteration : The interval[x l,x u ] = [0,1] andf(x l ) = f(0) = < 0,f(x u ) = f(1) = > 0. x u x l = 1 0 = 1. Therefore, x m = (x l +x u ) = (0+1) = f(x m ) = f(0.5000) = < 0. f(0.5000) f(1.0000) < 0 Root lies between [0.5000,1.0000]. Second Iteration : The interval[x l,x u ] = [0.5000,1.0000] andf(x l ) = f(0.5000) = < 0,f(x u ) = f(1.0000) = > 0. x u x l = = Therefore, Now x m = (x l +x u ) = ( ) = f(x m ) = f(0.7500) = > 0. f(0.5000) f(0.7500) < 0 Root lies between [0.5000,0.7500].

23 22 Third Iteration : The interval [x l,x u ] = [0.5000,0.7500] and f(x l ) = f(0.5000) = < 0,f(x u ) = f(0.7500) = > 0. x u x l = = 0.25 Now, x m = (x l +x u ) = ( ) = f(x m ) = f(0.6250) = < 0. f(0.6250) f(0.7500) < 0 Root lies between [0.6250,0.7500]. FourthIteration : The interval [x l,x u ] = [0.6250,0.7500] and f(x l ) = f(0.6250) = < 0,f(x u ) = f(0.0183) => 0. x u x l = = Now, x m = (x l +x u ) = ( ) = f(x m ) = f(0.6875) = < 0. f(0.6875) f(0.7500) < 0 Root lies between [0.6875,0.7500]. FifthIteration : The interval [x l,x u ] = [0.6875,0.7500] and f(x l ) = f(0.6875) = < 0,f(x u ) = f(0.7500) = > 0. x u x l = = Now, x m = (x l +x u ) = ( ) = f(x m ) = f(0.7188) = < 0. f(0.7188) f(0.7500) < 0 Root lies between [0.7188,0.7500]. Sixth Iteration : The interval [x l,x u ] = [0.7188,0.7500] and f(x l ) = f(0.7188) = < 0,f(x u ) = f(0.7500) = > 0. x u x l = = Now, x m = (x l +x u ) = ( ) = f(x m ) = f(0.7344) = > 0. f(0.7344) f(0.7500) < 0 Root lies between [0.7344,0.7500]. Seventh Iteration : The interval[x l,x u ] = [0.7344,0.7500] andf(x l ) = f(0.7344) = <

24 23 0,f(x u ) = f(0.7500) = > 0. x u x l = = Now, x m = (x l +x u ) = ( ) = f(x m ) = f(0.7422) = > 0. f(0.7344) f(0.7422) < 0 Root lies between [0.7344,0.7422]. Eighth Iteration : The interval [x l,x u ] = [0.7344,0.7422] and f(x l ) = f(0.7344) = < 0,f(x u ) = f(0.7422) = > 0. x u x l = = Now, x m = (x l +x u ) = ( ) = f(x m ) = f(0.7383) = < 0. f(0.7383) f(0.7422) < 0 Root lies between [0.7383,0.7422]. Ninth Iteration : The interval [x l,x u ] = [0.7383,0.7422] and f(x l ) = f(0.7383) = < 0,f(x u ) = f(0.7422) = > 0. x u x l = = Now, x m = (x l +x u ) = ( ) = f(x m ) = f(0.7402) = > 0. f(0.7383) f(0.7422) < 0 Root lies between [0.7383,0.7402]. Tenth Iteration : The interval [x l,x u ] = [0.7383,0.7402] and f(x l ) = f(0.7383) = < 0,f(x u ) = f(0.7402) = > 0. x u x l = = Now, x m = (x l +x u ) 2 = ( ) 2 = Newton-Raphson Method The Newton-Raphson method is one of the most powerful and well-known numerical methods for solving a root-finding problem. Let x 0 be an initial approximation of the root to f(x) = 0, whose real root is α(say). Then α = x 0 +h, where h is the small correction to be applied to x 0 to give the exact value of the root. Therefore, f(x 0 )+hf (x 0 )+ h2 2! f(α) = 0 f(x 0 +h) = = 0 (By Taylor series expansion)

25 24 Iteration x l x u x m f(x l ) f(x u ) f(x m ) x u x l Sincehis quite small, the higher powers ofh, i.e.,h 2,h 3,etc., can be neglected. Therefore f(x 0 )+hf (x 0 ) 0 h = f(x 0) f (x 0 ). Substituting this value ofhinα = x 0 +h, we get a better approximation to the rootαoff(x) = 0 as The successive approximations are x 1 = x 0 f(x 0) f (x 0 ). x 2 = x 1 f(x 1) f (x 1 ) x 3 = x 3 f(x 3) f (x 3 )... x n+1 = x n f(x n) f (x n ) This iterative formula is known as the Newton Raphson method. Newton Raphson method: Geometrical Significance The Newton Raphson method is an open interval method that requires only one initial guess. Let the initial guess at the root be x 0. A tangent line is drawn from the point (x 0,f(x 0 )) which intersects the x-axis at (x 1,0). The value x = x 1 is the new value at iteration i = 1. At i = 2, another tangent is drawn from (x 1,f(x 1 )) which intersects the x-axis at (x 2,0) to produce an improved value of x = 2.

26 25 The same step is repeated for i = 3,4... until the error e = x i+1 x i is smaller then a preset value ǫ. The final value ofxobtained at the last iteration wheree < ǫ becomes the final root of the equation. The computational steps in the Newton-raphson method are summarized as follows. The algorithm requires calculations of bothf(x) andf (x). Algorithm 1. The algorithm for the Newton-Raphson method is given below Givenf(x) = 0,ǫ and the initial pointsx 0 ; Givenmax=maximum number of iterations; Find f (x); Fori = 0 tomax Computex i+1 = x i f(x i) f (x i ) ; If x i+1 x i < ǫ Solution =x i+1 ; Stop the iterations; Endif Endfor 20 Newton-Raphson method 10 f(x) 0 (x 2,f(x 2 )) (x 1,f(x 1 )) -10 (x 0,f(x 0 )) x Figure 3: Working of Newton Raphson method

27 26 Example 11. Find a real root of the following equation using the Newton-Raphson method for ǫ = using the initial approximation of the root as x 0 = 2. 3x cosx 1 = 0 (7) Solution 11. Let f(x) = 3x cosx 1. Therefore, f (x) = 3+sinx. Givenx 0 = 2. First Iteration : x 0 = ,f(x 0 ) = ,f (x 0 ) = We know from the Newton- Raphson method that x =x 0 f(x 0) f (x 0 ) x = x = Second Iteration : x 0 = x = ,f(x 0 ) = ,f (x 0 ) = Therefore, x =x 0 f(x 0) f (x 0 ) x = x = Third Iteration : x 0 = x = ,f(x 0 ) = ,f (x 0 ) = Therefore, x =x 0 f(x 0) f (x 0 ) x = x = From the second and the third iteration, we find that the successive approximations of the root are and Hence the required root of the given equation correct to four decimal places is The successive approximations of the root as computed above using the Newton-Raphson method are displayed in the following table: Example 12. Find a real root of the following equation correct upto five decimal places ln(x) = cos(x). Solution 12. Here f(x) = ln(x) cos(x). Therefore, f (x) = 1 +sin(x). x

28 27 Table 8: Numerical results for the above problem i x i f(x i ) f (x i ) h = f(x i) f (x i ) x i+1 x i+1 x i First Iteration : x 0 = 2.0, f(x 0 ) = , f (x 0 ) = We know from the Newton- Raphson method that x =x 0 f(x 0) f (x 0 ) x = x = Second Iteration : x 0 = x = ,f(x 0 ) = ,f (x 0 ) = Therefore, x =x 0 f(x 0) f (x 0 ) x = x = Third Iteration : x 0 = x = ,f(x 0 ) = ,f (x 0 ) = Therefore, x =x 0 f(x 0) f (x 0 ) x = x = FourthIteration : x 0 = x = ,f(x 0 ) = ,f (x 0 ) = Therefore, x =x 0 f(x 0) f (x 0 ) x = x = From the third and the fourth iteration, we find that the successive approximations of the root are and Hence the required root of the given equation correct to four decimal places is

29 28 The successive approximations of the root as computed above using the Newton-Raphson method are displayed in the following table: Example 13. Find the cubic root of10, i.e., 3 10 correct to four decimal places. Solution 13. Let x = Thenx 3 10 = 0. Let f(x) = x 3 10 f (x) = 3x 2. First Iteration : x 0 = 2.0, f(x 0 ) = , f (x 0 ) = We know from the Newton- Raphson method that x =x 0 f(x 0) f (x 0 ) x = x = Second Iteration : x 0 = x = ,f(x 0 ) = ,f (x 0 ) = Therefore, x =x 0 f(x 0) f (x 0 ) x = x = Third Iteration : x 0 = x = ,f(x 0 ) = ,f (x 0 ) = Therefore, x =x 0 f(x 0) f (x 0 ) x = x = FourthIteration : x 0 = x = ,f(x 0 ) = ,f (x 0 ) = Therefore, x =x 0 f(x 0) f (x 0 ) x = x = From the third and the fourth iteration, we find that the successive approximations of the root are and Hence the required root of the given equation correct to four decimal places is The successive approximations of the root as computed above using the Newton-Raphson method are displayed in the following table:

30 29 Table 9: Numerical results for the above problem i x i f(x i ) f (x i ) h = f(x i) f (x i ) x i+1 x i+1 x i Thusx = is a root off(x) = 0 correct upto five decimal places. Example 14. Find a real root of the following equation correct to three decimal places using the Newton- Rephson method taking the initial approximation to the root as x 0 = 2: x 3 2x 5 = 0. Solution 14. Givenf(x) = x 3 2.0x 5, x 0 = 2. Therefore, f (x) = 3x First Iteration : x 0 = 2.0, f(x 0 ) = x x 0 5 = = 1, f (x 0 ) = 3x = 10 We know from the Newton-Raphson method that x =x 0 f(x 0) f (x 0 ) x = x = Second Iteration : x 0 = x = , f(x 0 ) = x x 0 5 = ,f (x 0 ) = 3x = Therefore, x =x 0 f(x 0) f (x 0 ) x = x = Third Iteration : x 0 = x = , f(x 0 ) = x 3 0 2x 0 5 = , f (x 0 ) = 3x = Therefore, x =x 0 f(x 0) f (x 0 ) x = x =

31 30 From the second and the third iteration, we find that the successive approximations of the root are and Hence the required root of the given equation correct to three decimal places is The successive approximations of the root as computed above using the Newton-Raphson method are displayed in the following table: Table 10: Numerical results for the above problem i x i f(x i ) f (x i ) h = f(x i) f (x i ) x i+1 x i+1 x i Example 15. Find a real root of the following equation correct to three decimal places using the Newton- Rephson method taking the initial approximation to the root as x 0 = 2: x x +2x 6 = 0. Solution 15. Givenf(x) = x x +2x 6, x 0 = 2. Therefore, f (x) = x x (1+lnx)+2. First Iteration : x 0 = 2.0, f(x 0 ) = , f (x 0 ) = We know from the Newton- Raphson method that x =x 0 f(x 0) f (x 0 ) x = x = Second Iteration : x 0 = x = ,f(x 0 ) = ,f (x 0 ) = Therefore, x =x 0 f(x 0) f (x 0 ) x = x = Third Iteration : x 0 = x = ,f(x 0 ) = ,f (x 0 ) = Therefore, x =x 0 f(x 0) f (x 0 ) x = x =

32 31 FourthIteration : x 0 = x = ,f(x 0 ) = ,f (x 0 ) = Therefore, x =x 0 f(x 0) f (x 0 ) x = x = From the third and the fourth iteration, we find that the successive approximations of the root are and Hence the required root of the given equation correct to three decimal places is The successive approximations of the root as computed above using the Newton-Raphson method are displayed in the following table: Table 11: Numerical results for the above problem i x i f(x i ) f (x i ) h = f(x i) f (x i ) x i+1 x i+1 x i Secant Method One of the important difficulties with the Newton Raphson method is that it requires the computation of the derivative of f(x) at the iterated points. This requirement causes hardship to the computer by causing computational cost in solving the problem. The secant method helps eliminating the calculation of the derivative by replacing it with a secant line. The term secant denotes a straight line that intersects a curve in two or more parts. In secant method, two initial guesses say, x 1 and x 2 are provided, where f(x 1 ) f(x 2 ). These two points can be any points which are reliably close to the solution and they do not necessarily have to be on the opposite sides of thex-axis. A good choice for the two initial pointsx 1 andx 2 will bef(x 1 f(x 2 ) < 0 abiding by the mean value theorem. The first iteration with i = 1 produces an approximation at x = x 2 which is thex-intercept of the chord that passes through the points(x 1,f(x 1 )) and(x 2,f(x 2 )). The next approximated value x = x 3 is obtained from the x-intercept of the chord that passes through the points (x 2,f(x 2 )) and (x 3,f(x 3 )). The same step is repeated until the convergence to the solution is obtained through the stopping criteriae = x i+1 x i < ǫ. The secant method is derived as follows: The gradient of the line from(x 1,f(x 1 )) to (x 3,0) is m 1 = f(x 1 0) x 1 x 3.

33 32 which is equal to the the gradient of the line from (x 2,f(x 2 ) to(x 3,0) given by Therefore, m 2 = f(x 1 0) x 1 x 3 m 2 = f(x 2) 0 x 2 x 3. f(x 1 )(x 2 x 3 ) = f(x 2 )(x 1 x 3 ) x 3 = x 1f(x 2 ) x 2 f(x 1 ). f(x 2 ) f(x 1 ) Replacing x 1 with x i, x 2 with x i+1 and x 3 with x i+2 the iterative formula for the secant method can be written as: x i+2 = x if(x i+1 ) x i+1 f(x i ). f(x i+1 ) f(x i ) Algorithm 1. The algorithm for the secant method is given below Givenf(x) = 0,ǫ and the initial points[x 1,x 2 ]; Givenmax=maximum number of iterations; Fori = 0 tomax Computex i+2 = x if(x i+1 ) x i+1 f(x i ) f(x i+1 ) f(x i ) ; If x i+2 x i+1 < ǫ Solution =x i+2 ; Stop the iterations; Endif Endfor Example 16. Find the root of the following equation using the secant method with the initial values x 1 = 1 andx 2 and accuracy ǫ = x 3 x 2 2 = 0. Solution 16. Let f(x) = x 3 x 2 2. Givenx 1 = 1 and x 2 = 2. First Iteration : x 1 = 1, x 2 = 2. Therefore, f(x 1 ) = , f(x 2 ) = We know from the secant method that x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x 3 = ( ) ( ) x 3 =

34 33 Second Iteration : x 1 = x 2 = , x 2 = x 3 = Therefore, f(x 1 ) = , f(x 2 ) = Therefore, x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x 3 = ( ) ( ) x 3 = Third Iteration : x 1 = x 2 = , x 2 = x 3 = Therefore, f(x 1 ) = , f(x 2 ) = Therefore, x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x = ( ) ( ) ( ) x 3 = FourthIteration : x 1 = x 2 = , x 2 = x 3 = Therefore, f(x 1 ) = , f(x 2 ) = Therefore, x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x = ( ) ( ) ( ) x 3 = FifthIteration : x 1 = x 2 = , x 2 = x 3 = Therefore, f(x 1 ) = , f(x 2 ) = Therefore, x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x = ( ) ( ) ( ) x 3 = From the fourth and the fifth iteration, we find that the successive approximations of the root are and Hence the required root of the given equation correct to three decimal places is The successive approximations of the root as computed above using the Newton-Raphson method are displayed in the following table:

35 34 Table 12: Numerical results for the above problem i x i x i+1 x i+2 f(x i ) f(x i+1 ) f(x i+2 ) x i+2 x i Secant method 2 f(x u ) 1 f(x) 0 x l x m x u -1 f(x m ) -2 f(x l ) x Figure 4: Root finding using the secant method. Example 17. Compute the root of the following equation in the interval [0,2] using the secant method correct upto three decimal places: x 2 e x 2 1 = 0. Solution 17. Let f(x) = x 2 e x 2 1. Givenx 1 = 0 andx 2 = 2. First Iteration : x 1 = 0, x 2 = 2. Therefore, f(x 1 ) = , f(x 2 ) = We know

36 35 from the secant method that x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x 3 = ( ) ( ) x 3 = Second Iteration : x 1 = x 2 = , x 2 = x 3 = Therefore, f(x 1 ) = , f(x 2 ) = Therefore, x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x 3 = ( ) ( ) ( ) ( ) x 3 = Third Iteration : x 1 = x 2 = , x 2 = x 3 = Therefore, f(x 1 ) = , f(x 2 ) = Therefore, x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x = ( ) ( ) ( ) x 3 = FourthIteration : x 1 = x 2 = , x 2 = x 3 = Therefore, f(x 1 ) = , f(x 2 ) = Therefore, x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x = ( ) ( ) ( ) x 3 = From the third and the fourth iteration, we find that the successive approximations of the root are and Hence the required root of the given equation correct to three decimal places is (after rounding off). The successive approximations of the root as computed above using the secant method are displayed in the following table: Example 18. Compute the root of the following equation in the interval [2,3] using the secant method correct upto three decimal places: x 3 2x 5 = 0.

37 36 Table 13: Numerical results for the above problem i x i x i+1 x i+2 f(x i ) f(x i+1 ) f(x i+2 ) x i+2 x i Solution 18. Let f(x) = x 3 2x 5. Givenx 1 = 2 andx 2 = 3. First Iteration : x 1 = 2, x 2 = 3. Therefore, f(x 1 ) = ,f(x 2 ) = We know from the secant method that x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x 3 = ( ) ( ) x 3 = Second Iteration : x 1 = x 2 = , x 2 = x 3 = Therefore, f(x 1 ) = , f(x 2 ) = Therefore, x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x 3 = ( ) ( ) ( ) ( ) x 3 = Third Iteration : x 1 = x 2 = , x 2 = x 3 = Therefore, f(x 1 ) = , f(x 2 ) = Therefore, x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x = ( ) ( ) ( ) x 3 = FourthIteration : x 1 = x 2 = , x 2 = x 3 = Therefore, f(x 1 ) = ,

38 37 f(x 2 ) = Therefore, x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x = ( ) ( ) ( ) x 3 = From the third and the fourth iteration, we find that the successive approximations of the root are and Hence the required root of the given equation correct to three decimal places is The successive approximations of the root as computed above using the secant method are displayed in the following table: Table 14: Numerical results for the above problem i x i x i+1 x i+2 f(x i ) f(x i+1 ) f(x i+2 ) x i+2 x i Example 19. Compute the root of the following equation in the interval [1,2] using the secant method correct upto three decimal places: x 4 x 10 = 0. Solution 19. Let f(x) = x 4 x 10. Givenx 1 = 1 andx 2 = 2. First Iteration : x 1 = 1, x 2 = 2. Therefore, f(x 1 ) = ,f(x 2 ) = We know from the secant method that x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x 3 = ( ) ( ) ( ) x 3 = Second Iteration : x 1 = x 2 = , x 2 = x 3 = Therefore, f(x 1 ) = ,

39 38 f(x 2 ) = Therefore, x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x 3 = ( ) ( ) ( ) ( ) x 3 = Third Iteration : x 1 = x 2 = , x 2 = x 3 = Therefore, f(x 1 ) = , f(x 2 ) = Therefore, x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x = ( ) ( ) ( ) x 3 = FourthIteration : x 1 = x 2 = , x 2 = x 3 = Therefore, f(x 1 ) = , f(x 2 ) = Therefore, x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x = ( ) ( ) ( ) x 3 = FifthIteration : x 1 = x 2 = , x 2 = x 3 = Therefore, f(x 1 ) = , f(x 2 ) = Therefore, x 3 = x 1f(x 2 ) x 2 f(x 1 ) f(x 2 ) f(x 1 ) x = ( ) ( ) ( ) x 3 = From the fourth and the fifth iteration, we find that the successive approximations of the root are and Hence the required root of the given equation correct to three decimal places is The successive approximations of the root as computed above using the secant method are displayed in the following table:

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

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

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

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

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

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-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

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

Numerical Methods. Roots of Equations

Numerical Methods. Roots of Equations Roots of Equations by Norhayati Rosli & Nadirah Mohd Nasir Faculty of Industrial Sciences & Technology norhayati@ump.edu.my, nadirah@ump.edu.my Description AIMS This chapter is aimed to compute the root(s)

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

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

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

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

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

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

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

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

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

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

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

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

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

Numerical Methods in Physics and Astrophysics

Numerical Methods in Physics and Astrophysics Kostas Kokkotas 2 October 20, 2014 2 http://www.tat.physik.uni-tuebingen.de/ kokkotas Kostas Kokkotas 3 TOPICS 1. Solving nonlinear equations 2. Solving linear systems of equations 3. Interpolation, approximation

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

Chapter 8: Taylor s theorem and L Hospital s rule

Chapter 8: Taylor s theorem and L Hospital s rule Chapter 8: Taylor s theorem and L Hospital s rule Theorem: [Inverse Mapping Theorem] Suppose that a < b and f : [a, b] R. Given that f (x) > 0 for all x (a, b) then f 1 is differentiable on (f(a), f(b))

More information

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

Figure 1: Graph of y = x cos(x) Chapter The Solution of Nonlinear Equations f(x) = 0 In this chapter we will study methods for find the solutions of functions of single variables, ie values of x such that f(x) = 0 For example, 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

Numerical Methods in Physics and Astrophysics

Numerical Methods in Physics and Astrophysics Kostas Kokkotas 2 October 17, 2017 2 http://www.tat.physik.uni-tuebingen.de/ kokkotas Kostas Kokkotas 3 TOPICS 1. Solving nonlinear equations 2. Solving linear systems of equations 3. Interpolation, approximation

More information

Chapter 2 Solutions of Equations of One Variable

Chapter 2 Solutions of Equations of One Variable Chapter 2 Solutions of Equations of One Variable 2.1 Bisection Method In this chapter we consider one of the most basic problems of numerical approximation, the root-finding problem. This process involves

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

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

Numerical Analysis: Solving Nonlinear Equations

Numerical Analysis: Solving Nonlinear Equations Numerical Analysis: Solving Nonlinear Equations Mirko Navara http://cmp.felk.cvut.cz/ navara/ Center for Machine Perception, Department of Cybernetics, FEE, CTU Karlovo náměstí, building G, office 104a

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

M.SC. PHYSICS - II YEAR

M.SC. PHYSICS - II YEAR MANONMANIAM SUNDARANAR UNIVERSITY DIRECTORATE OF DISTANCE & CONTINUING EDUCATION TIRUNELVELI 627012, TAMIL NADU M.SC. PHYSICS - II YEAR DKP26 - NUMERICAL METHODS (From the academic year 2016-17) Most Student

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

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

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

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

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

JUST THE MATHS UNIT NUMBER DIFFERENTIATION APPLICATIONS 5 (Maclaurin s and Taylor s series) A.J.Hobson JUST THE MATHS UNIT NUMBER.5 DIFFERENTIATION APPLICATIONS 5 (Maclaurin s and Taylor s series) by A.J.Hobson.5. Maclaurin s series.5. Standard series.5.3 Taylor s series.5.4 Exercises.5.5 Answers to exercises

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

Appendix 8 Numerical Methods for Solving Nonlinear Equations 1

Appendix 8 Numerical Methods for Solving Nonlinear Equations 1 Appendix 8 Numerical Methods for Solving Nonlinear Equations 1 An equation is said to be nonlinear when it involves terms of degree higher than 1 in the unknown quantity. These terms may be polynomial

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

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

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

NOTES FOR NUMERICAL METHODS MUHAMMAD USMAN HAMID

NOTES FOR NUMERICAL METHODS MUHAMMAD USMAN HAMID NOTES FOR NUMERICAL METHODS MUHAMMAD USMAN HAMID PREFACE In the beginning of university life I used only those books which were recommended by my teachers, soon I realized, that books were not enough to

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

Math 471. Numerical methods Root-finding algorithms for nonlinear equations

Math 471. Numerical methods Root-finding algorithms for nonlinear equations Math 471. Numerical methods Root-finding algorithms for nonlinear equations overlap Section.1.5 of Bradie Our goal in this chapter is to find the root(s) for f(x) = 0..1 Bisection Method Intermediate value

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 Bracketing Methods Roots of Equations Given a function f(x), the roots are those values of x that

More information

NAME: DATE: CLASS: AP CALCULUS AB SUMMER MATH 2018

NAME: DATE: CLASS: AP CALCULUS AB SUMMER MATH 2018 NAME: DATE: CLASS: AP CALCULUS AB SUMMER MATH 2018 A] Refer to your pre-calculus notebook, the internet, or the sheets/links provided for assistance. B] Do not wait until the last minute to complete this

More information

function independent dependent domain range graph of the function The Vertical Line Test

function independent dependent domain range graph of the function The Vertical Line Test Functions A quantity y is a function of another quantity x if there is some rule (an algebraic equation, a graph, a table, or as an English description) by which a unique value is assigned to y by a corresponding

More information

Introduction to Numerical Analysis

Introduction to Numerical Analysis Introduction to Numerical Analysis S. Baskar and S. Sivaji Ganesh Department of Mathematics Indian Institute of Technology Bombay Powai, Mumbai 400 076. Introduction to Numerical Analysis Lecture Notes

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

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

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

Section 4.2: The Mean Value Theorem

Section 4.2: The Mean Value Theorem Section 4.2: The Mean Value Theorem Before we continue with the problem of describing graphs using calculus we shall briefly pause to examine some interesting applications of the derivative. In previous

More information

Core A-level mathematics reproduced from the QCA s Subject criteria for Mathematics document

Core A-level mathematics reproduced from the QCA s Subject criteria for Mathematics document Core A-level mathematics reproduced from the QCA s Subject criteria for Mathematics document Background knowledge: (a) The arithmetic of integers (including HCFs and LCMs), of fractions, and of real numbers.

More information

Comparative Analysis of Convergence of Various Numerical Methods

Comparative Analysis of Convergence of Various Numerical Methods Journal of Computer and Mathematical Sciences, Vol.6(6),290-297, June 2015 (An International Research Journal), www.compmath-journal.org ISSN 0976-5727 (Print) ISSN 2319-8133 (Online) Comparative Analysis

More information

Line Search Methods. Shefali Kulkarni-Thaker

Line Search Methods. Shefali Kulkarni-Thaker 1 BISECTION METHOD Line Search Methods Shefali Kulkarni-Thaker Consider the following unconstrained optimization problem min f(x) x R Any optimization algorithm starts by an initial point x 0 and performs

More information

8.7 MacLaurin Polynomials

8.7 MacLaurin Polynomials 8.7 maclaurin polynomials 67 8.7 MacLaurin Polynomials In this chapter you have learned to find antiderivatives of a wide variety of elementary functions, but many more such functions fail to have an antiderivative

More information

PLC Papers. Created For:

PLC Papers. Created For: PLC Papers Created For: Algebra and proof 2 Grade 8 Objective: Use algebra to construct proofs Question 1 a) If n is a positive integer explain why the expression 2n + 1 is always an odd number. b) Use

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

MALLA REDDY ENGINEERING COLLEGE

MALLA REDDY ENGINEERING COLLEGE MODULE I MALLA REDDY ENGINEERING COLLEGE (Autonomous) I B.Tech II Semester (MR15) I- Mid Question Bank Subject: Computational Mathematics (Common for CE, ME, CSE and Min.E) 1. If f(x) is continuous in

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

AP Calculus Summer Prep

AP Calculus Summer Prep AP Calculus Summer Prep Topics from Algebra and Pre-Calculus (Solutions are on the Answer Key on the Last Pages) The purpose of this packet is to give you a review of basic skills. You are asked to have

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

BEKG 2452 NUMERICAL METHODS Solution of Nonlinear Equations

BEKG 2452 NUMERICAL METHODS Solution of Nonlinear Equations 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,

More information

Infinite series, improper integrals, and Taylor series

Infinite series, improper integrals, and Taylor series Chapter 2 Infinite series, improper integrals, and Taylor series 2. Introduction to series In studying calculus, we have explored a variety of functions. Among the most basic are polynomials, i.e. functions

More information

converges to a root, it may not always be the root you have in mind.

converges to a root, it may not always be the root you have in mind. Math 1206 Calculus Sec. 4.9: Newton s Method I. Introduction For linear and quadratic equations there are simple formulas for solving for the roots. For third- and fourth-degree equations there are also

More information

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam Jim Lambers MAT 460/560 Fall Semester 2009-10 Practice Final Exam 1. Let f(x) = sin 2x + cos 2x. (a) Write down the 2nd Taylor polynomial P 2 (x) of f(x) centered around x 0 = 0. (b) Write down the corresponding

More information

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

SBAME CALCULUS OF FINITE DIFFERENCES AND NUMERICAL ANLAYSIS-I Units : I-V SBAME CALCULUS OF FINITE DIFFERENCES AND NUMERICAL ANLAYSIS-I Units : I-V Unit I-Syllabus Solutions of Algebraic and Transcendental equations, Bisection method, Iteration Method, Regula Falsi method, Newton

More information

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

APPROXIMATION OF ROOTS OF EQUATIONS WITH A HAND-HELD CALCULATOR. Jay Villanueva Florida Memorial University Miami, FL APPROXIMATION OF ROOTS OF EQUATIONS WITH A HAND-HELD CALCULATOR Jay Villanueva Florida Memorial University Miami, FL jvillanu@fmunivedu I Introduction II III IV Classical methods A Bisection B Linear interpolation

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

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

UNIVERSITY OF CAMBRIDGE

UNIVERSITY OF CAMBRIDGE UNIVERSITY OF CAMBRIDGE DOWNING COLLEGE MATHEMATICS FOR ECONOMISTS WORKBOOK This workbook is intended for students coming to Downing College Cambridge to study Economics 2018/ 19 1 Introduction Mathematics

More information

An Overly Simplified and Brief Review of Differential Equation Solution Methods. 1. Some Common Exact Solution Methods for Differential Equations

An Overly Simplified and Brief Review of Differential Equation Solution Methods. 1. Some Common Exact Solution Methods for Differential Equations An Overly Simplified and Brief Review of Differential Equation Solution Methods We will be dealing with initial or boundary value problems. A typical initial value problem has the form y y 0 y(0) 1 A typical

More information

p 1 p 0 (p 1, f(p 1 )) (p 0, f(p 0 )) The geometric construction of p 2 for the se- cant method.

p 1 p 0 (p 1, f(p 1 )) (p 0, f(p 0 )) The geometric construction of p 2 for the se- cant method. 80 CHAP. 2 SOLUTION OF NONLINEAR EQUATIONS f (x) = 0 y y = f(x) (p, 0) p 2 p 1 p 0 x (p 1, f(p 1 )) (p 0, f(p 0 )) The geometric construction of p 2 for the se- Figure 2.16 cant method. Secant Method The

More information

University of Houston, Department of Mathematics Numerical Analysis, Fall 2005

University of Houston, Department of Mathematics Numerical Analysis, Fall 2005 3 Numerical Solution of Nonlinear Equations and Systems 3.1 Fixed point iteration Reamrk 3.1 Problem Given a function F : lr n lr n, compute x lr n such that ( ) F(x ) = 0. In this chapter, we consider

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

MODULE 1: FOUNDATIONS OF MATHEMATICS

MODULE 1: FOUNDATIONS OF MATHEMATICS MODULE 1: FOUNDATIONS OF MATHEMATICS GENERAL OBJECTIVES On completion of this Module, students should: 1. acquire competency in the application of algebraic techniques; 2. appreciate the role of exponential

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

CE 205 Numerical Methods. Some of the analysis methods you have used so far.. Algebra Calculus Differential Equations etc.

CE 205 Numerical Methods. Some of the analysis methods you have used so far.. Algebra Calculus Differential Equations etc. CE 205 Numerical Methods Dr. Charisma Choudhury Lecture 1 March 30, 2009 Objective Some of the analysis methods you have used so far.. Algebra Calculus Differential Equations etc. Often not possible to

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

Numerical and Statistical Methods

Numerical and Statistical Methods F.Y. B.Sc.(IT) : Sem. II Numerical and Statistical Methods Time : ½ Hrs.] Prelim Question Paper Solution [Marks : 75 Q. Attempt any THREE of the following : [5] Q.(a) What is a mathematical model? With

More information

Numerical and Statistical Methods

Numerical and Statistical Methods F.Y. B.Sc.(IT) : Sem. II Numerical and Statistical Methods Time : ½ Hrs.] Prelim Question Paper Solution [Marks : 75 Q. Attempt any THREE of the following : [5] Q.(a) What is a mathematical model? With

More information

Numerical mathematics with GeoGebra in high school

Numerical mathematics with GeoGebra in high school Herceg 2009/2/18 23:36 page 363 #1 6/2 (2008), 363 378 tmcs@inf.unideb.hu http://tmcs.math.klte.hu Numerical mathematics with GeoGebra in high school Dragoslav Herceg and Ðorđe Herceg Abstract. We have

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

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

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

AP Calculus Summer Assignment - Part 1

AP Calculus Summer Assignment - Part 1 2017-2018 AP CALCULUS SUMMER ASSIGNMENT Linear Functions AP Calculus Summer Assignment - Part 1 Determine the equation of the line that passes through the given points 1. (0,-1) and (5,9) 2. (-2,-1) and

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

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

MATHEMATICS LEARNING AREA. Methods Units 1 and 2 Course Outline. Week Content Sadler Reference Trigonometry

MATHEMATICS LEARNING AREA. Methods Units 1 and 2 Course Outline. Week Content Sadler Reference Trigonometry MATHEMATICS LEARNING AREA Methods Units 1 and 2 Course Outline Text: Sadler Methods and 2 Week Content Sadler Reference Trigonometry Cosine and Sine rules Week 1 Trigonometry Week 2 Radian Measure Radian

More information

a x a y = a x+y a x a = y ax y (a x ) r = a rx and log a (xy) = log a (x) + log a (y) log a ( x y ) = log a(x) log a (y) log a (x r ) = r log a (x).

a x a y = a x+y a x a = y ax y (a x ) r = a rx and log a (xy) = log a (x) + log a (y) log a ( x y ) = log a(x) log a (y) log a (x r ) = r log a (x). You should prepare the following topics for our final exam. () Pre-calculus. (2) Inverses. (3) Algebra of Limits. (4) Derivative Formulas and Rules. (5) Graphing Techniques. (6) Optimization (Maxima and

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

Root Finding Methods

Root Finding Methods 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

More information

INTRODUCTION TO COMPUTATIONAL MATHEMATICS

INTRODUCTION TO COMPUTATIONAL MATHEMATICS INTRODUCTION TO COMPUTATIONAL MATHEMATICS Course Notes for CM 271 / AMATH 341 / CS 371 Fall 2007 Instructor: Prof. Justin Wan School of Computer Science University of Waterloo Course notes by Prof. Hans

More information

Virtual University of Pakistan

Virtual University of Pakistan Virtual University of Pakistan File Version v.0.0 Prepared For: Final Term Note: Use Table Of Content to view the Topics, In PDF(Portable Document Format) format, you can check Bookmarks menu Disclaimer:

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

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