Professional Documents
Culture Documents
University of Palestine Gaza Strip Civil Engineering College Numerical Analysis CIVL 3309 Dr. Suhail Lubbad
University of Palestine Gaza Strip Civil Engineering College Numerical Analysis CIVL 3309 Dr. Suhail Lubbad
Gaza Strip
Spend VS Income
d *dependent variable+
Spend '= means derivative, and so is d
d *independent variable+
Spend Vs Time
d Spend
Spend ' =
d Time
Rate of change of the direction depends on how big the twist of the
wheels is
Not on
Yet Still
Different points give different values !!!
Those different values are averages
average rate of change between those two points is the slope of the secant.
,y F *Q+−F *P+
Slope of the secant = =
,x ,x
BUT
What is the rate of change exactly at at the point x?
Or what is the slope of the tangent at the point x?
,y F *Q+−F * P+
Slope of the tangent = F ' = lim = lim
, x )0 ,x , x )0 ,x
Rewrite
,x)h
the newton quotent becomes :
F *x'h+−F *x+
h
2
F *x+=x
2 2
F *x'h+=x 'h '2xh
then
2
F *x'h+−F *x+ 2hx'h
= =2x
h h
derive it the way you learned in CALCULUS
Graphical Differentiation
One should be able to estimate the shape of the derivative of a plotted
function; it is not required for exams in our course, but it makes it sure
you understand the idea of derivatives .
Algebraic differentiation background
n
y=x y '=nx n−1
n du
y= * u *x++ y '=nu n−1
dx
du dv
y=uv y '=v 'u
dx dx
du dv
v −u
u dx dx
y= y '= 2
v v
Numerical Differentiation
The basic derivation of the formulae are obtained from the Taylor
expansion, as was done before: the same slides are here once again
Finite difference technique :
2
h h n−1
f n−1 * x+ ∣x 'O * h +
n
f * x0 'h+=f *x 0 +'h f '*x +∣x ' f ' ' * x +∣x '⋯'
0
2! 0
* n−1 + ! 0
Where x 1 (x 0 (x 0'h(x 2 .
Simple Finite Difference Approximation to a Derivative
Rearranging Rearranging
f * x0 'h+−f * x0 + f * x0 +−f * x0 −h+
'O * h + =f '*x 0 + ' O * h + =f '* x 0 +
n n
h h
O * hn + ) 0 O * hn + ) 0
Similarly
f *x i'3 +−3f *x i'2 +'3f *x i '1 +−f *x i +
f '' '*x i += 3
h
Backward Difference Formulae with O(h) error
f *x i +−f *x i−1 +
f '* xi +=
h
Similarly
f *x i +−3f *x i−1 +'3f *x i−2 +−f * x i−3 +
f ' ''*x i += 3
h
Centered Difference Formulae with O(h 2) error
Similarly
f *x i'2 +−2 f *x i'1 +'2 f *x i−1 +−f *x i−2 +
f ' ''*x i += 3
2 h
Can we compute the true ERROR?
Then find out the f''(0.8) and compare it with the true f'' = – cos(0.8)
Example 23.1
4 3 2 x
f *x+=− 0.1x − 0.15x − 0.5x − 0.25 '1.2