Optimal. Leaf size=41 \[ \frac{\log \left ((a+b x)^2+c\right )}{2 b^2}-\frac{a \tan ^{-1}\left (\frac{a+b x}{\sqrt{c}}\right )}{b^2 \sqrt{c}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0212057, antiderivative size = 41, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.308, Rules used = {371, 635, 203, 260} \[ \frac{\log \left ((a+b x)^2+c\right )}{2 b^2}-\frac{a \tan ^{-1}\left (\frac{a+b x}{\sqrt{c}}\right )}{b^2 \sqrt{c}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 635
Rule 203
Rule 260
Rubi steps
\begin{align*} \int \frac{x}{c+(a+b x)^2} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{-a+x}{c+x^2} \, dx,x,a+b x\right )}{b^2}\\ &=\frac{\operatorname{Subst}\left (\int \frac{x}{c+x^2} \, dx,x,a+b x\right )}{b^2}-\frac{a \operatorname{Subst}\left (\int \frac{1}{c+x^2} \, dx,x,a+b x\right )}{b^2}\\ &=-\frac{a \tan ^{-1}\left (\frac{a+b x}{\sqrt{c}}\right )}{b^2 \sqrt{c}}+\frac{\log \left (c+(a+b x)^2\right )}{2 b^2}\\ \end{align*}
Mathematica [A] time = 0.0138319, size = 38, normalized size = 0.93 \[ \frac{\log \left ((a+b x)^2+c\right )-\frac{2 a \tan ^{-1}\left (\frac{a+b x}{\sqrt{c}}\right )}{\sqrt{c}}}{2 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 54, normalized size = 1.3 \begin{align*}{\frac{\ln \left ({b}^{2}{x}^{2}+2\,abx+{a}^{2}+c \right ) }{2\,{b}^{2}}}-{\frac{a}{{b}^{2}}\arctan \left ({\frac{2\,{b}^{2}x+2\,ab}{2\,b}{\frac{1}{\sqrt{c}}}} \right ){\frac{1}{\sqrt{c}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.83059, size = 333, normalized size = 8.12 \begin{align*} \left [-\frac{a \sqrt{-c} \log \left (\frac{b^{2} x^{2} + 2 \, a b x + a^{2} + 2 \,{\left (b x + a\right )} \sqrt{-c} - c}{b^{2} x^{2} + 2 \, a b x + a^{2} + c}\right ) - c \log \left (b^{2} x^{2} + 2 \, a b x + a^{2} + c\right )}{2 \, b^{2} c}, -\frac{2 \, a \sqrt{c} \arctan \left (\frac{b x + a}{\sqrt{c}}\right ) - c \log \left (b^{2} x^{2} + 2 \, a b x + a^{2} + c\right )}{2 \, b^{2} c}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.229962, size = 124, normalized size = 3.02 \begin{align*} \left (- \frac{a \sqrt{- c}}{2 b^{2} c} + \frac{1}{2 b^{2}}\right ) \log{\left (x + \frac{a^{2} - 2 b^{2} c \left (- \frac{a \sqrt{- c}}{2 b^{2} c} + \frac{1}{2 b^{2}}\right ) + c}{a b} \right )} + \left (\frac{a \sqrt{- c}}{2 b^{2} c} + \frac{1}{2 b^{2}}\right ) \log{\left (x + \frac{a^{2} - 2 b^{2} c \left (\frac{a \sqrt{- c}}{2 b^{2} c} + \frac{1}{2 b^{2}}\right ) + c}{a b} \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14193, size = 58, normalized size = 1.41 \begin{align*} -\frac{a \arctan \left (\frac{b x + a}{\sqrt{c}}\right )}{b^{2} \sqrt{c}} + \frac{\log \left (b^{2} x^{2} + 2 \, a b x + a^{2} + c\right )}{2 \, b^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]