SlideShare a Scribd company logo
1 of 18
Roots of a Nonlinear
                   Equation


           Topic: Newton-Raphson Method

                Major: General Engineering



07/20/09            http://numericalmethods.eng.usf.edu   1
Newton-Raphson Method

     f(x)



                                                                  f(xi )
     f(xi)
                                      [x f( x )]     xi +1 = xi -
                                        i,   i                      ′
                                                                  f (xi )


    f(xi-1)

                             θ
                   xi+2   xi+1   xi              X




2
Derivation
    f(x)
                                              AB
                                  tan(α ) =
                                              AC
    f(xi)              B
                                               f ( xi )
                                f ' ( xi ) =
                                             xi − xi +1

                                                f ( xi )
                                   xi +1 = xi −
            C α       A     X                   f ' ( xi )
             xi+1      xi


3
Algorithm for Newton-
       Raphson Method



4
Step 1



    Evaluate f′(x) symbolically




5
Step 2

    Calculate the next estimate of the root

                                       f(xi )
                          xi +1 = xi -
                                       f'(xi )
    Find the absolute relative approximate error


                               xi +1- xi
                          ∈a =           x 100
                                 xi +1
6
Step 3
       Find if the absolute relative approximate error is
        greater than the pre-specified relative error
        tolerance.

       If so, go back to step 2, else stop the algorithm.

       Also check if the number of iterations has exceeded
        the maximum number of iterations.




7
Example
       You are working for ‘DOWN THE TOILET COMPANY’ that
        makes floats for ABC commodes. The ball has a specific
        gravity of 0.6 and has a radius of 5.5 cm. You are asked
        to find the distance to which the ball will get submerged
        when floating in water.




8
Solution
         The equation that gives the depth ‘x’ to which the ball is
           submerged under water is given by
               f ( x ) = x 3-0.165 x 2+3.993x10- 4
               f ( x ) = 3x 2-0.33x
    Use the Newton’s method of finding
    roots of equations to find the depth
    ‘x’ to which the ball is submerged
    under water. Conduct three
    iterations to estimate the root of the
    above equation.

9
Graph of function f(x)
     f ( x ) = x -0.165 x +3.993x10
             3        2               -4




10
Iteration #1
           x0 = 0.02
                      f ( x0 )
           x1 = x0 −
                     f ' ( x0 )
                       3.413x10−4
           x1 = 0.02 −
                       − 5.4 x10−3
              = 0.08320
           ∈ = 75.96%
            a




11
Iteration #2
           x1 = 0.08320
                        f ( x1 )
           x2 = x1 −
                       f ' ( x1 )
                          −1.670x10 −4
           x2 = 0.08320 −
                          − 6.689 x10 −3
              = 0.05824
           ∈ = 42.86%
            a




12
Iteration #3
          x2 = 0.05824
                     f ( x2 )
          x3 = x2 −
                    f ' ( x2 )
                        3.717 x10−5
            = 0.05284 −
                        − 9.043x10−3
            = 0.06235
          ∈ = 6.592%
           a




13
Advantages

        Converges fast, if it converges
        Requires only one guess




14
Drawbacks
                           10
                                    f(x)


                           5




                           0                                      x
     -2   -1           2        0           3     1           2

               1
                           -5




                                           f ( x ) = ( x − 1) = 0
                        -10
                                                          3

                        -15




                        -20




                   Inflection Point
15
Drawbacks (continued)
                               1.00E-05
                                              f(x)
                              7.50E-06

                              5.00E-06

                              2.50E-06

                              0.00E+00                                            x
     -0.03    -0.02   -0.01               0          0.01     0.02     0.03       0.04
                              -2.50E-06
                                                            0.02
                              -5.00E-06


                                              f ( x ) = x 3 − 0.03 x 2 + 2.4 x10 −6 = 0
                              -7.50E-06

                              -1.00E-05




                         Division by zero

