The questions here and here aren't quite what I'm trying to solve. How can I fix my little function to plot the derivative? Or is there a built-in function to do it? All of the built-ins (such as scipy.misc.derivative I've found depend on knowing the function you're differentiating.