f(x) = x^5 + 3x^2 using ForwardDiff fprime(x) = ForwardDiff.derivative(f,x)
fprime (generic function with 1 method)
using Plots; gr() x = -5:0.1:5 plot(x,fprime.(x))