Docsity

Introduction to numerical methods, Study notes of Mathematics

Partial preview of the text

Download Introduction to numerical methods and more Study notes Mathematics in PDF only on Docsity!

INTRODUCTION: In this chapter we shall discuss some numerical methods for solving

algebraic and transcendental equations. The equation is said to be algebraic if is purely a polynomial in. If contains some other functions, namely, Trigonometric, Logarithmic, Exponential, etc., then the equation is called a Transcendental

Equation. The equations – are algebraic. The equations , – and are transcendental.

Roots of a function

One of the most common problem encountered in engineering analysis is that given a function , find the values of for which. The solution (values of ) are known as the roots of the equation , or the zeroes of the function. The roots of equations may be real or complex. In general, an equation may have any number of (real) roots, or no roots at

all. For example, – has a single root, namely, x = 0, whereas has infinite number of roots (x = 0, ± , ± 2 , 3 ,…). There are two types of methods available to find the roots of algebraic and transcendental equations of the form.

1. Direct Methods: Direct methods give the exact value of the roots in a finite number of steps. We assume here that there are no round off errors. Direct methods determine all the roots at the same time. For a quadratic equation the roots of the equation is obtained by √ and √ . These are called closed form solution. Similar formula

also available for cubic and bi-quadratic polynomial equations but we rarely remember them. For higher order polynomial equations and non-polynomials it is difficult and in many cases impossible to get closed form solutions.

2. Indirect or Iterative Methods: Indirect or iterative methods are also known as trial and error methods, and based on the concept of successive approximations. The general procedure is to start with one or more initial approximation to the root and obtain a sequence of iterates ( ) which in the limit converges to the actual or true solution to the root. Indirect or iterative methods determine one or two roots at a time. The above quadratic equation can be found by iterative (indirect) method in the following manner.

In general the solutions of non-linear equations Classified as: Analytical Solutions: extracted by analytical method.

Graphical solution: extracted by graphical method. Numerical solution: extracted by numerical method.

In this chapter, we present the following indirect or iterative or numerical methods those used to solve non-linear equations with illustrative examples. These are:

  1. Bisection Method
  2. Fixed point method(iterative method)
  3. Method of False Position (Regular Falsi Method)
  4. Secant Method.
  5. Newton-Raphson Method (Newton’s method) Theorem (Intermediate value theorem): If a function continuos on and let are opposite in signs, then the interval will contain at least one root of the equation in (see the figure below) 1. Bisection (Bolzano) Method

Bisection method is the consequence of intermediate value theorem. This is one of the

simplest iterative methods and is strongly based on the property of intervals (bracketing).

Step4( Stopping criteria ): stop evaluation when the absolute difference of two successive values of obtained from step2, is numerically less than prescribed error tolerance accuracy (i.e. | |/ < ) In applying bisection method, the interval width reduced by a factor of one half at each steps and

at the end of the step, the new interval will be of length.

Disadvantage of the bisection method

 It is a slow to converge. Finding the root with small tolerance requires a large number of bisections.  Need to find initial guesses for and.  Cannot detect multiple roots.  Bisection method cannot be applied over an interval where the function takes always values of the same sign.  Bisection method cannot be applied over an interval where there is a discontinuity.  If one of the initial guesses or is closer to the exact solution, it will take larger number of iterations to reach the root.

  1. False Position (Regula-falsi) method The method of False Position (also called the Regular Falsi method, and the chord method) is another well-known bracketing method. It is very similar to Bisection method with the exception that it uses a different strategy to end up with its new root estimate. Rather than bisecting the interval it locates the root by joining and with a straight line. The intersections of this line with the represents an improved estimate of the root.

Note: The merits and demerits of regular-Falsi method are more or less similar to bisection method.

3. Fixed Point Iteration (Iteration) method A fixed point for a function is a number at which the value of the function does not change when the function is applied. Definition : The number is a fixed point for a given function g if. Example: Determine any fixed points of the function. Solution A fixed point p for g has the property that which implies that

Algorithm To find the root of , given a value reasonably close to the root.

  1. Rearrange the equation to an equivalent form of and take the initial value

Note:

  1. It requires a starting interval containing a change of sign. Therefore it cannot find repeated roots.
  2. It has a fixed rate of convergence, which can be much slower than other methods , requiring more iterations to find the root to a given degree of precision. 4. Newton’s method

Generalized Newton Method

If r if the root of with multiplicity p, then the corresponding iteration formula is

 Advantages

Newton-Raphson is a convenient method if (the derivative) can be evaluated analytically.  Rate of convergence is quadratic /Newton method can converge very quickly/, i.e. the error is roughly proportional to the square of the previous error.  Use one initial gusses.

 Disadvantages

 it does not always converge   There is no convergence criterion  Sometimes, it may converge very slowly. For example, to solve the equation , 38 iterations are required.

5. Secant Method

The secant method is very similar to the Newton-Raphson method. The main disadvantage of the Newton-Raphson method is that the method requires the determination of the derivatives of the function at several points. Often, the calculation of these derivatives takes too much time. In some cases, a closed-form expression for may difficult to obtain or may not be available. To remove this drawback of the Newton-Raphson method, the derivatives of the function being