3.249 \(\int \frac {\text {erfi}(d (a+b \log (c x^n)))}{x} \, dx\)

Optimal. Leaf size=64 \[ \frac {\left (a+b \log \left (c x^n\right )\right ) \text {erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{b n}-\frac {e^{\left (a d+b d \log \left (c x^n\right )\right )^2}}{\sqrt {\pi } b d n} \]

[Out]

erfi(d*(a+b*ln(c*x^n)))*(a+b*ln(c*x^n))/b/n-exp((a*d+b*d*ln(c*x^n))^2)/b/d/n/Pi^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 64, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 1, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {6351} \[ \frac {\left (a+b \log \left (c x^n\right )\right ) \text {Erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{b n}-\frac {e^{\left (a d+b d \log \left (c x^n\right )\right )^2}}{\sqrt {\pi } b d n} \]

Antiderivative was successfully verified.

[In]

Int[Erfi[d*(a + b*Log[c*x^n])]/x,x]

[Out]

-(E^(a*d + b*d*Log[c*x^n])^2/(b*d*n*Sqrt[Pi])) + (Erfi[d*(a + b*Log[c*x^n])]*(a + b*Log[c*x^n]))/(b*n)

Rule 6351

Int[Erfi[(a_.) + (b_.)*(x_)], x_Symbol] :> Simp[((a + b*x)*Erfi[a + b*x])/b, x] - Simp[E^(a + b*x)^2/(b*Sqrt[P
i]), x] /; FreeQ[{a, b}, x]

Rubi steps

\begin {align*} \int \frac {\text {erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{x} \, dx &=\frac {\operatorname {Subst}\left (\int \text {erfi}(d (a+b x)) \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=\frac {\operatorname {Subst}\left (\int \text {erfi}(x) \, dx,x,a d+b d \log \left (c x^n\right )\right )}{b d n}\\ &=-\frac {e^{\left (a d+b d \log \left (c x^n\right )\right )^2}}{b d n \sqrt {\pi }}+\frac {\text {erfi}\left (a d+b d \log \left (c x^n\right )\right ) \left (a+b \log \left (c x^n\right )\right )}{b n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.13, size = 83, normalized size = 1.30 \[ \frac {\sqrt {\pi } d \left (a+b \log \left (c x^n\right )\right ) \text {erfi}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\left (c x^n\right )^{2 a b d^2} e^{d^2 \left (a^2+b^2 \log ^2\left (c x^n\right )\right )}}{\sqrt {\pi } b d n} \]

Antiderivative was successfully verified.

[In]

Integrate[Erfi[d*(a + b*Log[c*x^n])]/x,x]

[Out]

(-(E^(d^2*(a^2 + b^2*Log[c*x^n]^2))*(c*x^n)^(2*a*b*d^2)) + d*Sqrt[Pi]*Erfi[d*(a + b*Log[c*x^n])]*(a + b*Log[c*
x^n]))/(b*d*n*Sqrt[Pi])

________________________________________________________________________________________

fricas [A]  time = 0.72, size = 117, normalized size = 1.83 \[ \frac {{\left (\pi b d n \log \relax (x) + \pi b d \log \relax (c) + \pi a d\right )} \operatorname {erfi}\left (b d \log \left (c x^{n}\right ) + a d\right ) - \sqrt {\pi } e^{\left (b^{2} d^{2} n^{2} \log \relax (x)^{2} + b^{2} d^{2} \log \relax (c)^{2} + 2 \, a b d^{2} \log \relax (c) + a^{2} d^{2} + 2 \, {\left (b^{2} d^{2} n \log \relax (c) + a b d^{2} n\right )} \log \relax (x)\right )}}{\pi b d n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(erfi(d*(a+b*log(c*x^n)))/x,x, algorithm="fricas")

[Out]

((pi*b*d*n*log(x) + pi*b*d*log(c) + pi*a*d)*erfi(b*d*log(c*x^n) + a*d) - sqrt(pi)*e^(b^2*d^2*n^2*log(x)^2 + b^
2*d^2*log(c)^2 + 2*a*b*d^2*log(c) + a^2*d^2 + 2*(b^2*d^2*n*log(c) + a*b*d^2*n)*log(x)))/(pi*b*d*n)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {erfi}\left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right )}{x}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(erfi(d*(a+b*log(c*x^n)))/x,x, algorithm="giac")

[Out]

integrate(erfi((b*log(c*x^n) + a)*d)/x, x)

________________________________________________________________________________________

maple [A]  time = 0.06, size = 78, normalized size = 1.22 \[ \frac {\ln \left (c \,x^{n}\right ) \erfi \left (a d +b d \ln \left (c \,x^{n}\right )\right )}{n}+\frac {\erfi \left (a d +b d \ln \left (c \,x^{n}\right )\right ) a}{n b}-\frac {{\mathrm e}^{\left (a d +b d \ln \left (c \,x^{n}\right )\right )^{2}}}{b d n \sqrt {\pi }} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(erfi(d*(a+b*ln(c*x^n)))/x,x)

[Out]

1/n*ln(c*x^n)*erfi(a*d+b*d*ln(c*x^n))+1/n/b*erfi(a*d+b*d*ln(c*x^n))*a-exp((a*d+b*d*ln(c*x^n))^2)/b/d/n/Pi^(1/2
)

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 58, normalized size = 0.91 \[ \frac {{\left (b \log \left (c x^{n}\right ) + a\right )} d \operatorname {erfi}\left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right ) - \frac {e^{\left ({\left (b \log \left (c x^{n}\right ) + a\right )}^{2} d^{2}\right )}}{\sqrt {\pi }}}{b d n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(erfi(d*(a+b*log(c*x^n)))/x,x, algorithm="maxima")

[Out]

((b*log(c*x^n) + a)*d*erfi((b*log(c*x^n) + a)*d) - e^((b*log(c*x^n) + a)^2*d^2)/sqrt(pi))/(b*d*n)

________________________________________________________________________________________

mupad [B]  time = 0.45, size = 112, normalized size = 1.75 \[ \frac {\ln \left (c\,x^n\right )\,\mathrm {erfi}\left (a\,d+b\,d\,\ln \left (c\,x^n\right )\right )}{n}+\frac {a\,d\,\mathrm {erfi}\left (a\,\sqrt {d^2}+b\,\ln \left (c\,x^n\right )\,\sqrt {d^2}\right )}{b\,n\,\sqrt {d^2}}-\frac {{\mathrm {e}}^{b^2\,d^2\,{\ln \left (c\,x^n\right )}^2}\,{\mathrm {e}}^{a^2\,d^2}\,{\left (c\,x^n\right )}^{2\,a\,b\,d^2}}{b\,d\,n\,\sqrt {\pi }} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(erfi(d*(a + b*log(c*x^n)))/x,x)

[Out]

(log(c*x^n)*erfi(a*d + b*d*log(c*x^n)))/n + (a*d*erfi(a*(d^2)^(1/2) + b*log(c*x^n)*(d^2)^(1/2)))/(b*n*(d^2)^(1
/2)) - (exp(b^2*d^2*log(c*x^n)^2)*exp(a^2*d^2)*(c*x^n)^(2*a*b*d^2))/(b*d*n*pi^(1/2))

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {erfi}{\left (a d + b d \log {\left (c x^{n} \right )} \right )}}{x}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(erfi(d*(a+b*ln(c*x**n)))/x,x)

[Out]

Integral(erfi(a*d + b*d*log(c*x**n))/x, x)

________________________________________________________________________________________