Here is a simple example of how to use gradient to numerically calculate \(\frac{df}{dx}\) from smoothed \(f\left(x_i\right)\) data without knowledge of the function \(f\left(x\right)\), assuming  that the data is equally spaced with a sample distance \(dx\) of 0.1: