Optimal. Leaf size=46 \[ -\frac {\cos (b x)}{4 x^2}-\frac {1}{4} b^2 \text {CosIntegral}(b x)-\frac {\text {CosIntegral}(b x)}{2 x^2}+\frac {b \sin (b x)}{4 x} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 46, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {6639, 12, 3378,
3383} \begin {gather*} -\frac {1}{4} b^2 \text {CosIntegral}(b x)-\frac {\text {CosIntegral}(b x)}{2 x^2}-\frac {\cos (b x)}{4 x^2}+\frac {b \sin (b x)}{4 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 3378
Rule 3383
Rule 6639
Rubi steps
\begin {align*} \int \frac {\text {Ci}(b x)}{x^3} \, dx &=-\frac {\text {Ci}(b x)}{2 x^2}+\frac {1}{2} b \int \frac {\cos (b x)}{b x^3} \, dx\\ &=-\frac {\text {Ci}(b x)}{2 x^2}+\frac {1}{2} \int \frac {\cos (b x)}{x^3} \, dx\\ &=-\frac {\cos (b x)}{4 x^2}-\frac {\text {Ci}(b x)}{2 x^2}-\frac {1}{4} b \int \frac {\sin (b x)}{x^2} \, dx\\ &=-\frac {\cos (b x)}{4 x^2}-\frac {\text {Ci}(b x)}{2 x^2}+\frac {b \sin (b x)}{4 x}-\frac {1}{4} b^2 \int \frac {\cos (b x)}{x} \, dx\\ &=-\frac {\cos (b x)}{4 x^2}-\frac {1}{4} b^2 \text {Ci}(b x)-\frac {\text {Ci}(b x)}{2 x^2}+\frac {b \sin (b x)}{4 x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 46, normalized size = 1.00 \begin {gather*} -\frac {\cos (b x)}{4 x^2}-\frac {1}{4} b^2 \text {CosIntegral}(b x)-\frac {\text {CosIntegral}(b x)}{2 x^2}+\frac {b \sin (b x)}{4 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.22, size = 48, normalized size = 1.04
method | result | size |
derivativedivides | \(b^{2} \left (-\frac {\cosineIntegral \left (b x \right )}{2 b^{2} x^{2}}-\frac {\cos \left (b x \right )}{4 b^{2} x^{2}}+\frac {\sin \left (b x \right )}{4 b x}-\frac {\cosineIntegral \left (b x \right )}{4}\right )\) | \(48\) |
default | \(b^{2} \left (-\frac {\cosineIntegral \left (b x \right )}{2 b^{2} x^{2}}-\frac {\cos \left (b x \right )}{4 b^{2} x^{2}}+\frac {\sin \left (b x \right )}{4 b x}-\frac {\cosineIntegral \left (b x \right )}{4}\right )\) | \(48\) |
meijerg | \(\frac {\sqrt {\pi }\, b^{2} \left (\frac {-8 b^{2} x^{2}+4}{\sqrt {\pi }\, b^{2} x^{2}}+\frac {4 \left (3 b^{2} x^{2}+6\right ) \gamma }{3 \sqrt {\pi }\, b^{2} x^{2}}+\frac {4 \left (3 b^{2} x^{2}+6\right ) \ln \left (2\right )}{3 \sqrt {\pi }\, b^{2} x^{2}}+\frac {4 \left (3 b^{2} x^{2}+6\right ) \ln \left (\frac {b x}{2}\right )}{3 \sqrt {\pi }\, b^{2} x^{2}}-\frac {4 \cos \left (b x \right )}{\sqrt {\pi }\, b^{2} x^{2}}+\frac {4 \sin \left (b x \right )}{\sqrt {\pi }\, b x}-\frac {4 \left (3 b^{2} x^{2}+6\right ) \cosineIntegral \left (b x \right )}{3 \sqrt {\pi }\, b^{2} x^{2}}-\frac {4 \left (1+2 \gamma +2 \ln \left (x \right )+2 \ln \left (b \right )\right )}{\sqrt {\pi }\, x^{2} b^{2}}-\frac {2 \left (2 \gamma -4+2 \ln \left (x \right )+2 \ln \left (b \right )\right )}{\sqrt {\pi }}\right )}{16}\) | \(199\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains complex when optimal does not.
time = 0.53, size = 61, normalized size = 1.33 \begin {gather*} -\frac {\sqrt {\frac {1}{2}} \sqrt {\pi x^{2}} {\left (\left (i + 1\right ) \, \sqrt {2} \Gamma \left (-\frac {1}{2}, \frac {1}{2} i \, \pi b^{2} x^{2}\right ) - \left (i - 1\right ) \, \sqrt {2} \Gamma \left (-\frac {1}{2}, -\frac {1}{2} i \, \pi b^{2} x^{2}\right )\right )} b^{2}}{16 \, x} - \frac {\operatorname {C}\left (b x\right )}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 42, normalized size = 0.91 \begin {gather*} -\frac {\pi \sqrt {b^{2}} b x^{2} \operatorname {S}\left (\sqrt {b^{2}} x\right ) + b x \cos \left (\frac {1}{2} \, \pi b^{2} x^{2}\right ) + \operatorname {C}\left (b x\right )}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 87 vs.
\(2 (39) = 78\).
time = 1.50, size = 87, normalized size = 1.89 \begin {gather*} \frac {b^{2} \log {\left (b x \right )}}{4} - \frac {b^{2} \log {\left (b^{2} x^{2} \right )}}{8} - \frac {b^{2} \operatorname {Ci}{\left (b x \right )}}{4} + \frac {b \sin {\left (b x \right )}}{4 x} + \frac {\log {\left (b x \right )}}{2 x^{2}} - \frac {\log {\left (b^{2} x^{2} \right )}}{4 x^{2}} - \frac {\cos {\left (b x \right )}}{4 x^{2}} - \frac {\operatorname {Ci}{\left (b x \right )}}{2 x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} -\frac {\frac {\cos \left (b\,x\right )}{2}-\frac {b\,x\,\sin \left (b\,x\right )}{2}}{2\,x^2}-\frac {b^2\,\mathrm {cosint}\left (b\,x\right )}{4}-\frac {\mathrm {cosint}\left (b\,x\right )}{2\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________