SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Downloaden Sie, um offline zu lesen
INDUSTRIAL UNIVERSITY OF SANTANDER
                            SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING
                                PETROLEUM ENGINEERING SCHOOL
                               Numerical Methods in Petroleum Engineering




                      ROOTS OF EQUATIONS


Author: MILEIDY LORENA ACOSTA CREUS
Code: 2073966
Group: O1
Teacher: Ph.D. Eduardo Carrillo Zambrano



   1. GRAPHICAL METHOD

It is a simple method to obtain an approximation to the equation root f(x) =0. It
consists of to plot the function and determine where it crosses the x-axis. At this point,
which represents the x value where f(x) =0, offer an initial approximation of the root.
The graphical method is necessary to use any method to find roots, due to it allows
us to have a value or a domain values in which the function will be evaluated, due to
these will be next to the root. Likewise, with this method we can indentify if the
function has several roots.

For instance:




                                                        Root
INDUSTRIAL UNIVERSITY OF SANTANDER
                           SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING
                               PETROLEUM ENGINEERING SCHOOL
                              Numerical Methods in Petroleum Engineering




   2. CLOSED METHODS

The key feature of these methods is that we evaluate a domain or range in which
values are close to the function root; these methods are known as convergent. Within
the closed methods are the following methods:

   2.1.   BISECTION (Also called Bolzano method)

The method feature lie in look for an interval where the function changes its sign
when is analyzed. The location of the sign change gets more accurately by dividing
the interval in a defined amount of sub-intervals. Each of this sub intervals are
evaluated to find the sign change. The approximation to the root improves according
to the sub-intervals are getting smaller.

The procedure is the following:

Step 1: Choose lower, xo, and upper, xf, values, which enclose the root, so that the
function changes sign in the interval. Verify if Bolzano method is satisfied:

                                     ( )      (   )

Step 2: An approximation of the xr root, is determined by:




Step 3: Realize the following evaluations to determine in what subinterval the root
is:

   a) If ( ) ( )            then the root is within the lower or left subinterval. So, to
      do xf=xr and return to step 2.
   b) If ( ) ( )           then the root is within the top or right subinterval. So, to do
      x0=xr and return to step 2.

Step 4: If ( )     ( )       the root is equal to xr; the calculations ends.
INDUSTRIAL UNIVERSITY OF SANTANDER
                            SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING
                                PETROLEUM ENGINEERING SCHOOL
                                 Numerical Methods in Petroleum Engineering




The maximum number of iterations to obtain the root value is given by the following
equation:

                                  |   |
                                 (    )           Where: TOL = Tolerance
                           ( )




   2.2.   THE METHOD OF FALSE POSITION



Although the bisection method is technically valid to determine roots, its focus is
relatively inefficient. Therefore this method is an improved alternative based on an
idea for a more efficient approach to the root.

This method raises draw a straight line joining the two interval points (x, y) and (x1,
y1), the cut generated by the x-axis allows greater approximation to the root.

Using similar triangles, the intersection can be calculated as follows:

                                          (   )      (   )
INDUSTRIAL UNIVERSITY OF SANTANDER
                           SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING
                               PETROLEUM ENGINEERING SCHOOL
                              Numerical Methods in Petroleum Engineering




The final equation for False position method is:

                                             ( )(           )
                                             ( )        (   )

The calculation of the root xr requires replacing one of the other two values so that
they always have opposite signs, what leads these two points always enclose the
root.

Note: Sometimes, depending on the function, this method works poorly, while the
bisection method leads better approximations.


   3. OPEN METHODS



These methods are based on formulas that require a single initial value x, or a couple
of them but do not necessarily that contain the root. Because of this feature,
sometimes these methods diverge or move away from the root, according to grows
the number of iterations. It is important to know that when the open methods
converge, these are more efficient than methods that use intervals.

Opened methods are:
INDUSTRIAL UNIVERSITY OF SANTANDER
                             SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING
                                 PETROLEUM ENGINEERING SCHOOL
                                Numerical Methods in Petroleum Engineering




   3.1.    SINGLE ITERATION OF FIXED POINT

Open methods employ a formula that predicts the root, this formula can be developed
for a single iteration of a fixed point (also called point iteration or successive
substitution) to change the equation f (x) = 0 so that is:


                                             x=g(x)

Tal formula es empleada para predecir un nuevo valor de x en función del valor
anterior de x, a través de:
This formula is employ to predict a new x value in function of the previous x valor,
through:
                                         xi+1=g(xi)

Posteriormente, estas iteraciones son usadas para calcular el error aproximado de tal
manera que el mínimo error indique la raíz de la función en cuestión.
Subsequently, these iterations are used to calculate the approximate error so that the
least error indicates the root of the function in matter.


                                         |           |


Example
Use simple iteration of a fixed point to locate the root of f(x) = e-x – x

Solution: Like f(x)=0  e-x – x=0
Expressing of the form x=g(x) result us: x= e-x
Beginning with an initial value of xo=0, we can apply the iterative equation xi+1=g(xi)
and calculate:

                    i            xi                 Ea(%)             Et(%)
                    0             0                                   100.0
                    1         1.000000              100.0             76.3
                    2         0.367879              171.8             35.1
                    3         0.692201              46.9              22.1
                    4         0.500473              38.3              11.8
