EMNS0323 Formula Index
EMNS0323 Formula Index
EMNS0323 Formula Index
Formula Index
Write the following on upper part of the index card (both sides):
1. Name
2. Course and Bloc ex. EMNS0323 BSCE-CEM3A
FRONT PART
Cubic Spline Interpolation
1
𝑓(𝑥) = {[(𝑥𝑖+1 − 𝑥)3 𝑓 ′′ (𝑥𝑖 ) + (𝑥 − 𝑥𝑖 )3 𝑓 ′′ (𝑥𝑖 )] + [6𝑓(𝑥𝑖 ) − (𝑥𝑖+1 − 𝑥𝑖 )2 𝑓′′(𝑥𝑖 )](𝑥𝑖+1 − 𝑥) + [6𝑓(𝑥𝑖+1 ) − (𝑥𝑖+1 − 𝑥𝑖 )2 𝑓′′(𝑥𝑖+1 )](𝑥 − 𝑥𝑖 )}
6(𝑥𝑖+1 −𝑥𝑖)
for 𝑥𝑖 ≤ 𝑥 ≤ 𝑥𝑖+1
Numerical Differentiation
High Accuracy
Backward Difference
3𝑓(𝑥𝑖 ) − 4𝑓(𝑥𝑖−1 ) + 𝑓(𝑥𝑖−2 )
𝑓′(𝑥𝑖 ) =
2ℎ
Central Difference
−𝑓(𝑥𝑖+2 ) + 8𝑓(𝑥𝑖+1 ) − 8𝑓(𝑥𝑖−1 ) + 𝑓(𝑥𝑖−2 )
𝑓′(𝑥𝑖 ) =
12ℎ
Forward Difference
−𝑓(𝑥𝑖+2 ) + 4𝑓(𝑥𝑖+1 ) − 3𝑓(𝑥𝑖 )
𝑓′(𝑥𝑖 ) =
2ℎ
Differential Equations
Euler Method
𝑦𝑛+1 = 𝑦𝑛 + ℎ𝑓(𝑥𝑛 , 𝑦𝑛 )
Modified Euler’s Predictor-Corrector Method
ℎ
𝑦𝑛+1 = 𝑦𝑛 + [𝑓(𝑥𝑛 , 𝑦𝑛 ) + 𝑓(𝑥𝑛 + ℎ, 𝑦𝑛 + ℎ𝑓(𝑥𝑛 , 𝑦𝑛 ))]
2
BACK PART
Fourth Order Runge- Kutta Method
1
𝑘𝑛 = (𝑘1𝑛 + 2𝑘2𝑛 + 2𝑘3𝑛 + 𝑘4𝑛 )
6
𝑘1𝑛 = ℎ ∙ 𝑓(𝑥𝑛 , 𝑦𝑛 )
ℎ 𝑘1𝑛
𝑘2𝑛 = ℎ ∙ 𝑓 (𝑥𝑛 + , 𝑦𝑛 + )
2 2
ℎ 𝑘2𝑛
𝑘3𝑛 = ℎ ∙ 𝑓 (𝑥𝑛 + , 𝑦𝑛 + )
2 2
𝑘4𝑛 = ℎ ∙ 𝑓(𝑥𝑛 + ℎ, 𝑦𝑛 + 𝑘3𝑛 )
Boundary Value Problem
Shooting Method
1 1
𝑘𝑛 = (𝑘 + 2𝑘2𝑛 + 2𝑘3𝑛 + 𝑘4𝑛 ) 𝐾𝑛 = (𝐾1𝑛 + 2𝐾2𝑛 + 2𝐾3𝑛 + 𝐾4𝑛 )
6 1𝑛 6
𝑧𝛼2 − 𝑧𝛼1
𝑧0 = 𝑧𝛼1 + (𝑦 − 𝑦𝑛1 )
𝑦𝑛2 − 𝑦𝑛1 𝑛
Finite Difference Method
𝑦𝑛+1 − 2𝑦𝑛 + 𝑦𝑛−1
𝑦′′ =
ℎ2