16
Drawbacks (continued)
                  1.5
          f(x)
                   1



                 0.5


                                                                x
                   0
     -2
          -0.063069 0.54990
                  0           2    4
                                       4.462   6
                                                   7.53982
                                                         8      10

                 -0.5



                   -1                          f ( x ) = Sin x = 0
                 -1.5




                                  Root Jumping
17
Drawbacks (continued)
                              6
                                   f(x)

                              5



                              4



                              3
               3

                              2
                                          2             f ( x) = x2 + 2 = 0
                             11
                                                                   4
                                                                              x
                              0
     -2            -1              0                1         2        3
      -1.75             -0.3040               0.5                          3.142
                              -1




          Oscillations near Local Maxima or Minima
18

More Related Content

What's hot

Presentation on Solution to non linear equations
Presentation on Solution to non linear equationsPresentation on Solution to non linear equations
Presentation on Solution to non linear equationsRifat Rahamatullah
 
Presentation on Numerical Method (Trapezoidal Method)
Presentation on Numerical Method (Trapezoidal Method)Presentation on Numerical Method (Trapezoidal Method)
Presentation on Numerical Method (Trapezoidal Method)Syed Ahmed Zaki
 
Nams- Roots of equations by numerical methods
Nams- Roots of equations by numerical methodsNams- Roots of equations by numerical methods
Nams- Roots of equations by numerical methodsRuchi Maurya
 
Numerical method for solving non linear equations
Numerical method for solving non linear equationsNumerical method for solving non linear equations
Numerical method for solving non linear equationsMdHaque78
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integrationTarun Gehlot
 
Regulafalsi_bydinesh
Regulafalsi_bydineshRegulafalsi_bydinesh
Regulafalsi_bydineshDinesh Kumar
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equationsZunAib Ali
 
Newtons Divided Difference Formulation
Newtons Divided Difference FormulationNewtons Divided Difference Formulation
Newtons Divided Difference FormulationSohaib H. Khan
 
Roots of equations
Roots of equations Roots of equations
Roots of equations shopnohinami
 
Application of partial derivatives with two variables
Application of partial derivatives with two variablesApplication of partial derivatives with two variables
Application of partial derivatives with two variablesSagar Patel
 
Newton divided difference interpolation
Newton divided difference interpolationNewton divided difference interpolation
Newton divided difference interpolationVISHAL DONGA
 

What's hot (20)

Presentation on Solution to non linear equations
Presentation on Solution to non linear equationsPresentation on Solution to non linear equations
Presentation on Solution to non linear equations
 
The newton raphson method
The newton raphson methodThe newton raphson method
The newton raphson method
 
Secant Method
Secant MethodSecant Method
Secant Method
 
Numerical method
Numerical methodNumerical method
Numerical method
 
Presentation on Numerical Method (Trapezoidal Method)
Presentation on Numerical Method (Trapezoidal Method)Presentation on Numerical Method (Trapezoidal Method)
Presentation on Numerical Method (Trapezoidal Method)
 
Nams- Roots of equations by numerical methods
Nams- Roots of equations by numerical methodsNams- Roots of equations by numerical methods
Nams- Roots of equations by numerical methods
 
Secant method
Secant methodSecant method
Secant method
 
Bisection method
Bisection methodBisection method
Bisection method
 
BISECTION METHOD
BISECTION METHODBISECTION METHOD
BISECTION METHOD
 
Numerical method for solving non linear equations
Numerical method for solving non linear equationsNumerical method for solving non linear equations
Numerical method for solving non linear equations
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integration
 
1519 differentiation-integration-02
1519 differentiation-integration-021519 differentiation-integration-02
1519 differentiation-integration-02
 
Numerical analysis ppt
Numerical analysis pptNumerical analysis ppt
Numerical analysis ppt
 
Regulafalsi_bydinesh
Regulafalsi_bydineshRegulafalsi_bydinesh
Regulafalsi_bydinesh
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equations
 
