3.0 Numerical Integration and Differentiation Flashcards
Higher-order approximations of the first derivative can be obtained by
involving more points on both sides of the point where the derivative is needed
You can calculate the finite-difference approximation of the first derivative in three different ways
- Backward Difference
- Central Difference
- Forward Difference
Finite Difference Method
- Consider two points on a curve
- The approximate slope is given by the first derivative
- The close the two points to one another, the better the approximation
- Delta x and delta y are called the finite differences
- The slope is a finite-difference approximation of the first derivative of y with respect to x
The finite-difference approximations can be derived for the second derivative. The first-order approximations of the second derivative are provided
- Backward difference
- Central difference
- Forward difference
In the higher order approximations of the second derivative
you can see more than 3 points are involved
How to use Finite Difference
Case 1: Mathematical function is available
* Plot the function using suitable intervals and then compute the finite-difference approximations using the plot data
Case 2: Only numerical data is available
* Many relationships between variables in engineering problems are derived from experiments or field observations. In such cases, the numerical data are gathered and plotted, and then a mathematical relationship is fitted into the plot * For example, load is applied in increments and deformation measured for each load increment in determining load-deformation relationship of building materials * We can apply the finite-difference technique directly to the data, however we need to make sure that the noise in the data is not significant
Noise in the Data
- Noise can arise from various sources instrumental or observational errors are the most common in experiments)
- If you apply finite differences directly to noisy data, you might and probably will get unacceptable results
- You can apply filtering to clean up the data as much as possible)
If Noise is significant
- You can either get a best-fit function (usually a polynomial) by curve fitting, and then differentiate numerically by the finite difference technique
- OR filter the noise out, then apply the finite-difference technique directly to the filtered numerical data
Rules for improving accuracy of numerical differentiation
- filter out the noise
- make interval (delta x) smaller
- central differentiation approximation
Many engineering problems involve:
- Determination of the Area under a curve
- Integration of a differential equation
Numerical integration can be applied in both cases often enabling a relatively easy solution
- Integration of a differential equation
Methods of Numerical integration
- Rectangular Method
- Left-sided rectangle
- Right-sided rectangle
2. Trapezoidal method
3. Simpson’s rule - It requires an odd number of data points
- Evenly spaced data (uniform delta x)
Generally the ___ difference gives a slightly better approximation and is most commonly used
central