Adding if depending on version of sympy in dsolve
Adding if depending on version of sympy in dsolve (II)