Optimal. Leaf size=43 \[ -\frac {\sqrt {\pi } x \left (a x^n\right )^{-1/n} \text {erf}\left (\frac {\sqrt {-\log \left (a x^n\right )}}{\sqrt {n}}\right )}{\sqrt {n}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2300, 2180, 2205} \[ -\frac {\sqrt {\pi } x \left (a x^n\right )^{-1/n} \text {Erf}\left (\frac {\sqrt {-\log \left (a x^n\right )}}{\sqrt {n}}\right )}{\sqrt {n}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2180
Rule 2205
Rule 2300
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {-\log \left (a x^n\right )}} \, dx &=\frac {\left (x \left (a x^n\right )^{-1/n}\right ) \operatorname {Subst}\left (\int \frac {e^{\frac {x}{n}}}{\sqrt {-x}} \, dx,x,\log \left (a x^n\right )\right )}{n}\\ &=-\frac {\left (2 x \left (a x^n\right )^{-1/n}\right ) \operatorname {Subst}\left (\int e^{-\frac {x^2}{n}} \, dx,x,\sqrt {-\log \left (a x^n\right )}\right )}{n}\\ &=-\frac {\sqrt {\pi } x \left (a x^n\right )^{-1/n} \text {erf}\left (\frac {\sqrt {-\log \left (a x^n\right )}}{\sqrt {n}}\right )}{\sqrt {n}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 62, normalized size = 1.44 \[ \frac {\sqrt {\pi } x \left (a x^n\right )^{-1/n} \sqrt {\log \left (a x^n\right )} \text {erfi}\left (\frac {\sqrt {\log \left (a x^n\right )}}{\sqrt {n}}\right )}{\sqrt {n} \sqrt {-\log \left (a x^n\right )}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.20, size = 32, normalized size = 0.74 \[ \frac {\sqrt {\pi } \operatorname {erf}\left (-\frac {\sqrt {-n \log \relax (x) - \log \relax (a)}}{\sqrt {n}}\right )}{a^{\left (\frac {1}{n}\right )} \sqrt {n}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 1.32, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {-\ln \left (a \,x^{n}\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {-\log \left (a x^{n}\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {1}{\sqrt {-\ln \left (a\,x^n\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {- \log {\left (a x^{n} \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________