Optimal. Leaf size=80 \[ -\frac{(2 A+B) \tan ^{-1}\left (\frac{\sqrt{35} (2-x)}{\sqrt{10 x^2-22 x+13}}\right )}{\sqrt{35}}-\frac{(A+B) \tanh ^{-1}\left (\frac{\sqrt{35} (1-x)}{2 \sqrt{10 x^2-22 x+13}}\right )}{2 \sqrt{35}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.123304, antiderivative size = 89, normalized size of antiderivative = 1.11, number of steps used = 5, number of rules used = 4, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {1035, 1029, 206, 204} \[ -\frac{(2 A+B) \tan ^{-1}\left (\frac{\sqrt{35} (2-x)}{\sqrt{10 x^2-22 x+13}}\right )}{\sqrt{35}}-\frac{(A+B) \tanh ^{-1}\left (\frac{\sqrt{35} (-x (A+B)+A+B)}{2 \sqrt{10 x^2-22 x+13} (A+B)}\right )}{2 \sqrt{35}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1035
Rule 1029
Rule 206
Rule 204
Rubi steps
\begin{align*} \int \frac{B+A x}{\left (17-18 x+5 x^2\right ) \sqrt{13-22 x+10 x^2}} \, dx &=\frac{1}{70} \int \frac{140 (A+B)-70 (A+B) x}{\left (17-18 x+5 x^2\right ) \sqrt{13-22 x+10 x^2}} \, dx-\frac{1}{70} \int \frac{70 (2 A+B)-70 (2 A+B) x}{\left (17-18 x+5 x^2\right ) \sqrt{13-22 x+10 x^2}} \, dx\\ &=\left (560 (A+B)^2\right ) \operatorname{Subst}\left (\int \frac{1}{313600 (A+B)^2-140 x^2} \, dx,x,\frac{-140 (A+B)+140 (A+B) x}{\sqrt{13-22 x+10 x^2}}\right )+\left (2240 (2 A+B)^2\right ) \operatorname{Subst}\left (\int \frac{1}{-1254400 (2 A+B)^2-140 x^2} \, dx,x,\frac{1120 (2 A+B)-560 (2 A+B) x}{\sqrt{13-22 x+10 x^2}}\right )\\ &=-\frac{(2 A+B) \tan ^{-1}\left (\frac{\sqrt{35} (2-x)}{\sqrt{13-22 x+10 x^2}}\right )}{\sqrt{35}}-\frac{(A+B) \tanh ^{-1}\left (\frac{\sqrt{35} (A+B-(A+B) x)}{2 (A+B) \sqrt{13-22 x+10 x^2}}\right )}{2 \sqrt{35}}\\ \end{align*}
Mathematica [C] time = 0.114487, size = 94, normalized size = 1.18 \[ \frac{((4-i) A+(2-i) B) \tan ^{-1}\left (\frac{(2-18 i)-(1-18 i) x}{\sqrt{35} \sqrt{10 x^2-22 x+13}}\right )+((1-4 i) A+(1-2 i) B) \tanh ^{-1}\left (\frac{(18-i) x-(18-2 i)}{\sqrt{35} \sqrt{10 x^2-22 x+13}}\right )}{4 \sqrt{35}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.02, size = 192, normalized size = 2.4 \begin{align*}{\frac{\sqrt{35}}{70}\sqrt{{\frac{ \left ( -2+x \right ) ^{2}}{ \left ( 1-x \right ) ^{2}}}+9} \left ({\it Artanh} \left ({\frac{2\,\sqrt{35}}{35}\sqrt{{\frac{ \left ( -2+x \right ) ^{2}}{ \left ( 1-x \right ) ^{2}}}+9}} \right ) A-4\,\arctan \left ({\frac{\sqrt{35} \left ( -2+x \right ) }{1-x}{\frac{1}{\sqrt{{\frac{ \left ( -2+x \right ) ^{2}}{ \left ( 1-x \right ) ^{2}}}+9}}}} \right ) A+{\it Artanh} \left ({\frac{2\,\sqrt{35}}{35}\sqrt{{\frac{ \left ( -2+x \right ) ^{2}}{ \left ( 1-x \right ) ^{2}}}+9}} \right ) B-2\,\arctan \left ({\frac{\sqrt{35} \left ( -2+x \right ) }{1-x}{\frac{1}{\sqrt{{\frac{ \left ( -2+x \right ) ^{2}}{ \left ( 1-x \right ) ^{2}}}+9}}}} \right ) B \right ){\frac{1}{\sqrt{{ \left ({\frac{ \left ( -2+x \right ) ^{2}}{ \left ( 1-x \right ) ^{2}}}+9 \right ) \left ( 1+{\frac{-2+x}{1-x}} \right ) ^{-2}}}}} \left ( 1+{\frac{-2+x}{1-x}} \right ) ^{-1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{A x + B}{\sqrt{10 \, x^{2} - 22 \, x + 13}{\left (5 \, x^{2} - 18 \, x + 17\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{A x + B}{\left (5 x^{2} - 18 x + 17\right ) \sqrt{10 x^{2} - 22 x + 13}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]