Integrand size = 17, antiderivative size = 102 \[ \int x^2 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\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 )+\frac {1}{3} x^3 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \] Output:
1/3*exp(1/4*(-12*a*b*d^2*n+9)/b^2/d^2/n^2)*x^3*erf(1/2*(2*a*b*d^2-3/n+2*b^ 2*d^2*ln(c*x^n))/b/d)/((c*x^n)^(3/n))+1/3*x^3*erfc(d*(a+b*ln(c*x^n)))
Time = 0.24 (sec) , antiderivative size = 87, normalized size of antiderivative = 0.85 \[ \int x^2 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\frac {1}{3} \left (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 )+x^3 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )\right ) \] Input:
Integrate[x^2*Erfc[d*(a + b*Log[c*x^n])],x]
Output:
(E^((3*((3/d^2 - 4*a*b*n)/b^2 - 4*n*Log[c*x^n]))/(4*n^2))*x^3*Erf[a*d - 3/ (2*b*d*n) + b*d*Log[c*x^n]] + x^3*Erfc[d*(a + b*Log[c*x^n])])/3
Time = 0.48 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.294, Rules used = {6956, 2712, 2706, 2664, 2634}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int x^2 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx\) |
\(\Big \downarrow \) 6956 |
\(\displaystyle \frac {2 b d n \int e^{-d^2 \left (a+b \log \left (c x^n\right )\right )^2} x^2dx}{3 \sqrt {\pi }}+\frac {1}{3} x^3 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )\) |
\(\Big \downarrow \) 2712 |
\(\displaystyle \frac {2 b d n x^{2 a b d^2 n} \left (c x^n\right )^{-2 a b d^2} \int e^{-a^2 d^2-b^2 \log ^2\left (c x^n\right ) d^2} x^{2-2 a b d^2 n}dx}{3 \sqrt {\pi }}+\frac {1}{3} x^3 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )\) |
\(\Big \downarrow \) 2706 |
\(\displaystyle \frac {2 b d x^3 \left (c x^n\right )^{-3/n} \int \exp \left (-a^2 d^2-b^2 \log ^2\left (c x^n\right ) d^2+\frac {\left (3-2 a b d^2 n\right ) \log \left (c x^n\right )}{n}\right )d\log \left (c x^n\right )}{3 \sqrt {\pi }}+\frac {1}{3} x^3 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )\) |
\(\Big \downarrow \) 2664 |
\(\displaystyle \frac {2 b d 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}} \int \exp \left (-\frac {\left (2 a b d^2+2 b^2 \log \left (c x^n\right ) d^2-\frac {3}{n}\right )^2}{4 b^2 d^2}\right )d\log \left (c x^n\right )}{3 \sqrt {\pi }}+\frac {1}{3} x^3 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )\) |
\(\Big \downarrow \) 2634 |
\(\displaystyle \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 )+\frac {1}{3} x^3 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right )\) |
Input:
Int[x^2*Erfc[d*(a + b*Log[c*x^n])],x]
Output:
(E^((9 - 12*a*b*d^2*n)/(4*b^2*d^2*n^2))*x^3*Erf[(2*a*b*d^2 - 3/n + 2*b^2*d ^2*Log[c*x^n])/(2*b*d)])/(3*(c*x^n)^(3/n)) + (x^3*Erfc[d*(a + b*Log[c*x^n] )])/3
Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[F^a*Sqrt [Pi]*(Erf[(c + d*x)*Rt[(-b)*Log[F], 2]]/(2*d*Rt[(-b)*Log[F], 2])), x] /; Fr eeQ[{F, a, b, c, d}, x] && NegQ[b]
Int[(F_)^((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[F^(a - b^2/ (4*c)) Int[F^((b + 2*c*x)^2/(4*c)), x], x] /; FreeQ[{F, a, b, c}, x]
Int[(F_)^(((a_.) + Log[(c_.)*((d_.) + (e_.)*(x_))^(n_.)]^2*(b_.))*(f_.))*(( g_.) + (h_.)*(x_))^(m_.), x_Symbol] :> Simp[(g + h*x)^(m + 1)/(h*n*(c*(d + e*x)^n)^((m + 1)/n)) Subst[Int[E^(a*f*Log[F] + ((m + 1)*x)/n + b*f*Log[F] *x^2), x], x, Log[c*(d + e*x)^n]], x] /; FreeQ[{F, a, b, c, d, e, f, g, h, m, n}, x] && EqQ[e*g - d*h, 0]
Int[(F_)^(((a_.) + Log[(c_.)*((d_.) + (e_.)*(x_))^(n_.)]*(b_.))^2*(f_.))*(( g_.) + (h_.)*(x_))^(m_.), x_Symbol] :> Simp[(g + h*x)^m*((c*(d + e*x)^n)^(2 *a*b*f*Log[F])/(d + e*x)^(m + 2*a*b*f*n*Log[F]))*Int[(d + e*x)^(m + 2*a*b*f *n*Log[F])*F^(a^2*f + b^2*f*Log[c*(d + e*x)^n]^2), x], x] /; FreeQ[{F, a, b , c, d, e, f, g, h, m, n}, x] && EqQ[e*g - d*h, 0]
Int[Erfc[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*(d_.)]*((e_.)*(x_))^(m_.), x _Symbol] :> Simp[(e*x)^(m + 1)*(Erfc[d*(a + b*Log[c*x^n])]/(e*(m + 1))), x] + Simp[2*b*d*(n/(Sqrt[Pi]*(m + 1))) Int[(e*x)^m/E^(d*(a + b*Log[c*x^n])) ^2, x], x] /; FreeQ[{a, b, c, d, e, m, n}, x] && NeQ[m, -1]
\[\int x^{2} \operatorname {erfc}\left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )d x\]
Input:
int(x^2*erfc(d*(a+b*ln(c*x^n))),x)
Output:
int(x^2*erfc(d*(a+b*ln(c*x^n))),x)
Time = 0.11 (sec) , antiderivative size = 130, normalized size of antiderivative = 1.27 \[ \int x^2 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=-\frac {1}{3} \, x^{3} \operatorname {erf}\left (b d \log \left (c x^{n}\right ) + a d\right ) + \frac {1}{3} \, x^{3} + \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 )} \] Input:
integrate(x^2*erfc(d*(a+b*log(c*x^n))),x, algorithm="fricas")
Output:
-1/3*x^3*erf(b*d*log(c*x^n) + a*d) + 1/3*x^3 + 1/3*sqrt(b^2*d^2*n^2)*erf(1 /2*(2*b^2*d^2*n^2*log(x) + 2*b^2*d^2*n*log(c) + 2*a*b*d^2*n - 3)*sqrt(b^2* d^2*n^2)/(b^2*d^2*n^2))*e^(-3/4*(4*b^2*d^2*n*log(c) + 4*a*b*d^2*n - 3)/(b^ 2*d^2*n^2))
\[ \int x^2 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int x^{2} \operatorname {erfc}{\left (a d + b d \log {\left (c x^{n} \right )} \right )}\, dx \] Input:
integrate(x**2*erfc(d*(a+b*ln(c*x**n))),x)
Output:
Integral(x**2*erfc(a*d + b*d*log(c*x**n)), x)
\[ \int x^2 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int { x^{2} \operatorname {erfc}\left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right ) \,d x } \] Input:
integrate(x^2*erfc(d*(a+b*log(c*x^n))),x, algorithm="maxima")
Output:
integrate(x^2*erfc((b*log(c*x^n) + a)*d), x)
Time = 0.20 (sec) , antiderivative size = 90, normalized size of antiderivative = 0.88 \[ \int x^2 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=-\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 {1}{3} \, x^{3} - \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}}} \] Input:
integrate(x^2*erfc(d*(a+b*log(c*x^n))),x, algorithm="giac")
Output:
-1/3*x^3*erf(b*d*n*log(x) + b*d*log(c) + a*d) + 1/3*x^3 - 1/3*erf(-b*d*n*l og(x) - b*d*log(c) - a*d + 3/2/(b*d*n))*e^(-3*a/(b*n) + 9/4/(b^2*d^2*n^2)) /c^(3/n)
Timed out. \[ \int x^2 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int x^2\,\mathrm {erfc}\left (d\,\left (a+b\,\ln \left (c\,x^n\right )\right )\right ) \,d x \] Input:
int(x^2*erfc(d*(a + b*log(c*x^n))),x)
Output:
int(x^2*erfc(d*(a + b*log(c*x^n))), x)
\[ \int x^2 \text {erfc}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=-\left (\int \mathrm {erf}\left (\mathrm {log}\left (x^{n} c \right ) b d +a d \right ) x^{2}d x \right )+\frac {x^{3}}{3} \] Input:
int(x^2*erfc(d*(a+b*log(c*x^n))),x)
Output:
( - 3*int(erf(log(x**n*c)*b*d + a*d)*x**2,x) + x**3)/3