When I was doing my homework at the university, I got a result that I did not expect, checking my code well, I found a bug. It turns out that the script of a function gave me wrong, at first I thought it was wrong, but after doing the derivative by definition I realized that the library gave me the wrong derivative,
I show the screenshot for more details.
the sympy version used is 1.7.1