integrate(sqrt(tan(x)^2 + 2 * tan(x) + 2),x); sign: argument cannot be imaginary; found %i -- an error. To debug this try: debugmode(true); says version 5.25.1