Through using the ways and obtaining help from Stackoverflow users, I could find half of the solution and I need to complete it. Through using Sympy I could produce my function