Optimal. Leaf size=71 \[ -\frac{\sqrt{\pi } e^{a/b} (2 a B+2 A b-b B) \text{Erf}\left (\frac{\sqrt{a-b \log (x)}}{\sqrt{b}}\right )}{2 b^{3/2}}-\frac{B x \sqrt{a-b \log (x)}}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0785237, antiderivative size = 71, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222, Rules used = {2294, 2299, 2180, 2205} \[ -\frac{\sqrt{\pi } e^{a/b} (2 a B+2 A b-b B) \text{Erf}\left (\frac{\sqrt{a-b \log (x)}}{\sqrt{b}}\right )}{2 b^{3/2}}-\frac{B x \sqrt{a-b \log (x)}}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2294
Rule 2299
Rule 2180
Rule 2205
Rubi steps
\begin{align*} \int \frac{A+B \log (x)}{\sqrt{a-b \log (x)}} \, dx &=-\frac{B x \sqrt{a-b \log (x)}}{b}+\frac{(2 A b+2 a B-b B) \int \frac{1}{\sqrt{a-b \log (x)}} \, dx}{2 b}\\ &=-\frac{B x \sqrt{a-b \log (x)}}{b}+\frac{(2 A b+2 a B-b B) \operatorname{Subst}\left (\int \frac{e^x}{\sqrt{a-b x}} \, dx,x,\log (x)\right )}{2 b}\\ &=-\frac{B x \sqrt{a-b \log (x)}}{b}-\frac{(2 A b+2 a B-b B) \operatorname{Subst}\left (\int e^{\frac{a}{b}-\frac{x^2}{b}} \, dx,x,\sqrt{a-b \log (x)}\right )}{b^2}\\ &=-\frac{(2 A b+2 a B-b B) e^{a/b} \sqrt{\pi } \text{erf}\left (\frac{\sqrt{a-b \log (x)}}{\sqrt{b}}\right )}{2 b^{3/2}}-\frac{B x \sqrt{a-b \log (x)}}{b}\\ \end{align*}
Mathematica [A] time = 0.130054, size = 79, normalized size = 1.11 \[ \frac{e^{a/b} (2 a B+2 A b-b B) \sqrt{\frac{a}{b}-\log (x)} \text{Gamma}\left (\frac{1}{2},\frac{a}{b}-\log (x)\right )-2 B x (a-b \log (x))}{2 b \sqrt{a-b \log (x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.02, size = 0, normalized size = 0. \begin{align*} \int{(A+B\ln \left ( x \right ) ){\frac{1}{\sqrt{a-b\ln \left ( x \right ) }}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.32532, size = 176, normalized size = 2.48 \begin{align*} -\frac{\frac{2 \, \sqrt{\pi } B a \operatorname{erf}\left (\frac{\sqrt{-b \log \left (x\right ) + a}}{\sqrt{b}}\right ) e^{\frac{a}{b}}}{\sqrt{b}} + 2 \, \sqrt{\pi } A \sqrt{b} \operatorname{erf}\left (\frac{\sqrt{-b \log \left (x\right ) + a}}{\sqrt{b}}\right ) e^{\frac{a}{b}} - \frac{{\left (\sqrt{\pi } b^{\frac{3}{2}} \operatorname{erf}\left (\frac{\sqrt{-b \log \left (x\right ) + a}}{\sqrt{b}}\right ) e^{\frac{a}{b}} - 2 \, \sqrt{-b \log \left (x\right ) + a} b e^{\left (\frac{b \log \left (x\right ) - a}{b} + \frac{a}{b}\right )}\right )} B}{b}}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: UnboundLocalError} \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 + B \log{\left (x \right )}}{\sqrt{a - b \log{\left (x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.41757, size = 143, normalized size = 2.01 \begin{align*} \frac{\sqrt{\pi } B a \operatorname{erf}\left (-\frac{\sqrt{-b \log \left (x\right ) + a}}{\sqrt{b}}\right ) e^{\frac{a}{b}}}{b^{\frac{3}{2}}} + \frac{\sqrt{\pi } A \operatorname{erf}\left (-\frac{\sqrt{-b \log \left (x\right ) + a}}{\sqrt{b}}\right ) e^{\frac{a}{b}}}{\sqrt{b}} - \frac{\sqrt{\pi } B \operatorname{erf}\left (-\frac{\sqrt{-b \log \left (x\right ) + a}}{\sqrt{b}}\right ) e^{\frac{a}{b}}}{2 \, \sqrt{b}} - \frac{\sqrt{-b \log \left (x\right ) + a} B x}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]