LA - Lecture Notes Numerical Analysis
LA - Lecture Notes Numerical Analysis
Bisection Method: The bisection method, which is alternatively called binary chopping, interval halving,
or Bolzano’s method, is one type of incremental search method in which the interval is always
divided in half.
= 0
Step 1
we can see that the function changes sign between values of 12 and 16. Therefore, the initial
estimate of the root xr lies at the midpoint of the interval.
Step 2
Step 3
1
the root must be located between 14 and 16. Therefore, we create a new interval by redefining
the lower bound as 14 and determining a revised root estimate as
……….
2
MATLAB CODE Bisection
a=input('Enter Function:','s');
f=inline(a);
if f(xu)*f(xl)<0
else
end
for i=2:1000
xr=(xu+xl)/2;
if f(xu)*f(xr)<0
xl=xr;
else
xu=xr;
end
if f(xl)*f(xr)<0
xu=xr;
else
xl=xr;
end
xnew(1)=0;
xnew(i)=xr;
if abs((xnew(i)-xnew(i-1))/xnew(i))<tol,break,end
end
OPEN METHODS
Open methods are based on formulas that require only a single starting value of x or two
starting values that do not necessarily bracket the root.
Example
6
The Newton-Raphson method
7
8
Pitfalls of the Newton-Raphson Method
Although the Newton-Raphson method is often very efficient, there are situations where it
performs poorly
Secant Method
9
10
11
12
ENGINEERING APPLICATIONS OF ROOT FINDINGS
EX.1
EX.2
13
EX.3
EX.4
14
EX.5
EX.6-7
15
EX.8
EX.9
16
EX.10
1. There are times in which exact formulas are available but they are very complicated
to the point that an exact computation of the derivative requires a lot of function
evaluations. It might be significantly simpler to approximate the derivative instead
of computing its exact value.,
2. There are some cases where it may not be obvious that an underlying function exists and all
that we have is a discrete data set. We may still be interested in studying changes in the data,
which are related, of course, to derivatives.
TAYLOR SERIES
17
18
19
Similar improved versions can be developed for the backward and centered formulas
as well as for the approximations of the higher derivatives. The formulas are
summarized.
20
Backward finite-divided difference formulas
21
Centered finite-divided difference formulas:
22
23
For the finite-divided-difference approximations of Sec. 23.1, the data had to be evenly
spaced. Such control of data spacing is usually available only in cases where we can use a
function to generate a table of values.
In contrast, empirically derived information—that is, data from experiments or field
studies—is often collected at unequal intervals. Such information cannot be analyzed with
the techniques discussed to this point.
24
25