Docsity

Numerical Methods for Finding the Root of an Equation: A Comprehensive Guide, Lecture notes of Calculus

Partial preview of the text

Download Numerical Methods for Finding the Root of an Equation: A Comprehensive Guide and more Lecture notes Calculus in PDF only on Docsity!

Numerical Methods for Finding

the Root of an Equation

by: Engr. Donnalyn C. Cabaces May 2020

Outline

• Incremental Search Method

• Bisection Method

• False Position Method

• Newton Raphson Method

• Secant Method

Steps/Algorithm

• Set the value of ∆x and x

i and get^ fxi.

• xi+1 will assume the value of xi +∆x , then get f(xi

+∆x).

• Determine the sign of f(x

i)^ ∙f(xf(x^ i+∆x)

  • (^) If positive, then
    • (^) xi will assume the value of xi +∆x
    • (^) Repeat step 2
  • (^) If negative, then
    • (^) ∆x will assume a smaller value and repeat step 1

Examples

• Find the root of the following functions of x.

Use1 x

-

as tolerance.

• If ∆x is small enough (following the tolerance),

then stop

Start with ΔX of 1. In choosing XX of 1. In choosing Xi, make sure that f(Xi) is negative and f(Xi + ΔX of 1. In choosing XX ) is positive. Why? Because between negative and positive f(X) is f(x) = 0, which indicates that the root is between Xi and Xi + ΔX of 1. In choosing XX.

The product is negative (because we multiply negative f(Xi) and positive f(Xi + ΔX of 1. In choosing XX). And from the algorithm: If negative reduce ΔX of 1. In choosing XX. Let us use 0.5. Just repeat the process

You may just highlight the cells and drag down to the next row when the cross line (+) appears. Repeat the process.

Did you get the same values?

Since the set tolerance is 1x

- , looking at the value of f(Xi), you may now stop the iteration. And the root is X = 1.7816181 which is your Xi.