2. Roots of equations
The solution of f(x) is given by the quadratic formula:
The values of x’s are called roots of the function f(x) and they
represent the values of x that make f(x) =0. For this reason roots are
called sometimes zeros of the equation.
Although the quadratic formula is handy for solving f(x), there are
many other functions for which the root can’t be determined so
easily.
For these cases we are going to study Numerical methods that provide
different means to obtain the answer.
3. Roots of equations
Nonlinear Equation
Solvers
Bracketing Graphical Open Methods
Bisection
False Position
(Regula-Falsi)
Newton Raphson
Secant
4. Graphical methods
• Make a plot of f(x) and see when f(x) crosses
the x axis.
• This point represents the value of x for which
f(x)=0
5. Example
• Use the graphical approach to determine the
root of f(x)=x-14.5
x F(x)
4 -10.5
8 -6.5
12 -2.5
16 1.5
20 5.5 -12
-10
-8
-6
-4
-2
0
2
4
6
8
0 2 4 6 8 10 12 14 16 18 20 22
Eng. Muhannad Al-Jabi
6. Bracketing Methods
(Or, two point methods for finding roots)
• Two initial guesses for the root are required.
These guesses must “bracket” or be on either
side of the root.
• This method is based on the fact that a
function typically changes it’s sign in the
vicinity of a root.
• If one root of a real and continuous function,
f(x)=0, is bounded by values x=xl, x =xu then
f(xl) . f(xu) <0.
(The function changes sign on opposite sides of the root)
Eng. Muhannad Al-Jabi
8. 1. The Bisection Method
For the arbitrary equation of one variable, f(x)=0
Step1.
Choose lower xl and upper xu guesses for the root such that function
changes sign over the interval.
this can be checked by ensuring that f(xl).f(xu) <0.
Step2.
Estimate the root xr by evaluating
xr = (xl+xu)/2
Step3.
Determine in which subinterval the root lies:
+ve -ve
Xl Xr Xu
9. Eng. Muhannad Al-Jabi
a. If f(xl). f(xr) < 0, the root lies in the lower interval, then
xu= xr and go to step 2.
b. If f(xl). f(xr)> 0, root lies in the upper interval, then xl=xr
go to step 2.
c. If f(xl). f(xr) = 0, then root is xr and terminate.
Step 4. Compare es with ea where
Step 5. If ea< es, stop. Otherwise repeat the process.
11. Example
If the speed of a falling parachutist of mass m is
given by the following equation
m:the mass
c: drag coefficient
g: gravity acceleration
t: time in seconds
Eng. Muhannad Al-Jabi
)
1
(
* )*
( t
m
c
e
c
g
m
v
12. Example
Determine the drag coefficient c needed for a
parachutist of mass=68.1kg to have a velocity
of 40m/s after free falling for time t=10s and
the gravity acceleration=9.8, by using
bisection method on the interval[12,16] and
εs=0.5%
The equation will be
Eng. Muhannad Al-Jabi
40
)
1
(
8
.
9
*
1
.
68 10
)*
1
.
68
(
c
e
c
v
13. Solution
• We need to formulate the function
Eng. Muhannad Al-Jabi
0
40
)
1
(
8
.
9
*
1
.
68
)
(
10
)*
1
.
68
(
c
e
c
c
v
14. Solution
n xl xu xr f(xl) f(xr) f(xl).f(xr) Єa(%)
1 12 16 14 6.066936 1.568699 >0
2 14 16 15 1.568699 -0.42484 <0 6.666667
3 14 15 14.5 1.568699 0.552319 >0 3.448276
4 14.5 15 14.75 0.552319 0.058954 >0 1.694915
5 14.75 15 14.875 0.058954 -0.18413 <0 0.840336
6 14.75 14.875 14.8125 0.058954 -0.06288 <0 0.421941
If f(xl). f(xr) < 0, The root lies in the lower interval, then xu= xr
If f(xl). f(xr) > 0, The root lies in the upper interval, then xl=xr
If f(xl). f(xr) = 0, Then the root is xr and terminate
15. Evaluation of Method
Advantages
• Easy
• Always find root
• Number of iterations
required to attain an
absolute error can be
computed a priori.
Disadvantages
• Slow
• Know a and b that
bound root
• Multiple roots
• No account is taken of
f(xl) and f(xu), if f(xl) is
closer to zero, it is likely
that root is closer to xl .
Eng. Muhannad Al-Jabi
16. Example
Find the root of the function by using bisection
method
In the interval [0,10], iterate until εa falls below
0.5%
6
)
( 2
x
x
x
f
Eng. Muhannad Al-Jabi
18. Eng. Muhannad Al-Jabi
2. The False-Position Method
(Regula-Falsi)
If a real root is bounded by xl
and xu of f(x)=0, then we
can approximate the
solution by doing a linear
interpolation between the
points [xl, f(xl)] and [xu,
f(xu)] to find the xr value
The fact that the replacement of
the curve by a straight line gives
a “false position “ of the root
is the origin of the name.
19. Procedure
1. Find a pair of values of x, xl and xu such that f(xl) *f(xu)<0.
2. Using the similar triangles shown in the figure, the intersection
of the straight line with the x – axis can be estimated as
So estimate the value of the root from
the following formula
and evaluate f(xr).
u
r
u
l
r
l
x
x
x
f
x
x
x
f
)
(
)
(
)
(
)
(
)
)(
(
u
l
u
l
u
u
r
x
f
x
f
x
x
x
f
x
x
20. Eng. Muhannad Al-Jabi
3. Use the new point to replace one of the original points,
keeping the two points on opposite sides of the x axis.
If f(xr)*f(xl)<0 then xu=xr
If f(xr)*f(xl)>0 then xl=xr
If f(xr)=0 then you have found the root and need go no
further!
21. 4. See if the new xl and xu are close enough for
convergence to be declared. If they are not go back to
step 2.
• Why this method?
– Faster
– Always converges for a single root.
22. Example
Determine the real roots of
by using the
a) False Position Method
b) Bisection Method
5
4
3
2
65
.
0
9
4
.
45
88
3
.
82
26
)
( x
x
x
x
x
x
f
5
.
0
L
x 0
.
1
u
x
0
.
1
u
x
5
.
0
L
x
23. Solution - False Position Method
n Xl Xu Xr f(Xl) f(Xr) f(xl).f(xr)
1
0.5 1 0.62149 -1.71719 0.774501 < 0
2
0.5 0.62149 0.583727 -1.71719 0.084938 < 0 6.46934%
3
0.5 0.583727 0.579781 -1.71719 0.008812 < 0 0.68064%
4
0.5 0.579781 0.579373 -1.71719 0.000909 < 0 0.0703%
a
e
5
.
0
L
x 0
.
1
u
x
)
(
)
(
)
)(
(
u
l
u
l
u
u
r
x
f
x
f
x
x
x
f
x
x
24. Solution - Bisection Method
5
.
0
L
x
0
.
1
u
x
n xl xu xr f(xl) f(xr) f(xl).f(xr) Єa
1
0.5 1 0.75 -1.71719 2.684717 < 0
2
0.5 0.75 0.625 -1.71719 0.835182 < 0 20%
3
0.5 0.625 0.5625 -1.71719 -0.33419 > 0 11.1111%
4
0.5625 0.625 0.59375 -0.33419 0.27473 < 0 5.2631%
xr = (xl+xu)/2
At n= 4 the Єa equals 0.07% in case of using False position while it equals 5.2% in case of
using Bisection Method => The False position is Faster
25. Example
You are designing a spherical tank to hold
water for a small village. The volume of the
liquid can hold can be computed as
R: is the radius
h:is the height if the liquid
Eng. Muhannad Al-Jabi
3
3
2 2 h
R
h
v
26. Example
If R=3m, determine the depth the tank must be
filled so that it holds 30m3
a) By using bisection method, five iterations
b) By using false position method , five
iterations
Eng. Muhannad Al-Jabi
0
30
3
3
*
3
2
)
( 2
h
h
h
f
29. Example
Determine the value of
By using 5 iterations of
a)false position method
b) Bisection method
The estimated root will be between 4 and 5
why?
Eng. Muhannad Al-Jabi
18
0
18
)
(
x
x
f
30. Solution -False position method
xl xu xr f(xl) f(xr) f(xl)*f(xr) ea
4 5 4.242641 -0.24264 0 0
Eng. Muhannad Al-Jabi
)
(
)
(
)
)(
(
u
l
u
l
u
u
r
x
f
x
f
x
x
x
f
x
x
0
18
)
(
x
x
f
33. Open Methods
• Open methods start with a starting point or
the initial guess.
• Because the open methods do not bracketing
the root, they may be converges or diverges.
• On the other hand open methods are faster in
finding the root. ( more efficient).
Eng. Muhannad Al-Jabi
34. Bracketing methods Always
Converges as the root is
Constrained within the interval
Prescribed by xl and xu.
The open method depicted in figure b
And c .
The method can be either diverge or
converge
diverge
converge
36. Newton-Raphson Method
• Or it can be derived based on Taylor series expansion:
)
(
)
(
)
(
0
g,
Rearrangin
0
)
f(x
when
x
of
value
the
is
root
The
)
)(
(
)
(
)
(
1
1
1
i
1
i
1
1
i
i
i
i
i
i
i
i
i
i
i
i
i
x
f
x
f
x
x
x
x
)
(x
f
)
f(x
Rn
x
x
x
f
x
f
x
f
37. Example
• Find the root of f(x) using the Newton Raphson
method
Solution:
x
e
x
f x
)
( 0
0
x
1
)
(
'
x
e
x
f
1
1
i
i
x
i
x
i
i
e
x
e
x
x
%
1
.
0
s
e
i Xi εa
0 0
1 0.5 100
2 0.566311 11.70929
3 0.567143 0.146729
4 0.567143 2.21E-05
)
(
)
(
1
i
i
i
i
x
f
x
f
x
x
38. Use the simple fixed point iteration method to find the root using
fixed point iteration
Solution:
Eng. Muhannad Al-Jabi
x
e
x
f x
)
( 0
0
x
i Xi εa
0 0
1 1,00 100
2 0.367879 171
3 0.692201 46
4 0.500471 38
5 0.606244 17
6 0.5453 11
7 0.579612 5.9
8 0.560115 3.4
9 0.571143 1.93
10 0.564870 1.11
)
(
1 i
i x
g
x
Thus, the approach rapidly converges on the true root. Notice that the Єa at each iteration
Decreases much faster than it does in simple fixed point iteration.
39. Eng. Muhannad Al-Jabi
• A convenient method for
functions whose
derivatives can be
evaluated analytically. It
may not be convenient
for functions whose
derivatives cannot be
evaluated analytically.
40. • The need to evaluate of f(x) and it’s derivative (slope) .
• Simple and faster than other methods.
• Convergence depends on the initial guess (not guaranteed).
• Multiple root.
• Poor predication makes the convergence very slow!!!
• Newton Raphson method is quadratically convergent. That is the error is
roughly proportional to the square of the previous error as shown.
i
t
r
r
i
t E
x
f
x
f
E ,
2
'
'
1
,
)
(
'
2
)
(
Newton Raphson Method features
41. Cases where The Newton-Raphson Method exhibits poor
convergence
42. Example
• Find the root of Using Newton
Raphson method.
Use
Try and
Solution
5
.
2
7
.
1
9
.
0
)
( 2
x
x
x
f
5
0
x
7
.
1
8
.
1
5
.
2
7
.
1
9
.
0
2
1
i
i
i
i
i
x
x
x
x
x
%
1
.
0
s
e
1
0
x
Xi εa
1
34 97.05882
17.52773 -93.9783
9.346734 -87.5279
5.363967 -74.2504
3.569381 -50.2772
2.95593 -20.7532
2.862387 -3.26802
Xi εa
5
3.424658 -46
2.924357 -17.1081
2.861147 -2.20925
2.860105 -0.03644
We can see that for this function,
newton raphson method is faster
when starting with X0 =5
7
.
1
8
.
1
)
(
'
x
x
f
44. Solution- Newton-Raphson method
x f(x) f'(x) ea
5 -13.5 -8.2
3.353659 -2.71044 -4.90732 49.09091
2.801332 -0.30506 -3.80266 19.71656
2.721108 -0.00644 -3.64222 2.948204
8
.
1
2
5
.
2
8
.
1
2
1
i
i
i
i
i
x
x
x
x
x
Starting with x0=5 and use εs=5%.
8
.
1
2
)
(
'
5
.
2
8
.
1
)
( 2
x
x
f
x
x
x
f
46. The Secant Method
• As introduced in the Newton Raphson method, There is a need to calculate the
first derivative of f(x) which is not convenient in some cases.
• For these cases the derivative can be approximated as:
This approximation can be substituted in the Newton Raphson equation to yield the
following iterative equation:
1
1
1
)
(
)
(
)
(
i
i
i
i
i
i
i
x
x
x
f
x
f
x
f
x
x
1
1)
(
)
(
)
(
i
i
i
i
i
x
x
x
f
x
f
x
f
)
(
)
(
1
i
i
i
i
x
f
x
f
x
x
Newton Raphson method
)
(
)
(
)
(
1
1
1
i
i
i
i
i
i
i
x
f
x
f
x
x
x
f
x
x
Slope of the secant
47. The Secant Method
• Requires two initial estimates
of x , e.g, xo, x-1. However,
because f(x) is not required to
change signs between
estimates, it is not classified
as a “bracketing” method.
• The secant method has the
same properties as Newton’s
method. Convergence is not
guaranteed for all xo, f(x).
48. The secant method technique is
similar to the Newton-Raphson
in sense that an estimate of the
root is predicted by
extrapolating a tangent of the
function to the x-axis.
The secant method uses a difference
rather than a derivative to estimate the
slope in each step.
The slope of the secant line is the
average change of f(x) over an interval
[xi-1,xi]
The slope of the tangent line is rate of
change of f(x) at xi.
Secant method
Newton method
50. • The Van der Waals equation of state is given as
shown below:
• If a = 1.33 (liter/mol)2, b = 0.0366 liter/mol, R =
0.08206 (liter.atm/mol.K) and the air is at
temperature T = 223 K and pressure P = 50 atm.
• Use secant method to estimate specific volume V
using only three iterations? Estimate εa for each
iteration? The initial guesses are V-1 = 0.1 and V0
= 0.2 .
52. Example
• Suppose that you have the following electrical
circuit L = 5H, C=10-4 F.
Find the value of R that makes the value of
the capacitor charge (q) equals to 0.01 of the
initial capacitor charge (q0) after 0.05 seconds
from turning the switch.
Use secant method with xi=250, xi-1=260,
εs=0.01
55. Solution
xi-1 xi xi+1 ea
250 260 319.1185 18.52555
260 319.1185 327.0756 2.432807
319.1185 327.0756 328.134 0.322543
327.0756 328.134 328.1514 0.005315
Eng. Muhannad Al-Jabi
)
(
)
(
)
(
1
1
1
i
i
i
i
i
i
i
x
f
x
f
x
x
x
f
x
x
56. The Difference Between The Secant method and False Position Method
)
(
)
(
)
(
1
1
1
i
i
i
i
i
i
i
x
f
x
f
x
x
x
f
x
x
False Position
Secant Method
)
(
)
(
)
)(
(
u
l
u
l
u
u
r
x
f
x
f
x
x
x
f
x
x
57. The two estimates of xl and xu Always
bracket the root And the convergence
is guaranteed
The values are replaced in strict sequence
, Xi+1 ---------> Xi
Xi ---------> Xi-1
The two values can some times lie
on the same side of the root which can
Lead to divergence
A critical difference between the methods is how one of the initial values is
replaced by the new estimates !!!!!!!!!
58. The figure below shows the true percent error єt for the methods to determine
the roots of f(x)= exp(-x) – x .
59. Multiple roots
A multiple root (double, triple, etc.) occurs where the function is tangent to the x
axis.
For example a double result from
f(x)= (x-3)(x-1)(x-1) = x³ -5x²+7x-3
This equation has a multiple root because one value of root makes the two terms
equal to zero.
Graphically this corresponds to the curve
touching the x axis tangentially at the double
root.
Note: that the function touches the x axis but does
not cross it at the root.
60. • A multiple root (double, triple, etc.) occurs
where the function is tangent to the x axis
single root double roots
61. Note: that the function touches the x axis but
cross it at the root.
In general odd multiple root crosses the axis whereas
even do not.
62. Problems with multiple roots
• The function does not change sign at even multiple roots (i.e., m = 2, 4, 6, …)
which means that Bracketing methods can’t be applied.
• f (x) goes to zero - This means that Newton Raphson method and Secant method
can’t be applied.
A need to put a zero check for f(x) in program.
• Slower convergence (linear instead of quadratic) of Newton-Raphson and secant
methods for multiple roots.
Modification have been applied to alleviate this problem
(i.e. multiplicity of the root, m = 2, 4, 6, …)
)
(
)
(
1
i
i
i
i
x
f
x
f
m
x
x
63. • A more general modification is to define a new function
u(x), that is equal to the ratio of the function to its first derivative as
in
It can be shown that this function has roots at all the same locations
as the original functions. Therefore the Newton Raphson equation
Can be developed to following equation for multiple roots
)
(
)
(
1
i
i
i
i
x
f
x
f
x
x
)
(
'
)
(
1
i
i
i
i
x
u
x
u
x
x
)
(
'
)
(
)
(
i
i
x
f
x
f
x
u
64. Eng. Muhannad Al-Jabi
• The above equation can be written in terms of f(x)
)
(
'
'
)
(
)]
(
'
[
)
(
'
)
(
2
1
i
i
i
i
i
i
i
x
f
x
f
x
f
x
f
x
f
x
x
65. Example
• Use both standard and modified Newton
Raphson methods to find the roots of
a) Start at xo = 0
b) Start at xo = 4
Do five iterations only and compare the behavior of
εa between standard and modified methods in
part a and part b
)
1
)(
1
)(
3
(
)
(
x
x
x
x
f
66. Solution part a : xo = 0
Xi εa
0
0.428571 100
0.685714 37.5
0.832865 17.66805
0.91333 8.810014
0.955783 4.441739
Standard
Xi εa
0
1.105263 100
1.003082 -10.1868
1.000002 -0.30793
1 -0.00024
1 -1.4E-10
Modified
We can see that the modified method is faster because there are
multiple roots at x=1 and it becomes quadratically convergent.
)
(
'
'
)
(
)]
(
'
[
)
(
'
)
(
2
1
i
i
i
i
i
i
i
x
f
x
f
x
f
x
f
x
f
x
x
)
(
)
(
1
i
i
i
i
x
f
x
f
x
x
67. Solution part b: xo = 4
Xi εa
4
3.4 -17.6471
3.1 -9.67742
3.008696 -3.03468
3.000075 -0.28736
3 -0.00249
standard
Xi εa
4
2.636364 -51.7241
2.820225 6.519377
2.961728 4.777734
2.998479 1.225638
2.999998 0.050632
modified
We can see that the standard method is faster because there is single root at x=3
68. Systems of nonlinear equations
To this point we focused on the determination of the root of a single equation.
A related problem is to locate the roots of a set of simultaneous
equations.
f1(x1, x2, x3,…. xn)=0
f2(x1, x2, x3,…. xn)=0
fn(x1, x2, x3,…. xn)=0
Example of simultaneous non linear equations with two unknowns:
x² + xy = 10
y+3xy²= 57
They can be expressed in this form
u(x,y) = x² + xy – 10 =0
v(x,y)= y+3xy² - 57= 0
69. Systems of nonlinear equations
The solutions would be the values of x and y that make
u(x,y)=0 and v(x,y)=0.
Most approaches for determining such solutions are
extensions of the open method for solving single
equations.
70. Systems of nonlinear equations
Fixed point iterations
Let us we have two equations
u(x,y)=0 and v(x,y)=0.
From u(x,y) we can extract x to be
Xi+1 = gu(xi,yi)
And from v(x,y) we can extract y to be
Yi+1=gv(xi+1,yi)
Eng. Muhannad Al-Jabi
71. Systems of nonlinear equations
The convergence depends on the manner in which the
equations are formulated and the initial guesses
Convergence of fixed point iterations
This fixed point iteration has limited utility for solving non-linear systems. However,
this method is useful for solving linear systems.
72. Example
Solve the following system of nonlinear
equations using fixed point iterations, for two
iterations only and start with x=1.5,y=3.5
0
57
3
)
,
(
0
10
)
,
(
2
2
xy
y
y
x
v
xy
x
y
x
u
We can see that x and y can be extracted by multiple ways
73. Solution-diverges
x y Єax Єay
1.5 3.5
2.214286 -24.375 32.25806 -114.359
-0.20911 429.7136 -1158.93 105.6724
0.02317 -12778 1002.5 -103.363
gu (x,y)
gv(x,y)
y
x
x
2
10
2
3
57 xy
y
Diverges
74. Solution-converges
x y εax εay
1.5 3.5
2.179449 2.860506 31.17528 22.35598
1.940534 3.049551 12.31185 6.1991
2.020456 2.983405 3.955661 2.217129
gu (x,y)
gv(x,y)
xy
x
10
x
y
y
3
57
converges
80. Example
Use Newton-Raphson method to solve the
following equations, starting with x=1,y=1, for
two iterations only
Eng. Muhannad Al-Jabi
0
cos
2
)
,
(
0
1
)
,
( 2
y
x
y
x
v
y
x
y
x
u
x
x
u
2
1
y
u
x
x
v
sin
2
1
y
v
81. solution
x y
1 1
0.750364 1.500728
0.715397 1.51057
0.714621 1.510683
0.714621 1.510683
Eng. Muhannad Al-Jabi
82. f(r)= 40r + -1 =0
Example : Use the Newton Raphson Method to find the monthly interest rate (r) correct to 4
significant figures. Use initial guess at r0=0.015.
ri f(ri) f’(ri) r i+1
0.015 9.2959*10-3 15.805 0.01441184
0.01441 2.2707*10-4 14.9316 0.01439499
0.01439 -7.126*10-5 14.90144 0.01439478
We stopped here as 4 similar
significant figures has been
obtained.
83. Example
Find the intersection point of the line
• y=x
And the circle
• x2+y2=5
By using fixed point iteration method with 4
iterations only
Eng. Muhannad Al-Jabi
85. Solution
i xi xi+1 yi yi+1
0 1 2.179449 0.5 2.179449
1 2.179449 0.500000 2.179449 0.500000
2 0.500000 2.179449 0.500000 2.179449
3 2.179449 0.500000 2.179449 0.500000
4 0.5 0.5
Eng. Muhannad Al-Jabi
5
.
0
1
0
0
y
x
)
,
(
)
,
(
)
,
(
5
)
,
(
1
1
1
2
i
i
v
i
v
i
i
u
i
u
y
x
g
y
x
y
x
g
y
x
g
x
y
y
x
g
86. Question 6.1
Use simple fixed point iteration to locate the
root of
Use the initial guess of x0=0.5 and εs=0.01
Eng. Muhannad Al-Jabi
x
x
x
f
)
sin(
2
)
(
87. Solution
x g(x) ea
0.5 1.299274
1.299274 1.817148 61.51697
1.817148 1.950574 28.49926
1.950574 1.969743 6.840367
1.969743 1.972069 0.973152
1.972069 1.972344 0.117966
1.972344 1.972377 0.013958
1.972377 1.97238 0.001647
Eng. Muhannad Al-Jabi
)
sin(
2
)
( x
x
g
)
(
1 i
i x
g
x
88. Question 6.2
Determine the root of
a)Graphically
b)Fixed point iteration method (three iterations,
x0=3).
c)Newton-Raphson method(three iterations x0=3).
d) Secant method(three iterations, xi-1=3,xi=4)
e)Modified secant method( three iterations
,x0=3,δx=0.01)
Eng. Muhannad Al-Jabi
5
7
.
17
7
.
11
2
)
( 2
3
x
x
x
x
f
89. Solution b : Fixed point iteration
method
Eng. Muhannad Al-Jabi
2
2
2
5
7
.
17
7
.
11
)
(
x
x
x
x
g
x g(x) ea
3 3.177778
3.177778 3.312602 5.594406
3.312602 3.406209 4.070042
3.406209 3.467279 2.748134
95. Question 6.12
Determine the roots of the following
simultaneous nonlinear equations
using
a) Fixed point iteration
b) Newton-Raphson method
Eng. Muhannad Al-Jabi
x
xy
y
x
x
y
5
75
.
0
2
96. Solution-Fixed point iteration
Eng. Muhannad Al-Jabi
x
x
y
y
x
g
y
x
y
x
g
x
xy
y
y
x
v
x
x
y
y
x
u
x
xy
y
x
x
y
v
u
5
)
,
(
75
.
0
)
,
(
5
)
,
(
75
.
0
)
,
(
5
75
.
0
2
2
100. Question 6.13
Determine the roots of the simultaneous
nonlinear equations
Use graphical approach to obtain your initial
guesses. Then use Newoton-Raphson method
to refine your estimate
Eng. Muhannad Al-Jabi
16
5
)
4
(
)
4
(
2
2
2
2
y
x
y
x
107. Civil Engineering application
Question 8.18
Suppose that you have a uniform beam subject to linearly
increasing distributed load. The equation for the resulting elastic
curve
Use the bisection method to determine the point of maximum
deflection( that is, the value of x where dy/dx=0). Then
substitute this value of x in the equation to get the maximum
deflection.
L=600cm, E=50000kN/cm2,I=30000cm4, ω0=2.5kN/cm. use εs=10%
)
2
(
120
4
3
2
5
0
x
L
x
L
x
EIL
y
110. Graphical solution
x f(x)
0 -360000
1 1799995
2 8279920
3 19079595
4 34198720
It seems that the maximum deflection
occurs within the first centimeter
112. Environmental Engineering application
Question 8.19
The following equation can be used to compute
the oxygen level c (mg/L) in a river
downstream from a sewage discharge
Where x is the distance in kilometers.
)
(
20
10 5
.
0
15
.
0 x
x
e
e
c
113. a) Determine the distance downstream where the
oxygen level first falls to a reading of 5mg/L.
Hint: it will be within the first 2 kilometers of the
discharge. Determine your answer to 10% error
b) Determine the distance at which the concentration is
minimum, and what is the concentration at that
location. Determine your answer to 5% error
Question 8.19
114. Solution -a
Since the answer will be within the first 2
kilometers, we can use bracketing method such
as the bisection method with x0=0 and xu =2.
0
5
)
(
20
10
)
( 5
.
0
15
.
0
x
x
e
e
x
f
116. Solution -b
x f’(x)
0 0.35
1 0.174159
2 0.072817
3 0.015921
4 -0.01465
0
)
5
.
0
15
.
0
(
20
)
(
' 5
.
0
15
.
0
x
x
e
e
x
f
0
)
5
.
0
15
.
0
(
)
(
' 5
.
0
15
.
0
x
x
e
e
x
f
117. Solution -b
xl xu xr f(xl) f(xu) f(xr) ea
3 4 3.5 0.015921 -0.01465 -0.00185
3 3.5 3.25 0.015921 -0.00185 0.006332 7.692308
3.25 3.5 3.375 0.006332 -0.00185 0.002078 3.703704
The minimum concentration occurs at x=3.375 and it equals to 1.644595
We select xl =3 and xu =4 as the curve changes it’s sign around it
118. A total charge Q is uniformly distributed around a ring
shaped conductor with radius a. A charge q is located
at a distance x from the center of the ring. The force
exerted on the charge by the ring is given by
Where e0 =8.85*10-12 C2/(Nm2). Find the distance x
where the force is 1.25N if Q and q are 2*10-5C for a
ring with a radius of 0.9m
2
/
3
2
2
0 )
(
4
1
a
x
qQx
e
F
Electrical Engineering application
Question 8.31
The fact that the replacement of the curve by a straight line gives a “false position “ of the root is the origin of the name.
8-9.5 12 sep.
10-11 16sep.
8-9.5 19sep
To avoid the need of calculating the first derivative of f(x) at each step, we exploit the relationship between secant line and tangent line .
The slope of the secant line is the average change of f(x) over an interval [a,b].
The slope of the tangent line is rate of change of f(x) at b.
u(x) contains only single roots even though f(x) may have multiple roots