[?] Get the derivative of the following pure function?

I want to realize the derivative of a function.

I use the pure function to realize it, but it runs very slowly and the result seems weird.

It seems solved.