Presentation is loading. Please wait.

Presentation is loading. Please wait.

Numerical Differentiation

Similar presentations


Presentation on theme: "Numerical Differentiation"β€” Presentation transcript:

1 Numerical Differentiation
When function is given as Analytical expression Values at discrete points For complicated functions and discrete pt values; Derivatives replaced by discrete forms Differentiation done by finite difference approximation

2 Engineering Applications
Most engineering and scientific problems involve derivatives Temperature distribution Response of mass-spring to excitation (gun recoil, shock absorbers, etc.) Many others..

3 Definition of Derivatives
For finite differences; π‘‘π‘“ξ‚žπ‘₯ξ‚Ÿ 𝑑π‘₯ π‘₯ 0 =π‘“β€²ξ‚ž π‘₯ 0 ξ‚Ÿ= lim π‘₯ξ‚Œ π‘₯ 0 π‘“ξ‚žπ‘₯ξ‚Ÿβˆ’π‘“ξ‚ž π‘₯ 0 ξ‚Ÿ π‘₯βˆ’ π‘₯ 0 π‘“β€²ξ‚ž π‘₯ 0 ξ‚Ÿβ‰ˆ π‘“ξ‚žπ‘₯ξ‚Ÿβˆ’π‘“ξ‚ž π‘₯ 0 ξ‚Ÿ ξ‚­π‘₯

4 Basic Finite Diff. Approximations
Two point forward difference Two point backward difference Two point central difference 𝑑𝑓 𝑑π‘₯ 𝑖 β‰ˆ 𝑓 ξ‚­π‘₯ = 𝑓 𝑖1 βˆ’ 𝑓 𝑖 π‘₯ 𝑖1 βˆ’ π‘₯ 𝑖 𝑑𝑓 𝑑π‘₯ 𝑖 β‰ˆ 𝑓 ξ‚­π‘₯ = 𝑓 𝑖 βˆ’ 𝑓 π‘–βˆ’1 π‘₯ 𝑖 βˆ’ π‘₯ π‘–βˆ’1 𝑑𝑓 𝑑π‘₯ 𝑖 β‰ˆ 𝑓 ξ‚­π‘₯ = 𝑓 𝑖1 βˆ’ 𝑓 π‘–βˆ’1 π‘₯ 𝑖1 βˆ’ π‘₯ π‘–βˆ’1

5 Based on Taylor Series π‘“ξ‚ž π‘₯ 𝑖1 ξ‚Ÿβ‰ƒπ‘“ξ‚ž π‘₯ 𝑖 ξ‚Ÿξ‚ƒπ‘“β€²ξ‚ž π‘₯ 𝑖 ξ‚Ÿξ‚ž π‘₯ 𝑖1 βˆ’ π‘₯ 𝑖 ξ‚Ÿξ‚ƒ π‘“β€²ξ‚ž π‘₯ 𝑖 ξ‚Ÿ 2! ξ‚ž π‘₯ 𝑖1 βˆ’ π‘₯ 𝑖 ξ‚Ÿ 2  π‘“β€²β€²ξ‚ž π‘₯ 𝑖 ξ‚Ÿ 3! ξ‚ž π‘₯ 𝑖1 βˆ’ π‘₯ 𝑖 ξ‚Ÿ 3  𝑓 ξ‚žπ‘›ξ‚Ÿ ξ‚ž π‘₯ 𝑖 ξ‚Ÿ 𝑛! ξ‚ž π‘₯ 𝑖1 βˆ’ π‘₯ 𝑖 ξ‚Ÿ 𝑛  𝑅 𝑛

6 Finite divided difference
Truncating 2nd order & higher terms & rearrange First forward difference π‘“β€²ξ‚ž π‘₯ 𝑖 ξ‚Ÿ= π‘“ξ‚ž π‘₯ 𝑖1 ξ‚Ÿβˆ’π‘“ξ‚ž π‘₯ 𝑖 ξ‚Ÿ π‘₯ 𝑖1 βˆ’ π‘₯ 𝑖 ξ‚ƒπ‘‚ξ‚ž π‘₯ 𝑖1 βˆ’ π‘₯ 𝑖 ξ‚Ÿ = π‘“ξ‚ž π‘₯ 𝑖1 ξ‚Ÿβˆ’π‘“ξ‚ž π‘₯ 𝑖 ξ‚Ÿ β„Ž = ξ‚­ 𝑓 𝑖 β„Ž ξ‚ƒπ‘‚ξ‚žβ„Žξ‚Ÿ


Download ppt "Numerical Differentiation"

Similar presentations


Ads by Google