Roots: Graphical
Roots: Graphical
-
of Equations
Method
·
Graphical
· Bisection Method
· False Position
-
Method
Roots of Equations
Root of f(x): Values of x that makes f(x) = 0
Also, called Zeros of the equation
−𝒃 ± 𝒃𝟐 − 𝟒𝒂𝒄
𝒙=
𝟐𝒂
f ( x ) = e− x − x
How about these functions?
f ( x ) = sinx + x = 0
Bracketing Open
Methods
Graphical Fixed-point
Bisection Newton-
Raphson
False-
Position Secant
Graphical Method
Plot the function 𝒇 𝒙 and obtain values of 𝒙 for 𝒇 𝒙 = 𝟎
Example: Determine drag coefficient (c) need for a parachutist of mass m = 68.1 kg to
have a velocity of 40 m/s after free-falling for time-
t = 10 s.
𝒈𝒎 𝒄 𝟔𝟔𝟕. 𝟑𝟖 −
𝒄
𝒗= 𝟏−𝒆
− 𝒎 𝒕
𝒇 𝒄 = 𝟏−𝒆 𝟔𝟖.𝟏 𝟏𝟎 − 𝟒𝟎
𝒄 𝒄
f(c)=
&(1 e
4m +
-
) - v
Helpful in getting approximate estimates, so it can be used as guess for other methods
𝒇(𝒙) has same sign,
No roots
(xl , xu]
If 𝒇 𝒙𝒍 and 𝒇(𝒙𝒖 ) has
opposite signs at end
𝒇(𝒙) changes sign once,
One root
points, then odd number
of roots
( 2r]
, , [2 2n]
,
Set Ku =
Pr
Case I .
Set xe =
xr
III
Lase. If f(xe) f(xr) = 0
Terminate the
process.
2 .
g .
40
xu xy
=
x =
12 & xy =
16 [14 ,
15]
= = 14
=
f(xe)f(xm) = f((z) f((4) = 9 51770
29
.
sub-interval xe xr
[14 16]
=
,
z
=
14 S
=
.
= 15
f(u) +(15) = 1 :
569(-0 .
425)
= -
0 .
66640
Approximate Percent
Relative Error -
Here absolute is used because we are concerned about magnitude rather than sign
-14 825 .
[ ·
12 In ~
14 5 In .
.
16 515
11/
so now we
x100 = 5 667
.
%
:
.
C .
computed a
priori &
-
20NS
>
- Must know a and b that bound
root
- Multiple roots ?
-
Convergence is
relatively slow ?
False- Position
Method
Utilizes the
information of
function values
intersection
Using similar
triangles ,
be
the
estimated as
of the
straight
line with the x-axis can
f(xe)(x-xu) f) ( =
= + (xu)xe
xu +(e) -
xr(f(xe) +(u) -
=
f(x)
f(xu)xy
-
= xuf(x) -
f(xu)xu +
f(xu)
it
A
- . ↑
Nu
ar
f(xi)
Using false position method for the same example
First Iteration :
Second iteration:
which has true and approximate relative errors of 0.09 and 0.79 percent.