AdvancedTopic 93 of 104Engineering Mathematics
Numerical differentiation
Approximates derivatives with finite differences of sampled values.
In depth
Finite differences approximate derivatives: forward (f(x+h)-f(x))/h, backward, and central (f(x+h)-f(x-h))/(2h) which is second-order accurate. Too small h magnifies round-off; noise in data amplifies in differentiation.
Key points
- Second derivative (f₊-2f+f₋)/h²
- Balance truncation and round-off
- Smooth data before differencing
ExampleEstimating velocity from sampled position data.
What is Numerical differentiation?
Approximates derivatives with finite differences of sampled values.
Why is it important to understand numerical differentiation?
Derivatives of sampled data are needed for velocity from position and for controller design, but numerical differentiation amplifies noise.
Why is numerical differentiation noisy?
Dividing small differences by a small step amplifies measurement noise, so smoothing or filtering is usually needed first.
What is the central difference formula?
It estimates the derivative from points on both sides of the target, which gives second-order accuracy instead of first-order.
How is Numerical differentiation used in practice?
Typical applications include estimating velocity from encoder positions sampled at fixed intervals, computing the slope of a measured temperature profile and estimating curvature for a tracing path in CNC machining.
What should I learn before Numerical differentiation?
Study "Interpolation" first (topic 92 of 104 in Engineering Mathematics). It covers the groundwork this topic builds on.
What are the key points of Numerical differentiation?
Second derivative (f₊-2f+f₋)/h². Balance truncation and round-off. Smooth data before differencing.
Can you give an example of Numerical differentiation?
Estimating velocity from sampled position data.
What comes after Numerical differentiation?
The next topic is "Numerical integration", which builds directly on this one.
How difficult is Numerical differentiation?
It is classed as Advanced in Engineering Mathematics (topic 93 of 104). It is an advanced topic. It assumes you are comfortable with the intermediate topics in Engineering Mathematics.