Optimal. Leaf size=62 \[ \frac {\text {Ci}(b x) \sin (b x)}{b^2}-\frac {\text {Si}(2 b x)}{2 b^2}+\frac {\sin (b x) \cos (b x)}{2 b^2}-\frac {x \text {Ci}(b x) \cos (b x)}{b}+\frac {x}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 62, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.700, Rules used = {6520, 12, 2635, 8, 6512, 4406, 3299} \[ \frac {\text {CosIntegral}(b x) \sin (b x)}{b^2}-\frac {\text {Si}(2 b x)}{2 b^2}+\frac {\sin (b x) \cos (b x)}{2 b^2}-\frac {x \text {CosIntegral}(b x) \cos (b x)}{b}+\frac {x}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 12
Rule 2635
Rule 3299
Rule 4406
Rule 6512
Rule 6520
Rubi steps
\begin {align*} \int x \text {Ci}(b x) \sin (b x) \, dx &=-\frac {x \cos (b x) \text {Ci}(b x)}{b}+\frac {\int \cos (b x) \text {Ci}(b x) \, dx}{b}+\int \frac {\cos ^2(b x)}{b} \, dx\\ &=-\frac {x \cos (b x) \text {Ci}(b x)}{b}+\frac {\text {Ci}(b x) \sin (b x)}{b^2}+\frac {\int \cos ^2(b x) \, dx}{b}-\frac {\int \frac {\cos (b x) \sin (b x)}{b x} \, dx}{b}\\ &=-\frac {x \cos (b x) \text {Ci}(b x)}{b}+\frac {\cos (b x) \sin (b x)}{2 b^2}+\frac {\text {Ci}(b x) \sin (b x)}{b^2}-\frac {\int \frac {\cos (b x) \sin (b x)}{x} \, dx}{b^2}+\frac {\int 1 \, dx}{2 b}\\ &=\frac {x}{2 b}-\frac {x \cos (b x) \text {Ci}(b x)}{b}+\frac {\cos (b x) \sin (b x)}{2 b^2}+\frac {\text {Ci}(b x) \sin (b x)}{b^2}-\frac {\int \frac {\sin (2 b x)}{2 x} \, dx}{b^2}\\ &=\frac {x}{2 b}-\frac {x \cos (b x) \text {Ci}(b x)}{b}+\frac {\cos (b x) \sin (b x)}{2 b^2}+\frac {\text {Ci}(b x) \sin (b x)}{b^2}-\frac {\int \frac {\sin (2 b x)}{x} \, dx}{2 b^2}\\ &=\frac {x}{2 b}-\frac {x \cos (b x) \text {Ci}(b x)}{b}+\frac {\cos (b x) \sin (b x)}{2 b^2}+\frac {\text {Ci}(b x) \sin (b x)}{b^2}-\frac {\text {Si}(2 b x)}{2 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 44, normalized size = 0.71 \[ \frac {\text {Ci}(b x) (4 \sin (b x)-4 b x \cos (b x))-2 \text {Si}(2 b x)+2 b x+\sin (2 b x)}{4 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 2.05, size = 0, normalized size = 0.00 \[ {\rm integral}\left (x \operatorname {Ci}\left (b x\right ) \sin \left (b x\right ), x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [C] time = 0.33, size = 126, normalized size = 2.03 \[ -{\left (\frac {x \cos \left (b x\right )}{b} - \frac {\sin \left (b x\right )}{b^{2}}\right )} \operatorname {Ci}\left (b x\right ) + \frac {2 \, b x \tan \left (b x\right )^{2} - \Im \left (\operatorname {Ci}\left (2 \, b x\right ) \right ) \tan \left (b x\right )^{2} + \Im \left (\operatorname {Ci}\left (-2 \, b x\right ) \right ) \tan \left (b x\right )^{2} - 2 \, \operatorname {Si}\left (2 \, b x\right ) \tan \left (b x\right )^{2} + 2 \, b x - \Im \left (\operatorname {Ci}\left (2 \, b x\right ) \right ) + \Im \left (\operatorname {Ci}\left (-2 \, b x\right ) \right ) - 2 \, \operatorname {Si}\left (2 \, b x\right ) + 2 \, \tan \left (b x\right )}{4 \, {\left (b^{2} \tan \left (b x\right )^{2} + b^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 45, normalized size = 0.73 \[ \frac {\Ci \left (b x \right ) \left (\sin \left (b x \right )-b x \cos \left (b x \right )\right )-\frac {\Si \left (2 b x \right )}{2}+\frac {\sin \left (b x \right ) \cos \left (b x \right )}{2}+\frac {b x}{2}}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x {\rm Ci}\left (b x\right ) \sin \left (b x\right )\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int x\,\mathrm {cosint}\left (b\,x\right )\,\sin \left (b\,x\right ) \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x \sin {\left (b x \right )} \operatorname {Ci}{\left (b x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________