Optimal. Leaf size=35 \[ -\frac{\sin (a) \text{CosIntegral}(b x)}{b}-\frac{\cos (a) \text{Si}(b x)}{b}+\frac{\log (x) \sin (a+b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0611252, antiderivative size = 35, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 6, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.667, Rules used = {2637, 2554, 12, 3303, 3299, 3302} \[ -\frac{\sin (a) \text{CosIntegral}(b x)}{b}-\frac{\cos (a) \text{Si}(b x)}{b}+\frac{\log (x) \sin (a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2637
Rule 2554
Rule 12
Rule 3303
Rule 3299
Rule 3302
Rubi steps
\begin{align*} \int \cos (a+b x) \log (x) \, dx &=\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*}
Mathematica [A] time = 0.0431815, size = 30, normalized size = 0.86 \[ -\frac{\sin (a) \text{CosIntegral}(b x)+\cos (a) \text{Si}(b x)-\log (x) \sin (a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.082, size = 79, normalized size = 2.3 \begin{align*}{\frac{\ln \left ( x \right ) \sin \left ( bx+a \right ) }{b}}+{\frac{{{\rm e}^{-ia}}\pi \,{\it csgn} \left ( bx \right ) }{2\,b}}-{\frac{{{\rm e}^{-ia}}{\it Si} \left ( bx \right ) }{b}}+{\frac{{\frac{i}{2}}{{\rm e}^{-ia}}{\it Ei} \left ( 1,-ibx \right ) }{b}}-{\frac{{\frac{i}{2}}{{\rm e}^{ia}}{\it Ei} \left ( 1,-ibx \right ) }{b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.18322, size = 74, normalized size = 2.11 \begin{align*} \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} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.48628, size = 149, normalized size = 4.26 \begin{align*} \frac{2 \, \log \left (x\right ) \sin \left (b x + a\right ) -{\left (\operatorname{Ci}\left (b x\right ) + \operatorname{Ci}\left (-b x\right )\right )} \sin \left (a\right ) - 2 \, \cos \left (a\right ) \operatorname{Si}\left (b x\right )}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \log{\left (x \right )} \cos{\left (a + b x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] time = 1.34414, size = 146, normalized size = 4.17 \begin{align*} \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 )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]