Optimal. Leaf size=95 \[ -\frac {e^{\frac {1+2 a b d^2 n}{b^2 d^2 n^2}} \left (c x^n\right )^{2/n} \text {Erf}\left (\frac {1+a b d^2 n+b^2 d^2 n \log \left (c x^n\right )}{b d n}\right )}{2 x^2}-\frac {\text {Erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{2 x^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 95, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.294, Rules used = {6537, 2314,
2308, 2266, 2236} \begin {gather*} -\frac {\left (c x^n\right )^{2/n} e^{\frac {2 a b d^2 n+1}{b^2 d^2 n^2}} \text {Erf}\left (\frac {a b d^2 n+b^2 d^2 n \log \left (c x^n\right )+1}{b d n}\right )}{2 x^2}-\frac {\text {Erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2236
Rule 2266
Rule 2308
Rule 2314
Rule 6537
Rubi steps
\begin {align*} \int \frac {\text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{x^3} \, dx &=-\frac {\text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{2 x^2}-\frac {(b d n) \int \frac {e^{-d^2 \left (a+b \log \left (c x^n\right )\right )^2}}{x^3} \, dx}{\sqrt {\pi }}\\ &=-\frac {\text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{2 x^2}-\frac {(b d n) \int \frac {\exp \left (-a^2 d^2-2 a b d^2 \log \left (c x^n\right )-b^2 d^2 \log ^2\left (c x^n\right )\right )}{x^3} \, dx}{\sqrt {\pi }}\\ &=-\frac {\text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{2 x^2}-\frac {(b d n) \int \frac {e^{-a^2 d^2-b^2 d^2 \log ^2\left (c x^n\right )} \left (c x^n\right )^{-2 a b d^2}}{x^3} \, dx}{\sqrt {\pi }}\\ &=-\frac {\text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{2 x^2}-\frac {\left (b d n x^{2 a b d^2 n} \left (c x^n\right )^{-2 a b d^2}\right ) \int e^{-a^2 d^2-b^2 d^2 \log ^2\left (c x^n\right )} x^{-3-2 a b d^2 n} \, dx}{\sqrt {\pi }}\\ &=-\frac {\text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{2 x^2}-\frac {\left (b d \left (c x^n\right )^{-2 a b d^2-\frac {-2-2 a b d^2 n}{n}}\right ) \text {Subst}\left (\int \exp \left (-a^2 d^2+\frac {\left (-2-2 a b d^2 n\right ) x}{n}-b^2 d^2 x^2\right ) \, dx,x,\log \left (c x^n\right )\right )}{\sqrt {\pi } x^2}\\ &=-\frac {\text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{2 x^2}-\frac {\left (b d e^{\frac {1+2 a b d^2 n}{b^2 d^2 n^2}} \left (c x^n\right )^{-2 a b d^2-\frac {-2-2 a b d^2 n}{n}}\right ) \text {Subst}\left (\int \exp \left (-\frac {\left (\frac {-2-2 a b d^2 n}{n}-2 b^2 d^2 x\right )^2}{4 b^2 d^2}\right ) \, dx,x,\log \left (c x^n\right )\right )}{\sqrt {\pi } x^2}\\ &=-\frac {e^{\frac {1+2 a b d^2 n}{b^2 d^2 n^2}} \left (c x^n\right )^{2/n} \text {erf}\left (\frac {1+a b d^2 n+b^2 d^2 n \log \left (c x^n\right )}{b d n}\right )}{2 x^2}-\frac {\text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{2 x^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.21, size = 79, normalized size = 0.83 \begin {gather*} -\frac {e^{\frac {1+2 a b d^2 n}{b^2 d^2 n^2}} \left (c x^n\right )^{2/n} \text {Erf}\left (a d+\frac {1}{b d n}+b d \log \left (c x^n\right )\right )+\text {Erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.12, size = 0, normalized size = 0.00 \[\int \frac {\mathrm {erfc}\left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )}{x^{3}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 125, normalized size = 1.32 \begin {gather*} -\frac {\sqrt {b^{2} d^{2} n^{2}} x^{2} \operatorname {erf}\left (\frac {{\left (b^{2} d^{2} n^{2} \log \left (x\right ) + b^{2} d^{2} n \log \left (c\right ) + a b d^{2} n + 1\right )} \sqrt {b^{2} d^{2} n^{2}}}{b^{2} d^{2} n^{2}}\right ) e^{\left (\frac {2 \, b^{2} d^{2} n \log \left (c\right ) + 2 \, a b d^{2} n + 1}{b^{2} d^{2} n^{2}}\right )} - \operatorname {erf}\left (b d \log \left (c x^{n}\right ) + a d\right ) + 1}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {erfc}{\left (a d + b d \log {\left (c x^{n} \right )} \right )}}{x^{3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\mathrm {erfc}\left (d\,\left (a+b\,\ln \left (c\,x^n\right )\right )\right )}{x^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________