Laplace transform
Laplace transformLaplace transform
Laplace transform
 
Newtons Divided Difference Formulation
Newtons Divided Difference FormulationNewtons Divided Difference Formulation
Newtons Divided Difference Formulation
 
Roots of equations
Roots of equations Roots of equations
Roots of equations
 
Application of partial derivatives with two variables
Application of partial derivatives with two variablesApplication of partial derivatives with two variables
Application of partial derivatives with two variables
 
Newton divided difference interpolation
Newton divided difference interpolationNewton divided difference interpolation
Newton divided difference interpolation
 

Similar to Newton-Raphson Method

Lesson 21: Curve Sketching (slides)
Lesson 21: Curve Sketching (slides)Lesson 21: Curve Sketching (slides)
Lesson 21: Curve Sketching (slides)Mel Anthony Pepito
 
Lesson 21: Curve Sketching (slides)
Lesson 21: Curve Sketching (slides)Lesson 21: Curve Sketching (slides)
Lesson 21: Curve Sketching (slides)Matthew Leingang
 
Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)asghar123456
 
Calculus First Test 2011/10/20
Calculus First Test 2011/10/20Calculus First Test 2011/10/20
Calculus First Test 2011/10/20Kuan-Lun Wang
 
Computational mathematic
Computational mathematicComputational mathematic
Computational mathematicAbdul Khaliq
 
Lecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etcLecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etcRiyandika Jastin
 
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...MarcelloSantosChaves
 
Manage your expectation
Manage your expectationManage your expectation
Manage your expectationGregory Rho
 
Clase de matlab
Clase de matlabClase de matlab
Clase de matlabDeyBarreto
 

Similar to Newton-Raphson Method (20)

Lesson 21: Curve Sketching (slides)
Lesson 21: Curve Sketching (slides)Lesson 21: Curve Sketching (slides)
Lesson 21: Curve Sketching (slides)
 
Lesson 21: Curve Sketching (slides)
Lesson 21: Curve Sketching (slides)Lesson 21: Curve Sketching (slides)
Lesson 21: Curve Sketching (slides)
 
Ism et chapter_3
Ism et chapter_3Ism et chapter_3
Ism et chapter_3
 
Ism et chapter_3
Ism et chapter_3Ism et chapter_3
Ism et chapter_3
 
Ism et chapter_3
Ism et chapter_3Ism et chapter_3
Ism et chapter_3
 
Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)Amth250 octave matlab some solutions (1)
Amth250 octave matlab some solutions (1)
 
1st 2practice
1st 2practice1st 2practice
1st 2practice
 
Application of derivative
Application of derivativeApplication of derivative
Application of derivative
 
Calculus First Test 2011/10/20
Calculus First Test 2011/10/20Calculus First Test 2011/10/20
Calculus First Test 2011/10/20
 
Computational mathematic
Computational mathematicComputational mathematic
Computational mathematic
 
Lesson 22: Graphing
Lesson 22: GraphingLesson 22: Graphing
Lesson 22: Graphing
 
Lecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etcLecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etc
 
Lesson 22: Graphing
Lesson 22: GraphingLesson 22: Graphing
Lesson 22: Graphing
 
Ch33 11
Ch33 11Ch33 11
Ch33 11
 
Limits
LimitsLimits
Limits
 
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
 
Manage your expectation
Manage your expectationManage your expectation
Manage your expectation
 
Clase de matlab
Clase de matlabClase de matlab
Clase de matlab
 
Clase de matlab
Clase de matlabClase de matlab
Clase de matlab
 
Ex algebra (5)
Ex algebra  (5)Ex algebra  (5)
Ex algebra (5)
 

Recently uploaded

Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactisticshameyhk98
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 

Recently uploaded (20)

Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 

