Docsity

Math integral calculus, Schemes and Mind Maps of Differential and Integral Calculus

Partial preview of the text

Download Math integral calculus and more Schemes and Mind Maps Differential and Integral Calculus in PDF only on Docsity!

Nonlinear Equations in One Variable

Lecture-

Objective:

To find the root of a nonlinear equation in on variable with the help of different

methods.

Methodologies:

Five methods can be used to find roots of nonlinear equation in one variable.

They are-

1. Graphical Method (to find the nature of the roots)

2. Bisection Method

3. The Secant Method

4. Newton-Raphson Method

5. Fixed Point Iteration Method

Number of Real Roots by Graphical Method

A polynomial equation

2 0 1 2 0 n

a  a x  a x   a x n  of degree n has exactly n roots.

Some of them are real and others are complex.

Geometrically, if the graph of crosses the x -axis at x = a , then x = a is a

real root of

yf ( ) x f ( ) x  0

Now we shall consider graphically to find the number of real roots and its

location.

2 0 1 2 0 n aa xa x   a x nyf ( ) x f ( ) x  0

Rewrite the equation f^ ( ) x^^ ^0 as f 1^ ( ) x^^  f^ 2 ( ) x

At the point of intersection (say) of the graphs and

that is and hence is a root of the equation.

xx 1 yf 1 (^) ( ) x yf (^) 2 ( ) x f 1 (^) ( x 1 (^) )  f (^) 2 ( x 1 ) xx 1

Thus the number of intersections of the two graphs will be the number

of real roots (See the following figure)

f ( ) x  0 f 1 (^) ( ) xf (^) 2 ( ) x xx 1 yf 1 (^) ( ) x yf (^) 2 ( ) x f 1 (^) ( x 1 (^) )  f (^) 2 ( x 1 ) xx 1

(b) It is a polynomial equation of degree three and hence the total number of roots is three. So, number of complex roots = Total number of roots - Number of real roots =3-1=2. (c) >> p=[1 0 4 -3] % entry of cubic polynomial p = 1 0 4 -

Roots = roots(p) Roots = -0.3368 + 2.0833i -0.3368 - 2.0833i 0.6736 + 0.0000i

Exercise

Given the following polynomial equations and an interval.

a.

b.

c.

d.

 Find the number of real roots of the equation by graphical method. Find also the

number of complex roots, if any.

 Write MATLAB commands “ roots ” to find all the roots including complex roots.

Example: The^ equation^ has two real roots. For each root, find an interval

where it lies.

 1 ^

x

x  e  x

Solution: Consider the values of function for different values of x :

x f x x x e    x f ( x ) -2 1. -1 0. 0 - 1 - 2 5. From the above table, we see that , a root lies in and , a root lies in

 1 ^

x

x  e  x

x f x x x e   

Techniques to find real roots

Method of Bisection

Step-1: If be continuous in , Choose two approximations a and b such that. Step-2: Evaluate the mid-point c of such that Step-3: If we conclude that c is a root of .If and (i) If the root is in or (ii) If the root is in f ( ) x [ , ] a b f ( ) a f b ( )  0 f ( ) x  0 c  ( ab ) / 2 f c ( )  (^0) f c ( )  0 f ( ) a f c ( )  (^0) ( , a c ) f c f b ( ) ( )  (^0) ( , c b ) [ a 1 (^) , b 1 ] x 1 xn (^)  1  xn   

Algorithm:

[ , ] a b . Step-4: By designating the new interval of root as we can calculate the next iterate by the formula , n^ = 1, 2, 3,... Step-5: Repeat the process until (^) ,where is the specified accuracy 𝒙𝒏 + 𝟏 = 𝒂𝒏 + 𝒃𝒏 𝟐 f ( ) x [ , ] a b f a f b ( ) ( )  0 f ( ) x  0 c  ( ab ) / 2 f c ( )  (^0) f c ( )  0 f ( ) a f c ( )  (^0) ( , a c ) f c f b ( ) ( )  (^0) ( , c b ) [ a 1 (^) , b 1 ] x 1 xn (^)  1  xn    [ , ] a b

Exercise

Given the following polynomial equations and an interval.

a.

b.

c.

d.

Apply bisection method two times in the given interval to find the new smaller

interval of this root.

Advantages and Drawbacks: Bisection Method

Advantages:

Drawbacks:

 Always Convergent.

 Slow convergence.

 If one of the initial guess is closer to the root , the

convergence is slower.

Multiple Choice Questions

1. Find the degree of the polynomial 𝑥

4

2

a) 3 , b) 2 , c) 4 , d) 5

2. Find the number of real roots of the polynomial 𝑥

3

2

a) 3 , b) 1 , c) 4 , d) 5

3. Find the number of complex roots of the polynomial 𝑥

4

2

a) 3 , b) 2 , c) 4 , d) 5

4. If What is the value of a) -3 , b) -1 , c) 4 , d) 0

5. If is continuous in then what is the condition that there exists odd number of real roots(at least one root) of ¿ [^ 𝑎^ ,^ 𝑏 ]^ =0?

a) 𝑓 ( 𝑎 ) 𝑓 ( 𝑏 )< 0 , b) 𝑓 ( 𝑎 ) 𝑓 ( 𝑏 ) > 0 , c) 𝑓 ( 𝑎 )< 0 ,d) Neither