Optimal. Leaf size=214 \[ \left (\frac {1}{4}+\frac {i}{4}\right ) e^{-\frac {2 a b n-\frac {i}{d^2 \pi }}{2 b^2 n^2}} x \left (c x^n\right )^{-1/n} \text {Erf}\left (\frac {\left (\frac {1}{2}+\frac {i}{2}\right ) \left (\frac {1}{n}+i a b d^2 \pi +i b^2 d^2 \pi \log \left (c x^n\right )\right )}{b d \sqrt {\pi }}\right )-\left (\frac {1}{4}+\frac {i}{4}\right ) e^{-\frac {2 a b n+\frac {i}{d^2 \pi }}{2 b^2 n^2}} x \left (c x^n\right )^{-1/n} \text {Erfi}\left (\frac {\left (\frac {1}{2}+\frac {i}{2}\right ) \left (\frac {1}{n}-i a b d^2 \pi -i b^2 d^2 \pi \log \left (c x^n\right )\right )}{b d \sqrt {\pi }}\right )+x \text {FresnelC}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.19, antiderivative size = 214, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 7, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.538, Rules used = {6604, 4712,
2312, 2308, 2266, 2235, 2236} \begin {gather*} \left (\frac {1}{4}+\frac {i}{4}\right ) x \left (c x^n\right )^{-1/n} e^{-\frac {2 a b n-\frac {i}{\pi d^2}}{2 b^2 n^2}} \text {Erf}\left (\frac {\left (\frac {1}{2}+\frac {i}{2}\right ) \left (i \pi a b d^2+i \pi b^2 d^2 \log \left (c x^n\right )+\frac {1}{n}\right )}{\sqrt {\pi } b d}\right )-\left (\frac {1}{4}+\frac {i}{4}\right ) x \left (c x^n\right )^{-1/n} e^{-\frac {2 a b n+\frac {i}{\pi d^2}}{2 b^2 n^2}} \text {Erfi}\left (\frac {\left (\frac {1}{2}+\frac {i}{2}\right ) \left (-i \pi a b d^2-i \pi b^2 d^2 \log \left (c x^n\right )+\frac {1}{n}\right )}{\sqrt {\pi } b d}\right )+x \text {FresnelC}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2235
Rule 2236
Rule 2266
Rule 2308
Rule 2312
Rule 4712
Rule 6604
Rubi steps
\begin {align*} \int C\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx &=x C\left (d \left (a+b \log \left (c x^n\right )\right )\right )-(b d n) \int \cos \left (\frac {1}{2} d^2 \pi \left (a+b \log \left (c x^n\right )\right )^2\right ) \, dx\\ &=x C\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{2} (b d n) \int e^{-\frac {1}{2} i d^2 \pi \left (a+b \log \left (c x^n\right )\right )^2} \, dx-\frac {1}{2} (b d n) \int e^{\frac {1}{2} i d^2 \pi \left (a+b \log \left (c x^n\right )\right )^2} \, dx\\ &=x C\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{2} (b d n) \int \exp \left (-\frac {1}{2} i a^2 d^2 \pi -i a b d^2 \pi \log \left (c x^n\right )-\frac {1}{2} i b^2 d^2 \pi \log ^2\left (c x^n\right )\right ) \, dx-\frac {1}{2} (b d n) \int \exp \left (\frac {1}{2} i a^2 d^2 \pi +i a b d^2 \pi \log \left (c x^n\right )+\frac {1}{2} i b^2 d^2 \pi \log ^2\left (c x^n\right )\right ) \, dx\\ &=x C\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{2} (b d n) \int \exp \left (-\frac {1}{2} i a^2 d^2 \pi -\frac {1}{2} i b^2 d^2 \pi \log ^2\left (c x^n\right )\right ) \left (c x^n\right )^{-i a b d^2 \pi } \, dx-\frac {1}{2} (b d n) \int \exp \left (\frac {1}{2} i a^2 d^2 \pi +\frac {1}{2} i b^2 d^2 \pi \log ^2\left (c x^n\right )\right ) \left (c x^n\right )^{i a b d^2 \pi } \, dx\\ &=x C\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{2} \left (b d n x^{i a b d^2 n \pi } \left (c x^n\right )^{-i a b d^2 \pi }\right ) \int \exp \left (-\frac {1}{2} i a^2 d^2 \pi -\frac {1}{2} i b^2 d^2 \pi \log ^2\left (c x^n\right )\right ) x^{-i a b d^2 n \pi } \, dx-\frac {1}{2} \left (b d n x^{-i a b d^2 n \pi } \left (c x^n\right )^{i a b d^2 \pi }\right ) \int \exp \left (\frac {1}{2} i a^2 d^2 \pi +\frac {1}{2} i b^2 d^2 \pi \log ^2\left (c x^n\right )\right ) x^{i a b d^2 n \pi } \, dx\\ &=x C\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{2} \left (b d x \left (c x^n\right )^{-i a b d^2 \pi -\frac {1-i a b d^2 n \pi }{n}}\right ) \text {Subst}\left (\int \exp \left (-\frac {1}{2} i a^2 d^2 \pi +\frac {\left (1-i a b d^2 n \pi \right ) x}{n}-\frac {1}{2} i b^2 d^2 \pi x^2\right ) \, dx,x,\log \left (c x^n\right )\right )-\frac {1}{2} \left (b d x \left (c x^n\right )^{i a b d^2 \pi -\frac {1+i a b d^2 n \pi }{n}}\right ) \text {Subst}\left (\int \exp \left (\frac {1}{2} i a^2 d^2 \pi +\frac {\left (1+i a b d^2 n \pi \right ) x}{n}+\frac {1}{2} i b^2 d^2 \pi x^2\right ) \, dx,x,\log \left (c x^n\right )\right )\\ &=x C\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{2} \left (b d e^{-\frac {2 a b n+\frac {i}{d^2 \pi }}{2 b^2 n^2}} x \left (c x^n\right )^{-i a b d^2 \pi -\frac {1-i a b d^2 n \pi }{n}}\right ) \text {Subst}\left (\int \exp \left (\frac {i \left (\frac {1-i a b d^2 n \pi }{n}-i b^2 d^2 \pi x\right )^2}{2 b^2 d^2 \pi }\right ) \, dx,x,\log \left (c x^n\right )\right )-\frac {1}{2} \left (b d e^{-\frac {2 a b n-\frac {i}{d^2 \pi }}{2 b^2 n^2}} x \left (c x^n\right )^{i a b d^2 \pi -\frac {1+i a b d^2 n \pi }{n}}\right ) \text {Subst}\left (\int \exp \left (-\frac {i \left (\frac {1+i a b d^2 n \pi }{n}+i b^2 d^2 \pi x\right )^2}{2 b^2 d^2 \pi }\right ) \, dx,x,\log \left (c x^n\right )\right )\\ &=\left (\frac {1}{4}+\frac {i}{4}\right ) e^{-\frac {2 a b n-\frac {i}{d^2 \pi }}{2 b^2 n^2}} x \left (c x^n\right )^{-1/n} \text {erf}\left (\frac {\left (\frac {1}{2}+\frac {i}{2}\right ) \left (\frac {1}{n}+i a b d^2 \pi +i b^2 d^2 \pi \log \left (c x^n\right )\right )}{b d \sqrt {\pi }}\right )-\left (\frac {1}{4}+\frac {i}{4}\right ) e^{-\frac {2 a b n+\frac {i}{d^2 \pi }}{2 b^2 n^2}} x \left (c x^n\right )^{-1/n} \text {erfi}\left (\frac {\left (\frac {1}{2}+\frac {i}{2}\right ) \left (\frac {1}{n}-i a b d^2 \pi -i b^2 d^2 \pi \log \left (c x^n\right )\right )}{b d \sqrt {\pi }}\right )+x C\left (d \left (a+b \log \left (c x^n\right )\right )\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 4.32, size = 315, normalized size = 1.47 \begin {gather*} x \text {FresnelC}\left (d \left (a+b \log \left (c x^n\right )\right )\right )+\frac {\sqrt [4]{-1} e^{\frac {1}{2} \left (-\frac {2 a}{b n}-\frac {i}{b^2 d^2 n^2 \pi }-i a^2 d^2 \pi +2 i a b d^2 \pi \left (n \log (x)-\log \left (c x^n\right )\right )-i b^2 d^2 \pi \left (-n \log (x)+\log \left (c x^n\right )\right )^2\right )} x \left (c x^n\right )^{-1/n} \left (i e^{\frac {i}{b^2 d^2 n^2 \pi }} \text {Erfi}\left (\frac {\left (\frac {1}{2}+\frac {i}{2}\right ) \left (-i+a b d^2 n \pi +b^2 d^2 n \pi \log \left (c x^n\right )\right )}{b d n \sqrt {\pi }}\right )+\text {Erfi}\left (\frac {(-1)^{3/4} \left (i+a b d^2 n \pi +b^2 d^2 n \pi \log \left (c x^n\right )\right )}{b d n \sqrt {2 \pi }}\right )\right ) \left (\cos \left (\frac {1}{2} d^2 \pi \left (a-b n \log (x)+b \log \left (c x^n\right )\right )^2\right )+i \sin \left (\frac {1}{2} d^2 \pi \left (a-b n \log (x)+b \log \left (c x^n\right )\right )^2\right )\right )}{2 \sqrt {2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.54, size = 0, normalized size = 0.00 \[\int \FresnelC \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 [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 445 vs. \(2 (176) = 352\).
time = 0.39, size = 445, normalized size = 2.08 \begin {gather*} -\frac {1}{2} \, \pi \sqrt {b^{2} d^{2} n^{2}} e^{\left (-\frac {\log \left (c\right )}{n} - \frac {a}{b n} - \frac {i}{2 \, \pi b^{2} d^{2} n^{2}}\right )} \operatorname {C}\left (\frac {{\left (\pi b^{2} d^{2} n^{2} \log \left (x\right ) + \pi b^{2} d^{2} n \log \left (c\right ) + \pi a b d^{2} n + i\right )} \sqrt {b^{2} d^{2} n^{2}}}{\pi b^{2} d^{2} n^{2}}\right ) - \frac {1}{2} \, \pi \sqrt {b^{2} d^{2} n^{2}} e^{\left (-\frac {\log \left (c\right )}{n} - \frac {a}{b n} + \frac {i}{2 \, \pi b^{2} d^{2} n^{2}}\right )} \operatorname {C}\left (\frac {{\left (\pi b^{2} d^{2} n^{2} \log \left (x\right ) + \pi b^{2} d^{2} n \log \left (c\right ) + \pi a b d^{2} n - i\right )} \sqrt {b^{2} d^{2} n^{2}}}{\pi b^{2} d^{2} n^{2}}\right ) + \frac {1}{2} i \, \pi \sqrt {b^{2} d^{2} n^{2}} e^{\left (-\frac {\log \left (c\right )}{n} - \frac {a}{b n} - \frac {i}{2 \, \pi b^{2} d^{2} n^{2}}\right )} \operatorname {S}\left (\frac {{\left (\pi b^{2} d^{2} n^{2} \log \left (x\right ) + \pi b^{2} d^{2} n \log \left (c\right ) + \pi a b d^{2} n + i\right )} \sqrt {b^{2} d^{2} n^{2}}}{\pi b^{2} d^{2} n^{2}}\right ) - \frac {1}{2} i \, \pi \sqrt {b^{2} d^{2} n^{2}} e^{\left (-\frac {\log \left (c\right )}{n} - \frac {a}{b n} + \frac {i}{2 \, \pi b^{2} d^{2} n^{2}}\right )} \operatorname {S}\left (\frac {{\left (\pi b^{2} d^{2} n^{2} \log \left (x\right ) + \pi b^{2} d^{2} n \log \left (c\right ) + \pi a b d^{2} n - i\right )} \sqrt {b^{2} d^{2} n^{2}}}{\pi b^{2} d^{2} n^{2}}\right ) + x \operatorname {C}\left (b d \log \left (c x^{n}\right ) + a d\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 C\left (d \left (a + b \log {\left (c x^{n} \right )}\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.00 \begin {gather*} \int \mathrm {FresnelC}\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]
________________________________________________________________________________________