• No results found

Chapter Secant Method of Solving Nonlinear Equations

N/A
N/A
Protected

Academic year: 2021

Share "Chapter Secant Method of Solving Nonlinear Equations"

Copied!
5
0
0

Loading.... (view fulltext now)

Full text

(1)

03.05.1

Chapter 03.05

Secant Method of Solving Nonlinear Equations

After reading this chapter, you should be able to:

1. derive the secant method to solve for the roots of a nonlinear equation, 2. use the secant method to numerically solve a nonlinear equation.

What is the secant method and why would I want to use it instead of the Newton-Raphson method?

The Newton-Raphson method of solving a nonlinear equation f( =x) 0 is given by the iterative formula ) ( ) ( 1 i i i i = x ff xx x+ (1)

One of the drawbacks of the Newton-Raphson method is that you have to evaluate the derivative of the function. With availability of symbolic manipulators such as Maple, MathCAD, MATHEMATICA and MATLAB, this process has become more convenient. However, it still can be a laborious process, and even intractable if the function is derived as part of a numerical scheme. To overcome these drawbacks, the derivative of the function,

) (x f is approximated as 1 1) ( ) ( ) ( − − − − = ′ i i i i i f xx xf x x f (2)

Substituting Equation (2) in Equation (1) gives ) ( ) ( ) )( ( 1 1 1 − − + − − − = i i i i i i i x ff xx x f xx x (3)

The above equation is called the secant method. This method now requires two initial guesses, but unlike the bisection method, the two initial guesses do not need to bracket the root of the equation. The secant method is an open method and may or may not converge. However, when secant method converges, it will typically converge faster than the bisection method. However, since the derivative is approximated as given by Equation (2), it typically converges slower than the Newton-Raphson method.

(2)

The secant method can also be derived from geometry, as shown in Figure 1. Taking two initial guesses, x and i−1 x , one draws a straight line between i f(xi) and f(xi−1) passing

through the x -axis at x . ABE and DCE are similar triangles. i+1

Hence DE DC AE AB = 1 1 1 1 ) ( ) ( + − − + − = − i i i i i i x x x f x x x f

On rearranging, the secant method is given as ) ( ) ( ) )( ( 1 1 1 − − + − − = i i i i i i i x ff xx x f xx x

Figure 1 Geometrical representation of the secant method. Example 1

You are making a bookshelf to carry books that range from 8½" to 11" in height and would take up 29" of space along the length. The material is wood having a Young’s Modulus of

Msi 667 .

3 , thickness of 3/8" and width of 12". You want to find the maximum vertical deflection of the bookshelf. The vertical deflection of the shelf is given by

x x x x x v( )=0.42493×10−4 30.13533×10−8 50.66722×10−6 4 0.018507

where x is the position along the length of the beam. Hence to find the maximum deflection we need to find where ( )= =0

dx dv x

f and conduct the second derivative test.

f (x) f (xi) f (xi–1) xi+1 xi–1 xi x B C A D E

(3)

x

Books

Bookshelf Figure 2 A loaded bookshelf.

The equation that gives the position x where the deflection is maximum is given by 0 018507 . 0 10 12748 . 0 10 26689 . 0 10 67665 . 0 × 8 4 × 5 3+ × 3 2 = − − xxx

Use the secant method of finding roots of equations to find the position x where the deflection is maximum. Conduct three iterations to estimate the root of the above equation. Find the absolute relative approximate error at the end of each iteration and the number of significant digits at least correct at the end of each iteration.

Solution

Let us take the initial guesses of the root of f

( )

x =0 as x−1 =10 and x0 =15.

Iteration 1

The estimate of the root is = 1 x

( )(

( ) ( )

)

1 0 1 0 0 0 − − − − − x f x f x x x f x

( )

0.67665 10 0.26689 10 0.12748 10 2 0.018507 0 3 3 0 5 4 0 8 0 =− × − x − × − x + × − xx f =0.67665×10−8

( )

15 40.26689×10−5

( )

153+0.12748×10−3

( )

152 0.018507 =8.2591×10−4

( )

0.67665 10 0.26689 10 0.12748 10 2 0.018507 1 3 3 1 5 4 1 8 1 =− × − − − × − − + × − − − − x x x x f =0.67665×10−8

( )

104 0.26689×10−5

( )

10 3+0.12748×10−3

( )

10 20.018507 =8.4956×10−3

(

)

(

)

(

4

) (

3

)

4 1 15 8.25918.259110−10 8.1549561010− − × − − × − × × − = x =14.557

The absolute relative approximate error ∈ at the end of Iteration 1 is a 100 1 0 1− × = ∈ x x x a

(4)

100 557 . 14 15 557 . 14 = − × % 0433 . 3 =

The number of significant digits at least correct is 1, because the absolute relative approximate error is less than 5 . %

Iteration 2

The estimate of the root is

( )(

)

( ) ( )

11 1 00 1 2 f x f x x x x f x x − − − =

( )

0.67665 10 0.26689 10 0.12748 10 2 0.018507 1 3 3 1 5 4 1 8 1 =− × − x − × − x + × − xx f

(

)

(

)

(

14.557

)

0.018507 10 12748 . 0 557 . 14 10 26689 . 0 557 . 14 10 67665 . 0 2 3 3 5 4 8 − × + × − × − = − − − =2.9870×10−5

(

)

(

)

(

5

) (

4

)

5 2 15 22.9870.9870 1010− 814.2591.557 1015− − × − × − − × × − − = x =14.572

The absolute relative approximate error ∈ at the end of Iteration 2 is a 100 2 1 2 − × = ∈ x x x a 100 572 . 14 557 . 14 572 . 14 − × = =0.10611%

The number of significant digits at least correct is 2, because the absolute relative approximate error is less than 0.5%.

Iteration 3

The estimate of the root is

( )(

)

( ) ( )

22 2 11 2 3 x ff xx x f xx x − − − =

( )

0.67665 10 0.26689 10 0.12748 10 2 0.018507 2 3 3 2 5 4 2 8 2 =− × − x − × − x + × − xx f

(

)

(

)

(

14.572

)

0.018507 10 12748 . 0 572 . 14 10 26689 . 0 572 . 14 10 67665 . 0 2 3 3 5 4 8 − × + × − × − = − − − =6.0676×10−9

(

)

(

)

(

9

) (

5

)

9 3 14.572 66..06760676 1010− 14.2572.98701410.557− − × − − × − − × × − − = x =14.572

(5)

100 3 2 3 − × = ∈ x x x a 100 572 . 14 572 . 14 572 . 14 − × = =2.1559×10−5%

The number of significant digits at least correct is 6, because the absolute relative approximate error is less than 0.00005%.

NONLINEAR EQUATIONS

Topic Secant Method for Solving Nonlinear Equations.

Summary These are textbook notes of secant method of finding roots of nonlinear equations. Derivations and examples are included.

Major Civil Engineering Authors Autar Kaw

Date November 8, 2012

References

Related documents

Bank Point of Sale Malicious Customer Victim price display ($10) Victim Card enable device solicitation card information charge request ($1000) approve.. (Y

• Ensure that the Hot Food Display is switched ON and has reached operating temperature before placing any food in the unit • All food placed in the well MUST be pre-heated/cooked. •

This document is intended to facilitate a discussion between the local HCE organization and their respective county / area office to better understand how we may

Through multiple alignment of predicted amino acid of S1A and S2 fragments with other members of LeACS family, it was found that the isolated fragments had no conserved features

The focus of research is a 13-week EFL course for 25 first-year college students, specifically designed to enhance their future visions of themselves as L2 users (Dörnyei

Antar muka Menu Layanan merupakan tampilan menu yang muncul setelah karyawan login, dimenu layanan terdapat 8 layanan yaitu layanan pendaftaran, penimbangan, penarikan

6.2 The difference of femoral stem size in primary total hip arthroplasty between conventional templates and digital templates from actual

Metal stitching is the most widely used, accepted and successful method for repairing cracks and attaching new pieces to repair cast iron parts.. The concept is nearly as old as