Professional Documents
Culture Documents
CH6 Numerical Differentation
CH6 Numerical Differentation
CH6 Numerical Differentation
Numerical
Differentiation
Introduction
Numerical differentiation is a mathematical method
used to approximate the derivative of a function
using numerical calculations instead of analytical
methods. The derivative of a function at a point
is the slope of the tangent line to the function at
that point. In many cases, the function to be
differentiated cannot be expressed analytically or
is too complicated to differentiate analytically. In
such cases, numerical differentiation can be a
useful tool for estimating the derivative.
Table of contents
01 02
Analytical Purpose and
Differentiation importance
03 04
Comparison of
Methods
Methods
Analytical
01 Differentiatio
n
Analytical
Differentiation
Analytical differentiation refers to the process of
finding the exact derivative of a function
using algebraic rules and formulas.
It involves taking the limit of the difference
quotient as the change in the independent
variable approaches zero.
Analytical differentiation is typically used to
find the derivative of simple functions with
closed-form expressions.
Analytical Differentiation
Limitations:
Example:
Consider the derivative of sin(x) + e^x using Analytical differentiation is limited to functions that have
Analytical Differentiation with x=1. closed-form expressions or can be easily expressed in terms
of standard functions.
In differential calculus, the derivative of sin (x) is It can become complex or impossible to find the exact
cos(x) and e^x is still e^x derivative of a function when dealing with more complex
Therefore, the derivative of sin(x)+e^x is cos (x) + functions or systems of equations.
e^x with the value of 3.25858413432718 Analytical differentiation may not be computationally efficient
substituting x=1. when working with large data sets or complex numerical
simulations.
02
Purpose and importance
Purpose and importance of numerical
differentiation
Numerical differentiation is an essential tool in
scientific and engineering fields where it is necessary
to estimate the derivatives of complex functions. It
provides a way to calculate the rate of change of a
function and is used to model and analyze systems that
are governed by differential equations. Numerical
differentiation is also useful in optimizing designs and
in estimating the sensitivity of a model to changes in
input variables.
Examples of practical applications:
Economics and
Physics
Finance
Numerical differentiation is used to Numerical differentiation is used to
estimate the velocity and acceleration estimate the sensitivity of a financial
of an object based on its position data model to changes in input variables.
Examples of practical applications:
Newton’s Backward
′
𝑓 ( 𝑥 𝑖 )= Difference
3 𝑓 ( 𝑥𝑖 ) − 4 𝑓 ( 𝑥 𝑖 − h ) + 𝑓 ( 𝑥 𝑖 − 2 h )
2h
Newton’s Central
𝑓 ′ ( 𝑥 𝑖 )= Difference
𝑓 ( 𝑥𝑖 − 2 h ) − 8 𝑓 ( 𝑥𝑖 − h ) +8 𝑓 ( 𝑥 𝑖 +h ) − 𝑓 ( 𝑥𝑖 +2 h )
12 h
Newton’s Forward
Difference Method
Newton’s Forward Difference Method
That's it! You can then check the accuracy of the approximation
and adjust the step size if needed.
Newton’s Forward Difference Method
Example
● Approximate the first derivative of the function
f(x) = sin(x) + e^x at the point x = 1, using the
Newton’s forward difference method with h=0.1.
Solution:
Step 1: Choose the function f(x) and the point xi at which to
approximate the derivative. In this case, f(x) = sin(x) + e^x and xi =
1.
That's it! You can then check the accuracy of the approximation
and adjust the step size if needed.
Newton’s Backward Difference Method
Example
● Approximate the first derivative of the function
f(x) = sin(x) + e^x at the point x = 1, using the
Newton’s backward difference method with
h=0.1.
Solution:
Step 1: Choose the function f(x) and the point xi at which to
approximate the derivative. In this case, f(x) = sin(x) + e^x and xi =
1.
Choose the function f(x) Evaluate the function at the four data
and the point xi at which to Step 2 points: f(xi+h), f(xi+2h). f(xi-h), and Step 4
approximate the derivative. f(xi-2h).
That's it! You can then check the accuracy of the approximation
and adjust the step size if needed.
Example
● Approximate the first derivative of the function
f(x) = sin(x) + e^x at the point x = 1, using the
Newton’s central difference method with h=0.1.
Solution:
Step 1: Choose the function f(x) and the point xi at which to
approximate the derivative. In this case, f(x) = sin(x) + e^x and xi =
1.
Factors
Stability Convergence Availability of
Choose a stable method that can
handle small errors in the data. Choose a method that
data
converges quickly to the
Consider the availability
exact value as the step size
and quality of the data
is decreased.
required by the method.
Summary
differentiation
Accuracy
Numerical
Factors
approximates the Complexity
derivative of a function Convergence
using numerical methods. Smoothness of the function
Availability of data.
differentiatio
differentiatio
n methods
n methods
numerical
numerical