Optimal. Leaf size=14 \[ \frac {a^x b^x}{\log (a)+\log (b)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {2325, 2225}
\begin {gather*} \frac {a^x b^x}{\log (a)+\log (b)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2225
Rule 2325
Rubi steps
\begin {align*} \int a^x b^x \, dx &=\int e^{x (\log (a)+\log (b))} \, dx\\ &=\frac {a^x b^x}{\log (a)+\log (b)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 14, normalized size = 1.00 \begin {gather*} \frac {a^x b^x}{\log (a)+\log (b)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [C] Result contains higher order function than in optimal. Order 9 vs. order 3 in
optimal.
time = 2.06, size = 40, normalized size = 2.86 \begin {gather*} \text {Piecewise}\left [\left \{\left \{\frac {a^x b^x}{\text {Log}\left [a\right ]+\text {Log}\left [b\right ]},a\text {!=}\frac {1}{b}\right \}\right \},\frac {\left (\frac {1}{b}\right )^x b^x}{\text {Log}\left [\frac {1}{b}\right ]+\text {Log}\left [b\right ]}\right ] \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 15, normalized size = 1.07
method | result | size |
gosper | \(\frac {a^{x} b^{x}}{\ln \left (a \right )+\ln \left (b \right )}\) | \(15\) |
risch | \(\frac {a^{x} b^{x}}{\ln \left (a \right )+\ln \left (b \right )}\) | \(15\) |
norman | \(\frac {{\mathrm e}^{x \ln \left (a \right )} {\mathrm e}^{x \ln \left (b \right )}}{\ln \left (a \right )+\ln \left (b \right )}\) | \(19\) |
meijerg | \(-\frac {1-{\mathrm e}^{x \ln \left (b \right ) \left (1+\frac {\ln \left (a \right )}{\ln \left (b \right )}\right )}}{\ln \left (b \right ) \left (1+\frac {\ln \left (a \right )}{\ln \left (b \right )}\right )}\) | \(36\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.31, size = 14, normalized size = 1.00 \begin {gather*} \frac {a^{x} b^{x}}{\log \left (a\right ) + \log \left (b\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.26, size = 31, normalized size = 2.21 \begin {gather*} \begin {cases} \frac {a^{x} b^{x}}{\log {\left (a \right )} + \log {\left (b \right )}} & \text {for}\: a \neq \frac {1}{b} \\\frac {b^{x} \left (\frac {1}{b}\right )^{x}}{\log {\left (\frac {1}{b} \right )} + \log {\left (b \right )}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 0.00, size = 263, normalized size = 18.79 \begin {gather*} \mathrm {e}^{\left (\ln \left |a\right |+\ln \left |b\right |\right ) x} \left (\frac {2 \left (2 \ln \left |a\right |+2 \ln \left |b\right |\right ) \cos \left (\left (\frac {1}{2} \pi \left (1-\mathrm {sign}\left (a\right )\right )+\frac {1}{2} \pi \left (1-\mathrm {sign}\left (b\right )\right )\right ) x\right )}{\left (2 \ln \left |a\right |+2 \ln \left |b\right |\right )^{2}+\left (-\pi \mathrm {sign}\left (a\right )-\pi \mathrm {sign}\left (b\right )+2 \pi \right )^{2}}-\frac {2 \left (\pi \mathrm {sign}\left (a\right )+\pi \mathrm {sign}\left (b\right )-2 \pi \right ) \sin \left (\left (\frac {1}{2} \pi \left (1-\mathrm {sign}\left (a\right )\right )+\frac {1}{2} \pi \left (1-\mathrm {sign}\left (b\right )\right )\right ) x\right )}{\left (2 \ln \left |a\right |+2 \ln \left |b\right |\right )^{2}+\left (-\pi \mathrm {sign}\left (a\right )-\pi \mathrm {sign}\left (b\right )+2 \pi \right )^{2}}\right )+\frac {\mathrm {e}^{\left (\ln \left |a\right |+\ln \left |b\right |\right ) x} \left (\frac {2 \mathrm {i} \mathrm {e}^{\mathrm {i} \left (\frac {1}{2} \pi \left (1-\mathrm {sign}\left (a\right )\right )+\frac {1}{2} \pi \left (1-\mathrm {sign}\left (b\right )\right )\right ) x}}{2 \ln \left |a\right |+2 \ln \left |b\right |-\pi \mathrm {i} \mathrm {sign}\left (a\right )-\pi \mathrm {i} \mathrm {sign}\left (b\right )+\pi \cdot 2 \mathrm {i}}-\frac {2 \mathrm {i} \mathrm {e}^{-\mathrm {i} \left (\frac {1}{2} \pi \left (1-\mathrm {sign}\left (a\right )\right )+\frac {1}{2} \pi \left (1-\mathrm {sign}\left (b\right )\right )\right ) x}}{2 \ln \left |a\right |+2 \ln \left |b\right |+\pi \mathrm {i} \mathrm {sign}\left (a\right )+\pi \mathrm {i} \mathrm {sign}\left (b\right )-\pi \cdot 2 \mathrm {i}}\right )}{2 \mathrm {i}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.17, size = 14, normalized size = 1.00 \begin {gather*} \frac {a^x\,b^x}{\ln \left (a\right )+\ln \left (b\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________