Integrand size = 13, antiderivative size = 124 \[ \int \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=x \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{2} e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \operatorname {ExpIntegralEi}\left (\frac {(1-i b d n) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )-\frac {1}{2} e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \operatorname {ExpIntegralEi}\left (\frac {(1+i b d n) \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \]
[Out]
Time = 0.17 (sec) , antiderivative size = 124, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.385, Rules used = {6659, 12, 4584, 2347, 2209} \[ \int \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=x \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{2} x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \operatorname {ExpIntegralEi}\left (\frac {(1-i b d n) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )-\frac {1}{2} x e^{-\frac {a}{b n}} \left (c x^n\right )^{-1/n} \operatorname {ExpIntegralEi}\left (\frac {(i b d n+1) \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \]
[In]
[Out]
Rule 12
Rule 2209
Rule 2347
Rule 4584
Rule 6659
Rubi steps \begin{align*} \text {integral}& = x \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-(b d n) \int \frac {\cos \left (d \left (a+b \log \left (c x^n\right )\right )\right )}{d \left (a+b \log \left (c x^n\right )\right )} \, dx \\ & = x \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-(b n) \int \frac {\cos \left (d \left (a+b \log \left (c x^n\right )\right )\right )}{a+b \log \left (c x^n\right )} \, dx \\ & = x \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{2} \left (b e^{-i a d} n x^{i b d n} \left (c x^n\right )^{-i b d}\right ) \int \frac {x^{-i b d n}}{a+b \log \left (c x^n\right )} \, dx-\frac {1}{2} \left (b e^{i a d} n x^{-i b d n} \left (c x^n\right )^{i b d}\right ) \int \frac {x^{i b d n}}{a+b \log \left (c x^n\right )} \, dx \\ & = x \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{2} \left (b e^{-i a d} x \left (c x^n\right )^{-i b d-\frac {1-i b d n}{n}}\right ) \text {Subst}\left (\int \frac {e^{\frac {(1-i b d n) x}{n}}}{a+b x} \, dx,x,\log \left (c x^n\right )\right )-\frac {1}{2} \left (b e^{i a d} x \left (c x^n\right )^{i b d-\frac {1+i b d n}{n}}\right ) \text {Subst}\left (\int \frac {e^{\frac {(1+i b d n) x}{n}}}{a+b x} \, dx,x,\log \left (c x^n\right )\right ) \\ & = x \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{2} e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \operatorname {ExpIntegralEi}\left (\frac {(1-i b d n) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )-\frac {1}{2} e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \operatorname {ExpIntegralEi}\left (\frac {(1+i b d n) \left (a+b \log \left (c x^n\right )\right )}{b n}\right ) \\ \end{align*}
Time = 1.11 (sec) , antiderivative size = 98, normalized size of antiderivative = 0.79 \[ \int \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=x \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right )-\frac {1}{2} e^{-\frac {a}{b n}} x \left (c x^n\right )^{-1/n} \left (\operatorname {ExpIntegralEi}\left (\frac {(1-i b d n) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )+\operatorname {ExpIntegralEi}\left (\frac {(1+i b d n) \left (a+b \log \left (c x^n\right )\right )}{b n}\right )\right ) \]
[In]
[Out]
\[\int \operatorname {Ci}\left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )d x\]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 445 vs. \(2 (114) = 228\).
Time = 0.29 (sec) , antiderivative size = 445, normalized size of antiderivative = 3.59 \[ \int \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=-\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 ) \]
[In]
[Out]
\[ \int \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int \operatorname {Ci}{\left (d \left (a + b \log {\left (c x^{n} \right )}\right ) \right )}\, dx \]
[In]
[Out]
\[ \int \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int { \operatorname {C}\left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right ) \,d x } \]
[In]
[Out]
\[ \int \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int { \operatorname {C}\left ({\left (b \log \left (c x^{n}\right ) + a\right )} d\right ) \,d x } \]
[In]
[Out]
Timed out. \[ \int \operatorname {CosIntegral}\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx=\int \mathrm {cosint}\left (d\,\left (a+b\,\ln \left (c\,x^n\right )\right )\right ) \,d x \]
[In]
[Out]