changed: -integrate((x^2-1)*atan(a*x),x) integrate(atan(a^2*(x^2-1)*sec(a*x)),x)
integrate(atan(a^2*(x^2-1)*sec(a*x)),x)