INDUSTRIAL UNIVERSITY OF SANTANDER
                            SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING
                                PETROLEUM ENGINEERING SCHOOL
                               Numerical Methods in Petroleum Engineering




                   5         0.606244               17.4             6.89
                   6         0.545396               11.2             3.83
                   7         0.579612               5.90             2.20
                   8         0.560115               3.48             1.24
                   9         0.571143               1.93             0.705
                   10        0.564879               1.11             0.399

Thus, each iteration bring near increasingly to the estimated value with the true value
of the root, that is to say 0.56714329

   3.2.   NEWTON-RAPHSON METHOD

The most widely used formula to find roots, is the Newton Raphson, argues that if it
indicates the initial value of x1 as the value of the root, then it is possible to extend a
tangent line from the point (x1,f(x1)). Where this straight line crosses the x-axis will be
the point of improve approach.
This method could derived in a graphically or using Taylor’s series.
Newton Raphson formula
                                              ( )
                                       ( )

From its reorder is obtained the value of the desired root.

                                                     ( )
                                                    (    )
INDUSTRIAL UNIVERSITY OF SANTANDER
                            SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING
                                PETROLEUM ENGINEERING SCHOOL
                               Numerical Methods in Petroleum Engineering




Note: The Newton Raphson method has a strong issue for its implementation, this is
due to the derivative, as in some functions is extremely difficult to evaluate the
derivative.

   3.3.   SECANT METHOD

The secant method allows an approximation of the derivative by means of a divided
difference; this method avoids falling into the Newton-Raphson problem, as it applies
for all functions regardless of whether they have difficulty in evaluating its derivative.
The approximation of the derivative is obtained as follows:

                                            (      )     ( )
                                   ( )


Substituting this equation in the Newton Raphson formula we get:

                                                ( )(         )
                                                 (   )    ( )

The above equation is the secant formula.


   4. MULTIPLES ROOTS

A multiple root corresponds to a point where a function is tangential to the x axis For
instance, double root results of:

                    f(x)=(x – 3)(x – 1)(x – 1) ó f(x)=x3 – 5x2 – 7x – 3

Because a value of x makes two terms in the previous equation are zero. Graphically
this means that the curve tangentially touches the x axis in the double root. The
function touches the axis but not cross in the root.
INDUSTRIAL UNIVERSITY OF SANTANDER
                            SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING
                                PETROLEUM ENGINEERING SCHOOL
                                Numerical Methods in Petroleum Engineering




                            4

                                        Double                f(x)
                                         Root

                            0

                                    1                     3

                            4



A triple root corresponds to the case where a value of x makes three terms in an
equation equal to zero, as:

            f(x)=(x – 3)(x – 1)(x – 1)(x – 1) ó f(x)=x4 – 6x3 + 12x2– 10x + 3

In this case the function is tangent to the axis at the root and crosses the axis.




In general, odd multiplicity of roots crosses the axis, while the pair multiplicity does
not cross.
1. The fact that the function does not change sign on multiple pairs roots prevents the
use of reliable methods that use intervals.
2. Not only f(x) but also f'(x) approach to zero. These problems affect the Newton-
Raphson and the secant methods, which contain derivatives in the denominator of
their respective formulas.
INDUSTRIAL UNIVERSITY OF SANTANDER
                            SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING
                                PETROLEUM ENGINEERING SCHOOL
                               Numerical Methods in Petroleum Engineering




Some modifications have been proposed to alleviate these problems, Ralston and
Rabinowitz (1978) proposed the following formulas:

a) Root Multiplicity
                                                      ( )
                                                      ( )

Where m is the root multiplicity (ie, m=2 for a double root, m=3 for a triple root, etc.).
This formulation may be unsatisfactory because it presumes the root multiplicity
knowledge.

b) New Function
                                                  ( )
                                         ( )
                                                  ( )

The new function is replaced in the Newton-Raphson’s method equation, so you get
an alternative:

                                               ( ) ( )
                                           ( )     ( ) ( )

c) Modification of the Secant Method

Substituting the new function (explained previously) in the equation of the secant
method, we have
                                        ( )(           )
                                         (    )    ( )



   5. POLYNOMIALS ROOTS

Below are described the methods to find polynomial equations roots of the general
form:
                        ( )
INDUSTRIAL UNIVERSITY OF SANTANDER
                            SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING
                                PETROLEUM ENGINEERING SCHOOL
                               Numerical Methods in Petroleum Engineering



                        Where n is the polynomial order and the a are
constant coefficients. The roots of such polynomials have the following rules:

   a. For equation of order n, there are n real or complex roots. It should be noted
      that these roots are not necessarily different.
   b. If n is odd, there is at least one real root.
   c. If the roots are complex, there is a conjugate pair (esto es, λ + µi y λ - µi)
      where       √

   5.1.   Müller’s Method

A predecessor of Muller method is the secant method, which obtain root, estimating a
projection of a straight line on the x-axis through two function values
(Figure1). Muller's method takes a similar view, but projected a parabola through
three points (Figure2).

The method consist in to obtain the coefficients of the three points, replace them in
the quadratic formula and get the point where the parabola intersects the x-axis The
approach is easy to write, as appropriate this would be:

                             ( )     (        )      (        )




Shape 1                                        Shape 2

