Professional Documents
Culture Documents
Chapter 11
Differentiation, Integration, and Differential
Equations
11.1 Numerical Differentiation
11.2 Numerical Integration: trapz
11.3 Length of a Curve
11.4 User-Defined Function as Input Argument: integral
11.5 Area and Centroid
11.6 Placing Weight on Spring Scale
11.7 Double Integral: Volume Under Stadium Dome
11.8 Initial Value Problems
11.9 IVP: Placing Weight on Spring Scale
11.10 ODE-BVP: Deflection of Beams
11.11 IBVP: Heat Conduction in a Wall
2
Forward Difference
dy yi+1 − yi
= , i = 1, 2, ... , n − 1
dx i xi+1 − xi
Backward Difference
dy yi − yi−1
= , i = 2, 3, ... , n
dx i xi − xi−1
Central Difference
dy yi+1 − yi−1
= , i = 2, 3, ... , n − 1
dx i xi+1 − xi−1
3
t2
x = sin 2t L = ∫ dL
t1
y = cost t2
=∫ dx 2 + dy 2 + dz 2
z=t t1
2 2 2
t2 dx dy dz
=∫ + + dt
t1 dt dt dt
6
Convergence Study
7
1 x2 1 x2
A ∫x1 A ∫x1
xc = x dA = x y1 − y2 dx
1 x2 y1 + y2
A ∫x1 2
yc = dA
1 x2 y + y
= ∫ 1 2 y1 − y2 dx
A x1 2
1 x2 2
= ∫
2A x1
y1 − y22 dx
9
BVP
PDE BVP
IBVP
14
DE ODE IVP
x BVP
PDE BVP
IBVP
17
∂T (x,t) ∂ ∂T (x,t)
= +s DE ODE IVP
∂t ∂x ∂x
0 ≤ t ≤ 1 and 0 ≤ x ≤ 1. BVP
∂T (0,t) IBVP
BCs: = B ⋅T (0,t), T (1,t) = T1
∂x
19