Integrand size = 9, antiderivative size = 35 \[ \int \cos (a+b x) \log (x) \, dx=-\frac {\operatorname {CosIntegral}(b x) \sin (a)}{b}+\frac {\log (x) \sin (a+b x)}{b}-\frac {\cos (a) \text {Si}(b x)}{b} \]
[Out]
Time = 0.04 (sec) , antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.667, Rules used = {2717, 2634, 12, 3384, 3380, 3383} \[ \int \cos (a+b x) \log (x) \, dx=-\frac {\sin (a) \operatorname {CosIntegral}(b x)}{b}-\frac {\cos (a) \text {Si}(b x)}{b}+\frac {\log (x) \sin (a+b x)}{b} \]
[In]
[Out]
Rule 12
Rule 2634
Rule 2717
Rule 3380
Rule 3383
Rule 3384
Rubi steps \begin{align*} \text {integral}& = \frac {\log (x) \sin (a+b x)}{b}-\int \frac {\sin (a+b x)}{b x} \, dx \\ & = \frac {\log (x) \sin (a+b x)}{b}-\frac {\int \frac {\sin (a+b x)}{x} \, dx}{b} \\ & = \frac {\log (x) \sin (a+b x)}{b}-\frac {\cos (a) \int \frac {\sin (b x)}{x} \, dx}{b}-\frac {\sin (a) \int \frac {\cos (b x)}{x} \, dx}{b} \\ & = -\frac {\text {Ci}(b x) \sin (a)}{b}+\frac {\log (x) \sin (a+b x)}{b}-\frac {\cos (a) \text {Si}(b x)}{b} \\ \end{align*}
Time = 0.04 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.86 \[ \int \cos (a+b x) \log (x) \, dx=-\frac {\operatorname {CosIntegral}(b x) \sin (a)-\log (x) \sin (a+b x)+\cos (a) \text {Si}(b x)}{b} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 1.02 (sec) , antiderivative size = 79, normalized size of antiderivative = 2.26
method | result | size |
risch | \(\frac {\ln \left (x \right ) \sin \left (b x +a \right )}{b}+\frac {{\mathrm e}^{-i a} \pi \,\operatorname {csgn}\left (b x \right )}{2 b}-\frac {{\mathrm e}^{-i a} \operatorname {Si}\left (b x \right )}{b}+\frac {i {\mathrm e}^{-i a} \operatorname {Ei}_{1}\left (-i b x \right )}{2 b}-\frac {i {\mathrm e}^{i a} \operatorname {Ei}_{1}\left (-i b x \right )}{2 b}\) | \(79\) |
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.86 \[ \int \cos (a+b x) \log (x) \, dx=\frac {\log \left (x\right ) \sin \left (b x + a\right ) - \operatorname {Ci}\left (b x\right ) \sin \left (a\right ) - \cos \left (a\right ) \operatorname {Si}\left (b x\right )}{b} \]
[In]
[Out]
\[ \int \cos (a+b x) \log (x) \, dx=\int \log {\left (x \right )} \cos {\left (a + b x \right )}\, dx \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.25 (sec) , antiderivative size = 55, normalized size of antiderivative = 1.57 \[ \int \cos (a+b x) \log (x) \, dx=\frac {\log \left (x\right ) \sin \left (b x + a\right )}{b} + \frac {{\left (i \, E_{1}\left (i \, b x\right ) - i \, E_{1}\left (-i \, b x\right )\right )} \cos \left (a\right ) + {\left (E_{1}\left (i \, b x\right ) + E_{1}\left (-i \, b x\right )\right )} \sin \left (a\right )}{2 \, b} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.31 (sec) , antiderivative size = 108, normalized size of antiderivative = 3.09 \[ \int \cos (a+b x) \log (x) \, dx=\frac {\log \left (x\right ) \sin \left (b x + a\right )}{b} + \frac {\Im \left ( \operatorname {Ci}\left (b x\right ) \right ) \tan \left (\frac {1}{2} \, a\right )^{2} - \Im \left ( \operatorname {Ci}\left (-b x\right ) \right ) \tan \left (\frac {1}{2} \, a\right )^{2} + 2 \, \operatorname {Si}\left (b x\right ) \tan \left (\frac {1}{2} \, a\right )^{2} - 2 \, \Re \left ( \operatorname {Ci}\left (b x\right ) \right ) \tan \left (\frac {1}{2} \, a\right ) - 2 \, \Re \left ( \operatorname {Ci}\left (-b x\right ) \right ) \tan \left (\frac {1}{2} \, a\right ) - \Im \left ( \operatorname {Ci}\left (b x\right ) \right ) + \Im \left ( \operatorname {Ci}\left (-b x\right ) \right ) - 2 \, \operatorname {Si}\left (b x\right )}{2 \, {\left (b \tan \left (\frac {1}{2} \, a\right )^{2} + b\right )}} \]
[In]
[Out]
Timed out. \[ \int \cos (a+b x) \log (x) \, dx=\int \cos \left (a+b\,x\right )\,\ln \left (x\right ) \,d x \]
[In]
[Out]