Thus, this parable is used to intersect the three points [x0, f(x0)], [x1, f(x1)] and [x2,
f(x2)]. The coefficients of the previous equation are evaluated by substituting one of
these three points to make:
INDUSTRIAL UNIVERSITY OF SANTANDER
                              SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING
                                  PETROLEUM ENGINEERING SCHOOL
                                   Numerical Methods in Petroleum Engineering



                          (    )        (               )            (               )
                              ( )           (               )            (               )
                              ( )           (               )            (               )

The last equation generated that                    ( )                  system of two equations with two
unknowns:
                     ( )    ( )                         (                )           (               )
                    ( )    ( )                      (                )           (               )

Defining this way:
                                 (                )                          (               )
                               ( )              ( )                              ( )             ( )



Substituting in the system:
                        (           )           (                )



The coefficients are:




                                                                ( )



Finding the root, the conventional solution is implemented, but due to rounding error
potential, we use an alternative formulation:



                                                                 √

The great advantage of this method is that we find real and imaginary roots.
Finding the error this will be:
INDUSTRIAL UNIVERSITY OF SANTANDER
                           SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING
                               PETROLEUM ENGINEERING SCHOOL
                              Numerical Methods in Petroleum Engineering




                                        |         |



To be an approximation method, this is performed sequentially and iteratively, where
x1, x2, x3replace the points x0, x1, x2 carrying the error to a value close to zero.


   5.2.   Bairstow’s Method

Bairstow's method is an iterative process related approximately with Muller and
Newton-Raphson methods. The mathematical process depends of dividing the
polynomial between a factor.

Given a polynomial fn(x) find two factors, a quadratic polynomial
                                f2(x) = x2 – rx – s y fn-2(x)

The general procedure for the Bairstow method is:

   1. Given fn(x) y r0 y s0
   2. Using Newton-Raphson method calculate f2(x) = x2 – r0x – s0 y fn-2(x), such as,
      the residue of fn(x)/ f2(x) be equal to zero.
   3. The roots f2(x) are determined, using the general formula.
   4. Calculate fn-2(x)= fn(x)/ f2(x).
   5. Do fn(x)= fn-2(x)
   6. If the polynomial degree is greater than three, back to step 2
   7. If not, we finish

The main difference of this method in relation to others, allows calculating all the
polynomial roots (real and imaginaries).

To calculate the polynomials division, we use the synthetic division. So given

                      fn(x) = anxn + an-1xn-1 + … + a2x2 + a1x + a0

By dividing between f2(x) = x2 – rx – s, we have as a result the following polynomial
INDUSTRIAL UNIVERSITY OF SANTANDER
                            SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING
                                PETROLEUM ENGINEERING SCHOOL
                               Numerical Methods in Petroleum Engineering




                         fn-2(x) = bnxn-2 + bn-1xn-3 + … + b3x + b2

With a residue R = b1(x-r) + b0, the residue will be zero only if b1 and b0 are.

The terms b and c, are calculated using the following recurrence relation:

                                           bn = a n
                                      bn-1 = an-1 + rbn
                                   bi = ai + rbi+1 + sbi+2

                                           cn = bn
                                      cn-1 = bn-1 + rcn
                                   ci = bi + rci+1 + sci+2

Finally, the approximate error in r and s can be estimated as:
                                    |    |   |   |

                                    |    |   |   |


When both estimated errors failed, the roots values can be determined as:
                                           √




BIBLIOGRAPHY

       CHAPRA, Steven. Numerical Methods for engineers. Editorial McGraw-Hill.
       Third edition. 2000.
       http://lc.fie.umich.mx/~calderon/programacion/Mnumericos/Bairstow.html
       http://illuminatus.bizhat.com/metodos/biseccion.htm
       http://aprendeenlinea.udea.edu.co/lms/moodle/mod/resource/view.php?inpopu
       p=true&id=24508

Weitere ähnliche Inhalte

Was ist angesagt?

The False-Position Method
The False-Position MethodThe False-Position Method
The False-Position MethodTayyaba Abbas
 
Root Equations Methods
Root Equations MethodsRoot Equations Methods
Root Equations MethodsUIS
 
Muller method
Muller methodMuller method
Muller methodJeannie
 
Bracketing or closed methods
Bracketing or closed methodsBracketing or closed methods
Bracketing or closed methodsandrushow
 
Calculations of roots
Calculations of rootsCalculations of roots
Calculations of rootsoscar
 
Regula Falsi (False position) Method
Regula Falsi (False position) MethodRegula Falsi (False position) Method
Regula Falsi (False position) MethodIsaac Yowetu
 
Matlab lecture 7 – regula falsi or false position method@taj
Matlab lecture 7 – regula falsi or false position method@tajMatlab lecture 7 – regula falsi or false position method@taj
Matlab lecture 7 – regula falsi or false position method@tajTajim Md. Niamat Ullah Akhund
 
Bisection & Regual falsi methods
Bisection & Regual falsi methodsBisection & Regual falsi methods
Bisection & Regual falsi methodsDivya Bhatia
 
The fundamental thorem of algebra
The fundamental thorem of algebraThe fundamental thorem of algebra
The fundamental thorem of algebralucysolischar
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson methodMeet Patel
 

Was ist angesagt? (18)

The False-Position Method
The False-Position MethodThe False-Position Method
The False-Position Method
 
