Optimal. Leaf size=26 \[ (\log (a)+\log (b)) \text{Ei}(x (\log (a)+\log (b)))-\frac{a^x b^x}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0619315, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {2287, 2177, 2178} \[ (\log (a)+\log (b)) \text{Ei}(x (\log (a)+\log (b)))-\frac{a^x b^x}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2287
Rule 2177
Rule 2178
Rubi steps
\begin{align*} \int \frac{a^x b^x}{x^2} \, dx &=\int \frac{e^{x (\log (a)+\log (b))}}{x^2} \, dx\\ &=-\frac{a^x b^x}{x}-(-\log (a)-\log (b)) \int \frac{e^{x (\log (a)+\log (b))}}{x} \, dx\\ &=-\frac{a^x b^x}{x}+\text{Ei}(x (\log (a)+\log (b))) (\log (a)+\log (b))\\ \end{align*}
Mathematica [F] time = 0.0489283, size = 0, normalized size = 0. \[ \int \frac{a^x b^x}{x^2} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.036, size = 160, normalized size = 6.2 \begin{align*} -\ln \left ( b \right ) \left ( 1+{\frac{\ln \left ( a \right ) }{\ln \left ( b \right ) }} \right ) \left ({\frac{1}{\ln \left ( b \right ) x} \left ( 1+{\frac{\ln \left ( a \right ) }{\ln \left ( b \right ) }} \right ) ^{-1}}+1-\ln \left ( x \right ) -i\pi -\ln \left ( \ln \left ( b \right ) \right ) -\ln \left ( 1+{\frac{\ln \left ( a \right ) }{\ln \left ( b \right ) }} \right ) -{\frac{1}{2\,\ln \left ( b \right ) x} \left ( 2+2\,x\ln \left ( b \right ) \left ( 1+{\frac{\ln \left ( a \right ) }{\ln \left ( b \right ) }} \right ) \right ) \left ( 1+{\frac{\ln \left ( a \right ) }{\ln \left ( b \right ) }} \right ) ^{-1}}+{\frac{1}{\ln \left ( b \right ) x}{{\rm e}^{x\ln \left ( b \right ) \left ( 1+{\frac{\ln \left ( a \right ) }{\ln \left ( b \right ) }} \right ) }} \left ( 1+{\frac{\ln \left ( a \right ) }{\ln \left ( b \right ) }} \right ) ^{-1}}+\ln \left ( -x\ln \left ( b \right ) \left ( 1+{\frac{\ln \left ( a \right ) }{\ln \left ( b \right ) }} \right ) \right ) +{\it Ei} \left ( 1,-x\ln \left ( b \right ) \left ( 1+{\frac{\ln \left ( a \right ) }{\ln \left ( b \right ) }} \right ) \right ) \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.11111, size = 22, normalized size = 0.85 \begin{align*}{\left (\log \left (a\right ) + \log \left (b\right )\right )} \Gamma \left (-1, -x{\left (\log \left (a\right ) + \log \left (b\right )\right )}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.27189, size = 84, normalized size = 3.23 \begin{align*} -\frac{a^{x} b^{x} -{\left (x \log \left (a\right ) + x \log \left (b\right )\right )}{\rm Ei}\left (x \log \left (a\right ) + x \log \left (b\right )\right )}{x} \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^{x}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{a^{x} b^{x}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]