Optimal. Leaf size=23 \[ \frac {(a+b \log (x))^{1-n}}{b (1-n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2339, 30}
\begin {gather*} \frac {(a+b \log (x))^{1-n}}{b (1-n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 2339
Rubi steps
\begin {align*} \int \frac {(a+b \log (x))^{-n}}{x} \, dx &=\frac {\text {Subst}\left (\int x^{-n} \, dx,x,a+b \log (x)\right )}{b}\\ &=\frac {(a+b \log (x))^{1-n}}{b (1-n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 23, normalized size = 1.00 \begin {gather*} \frac {(a+b \log (x))^{1-n}}{b (1-n)} \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 = 7.55, size = 104, normalized size = 4.52 \begin {gather*} \text {Piecewise}\left [\left \{\left \{\frac {\text {Log}\left [x\right ]}{a},b\text {==}0\text {\&\&}n\text {==}1\right \},\left \{\text {Log}\left [x\right ] a^{-n},b\text {==}0\right \},\left \{\frac {\text {Log}\left [\frac {a}{b}+\text {Log}\left [x\right ]\right ]}{b},n\text {==}1\right \}\right \},-\frac {a}{-b \left (a+b \text {Log}\left [x\right ]\right )^n+b n \left (a+b \text {Log}\left [x\right ]\right )^n}-\frac {b \text {Log}\left [x\right ]}{-b \left (a+b \text {Log}\left [x\right ]\right )^n+b n \left (a+b \text {Log}\left [x\right ]\right )^n}\right ] \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 24, normalized size = 1.04
method | result | size |
derivativedivides | \(\frac {\left (a +b \ln \left (x \right )\right )^{1-n}}{b \left (1-n \right )}\) | \(24\) |
default | \(\frac {\left (a +b \ln \left (x \right )\right )^{1-n}}{b \left (1-n \right )}\) | \(24\) |
risch | \(-\frac {\left (a +b \ln \left (x \right )\right ) \left (a +b \ln \left (x \right )\right )^{-n}}{b \left (-1+n \right )}\) | \(27\) |
norman | \(\left (-\frac {\ln \left (x \right )}{-1+n}-\frac {a}{b \left (-1+n \right )}\right ) {\mathrm e}^{-n \ln \left (a +b \ln \left (x \right )\right )}\) | \(35\) |
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.64, size = 27, normalized size = 1.17 \begin {gather*} -\frac {b \log \left (x\right ) + a}{{\left (b n - b\right )} {\left (b \log \left (x\right ) + a\right )}^{n}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 5.99, size = 71, normalized size = 3.09 \begin {gather*} \begin {cases} \frac {\log {\left (x \right )}}{a} & \text {for}\: b = 0 \wedge n = 1 \\a^{- n} \log {\left (x \right )} & \text {for}\: b = 0 \\\frac {\log {\left (\frac {a}{b} + \log {\left (x \right )} \right )}}{b} & \text {for}\: n = 1 \\- \frac {a}{b n \left (a + b \log {\left (x \right )}\right )^{n} - b \left (a + b \log {\left (x \right )}\right )^{n}} - \frac {b \log {\left (x \right )}}{b n \left (a + b \log {\left (x \right )}\right )^{n} - b \left (a + b \log {\left (x \right )}\right )^{n}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 19, normalized size = 0.83 \begin {gather*} \frac {\left (a+b \ln x\right )^{-n+1}}{b \left (-n+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.43, size = 22, normalized size = 0.96 \begin {gather*} -\frac {{\left (a+b\,\ln \left (x\right )\right )}^{1-n}}{b\,\left (n-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________