Metodo de muller
Metodo de mullerMetodo de muller
Metodo de muller
 
Presentation aust final
Presentation aust finalPresentation aust final
Presentation aust final
 
Root Equations Methods
Root Equations MethodsRoot Equations Methods
Root Equations Methods
 
Bisection
BisectionBisection
Bisection
 
Muller method
Muller methodMuller method
Muller method
 
Roots of polynomials
Roots of polynomialsRoots of polynomials
Roots of polynomials
 
Bracketing or closed methods
Bracketing or closed methodsBracketing or closed methods
Bracketing or closed methods
 
Calculations of roots
Calculations of rootsCalculations of roots
Calculations of roots
 
Regula Falsi (False position) Method
Regula Falsi (False position) MethodRegula Falsi (False position) Method
Regula Falsi (False position) Method
 
Matlab lecture 7 – regula falsi or false position method@taj
Matlab lecture 7 – regula falsi or false position method@tajMatlab lecture 7 – regula falsi or false position method@taj
Matlab lecture 7 – regula falsi or false position method@taj
 
Chapter 3 roots of equations
Chapter 3 roots of equationsChapter 3 roots of equations
Chapter 3 roots of equations
 
Bisection & Regual falsi methods
Bisection & Regual falsi methodsBisection & Regual falsi methods
Bisection & Regual falsi methods
 
03 optimization
03 optimization03 optimization
03 optimization
 
The fundamental thorem of algebra
The fundamental thorem of algebraThe fundamental thorem of algebra
The fundamental thorem of algebra
 
Calc 4.4b
Calc 4.4bCalc 4.4b
Calc 4.4b
 
newton raphson method
newton raphson methodnewton raphson method
newton raphson method
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 

Andere mochten auch

Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methodsTarun Gehlot
 
Exercises roots equations
Exercises roots equationsExercises roots equations
Exercises roots equationsMileacre
 
Chapter 2: Numerical Approximation
Chapter 2: Numerical ApproximationChapter 2: Numerical Approximation
Chapter 2: Numerical ApproximationMaria Fernanda
 
Método de Newton-Raphson para hallar la Temperatura Adiabática de la Flama
Método de Newton-Raphson para hallar la Temperatura Adiabática de la FlamaMétodo de Newton-Raphson para hallar la Temperatura Adiabática de la Flama
Método de Newton-Raphson para hallar la Temperatura Adiabática de la FlamaIQMPacheco
 
Newton Raphson Method Using C Programming
Newton Raphson Method Using C Programming Newton Raphson Method Using C Programming
Newton Raphson Method Using C Programming Md Abu Bakar Siddique
 
Numerical analysis (Bisectional method) application
Numerical analysis (Bisectional method) applicationNumerical analysis (Bisectional method) application
Numerical analysis (Bisectional method) applicationMonsur Ahmed Shafiq
 
Poderes caloríficos superior y inferior
Poderes caloríficos superior y inferiorPoderes caloríficos superior y inferior
Poderes caloríficos superior y inferiorGufineitor Gufi Neitor
 
Newton-Raphson Method
Newton-Raphson MethodNewton-Raphson Method
Newton-Raphson MethodJigisha Dabhi
 
Combustibles y poder calorífico
Combustibles y poder caloríficoCombustibles y poder calorífico
Combustibles y poder caloríficoCesar Renteria
 
APUNTES Y EJERCICIOS RESUELTOS DE ANALISIS NUMERICO
APUNTES Y EJERCICIOS RESUELTOS DE ANALISIS NUMERICOAPUNTES Y EJERCICIOS RESUELTOS DE ANALISIS NUMERICO
APUNTES Y EJERCICIOS RESUELTOS DE ANALISIS NUMERICOJulio Ruano
 
Newton Raphson method for load flow analysis
Newton Raphson method for load flow analysisNewton Raphson method for load flow analysis
Newton Raphson method for load flow analysisdivyanshuprakashrock
 
Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Asad Ali
 
Application of Numerical method in Real Life
Application of Numerical method in Real LifeApplication of Numerical method in Real Life
Application of Numerical method in Real LifeTaqwa It Center
 
Ejercicios resueltos- de metodos
Ejercicios resueltos- de metodosEjercicios resueltos- de metodos
Ejercicios resueltos- de metodosMichael Dhgfhr
 

Andere mochten auch (18)

Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
Chapter v
Chapter vChapter v
Chapter v
 
Exercises roots equations
Exercises roots equationsExercises roots equations
Exercises roots equations
 
Chapter 2: Numerical Approximation
Chapter 2: Numerical ApproximationChapter 2: Numerical Approximation
Chapter 2: Numerical Approximation
 
Método de Newton-Raphson para hallar la Temperatura Adiabática de la Flama
Método de Newton-Raphson para hallar la Temperatura Adiabática de la FlamaMétodo de Newton-Raphson para hallar la Temperatura Adiabática de la Flama
Método de Newton-Raphson para hallar la Temperatura Adiabática de la Flama
 
Newton Raphson Method Using C Programming
Newton Raphson Method Using C Programming Newton Raphson Method Using C Programming
Newton Raphson Method Using C Programming
 
Numerical analysis (Bisectional method) application
Numerical analysis (Bisectional method) applicationNumerical analysis (Bisectional method) application
Numerical analysis (Bisectional method) application
 
