Optimal. Leaf size=102 \[ \frac {1}{3} x^3 \text {Erf}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{3} e^{\frac {9-12 a b d^2 n}{4 b^2 d^2 n^2}} x^3 \left (c x^n\right )^{-3/n} \text {Erf}\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 = {6536, 2314,
2308, 2266, 2236} \begin {gather*} \frac {1}{3} x^3 \text {Erf}\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 {9-12 a b d^2 n}{4 b^2 d^2 n^2}} \text {Erf}\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 2236
Rule 2266
Rule 2308
Rule 2314
Rule 6536
Rubi steps
\begin {align*} \int x^2 \text {erf}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx &=\frac {1}{3} x^3 \text {erf}\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 {erf}\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 {erf}\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 {erf}\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 {erf}\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 {erf}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {\left (2 b d e^{\frac {9-12 a b d^2 n}{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 {erf}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{3} e^{\frac {9-12 a b d^2 n}{4 b^2 d^2 n^2}} x^3 \left (c x^n\right )^{-3/n} \text {erf}\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.27, size = 88, normalized size = 0.86 \begin {gather*} \frac {1}{3} \left (x^3 \text {Erf}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-e^{-\frac {3 \left (\frac {-\frac {3}{d^2}+4 a b n}{b^2}+4 n \log \left (c x^n\right )\right )}{4 n^2}} x^3 \text {Erf}\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.08, size = 0, normalized size = 0.00 \[\int x^{2} \erf \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.39, size = 125, normalized size = 1.23 \begin {gather*} \frac {1}{3} \, x^{3} \operatorname {erf}\left (b d \log \left (c x^{n}\right ) + a d\right ) - \frac {1}{3} \, \sqrt {b^{2} d^{2} n^{2}} \operatorname {erf}\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 {erf}{\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 [A]
time = 0.59, size = 85, normalized size = 0.83 \begin {gather*} \frac {1}{3} \, x^{3} \operatorname {erf}\left (b d n \log \left (x\right ) + b d \log \left (c\right ) + a d\right ) + \frac {\operatorname {erf}\left (-b d n \log \left (x\right ) - b d \log \left (c\right ) - a d + \frac {3}{2 \, b d n}\right ) e^{\left (-\frac {3 \, a}{b n} + \frac {9}{4 \, b^{2} d^{2} n^{2}}\right )}}{3 \, c^{\frac {3}{n}}} \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 {erf}\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]
________________________________________________________________________________________