sqrt(c + d*tan(x))/(a + i*a*tan(x))^2 integrates on master to an answer of about 250,000 characters, and evaluated at the default precision its derivative is not the integrand: it differs at every sample point. 2.5.0 declines it.
The answer is right. With a = 13/10, c = 7/10, d = 107/100 and x at 57/100 and 129/100, its derivative agrees with the integrand to 49 significant digits at 50, 300 and 2000 digits of precision. What fails at the default precision is the evaluation: the coefficients grow to products such as 65536 d^572 256 256 16 16 ... and d^892, and terms that large cancel.
Under u = tan(x) it is sqrt(c + d u)/((a + i a u)^2 (1 + u^2)), answered the same way. The partial fractions at the top find the root the two factors below the bar share, (i a)^2 (u - i)^3 (u + i), and under t = sqrt(c + d u) the question is 2 d^3 t^2/((t^2 - c - i d)^3 (t^2 - c + i d)); the swell is in its answer. With a number for a the integral is declined, and with 1 + u under the root it is answered shortly.
Rubi's 4.3.2.1 has three rows of this shape, (c + d tan(x))^(k/2)/(a + i a tan(x))^2 for k = 1, 3 and 5. Seen on 85d6601c and on 2b86349c.
Part of #233.
sqrt(c + d*tan(x))/(a + i*a*tan(x))^2integrates on master to an answer of about 250,000 characters, and evaluated at the default precision its derivative is not the integrand: it differs at every sample point. 2.5.0 declines it.The answer is right. With
a = 13/10,c = 7/10,d = 107/100andxat57/100and129/100, its derivative agrees with the integrand to 49 significant digits at 50, 300 and 2000 digits of precision. What fails at the default precision is the evaluation: the coefficients grow to products such as65536 d^572 256 256 16 16 ...andd^892, and terms that large cancel.Under
u = tan(x)it issqrt(c + d u)/((a + i a u)^2 (1 + u^2)), answered the same way. The partial fractions at the top find the root the two factors below the bar share,(i a)^2 (u - i)^3 (u + i), and undert = sqrt(c + d u)the question is2 d^3 t^2/((t^2 - c - i d)^3 (t^2 - c + i d)); the swell is in its answer. With a number forathe integral is declined, and with1 + uunder the root it is answered shortly.Rubi's 4.3.2.1 has three rows of this shape,
(c + d tan(x))^(k/2)/(a + i a tan(x))^2fork= 1, 3 and 5. Seen on85d6601cand on2b86349c.Part of #233.