Poderes caloríficos superior y inferior
Poderes caloríficos superior y inferiorPoderes caloríficos superior y inferior
Poderes caloríficos superior y inferior
 
APLICACIÓN DEL MÉTODO DE NEWTON RAPHSON
APLICACIÓN DEL MÉTODO DE NEWTON RAPHSONAPLICACIÓN DEL MÉTODO DE NEWTON RAPHSON
APLICACIÓN DEL MÉTODO DE NEWTON RAPHSON
 
Newton-Raphson Method
Newton-Raphson MethodNewton-Raphson Method
Newton-Raphson Method
 
Combustibles y poder calorífico
Combustibles y poder caloríficoCombustibles y poder calorífico
Combustibles y poder calorífico
 
APPLICATION OF NUMERICAL METHODS IN SMALL SIZE
APPLICATION OF NUMERICAL METHODS IN SMALL SIZEAPPLICATION OF NUMERICAL METHODS IN SMALL SIZE
APPLICATION OF NUMERICAL METHODS IN SMALL SIZE
 
APUNTES Y EJERCICIOS RESUELTOS DE ANALISIS NUMERICO
APUNTES Y EJERCICIOS RESUELTOS DE ANALISIS NUMERICOAPUNTES Y EJERCICIOS RESUELTOS DE ANALISIS NUMERICO
APUNTES Y EJERCICIOS RESUELTOS DE ANALISIS NUMERICO
 
Newton Raphson method for load flow analysis
Newton Raphson method for load flow analysisNewton Raphson method for load flow analysis
Newton Raphson method for load flow analysis
 
Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)
 
Numerical method
Numerical methodNumerical method
Numerical method
 
Application of Numerical method in Real Life
Application of Numerical method in Real LifeApplication of Numerical method in Real Life
Application of Numerical method in Real Life
 
Ejercicios resueltos- de metodos
Ejercicios resueltos- de metodosEjercicios resueltos- de metodos
Ejercicios resueltos- de metodos
 

Ähnlich wie Roots of equations

83662164 case-study-1
83662164 case-study-183662164 case-study-1
83662164 case-study-1homeworkping3
 
A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...
A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...
A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...Stephen Faucher
 
Roots of equations
Roots of equationsRoots of equations
Roots of equationsMileacre
 
Equations root
Equations rootEquations root
Equations rootMileacre
 
Numerical Study of Some Iterative Methods for Solving Nonlinear Equations
Numerical Study of Some Iterative Methods for Solving Nonlinear EquationsNumerical Study of Some Iterative Methods for Solving Nonlinear Equations
Numerical Study of Some Iterative Methods for Solving Nonlinear Equationsinventionjournals
 
HOME ASSIGNMENT (0).pptx
HOME ASSIGNMENT (0).pptxHOME ASSIGNMENT (0).pptx
HOME ASSIGNMENT (0).pptxSayedulHassan1
 
MATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationMATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationAinul Islam
 
Numerical differentation with c
Numerical differentation with cNumerical differentation with c
Numerical differentation with cYagya Dev Bhardwaj
 
Numerical Analysis and Computer Applications
Numerical Analysis and Computer ApplicationsNumerical Analysis and Computer Applications
Numerical Analysis and Computer ApplicationsMujeeb UR Rahman
 
HOME ASSIGNMENT omar ali.pptx
HOME ASSIGNMENT omar ali.pptxHOME ASSIGNMENT omar ali.pptx
HOME ASSIGNMENT omar ali.pptxSayedulHassan1
 
ROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSfenil patel
 
Secent method
Secent methodSecent method
Secent methodritu1806
 
Non linearequationsmatlab
Non linearequationsmatlabNon linearequationsmatlab
Non linearequationsmatlabsheetslibrary
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equationsZunAib Ali
 
Non linearequationsmatlab
Non linearequationsmatlabNon linearequationsmatlab
Non linearequationsmatlabZunAib Ali
 

Ähnlich wie Roots of equations (20)

Chapter 2 roots of equations
Chapter 2 roots of equationsChapter 2 roots of equations
Chapter 2 roots of equations
 
Chapter 3 roots of equations
Chapter 3 roots of equationsChapter 3 roots of equations
Chapter 3 roots of equations
 
Chapter 3 roots of equations
Chapter 3 roots of equationsChapter 3 roots of equations
Chapter 3 roots of equations
 
Secant method
Secant methodSecant method
Secant method
 
83662164 case-study-1
83662164 case-study-183662164 case-study-1
83662164 case-study-1
 
A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...
A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...
A Comparison Of Iterative Methods For The Solution Of Non-Linear Systems Of E...
 
Roots of equations
Roots of equationsRoots of equations
Roots of equations
 
Equations root
Equations rootEquations root
Equations root
 
Numerical Study of Some Iterative Methods for Solving Nonlinear Equations
Numerical Study of Some Iterative Methods for Solving Nonlinear EquationsNumerical Study of Some Iterative Methods for Solving Nonlinear Equations
Numerical Study of Some Iterative Methods for Solving Nonlinear Equations
 
HOME ASSIGNMENT (0).pptx
HOME ASSIGNMENT (0).pptxHOME ASSIGNMENT (0).pptx
HOME ASSIGNMENT (0).pptx
 
MATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationMATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and Integration
 
