Optimal. Leaf size=10 \[ \log \left (a x+b x^n\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0523407, antiderivative size = 17, normalized size of antiderivative = 1.7, number of steps used = 5, number of rules used = 4, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {1593, 514, 446, 72} \[ \log \left (a x^{1-n}+b\right )+n \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1593
Rule 514
Rule 446
Rule 72
Rubi steps
\begin{align*} \int \frac{a+b n x^{-1+n}}{a x+b x^n} \, dx &=\int \frac{x^{-n} \left (a+b n x^{-1+n}\right )}{b+a x^{1-n}} \, dx\\ &=\int \frac{b n+a x^{1-n}}{x \left (b+a x^{1-n}\right )} \, dx\\ &=\frac{\operatorname{Subst}\left (\int \frac{b n+a x}{x (b+a x)} \, dx,x,x^{1-n}\right )}{1-n}\\ &=\frac{\operatorname{Subst}\left (\int \left (\frac{n}{x}+\frac{a-a n}{b+a x}\right ) \, dx,x,x^{1-n}\right )}{1-n}\\ &=n \log (x)+\log \left (b+a x^{1-n}\right )\\ \end{align*}
Mathematica [A] time = 0.0272881, size = 17, normalized size = 1.7 \[ \log \left (a x^{1-n}+b\right )+n \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.016, size = 13, normalized size = 1.3 \begin{align*} \ln \left ( ax+b{{\rm e}^{n\ln \left ( x \right ) }} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.10843, size = 14, normalized size = 1.4 \begin{align*} \log \left (a x + b x^{n}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.83338, size = 24, normalized size = 2.4 \begin{align*} \log \left (a x + b x^{n}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 8.93697, size = 32, normalized size = 3.2 \begin{align*} \begin{cases} \log{\left (x + \frac{b x^{n}}{a} \right )} & \text{for}\: a \neq 0 \\n \left (\frac{n^{2} \log{\left (x \right )}}{n^{2} - n} - \frac{n \log{\left (x \right )}}{n^{2} - n}\right ) & \text{otherwise} \end{cases} \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{b n x^{n - 1} + a}{a x + b x^{n}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]