Newton-Raphson Method

  • 1. Roots of a Nonlinear Equation Topic: Newton-Raphson Method Major: General Engineering 07/20/09 http://numericalmethods.eng.usf.edu 1
  • 2. Newton-Raphson Method f(x) f(xi ) f(xi) [x f( x )] xi +1 = xi - i, i ′ f (xi ) f(xi-1) θ xi+2 xi+1 xi X 2
  • 3. Derivation f(x) AB tan(α ) = AC f(xi) B f ( xi ) f ' ( xi ) = xi − xi +1 f ( xi ) xi +1 = xi − C α A X f ' ( xi ) xi+1 xi 3
  • 4. Algorithm for Newton- Raphson Method 4
  • 5. Step 1 Evaluate f′(x) symbolically 5
  • 6. Step 2 Calculate the next estimate of the root f(xi ) xi +1 = xi - f'(xi ) Find the absolute relative approximate error xi +1- xi ∈a = x 100 xi +1 6
  • 7. Step 3  Find if the absolute relative approximate error is greater than the pre-specified relative error tolerance.  If so, go back to step 2, else stop the algorithm.  Also check if the number of iterations has exceeded the maximum number of iterations. 7
  • 8. Example  You are working for ‘DOWN THE TOILET COMPANY’ that makes floats for ABC commodes. The ball has a specific gravity of 0.6 and has a radius of 5.5 cm. You are asked to find the distance to which the ball will get submerged when floating in water. 8
  • 9. Solution The equation that gives the depth ‘x’ to which the ball is submerged under water is given by f ( x ) = x 3-0.165 x 2+3.993x10- 4 f ( x ) = 3x 2-0.33x Use the Newton’s method of finding roots of equations to find the depth ‘x’ to which the ball is submerged under water. Conduct three iterations to estimate the root of the above equation. 9
  • 10. Graph of function f(x) f ( x ) = x -0.165 x +3.993x10 3 2 -4 10
  • 11. Iteration #1 x0 = 0.02 f ( x0 ) x1 = x0 − f ' ( x0 ) 3.413x10−4 x1 = 0.02 − − 5.4 x10−3 = 0.08320 ∈ = 75.96% a 11
  • 12. Iteration #2 x1 = 0.08320 f ( x1 ) x2 = x1 − f ' ( x1 ) −1.670x10 −4 x2 = 0.08320 − − 6.689 x10 −3 = 0.05824 ∈ = 42.86% a 12
  • 13. Iteration #3 x2 = 0.05824 f ( x2 ) x3 = x2 − f ' ( x2 ) 3.717 x10−5 = 0.05284 − − 9.043x10−3 = 0.06235 ∈ = 6.592% a 13
  • 14. Advantages  Converges fast, if it converges  Requires only one guess 14
  • 15. Drawbacks 10 f(x) 5 0 x -2 -1 2 0 3 1 2 1 -5 f ( x ) = ( x − 1) = 0 -10 3 -15 -20 Inflection Point 15
  • 16. Drawbacks (continued) 1.00E-05 f(x) 7.50E-06 5.00E-06 2.50E-06 0.00E+00 x -0.03 -0.02 -0.01 0 0.01 0.02 0.03 0.04 -2.50E-06 0.02 -5.00E-06 f ( x ) = x 3 − 0.03 x 2 + 2.4 x10 −6 = 0 -7.50E-06 -1.00E-05 Division by zero 16
  • 17. Drawbacks (continued) 1.5 f(x) 1 0.5 x 0 -2 -0.063069 0.54990 0 2 4 4.462 6 7.53982 8 10 -0.5 -1 f ( x ) = Sin x = 0 -1.5 Root Jumping 17
  • 18. Drawbacks (continued) 6 f(x) 5 4 3 3 2 2 f ( x) = x2 + 2 = 0 11 4 x 0 -2 -1 0 1 2 3 -1.75 -0.3040 0.5 3.142 -1 Oscillations near Local Maxima or Minima 18