OPERATIONS RESEARCH
OPERATIONS RESEARCHOPERATIONS RESEARCH
OPERATIONS RESEARCH
 
Numerical differentation with c
Numerical differentation with cNumerical differentation with c
Numerical differentation with c
 
Numerical Analysis and Computer Applications
Numerical Analysis and Computer ApplicationsNumerical Analysis and Computer Applications
Numerical Analysis and Computer Applications
 
HOME ASSIGNMENT omar ali.pptx
HOME ASSIGNMENT omar ali.pptxHOME ASSIGNMENT omar ali.pptx
HOME ASSIGNMENT omar ali.pptx
 
ROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONS
 
Secent method
Secent methodSecent method
Secent method
 
Non linearequationsmatlab
Non linearequationsmatlabNon linearequationsmatlab
Non linearequationsmatlab
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equations
 
Non linearequationsmatlab
Non linearequationsmatlabNon linearequationsmatlab
Non linearequationsmatlab
 

Mehr von Mileacre

Ejercicios propuestos diferenciacion e integracion o1
Ejercicios propuestos diferenciacion e integracion o1Ejercicios propuestos diferenciacion e integracion o1
Ejercicios propuestos diferenciacion e integracion o1Mileacre
 
Métodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMétodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMileacre
 
Métodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMétodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMileacre
 
Métodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMétodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMileacre
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximationMileacre
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximationMileacre
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximationMileacre
 
Mathematical models
Mathematical  modelsMathematical  models
Mathematical modelsMileacre
 
Ley de darcy o1 grupo 5
Ley de darcy o1 grupo 5Ley de darcy o1 grupo 5
Ley de darcy o1 grupo 5Mileacre
 
Cap. 1 resumen
Cap. 1 resumenCap. 1 resumen
Cap. 1 resumenMileacre
 

Mehr von Mileacre (10)

Ejercicios propuestos diferenciacion e integracion o1
Ejercicios propuestos diferenciacion e integracion o1Ejercicios propuestos diferenciacion e integracion o1
Ejercicios propuestos diferenciacion e integracion o1
 
Métodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMétodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones lineales
 
Métodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMétodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones lineales
 
Métodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones linealesMétodos directos para la solución de sistemas de ecuaciones lineales
Métodos directos para la solución de sistemas de ecuaciones lineales
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximation
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximation
 
Numerical approximation
Numerical approximationNumerical approximation
Numerical approximation
 
Mathematical models
Mathematical  modelsMathematical  models
Mathematical models
 
Ley de darcy o1 grupo 5
Ley de darcy o1 grupo 5Ley de darcy o1 grupo 5
Ley de darcy o1 grupo 5
 
Cap. 1 resumen
Cap. 1 resumenCap. 1 resumen
Cap. 1 resumen
 

Kürzlich hochgeladen

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 

Kürzlich hochgeladen (20)

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

