Numrical Methods or Finding Complex Roots
Numrical Methods or Finding Complex Roots
2,2010
Sasan A. Muheadden
Department Of Mathematics
College of Science - University of Kirkuk
Received:1/2/2010, Accepted:1/6/2010
Abstract
point in real iteration getting a sequence of real numbers, to find complex roots start
with a complex initial point in complex formula getting a sequence of complex
numbers, also we write a new algorithm for this technique and write the program by
using Matlab application system version 7.8 for this new method such that it will
determine the real roots when we enter the initial real point but when we enter the initial
complex point it will determine the complex roots.
Introduction
Complex analysis can roughly be though of as a subject that applies the
theory of calculus to imaginary numbers. But what is exactly are imaginary
numbers ? we can take the square root of a negative number, but let pretend
we can and being by using the symbol i 1 . Also numerical analysis
is concerned with the mathematical derivation description and analysis of
methods of obtaining numerical solutions of mathematical problems; such
that find complex roots of linear and non linear equations by using
iteration methods. (Abbas & Sasan, 2009)
If R is the real field and C is the Complex field then consider the following
definitions:
Newton Raphson method can be used to approximate the root of any non-
linear equation of any degree by the following iterative formula (Atkinson ,
1998)
f (x )
xk 1 xk \ k
f ( xk ) k 0,1,2..
If the function f (x) has no derivative then we have difference
approximation in this case, Newton Raphson method is called Secant
method (Steven, 2008).
401
Journal of Kirkuk University Scientific Studies , vol.5, No.2,2010
2.Need for one initial point . 2. Need for two initial points.
3.Unstable . 3. Stable .
5.Faster . 5. Slow .
401
Journal of Kirkuk University Scientific Studies , vol.5, No.2,2010
f (x ) f (y )
xk 1 iyk 1 xk \ k i y k \ k k 0,1,2,... (4)
f ( x k
) f ( y k
)
know equate the real and the imaginary parts in (4) we get two iterative
formula named the real iterative formula(Newton Raphson ) (R.I.F)(5)and
the imaginary iterative formula (I.I.F)(6):
f (x )
xk 1 xk \ k , k 0,1,2,.... (5)
f ( xk )
f (y )
y k 1 yk \ k , k 0,1,2,..... (6)
f ( yk )
R.I.F and I.I.F were used to evaluate real and imaginary roots of non
linear equations respectively.
2- Complex Secant formula:
In secant method if we replace the variable x by the variable z then we get
the complex secant formula which can separated into two formulas, the
first called the real iterative formula starts with real initial point ( x0 ) the
second called is the imaginary iterative formula starts with complex initial
point ( y0 ) , and where used to find real and imaginary roots of non linear
equations respectively.
Now
z k z k 1
z k 1 z k f ( z k ) . ) k 1,2,3,... (7)
f ( z k ) f ( z k 1 )
putting z ( x i y) in the above form we get the formula
( x iy) k ( x iy) k 1
( x iy) k 1 ( x iy) k f ( xk iyk ). , k 1,2,3,.. (8)
f ( xk iyk ) f ( xk 1 iyk 1 )
( xk iyk ) ( xk 1 iyk 1 )
xk 1 iyk 1 xk iyk f ( xk ) if ( y k ) . , k 1,2,3,.. (9)
f ( x k iy k ) f ( x k 1 iy k 1
)
x k x k 1 y k y k 1
x k 1 iy k 1 x k f ( x k ). i y k f ( y k ). ,
(10)
f ( x k ) f ( x k 1 ) f ( y k ) f ( y k 1 )
k 1,2,3.....
Now equating the real and the imaginary parts of both sides we get that
x k x k 1
xk 1 xk f ( xk ). , k=1,2,3, (11)
f ( xk ) f ( xk 1 )
401
Journal of Kirkuk University Scientific Studies , vol.5, No.2,2010
Equation (11) called the real secant iterative starting with two real initial
points .
y k y k 1 (12)
y k 1 y k f ( y k ). , k 1,2,3,...
f ( y k ) f ( y k 1 )
Equation (12) called the imaginary secant iterative starting with two
imaginary initial points .
3-A new modified Newton Raphson algorithm :
For computing complex and real root of non linear equations f(x)=0
depended on given initial point, we write the real iterative formula and the
imaginary iterative formula of Newton Raphson in the following
procedure such that it is computing all roots of equations step by step and
the number of iterations depended on the value of tolerance .
Now
Input informatios : The initial point z and tolerance
Output informations: The complex root w1 or real root w2
Procedure :
Step1 : If z is real , Go to step9 .
Step2 : Replace y0 z .
Step3 : Evaluate new value by
f (y )
y1 y0 \ 0
f ( y0 )
Step4 : If | y1 y0 | , go to step7 .
Step5 : Replace y0 y1 .
Step6 : Back to step3 .
Step7 : w1 y1 .
Step8 : Print the complex root w1 .
Step9 : Replace x0 z .
Step10: Evaluate new value by
f (x )
x1 x0 \ 0
f ( x0 )
Step11: If | x1 x0 | , go to step14 .
Step12: Replace x0 x1 .
Step13: Back to step10 .
Step14: w2 x1
Step15: Print the real root w2 .
Step16: Stop.
401
Journal of Kirkuk University Scientific Studies , vol.5, No.2,2010
Step4: If | y2 y1 | , go to step7 .
Step5: Replace y0 y1 & y1 y2 .
Step6: Back to step3 .
Step7: w1 y2 .
Step8: Print the complex root w1 .
Step9: Replace x0 Z 0 & x1 Z1 .
Step10: Evaluate new value by
x1 x0
x2 x1 f ( x1 )
f ( x1 ) f ( x0 )
Step11: If | x2 x1 | , go to step14 .
Step12: Replace x0 x1 & x1 x2 .
Step13: Back to step10 .
Step14: w2 x2
Step15: Print the real root w2 .
Step16: Stop.
5-The program by using Matlab application system version 7.8 for
new modified Newton algorithm :
Before writing the program script , we must define a function and its
derivative for the given non linear equation and save them as a function
m file .Then we define these functions as funcnew01 and funcnew02 and
save them as funcnew01.m and funcnew02 .m
Now :
Z=input('the complex value of Z=');
tol=input('the value tolerance tol=');
k=0;
if real(Z)==0
y=Z;
401
Journal of Kirkuk University Scientific Studies , vol.5, No.2,2010
401
Journal of Kirkuk University Scientific Studies , vol.5, No.2,2010
while abs(x2-x1)>tol
f1=feval('funsct01',x1)
f2=feval('funsct01',x2)
x=x2-((f2)*((x2-x1)/(f2-f1)))
x1=x2;
x2=x;
k=k+1;
end;
end;
440
Journal of Kirkuk University Scientific Studies , vol.5, No.2,2010
In table No.2 we used the new modified Newton algorithm starting with
initial point y0 0.5i to get the complex root y = 1.0000i after 4
iterations .If take y0 1.5i we will get another root y = 2.0000i again if we
take y0 1.5i we will get the negative roots.
444
Journal of Kirkuk University Scientific Studies , vol.5, No.2,2010
Conclusion
In this paper we modified Newton Raphson and Secant algorithms to
Compute the complex roots of non linear equations, then we wrote down
their programs by Matlab applications version 7.8 by taking complex initial
point to get the complex roots if it exists if not we real initial point to get
real root .In this paper we study initial point have only real or imaginary
part , as future work we modified these algorithm to compute the complex
roots if the initial point is complex and real and imaginary part not equal to
zero .
References
Abbas Y.Al-bayati and Runak M. Abdullah, (2008): A New Family Of
Spectral Cg Algorithm, alrafiden Journal, published by college of
Computer Science and Mthematics Mosul university, Vol.5, No.1.
Abbas Y.Al-bayati and Sasan A. Al-Shwani, (2008): A New Numerical
Procedure To Compute the residue of a Complex Functions, al
rafiden Journal ,published by college of Computer Science and
Mthematics Mosul university, Vol.5,No.1.
Abbas Y. Al Bayati and Sasan A. Al Shwani, (2009): Residue of
Complex Functions With Definite and Infinite Poles On X axis
,Journal of Mathematics and Statistics, Science publication new
York USA, Vol.5,No.3, pp.152 158. Web Site : www.scipub.org
Atkinson, K. E. (1998): An Introduction To Numerical Analysis, Second
Edition, John and wiley and Sons, Inc.
Steven C Chapra, (2008): Applied Numerical Methods with Matlab For
Engineering and science, 2nd edition tata McGrawHill Publishing
Company.
441
Journal of Kirkuk University Scientific Studies , vol.5, No.2,2010
2212/2/1: 2212/6/1:
()
()
) )(2.3) 2.4
. 7.8 ) .(3.1 & 3.2
441