NUmerical Solutions
NUmerical Solutions
•Complex
number is a combination of real and imaginary numbers.
The square root of a negative number is called imaginary number
where the imaginary unit denoted as “,” satisfying the relation I =
NUMERICAL SOLUTIONS
ENGR. MARIANNE S. MENDEJA
INSTRUCTOR
Forms of Complex Number
•1. Multiplication
The following are the rules in multiplication of complex numbers.
Rule 1. The product of two or more complex numbers in polar form, is equal to
the product of their magnitude and the sum of their directions.
Rule 2. To find the product of two or more complex numbers in rectangular form
Rule 3: Convert all complex numbers to polar form and apply Rule 1.
Examples:
1. (5 + 3i)(6 30° )
Solution
(5 + 3i)(6 30° )
= (5.831 30.96°( 6 30° )
= 34.986 60.96°
Operations of Complex Number
•1. Division
The following are the rule in the division of complex numbers.
Rule 1: To perform division
Of complex numbers in polar form, divide their magnitude and get the
differences of their directions
Examples:
Solution
= 35° - 25° = 1.209 10°
SQUARE ROOT OF COMPLEX NUMBER
•From
the general exponential form and trigonometric form
Z=r
Wk =
Where:
k = 0,1,2… (n-1)
Wo = is the principal value of root and Ø must be positive angle
W1, W2, … Wn-1
De Moivre’s Theorem
•It states that for any complex number raised to the nth power, the outcoms
will be equal to another complex number with magnitude equal to the
original complex number’s magnitude raised to the nth power and the
argument equal to the original complex numbers argument multiplied by
“m”
Expressing the theorem in equation we have;
=
(cos
Where: m is any real number
Introduction to Matrices
TOPICS
I. DEFINITION
II. METHODS OF SOLUTION
III. BISECTION METHOD
IV. FALSE POSITION METHOD
V. NEWTON – RAPHSON METHOD
VI. SECANT METHOD
LEARNING OBJECTIVES
Example:
Prove that x = {-3,5} are the roots of f(x) = X^2 – 2X -15.
Meanwhile, finding the root’s value using the open method starts
by assuming an initial value of X or X0, and series of iterations are
performed so that the value of X becomes as close to the actual
roots as possible. This method’s main advantages compared to the
previous one is: (a) this only needs one initial value of X, and (b)
this converges quickly. However, the values of X do not always
converge. Some of the open methods are:
1. Newton – Raphson Method
2. Secant Method
Bisection Method
1.3 Bisection Method
4. Repeat the first three steps for every new interval until it
becomes relatively small and the approximate value of root can be
accepted. The tabular presentation of the results of iteration is
helpful. Notice that the size of the interval halves after every
iteration. The root of the function will be the average of the last
produced interval.
1.3 Bisection Method
Example :
Determine the root of 3x^4 + 7x^3 – 15x^2 + 5x = 17 between [0,2].
Use bisection method and perform seven iterations.
1.3 Bisection Method
Tabular Presentation
1.3 Bisection Method
Tabular Presentation
1.3 Bisection Method
Tabular Presentation
1.3 Bisection Method
Tabular Presentation
1.3 Bisection Method
NOTE:
The obtained value of the root is accurate to the nearest
hundredths after seven iterations (the exact value of x for five
decimal places is 1.58416). However, the approximate value may be
unacceptable for some scientists and engineers because of the
notable errors; thus, further iterations are needed.
False Position Method
1.4: False Position Method
The False position method, or the Regula Falsi method, is an improvement of the Bisection Method. The two
methods share similar procedures, with a notable exception to obtaining the middle point in the interval. Its
graphical representation, as shown in Figure 1.2, shows that the middle point xm is the intersection of the
line connecting (XL, f(XL)) and (Xu,f(Xu)) and the x-axis. To obtain the numerical value of Xm, consider
the equation of the line connecting its endpoints using analytic geometry; that is:
1.4: False Position Method
Figure 1.2
1.4 False Position Method
Substituting y = 0 and x = Xm (coordinates of Xm)
-f(Xu) = f(Xu) – f(Fi) / Xu – Xl (Xm – Xu)
Example:
Determine the root of 3x^4 + 7x^3 – 15x^2 +5x = 17 between [0,2]
using the false position method. Perform seven iterations.
1.4 False Position Method
• Tabular Presentation:
1.4 False Position Method
• Perform the same process until seven iterations are made. The
tabular presentation of the solutions is:
False Position Method
Thus, the value of x is: (Note that f(Xl) = f(1.58010) = -0.234 and
f(Xu) = f(2) = 37)
X = Xl f(Xu) – Xu f(Xl) / f(Xu) – f(Xl) = 1.58010(37) – 2(-0.234) / 37 – (-
0.234) = 1.58274
1.4 False Position Method
NOTE:
The obtained value of the root using this method is slightly
accurate than that using the bisection method (recall that the
accurate value of x for five decimal places is 1.58416). However,
this may still be unacceptable for some scientists and engineers;
thus, further thus, further iterations are needed.
1.5 Newton – Raphson Method
Solution:
The given function is f(x) = 3x^4 + 7x^3 – 15x^2 + 5x – 17
The first derivative is f’(x) = 12x^3 + 21x^2 – 30x + 5
Solution:
The given function is f(x) = 3x^4 + 7x^3 – 15x2 + 5x – 17
The first derivative is f’(x) = 12x^3 +21x^2 – 30x + 5
Perform the same process until seven iterations are made. The
tabular presentation of the solutions is:
1.5 Newton-Raphson Method
Based on the table, the root of the function is the last value of
Xn+1, i.e.,
x = 1.58416
1.5 Newton-Raphson Method
NOTE:
The obtained value of the root using this method is much more
accurate than using the first two methods for the same numbers of
iterations (Note that the exact value of x for five decimal places is
1.58416). Thus, so far, this method is the most preferred root-
finding method. However, the only downside of this method is that
the solver or programmer needs to establish first the first derivative
of the function; some instances show that this process is
complicated.
Secant Method
1.6: Secant Method
𝑓 ( 𝑥 𝑛 ) − 𝑓 ( 𝑥 𝑛 −1)
𝑚 𝑠𝑒𝑐𝑎𝑛𝑡 =
𝑋 𝑛 − 𝑋 𝑛 −1
By some algebraic
Replacing f’(x) in the Newton-Raphson manipulation
formula into Msecant : =𝑋 −
𝑋
𝑓 ( 𝑥 𝑛 ) ( 𝑋 𝑛 − 𝑋 𝑛 − 1)
𝑛 +1 𝑛
𝑓 ( 𝑋 ¿¿ 𝑛)− 𝑓 ( 𝑋 𝑛 −1 )
¿
❑
=𝑋 − 𝑓 ( 𝑥𝑛)
𝑋 𝑛 +1 𝑛
𝑓 ( 𝑋 ¿¿ 𝑛)− 𝑓 ( 𝑋 𝑛 −1 )
¿
𝑋𝑛 − 𝑋𝑛−1
1.6: Secant Method
3. Repeat steps 1 and 2 for every new value of x until its value can
be accepted as the root. The tabular presentation of the results
of the iteration is helpful
1.6: Secant Method
Example:
Solutions:
The given function is f(x) = 3x^4 + 7X^3 – 15X^2 + 5x -17
First Iteration (X0 = 0, X1 = 2)
f(X0) = f(1) = -17
1.6: Secant Method
Solutions:
The given function is f(x) = 3x^4 + 7X^3 – 15X^2 + 5x -17
First Iteration (X0 = 1, X1 = 2)
f(X0) = f(1) = -17
f(X1) = f(2) = 37
𝑋 = 𝑋 − 𝑓 ( 𝑥2 ) ( 𝑋 1 − 𝑋 0 ) 37 ( 2 −1 )
¿ 2− = 1.31481
2 2
𝑓 ( 𝑥1 ) − 𝑓 ( 𝑋 0 ) 37 − ( −17 )
1.6: Secant Method
TABULAR PRESENTATION
1.6: Secant Method
TABULAR PRESENTATION
1.6: Secant Method
Perform the same process until seven iteration are made. The tabular
presentation of the solution is:
Based on the table, the root of the function is the last value of Xn+1, ie.,
x = 1.58416
1.6: Secant Method
Note:
The values obtained using both the Newton-Raphson and the Secant
Methods are the same for at least five decimal places. This means that
secant method is a good alternative if the derivative of the function is
challenging to obtain.