I have the following curve, which is calculated on a large number of points and shows smooth behaviour when viewed from distance.
However, the derivative (shown below) exhibits artificial oscillations which are inevitable due to complications in my method of numerical calculation. I know about the correct result and its derivative (shown below in red), and want to eliminate these sharp peaks and fluctuations with a post-processing (filtering) step.
What is a reasonable filtering process to eliminate the fluctuations in derivative and get the correct result (the red curve)? How can I decide on the details of such filter?