Roots of equations

  • 1. INDUSTRIAL UNIVERSITY OF SANTANDER SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING PETROLEUM ENGINEERING SCHOOL Numerical Methods in Petroleum Engineering ROOTS OF EQUATIONS Author: MILEIDY LORENA ACOSTA CREUS Code: 2073966 Group: O1 Teacher: Ph.D. Eduardo Carrillo Zambrano 1. GRAPHICAL METHOD It is a simple method to obtain an approximation to the equation root f(x) =0. It consists of to plot the function and determine where it crosses the x-axis. At this point, which represents the x value where f(x) =0, offer an initial approximation of the root. The graphical method is necessary to use any method to find roots, due to it allows us to have a value or a domain values in which the function will be evaluated, due to these will be next to the root. Likewise, with this method we can indentify if the function has several roots. For instance: Root
  • 2. INDUSTRIAL UNIVERSITY OF SANTANDER SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING PETROLEUM ENGINEERING SCHOOL Numerical Methods in Petroleum Engineering 2. CLOSED METHODS The key feature of these methods is that we evaluate a domain or range in which values are close to the function root; these methods are known as convergent. Within the closed methods are the following methods: 2.1. BISECTION (Also called Bolzano method) The method feature lie in look for an interval where the function changes its sign when is analyzed. The location of the sign change gets more accurately by dividing the interval in a defined amount of sub-intervals. Each of this sub intervals are evaluated to find the sign change. The approximation to the root improves according to the sub-intervals are getting smaller. The procedure is the following: Step 1: Choose lower, xo, and upper, xf, values, which enclose the root, so that the function changes sign in the interval. Verify if Bolzano method is satisfied: ( ) ( ) Step 2: An approximation of the xr root, is determined by: Step 3: Realize the following evaluations to determine in what subinterval the root is: a) If ( ) ( ) then the root is within the lower or left subinterval. So, to do xf=xr and return to step 2. b) If ( ) ( ) then the root is within the top or right subinterval. So, to do x0=xr and return to step 2. Step 4: If ( ) ( ) the root is equal to xr; the calculations ends.
  • 3. INDUSTRIAL UNIVERSITY OF SANTANDER SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING PETROLEUM ENGINEERING SCHOOL Numerical Methods in Petroleum Engineering The maximum number of iterations to obtain the root value is given by the following equation: | | ( ) Where: TOL = Tolerance ( ) 2.2. THE METHOD OF FALSE POSITION Although the bisection method is technically valid to determine roots, its focus is relatively inefficient. Therefore this method is an improved alternative based on an idea for a more efficient approach to the root. This method raises draw a straight line joining the two interval points (x, y) and (x1, y1), the cut generated by the x-axis allows greater approximation to the root. Using similar triangles, the intersection can be calculated as follows: ( ) ( )
  • 4. INDUSTRIAL UNIVERSITY OF SANTANDER SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING PETROLEUM ENGINEERING SCHOOL Numerical Methods in Petroleum Engineering The final equation for False position method is: ( )( ) ( ) ( ) The calculation of the root xr requires replacing one of the other two values so that they always have opposite signs, what leads these two points always enclose the root. Note: Sometimes, depending on the function, this method works poorly, while the bisection method leads better approximations. 3. OPEN METHODS These methods are based on formulas that require a single initial value x, or a couple of them but do not necessarily that contain the root. Because of this feature, sometimes these methods diverge or move away from the root, according to grows the number of iterations. It is important to know that when the open methods converge, these are more efficient than methods that use intervals. Opened methods are:
  • 5. INDUSTRIAL UNIVERSITY OF SANTANDER SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING PETROLEUM ENGINEERING SCHOOL Numerical Methods in Petroleum Engineering 3.1. SINGLE ITERATION OF FIXED POINT Open methods employ a formula that predicts the root, this formula can be developed for a single iteration of a fixed point (also called point iteration or successive substitution) to change the equation f (x) = 0 so that is: x=g(x) Tal formula es empleada para predecir un nuevo valor de x en función del valor anterior de x, a través de: This formula is employ to predict a new x value in function of the previous x valor, through: xi+1=g(xi) Posteriormente, estas iteraciones son usadas para calcular el error aproximado de tal manera que el mínimo error indique la raíz de la función en cuestión. Subsequently, these iterations are used to calculate the approximate error so that the least error indicates the root of the function in matter. | | Example Use simple iteration of a fixed point to locate the root of f(x) = e-x – x Solution: Like f(x)=0  e-x – x=0 Expressing of the form x=g(x) result us: x= e-x Beginning with an initial value of xo=0, we can apply the iterative equation xi+1=g(xi) and calculate: i xi Ea(%) Et(%) 0 0 100.0 1 1.000000 100.0 76.3 2 0.367879 171.8 35.1 3 0.692201 46.9 22.1 4 0.500473 38.3 11.8
  • 6. INDUSTRIAL UNIVERSITY OF SANTANDER SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING PETROLEUM ENGINEERING SCHOOL Numerical Methods in Petroleum Engineering 5 0.606244 17.4 6.89 6 0.545396 11.2 3.83 7 0.579612 5.90 2.20 8 0.560115 3.48 1.24 9 0.571143 1.93 0.705 10 0.564879 1.11 0.399 Thus, each iteration bring near increasingly to the estimated value with the true value of the root, that is to say 0.56714329 3.2. NEWTON-RAPHSON METHOD The most widely used formula to find roots, is the Newton Raphson, argues that if it indicates the initial value of x1 as the value of the root, then it is possible to extend a tangent line from the point (x1,f(x1)). Where this straight line crosses the x-axis will be the point of improve approach. This method could derived in a graphically or using Taylor’s series. Newton Raphson formula ( ) ( ) From its reorder is obtained the value of the desired root. ( ) ( )
  • 7. INDUSTRIAL UNIVERSITY OF SANTANDER SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING PETROLEUM ENGINEERING SCHOOL Numerical Methods in Petroleum Engineering Note: The Newton Raphson method has a strong issue for its implementation, this is due to the derivative, as in some functions is extremely difficult to evaluate the derivative. 3.3. SECANT METHOD The secant method allows an approximation of the derivative by means of a divided difference; this method avoids falling into the Newton-Raphson problem, as it applies for all functions regardless of whether they have difficulty in evaluating its derivative. The approximation of the derivative is obtained as follows: ( ) ( ) ( ) Substituting this equation in the Newton Raphson formula we get: ( )( ) ( ) ( ) The above equation is the secant formula. 4. MULTIPLES ROOTS A multiple root corresponds to a point where a function is tangential to the x axis For instance, double root results of: f(x)=(x – 3)(x – 1)(x – 1) ó f(x)=x3 – 5x2 – 7x – 3 Because a value of x makes two terms in the previous equation are zero. Graphically this means that the curve tangentially touches the x axis in the double root. The function touches the axis but not cross in the root.
  • 8. INDUSTRIAL UNIVERSITY OF SANTANDER SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING PETROLEUM ENGINEERING SCHOOL Numerical Methods in Petroleum Engineering 4 Double f(x) Root 0 1 3 4 A triple root corresponds to the case where a value of x makes three terms in an equation equal to zero, as: f(x)=(x – 3)(x – 1)(x – 1)(x – 1) ó f(x)=x4 – 6x3 + 12x2– 10x + 3 In this case the function is tangent to the axis at the root and crosses the axis. In general, odd multiplicity of roots crosses the axis, while the pair multiplicity does not cross. 1. The fact that the function does not change sign on multiple pairs roots prevents the use of reliable methods that use intervals. 2. Not only f(x) but also f'(x) approach to zero. These problems affect the Newton- Raphson and the secant methods, which contain derivatives in the denominator of their respective formulas.
  • 9. INDUSTRIAL UNIVERSITY OF SANTANDER SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING PETROLEUM ENGINEERING SCHOOL Numerical Methods in Petroleum Engineering Some modifications have been proposed to alleviate these problems, Ralston and Rabinowitz (1978) proposed the following formulas: a) Root Multiplicity ( ) ( ) Where m is the root multiplicity (ie, m=2 for a double root, m=3 for a triple root, etc.). This formulation may be unsatisfactory because it presumes the root multiplicity knowledge. b) New Function ( ) ( ) ( ) The new function is replaced in the Newton-Raphson’s method equation, so you get an alternative: ( ) ( ) ( ) ( ) ( ) c) Modification of the Secant Method Substituting the new function (explained previously) in the equation of the secant method, we have ( )( ) ( ) ( ) 5. POLYNOMIALS ROOTS Below are described the methods to find polynomial equations roots of the general form: ( )
  • 10. INDUSTRIAL UNIVERSITY OF SANTANDER SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING PETROLEUM ENGINEERING SCHOOL Numerical Methods in Petroleum Engineering Where n is the polynomial order and the a are constant coefficients. The roots of such polynomials have the following rules: a. For equation of order n, there are n real or complex roots. It should be noted that these roots are not necessarily different. b. If n is odd, there is at least one real root. c. If the roots are complex, there is a conjugate pair (esto es, λ + µi y λ - µi) where √ 5.1. Müller’s Method A predecessor of Muller method is the secant method, which obtain root, estimating a projection of a straight line on the x-axis through two function values (Figure1). Muller's method takes a similar view, but projected a parabola through three points (Figure2). The method consist in to obtain the coefficients of the three points, replace them in the quadratic formula and get the point where the parabola intersects the x-axis The approach is easy to write, as appropriate this would be: ( ) ( ) ( ) Shape 1 Shape 2 Thus, this parable is used to intersect the three points [x0, f(x0)], [x1, f(x1)] and [x2, f(x2)]. The coefficients of the previous equation are evaluated by substituting one of these three points to make:
  • 11. INDUSTRIAL UNIVERSITY OF SANTANDER SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING PETROLEUM ENGINEERING SCHOOL Numerical Methods in Petroleum Engineering ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) The last equation generated that ( ) system of two equations with two unknowns: ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) Defining this way: ( ) ( ) ( ) ( ) ( ) ( ) Substituting in the system: ( ) ( ) The coefficients are: ( ) Finding the root, the conventional solution is implemented, but due to rounding error potential, we use an alternative formulation: √ The great advantage of this method is that we find real and imaginary roots. Finding the error this will be:
  • 12. INDUSTRIAL UNIVERSITY OF SANTANDER SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING PETROLEUM ENGINEERING SCHOOL Numerical Methods in Petroleum Engineering | | To be an approximation method, this is performed sequentially and iteratively, where x1, x2, x3replace the points x0, x1, x2 carrying the error to a value close to zero. 5.2. Bairstow’s Method Bairstow's method is an iterative process related approximately with Muller and Newton-Raphson methods. The mathematical process depends of dividing the polynomial between a factor. Given a polynomial fn(x) find two factors, a quadratic polynomial f2(x) = x2 – rx – s y fn-2(x) The general procedure for the Bairstow method is: 1. Given fn(x) y r0 y s0 2. Using Newton-Raphson method calculate f2(x) = x2 – r0x – s0 y fn-2(x), such as, the residue of fn(x)/ f2(x) be equal to zero. 3. The roots f2(x) are determined, using the general formula. 4. Calculate fn-2(x)= fn(x)/ f2(x). 5. Do fn(x)= fn-2(x) 6. If the polynomial degree is greater than three, back to step 2 7. If not, we finish The main difference of this method in relation to others, allows calculating all the polynomial roots (real and imaginaries). To calculate the polynomials division, we use the synthetic division. So given fn(x) = anxn + an-1xn-1 + … + a2x2 + a1x + a0 By dividing between f2(x) = x2 – rx – s, we have as a result the following polynomial
  • 13. INDUSTRIAL UNIVERSITY OF SANTANDER SCHOOL OF PHYSICAL-CHEMICAL ENGINEERING PETROLEUM ENGINEERING SCHOOL Numerical Methods in Petroleum Engineering fn-2(x) = bnxn-2 + bn-1xn-3 + … + b3x + b2 With a residue R = b1(x-r) + b0, the residue will be zero only if b1 and b0 are. The terms b and c, are calculated using the following recurrence relation: bn = a n bn-1 = an-1 + rbn bi = ai + rbi+1 + sbi+2 cn = bn cn-1 = bn-1 + rcn ci = bi + rci+1 + sci+2 Finally, the approximate error in r and s can be estimated as: | | | | | | | | When both estimated errors failed, the roots values can be determined as: √ BIBLIOGRAPHY CHAPRA, Steven. Numerical Methods for engineers. Editorial McGraw-Hill. Third edition. 2000. http://lc.fie.umich.mx/~calderon/programacion/Mnumericos/Bairstow.html http://illuminatus.bizhat.com/metodos/biseccion.htm http://aprendeenlinea.udea.edu.co/lms/moodle/mod/resource/view.php?inpopu p=true&id=24508