2.3 Problem number 250

1bcos(x)+asin(x)dx

Optimal antiderivative arctanh(acos(x)bsin(x)a2+b2)a2+b2

command

integrate(1/(b*cos(x)+a*sin(x)),x)

Sympy 1.10.1 under Python 3.10.4 output

Exception raised: AttributeError

Sympy 1.8 under Python 3.8.8 output

{~(log(tan(x2)1)+log(tan(x2)+1))fora=0b=0log(tan(x2))aforb=01bsin(x)+ib2cos(x)fora=b21bsin(x)ib2cos(x)fora=b2log(ab+tan(x2)a2+b2b)a2+b2+log(ab+tan(x2)+a2+b2b)a2+b2otherwise