Optimal. Leaf size=40 \[ \frac {b x}{d}-\frac {(b c-a d) \tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{\sqrt {c} d^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {396, 211}
\begin {gather*} \frac {b x}{d}-\frac {(b c-a d) \text {ArcTan}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{\sqrt {c} d^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 396
Rubi steps
\begin {align*} \int \frac {a+b x^2}{c+d x^2} \, dx &=\frac {b x}{d}-\frac {(b c-a d) \int \frac {1}{c+d x^2} \, dx}{d}\\ &=\frac {b x}{d}-\frac {(b c-a d) \tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{\sqrt {c} d^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 40, normalized size = 1.00 \begin {gather*} \frac {b x}{d}-\frac {(b c-a d) \tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{\sqrt {c} d^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 34, normalized size = 0.85
method | result | size |
default | \(\frac {b x}{d}+\frac {\left (a d -b c \right ) \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{d \sqrt {c d}}\) | \(34\) |
risch | \(\frac {b x}{d}-\frac {\ln \left (d x +\sqrt {-c d}\right ) a}{2 \sqrt {-c d}}+\frac {\ln \left (d x +\sqrt {-c d}\right ) b c}{2 d \sqrt {-c d}}+\frac {\ln \left (-d x +\sqrt {-c d}\right ) a}{2 \sqrt {-c d}}-\frac {\ln \left (-d x +\sqrt {-c d}\right ) b c}{2 d \sqrt {-c d}}\) | \(98\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 34, normalized size = 0.85 \begin {gather*} \frac {b x}{d} - \frac {{\left (b c - a d\right )} \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{\sqrt {c d} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.79, size = 99, normalized size = 2.48 \begin {gather*} \left [\frac {2 \, b c d x + {\left (b c - a d\right )} \sqrt {-c d} \log \left (\frac {d x^{2} - 2 \, \sqrt {-c d} x - c}{d x^{2} + c}\right )}{2 \, c d^{2}}, \frac {b c d x - {\left (b c - a d\right )} \sqrt {c d} \arctan \left (\frac {\sqrt {c d} x}{c}\right )}{c d^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 82 vs.
\(2 (34) = 68\).
time = 0.14, size = 82, normalized size = 2.05 \begin {gather*} \frac {b x}{d} - \frac {\sqrt {- \frac {1}{c d^{3}}} \left (a d - b c\right ) \log {\left (- c d \sqrt {- \frac {1}{c d^{3}}} + x \right )}}{2} + \frac {\sqrt {- \frac {1}{c d^{3}}} \left (a d - b c\right ) \log {\left (c d \sqrt {- \frac {1}{c d^{3}}} + x \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.18, size = 34, normalized size = 0.85 \begin {gather*} \frac {b x}{d} - \frac {{\left (b c - a d\right )} \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{\sqrt {c d} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 31, normalized size = 0.78 \begin {gather*} \frac {b\,x}{d}+\frac {\mathrm {atan}\left (\frac {\sqrt {d}\,x}{\sqrt {c}}\right )\,\left (a\,d-b\,c\right )}{\sqrt {c}\,d^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________