Optimal. Leaf size=97 \[ -\frac {1}{4} b^2 \text {Ci}(b x)^2-b^2 \text {Ci}(2 b x)-\frac {\text {Ci}(b x) \cos (b x)}{2 x^2}+\frac {b \text {Ci}(b x) \sin (b x)}{2 x}-\frac {\cos ^2(b x)}{4 x^2}+\frac {b \sin (2 b x)}{4 x}+\frac {b \sin (b x) \cos (b x)}{2 x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.20, antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 10, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.833, Rules used = {6516, 6522, 6686, 12, 4406, 3297, 3302, 3314, 29, 3312} \[ -\frac {1}{4} b^2 \text {CosIntegral}(b x)^2-b^2 \text {CosIntegral}(2 b x)-\frac {\text {CosIntegral}(b x) \cos (b x)}{2 x^2}+\frac {b \text {CosIntegral}(b x) \sin (b x)}{2 x}-\frac {\cos ^2(b x)}{4 x^2}+\frac {b \sin (2 b x)}{4 x}+\frac {b \sin (b x) \cos (b x)}{2 x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 29
Rule 3297
Rule 3302
Rule 3312
Rule 3314
Rule 4406
Rule 6516
Rule 6522
Rule 6686
Rubi steps
\begin {align*} \int \frac {\cos (b x) \text {Ci}(b x)}{x^3} \, dx &=-\frac {\cos (b x) \text {Ci}(b x)}{2 x^2}+\frac {1}{2} b \int \frac {\cos ^2(b x)}{b x^3} \, dx-\frac {1}{2} b \int \frac {\text {Ci}(b x) \sin (b x)}{x^2} \, dx\\ &=-\frac {\cos (b x) \text {Ci}(b x)}{2 x^2}+\frac {b \text {Ci}(b x) \sin (b x)}{2 x}+\frac {1}{2} \int \frac {\cos ^2(b x)}{x^3} \, dx-\frac {1}{2} b^2 \int \frac {\cos (b x) \text {Ci}(b x)}{x} \, dx-\frac {1}{2} b^2 \int \frac {\cos (b x) \sin (b x)}{b x^2} \, dx\\ &=-\frac {\cos ^2(b x)}{4 x^2}-\frac {\cos (b x) \text {Ci}(b x)}{2 x^2}-\frac {1}{4} b^2 \text {Ci}(b x)^2+\frac {b \cos (b x) \sin (b x)}{2 x}+\frac {b \text {Ci}(b x) \sin (b x)}{2 x}-\frac {1}{2} b \int \frac {\cos (b x) \sin (b x)}{x^2} \, dx+\frac {1}{2} b^2 \int \frac {1}{x} \, dx-b^2 \int \frac {\cos ^2(b x)}{x} \, dx\\ &=-\frac {\cos ^2(b x)}{4 x^2}-\frac {\cos (b x) \text {Ci}(b x)}{2 x^2}-\frac {1}{4} b^2 \text {Ci}(b x)^2+\frac {1}{2} b^2 \log (x)+\frac {b \cos (b x) \sin (b x)}{2 x}+\frac {b \text {Ci}(b x) \sin (b x)}{2 x}-\frac {1}{2} b \int \frac {\sin (2 b x)}{2 x^2} \, dx-b^2 \int \left (\frac {1}{2 x}+\frac {\cos (2 b x)}{2 x}\right ) \, dx\\ &=-\frac {\cos ^2(b x)}{4 x^2}-\frac {\cos (b x) \text {Ci}(b x)}{2 x^2}-\frac {1}{4} b^2 \text {Ci}(b x)^2+\frac {b \cos (b x) \sin (b x)}{2 x}+\frac {b \text {Ci}(b x) \sin (b x)}{2 x}-\frac {1}{4} b \int \frac {\sin (2 b x)}{x^2} \, dx-\frac {1}{2} b^2 \int \frac {\cos (2 b x)}{x} \, dx\\ &=-\frac {\cos ^2(b x)}{4 x^2}-\frac {\cos (b x) \text {Ci}(b x)}{2 x^2}-\frac {1}{4} b^2 \text {Ci}(b x)^2-\frac {1}{2} b^2 \text {Ci}(2 b x)+\frac {b \cos (b x) \sin (b x)}{2 x}+\frac {b \text {Ci}(b x) \sin (b x)}{2 x}+\frac {b \sin (2 b x)}{4 x}-\frac {1}{2} b^2 \int \frac {\cos (2 b x)}{x} \, dx\\ &=-\frac {\cos ^2(b x)}{4 x^2}-\frac {\cos (b x) \text {Ci}(b x)}{2 x^2}-\frac {1}{4} b^2 \text {Ci}(b x)^2-b^2 \text {Ci}(2 b x)+\frac {b \cos (b x) \sin (b x)}{2 x}+\frac {b \text {Ci}(b x) \sin (b x)}{2 x}+\frac {b \sin (2 b x)}{4 x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 97, normalized size = 1.00 \[ -\frac {1}{4} b^2 \text {Ci}(b x)^2-b^2 \text {Ci}(2 b x)-\frac {\text {Ci}(b x) \cos (b x)}{2 x^2}+\frac {b \text {Ci}(b x) \sin (b x)}{2 x}-\frac {\cos ^2(b x)}{4 x^2}+\frac {b \sin (2 b x)}{4 x}+\frac {b \sin (b x) \cos (b x)}{2 x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 2.11, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\cos \left (b x\right ) \operatorname {Ci}\left (b x\right )}{x^{3}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\rm Ci}\left (b x\right ) \cos \left (b x\right )}{x^{3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.03, size = 0, normalized size = 0.00 \[ \int \frac {\Ci \left (b x \right ) \cos \left (b x \right )}{x^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\rm Ci}\left (b x\right ) \cos \left (b x\right )}{x^{3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\mathrm {cosint}\left (b\,x\right )\,\cos \left (b\,x\right )}{x^3} \,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 \frac {\cos {\left (b x \right )} \operatorname {Ci}{\left (b x \right )}}{x^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________