Optimal. Leaf size=102 \[ \frac {1}{3} x^3 \text {Erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{3} e^{-\frac {3 \left (3+4 a b d^2 n\right )}{4 b^2 d^2 n^2}} x^3 \left (c x^n\right )^{-3/n} \text {Erfi}\left (\frac {2 a b d^2+\frac {3}{n}+2 b^2 d^2 \log \left (c x^n\right )}{2 b d}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 102, 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 = {6538, 2314,
2308, 2266, 2235} \begin {gather*} \frac {1}{3} x^3 \text {Erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{3} x^3 \left (c x^n\right )^{-3/n} e^{-\frac {3 \left (4 a b d^2 n+3\right )}{4 b^2 d^2 n^2}} \text {Erfi}\left (\frac {2 a b d^2+2 b^2 d^2 \log \left (c x^n\right )+\frac {3}{n}}{2 b d}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2235
Rule 2266
Rule 2308
Rule 2314
Rule 6538
Rubi steps
\begin {align*} \int x^2 \text {erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx &=\frac {1}{3} x^3 \text {erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {(2 b d n) \int e^{d^2 \left (a+b \log \left (c x^n\right )\right )^2} x^2 \, dx}{3 \sqrt {\pi }}\\ &=\frac {1}{3} x^3 \text {erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {(2 b d n) \int \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^2 \, dx}{3 \sqrt {\pi }}\\ &=\frac {1}{3} x^3 \text {erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {(2 b d n) \int e^{a^2 d^2+b^2 d^2 \log ^2\left (c x^n\right )} x^2 \left (c x^n\right )^{2 a b d^2} \, dx}{3 \sqrt {\pi }}\\ &=\frac {1}{3} x^3 \text {erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {\left (2 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^{2+2 a b d^2 n} \, dx}{3 \sqrt {\pi }}\\ &=\frac {1}{3} x^3 \text {erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {\left (2 b d x^3 \left (c x^n\right )^{2 a b d^2-\frac {3+2 a b d^2 n}{n}}\right ) \text {Subst}\left (\int \exp \left (a^2 d^2+\frac {\left (3+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 )}{3 \sqrt {\pi }}\\ &=\frac {1}{3} x^3 \text {erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {\left (2 b d e^{-\frac {3 \left (3+4 a b d^2 n\right )}{4 b^2 d^2 n^2}} x^3 \left (c x^n\right )^{2 a b d^2-\frac {3+2 a b d^2 n}{n}}\right ) \text {Subst}\left (\int \exp \left (\frac {\left (\frac {3+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 )}{3 \sqrt {\pi }}\\ &=\frac {1}{3} x^3 \text {erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{3} e^{-\frac {3 \left (3+4 a b d^2 n\right )}{4 b^2 d^2 n^2}} x^3 \left (c x^n\right )^{-3/n} \text {erfi}\left (\frac {2 a b d^2+\frac {3}{n}+2 b^2 d^2 \log \left (c x^n\right )}{2 b d}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 90, normalized size = 0.88 \begin {gather*} \frac {1}{3} \left (x^3 \text {Erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-e^{-\frac {3 \left (3+4 a b d^2 n\right )}{4 b^2 d^2 n^2}} x^3 \left (c x^n\right )^{-3/n} \text {Erfi}\left (a d+\frac {3}{2 b d n}+b d \log \left (c x^n\right )\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.13, size = 0, normalized size = 0.00 \[\int x^{2} \erfi \left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\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 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 125, normalized size = 1.23 \begin {gather*} \frac {1}{3} \, x^{3} \operatorname {erfi}\left (b d \log \left (c x^{n}\right ) + a d\right ) - \frac {1}{3} \, \sqrt {b^{2} d^{2} n^{2}} \operatorname {erfi}\left (\frac {{\left (2 \, b^{2} d^{2} n^{2} \log \left (x\right ) + 2 \, b^{2} d^{2} n \log \left (c\right ) + 2 \, a b d^{2} n + 3\right )} \sqrt {b^{2} d^{2} n^{2}}}{2 \, b^{2} d^{2} n^{2}}\right ) e^{\left (-\frac {3 \, {\left (4 \, b^{2} d^{2} n \log \left (c\right ) + 4 \, a b d^{2} n + 3\right )}}{4 \, b^{2} d^{2} n^{2}}\right )} \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 x^{2} \operatorname {erfi}{\left (a d + b d \log {\left (c x^{n} \right )} \right )}\, 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 x^2\,\mathrm {erfi}\left (d\,\left (a+b\,\ln \left (c\,x^n\right )\right )\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________