Optimal. Leaf size=61 \[ -\frac {x}{2 b}+\frac {\cos (b x) \sin (b x)}{2 b^2}+\frac {\cos (b x) \text {Si}(b x)}{b^2}+\frac {x \sin (b x) \text {Si}(b x)}{b}-\frac {\text {Si}(2 b x)}{2 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 61, 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 = {6654, 12, 2715,
8, 6646, 4491, 3380} \begin {gather*} -\frac {\text {Si}(2 b x)}{2 b^2}+\frac {\text {Si}(b x) \cos (b x)}{b^2}+\frac {\sin (b x) \cos (b x)}{2 b^2}+\frac {x \text {Si}(b x) \sin (b x)}{b}-\frac {x}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 12
Rule 2715
Rule 3380
Rule 4491
Rule 6646
Rule 6654
Rubi steps
\begin {align*} \int x \cos (b x) \text {Si}(b x) \, dx &=\frac {x \sin (b x) \text {Si}(b x)}{b}-\frac {\int \sin (b x) \text {Si}(b x) \, dx}{b}-\int \frac {\sin ^2(b x)}{b} \, dx\\ &=\frac {\cos (b x) \text {Si}(b x)}{b^2}+\frac {x \sin (b x) \text {Si}(b x)}{b}-\frac {\int \frac {\cos (b x) \sin (b x)}{b x} \, dx}{b}-\frac {\int \sin ^2(b x) \, dx}{b}\\ &=\frac {\cos (b x) \sin (b x)}{2 b^2}+\frac {\cos (b x) \text {Si}(b x)}{b^2}+\frac {x \sin (b x) \text {Si}(b x)}{b}-\frac {\int \frac {\cos (b x) \sin (b x)}{x} \, dx}{b^2}-\frac {\int 1 \, dx}{2 b}\\ &=-\frac {x}{2 b}+\frac {\cos (b x) \sin (b x)}{2 b^2}+\frac {\cos (b x) \text {Si}(b x)}{b^2}+\frac {x \sin (b x) \text {Si}(b x)}{b}-\frac {\int \frac {\sin (2 b x)}{2 x} \, dx}{b^2}\\ &=-\frac {x}{2 b}+\frac {\cos (b x) \sin (b x)}{2 b^2}+\frac {\cos (b x) \text {Si}(b x)}{b^2}+\frac {x \sin (b x) \text {Si}(b x)}{b}-\frac {\int \frac {\sin (2 b x)}{x} \, dx}{2 b^2}\\ &=-\frac {x}{2 b}+\frac {\cos (b x) \sin (b x)}{2 b^2}+\frac {\cos (b x) \text {Si}(b x)}{b^2}+\frac {x \sin (b x) \text {Si}(b x)}{b}-\frac {\text {Si}(2 b x)}{2 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 42, normalized size = 0.69 \begin {gather*} \frac {-2 b x+\sin (2 b x)+4 (\cos (b x)+b x \sin (b x)) \text {Si}(b x)-2 \text {Si}(2 b x)}{4 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.45, size = 44, normalized size = 0.72
method | result | size |
derivativedivides | \(\frac {\sinIntegral \left (b x \right ) \left (\cos \left (b x \right )+b x \sin \left (b x \right )\right )-\frac {\sinIntegral \left (2 b x \right )}{2}+\frac {\sin \left (b x \right ) \cos \left (b x \right )}{2}-\frac {b x}{2}}{b^{2}}\) | \(44\) |
default | \(\frac {\sinIntegral \left (b x \right ) \left (\cos \left (b x \right )+b x \sin \left (b x \right )\right )-\frac {\sinIntegral \left (2 b x \right )}{2}+\frac {\sin \left (b x \right ) \cos \left (b x \right )}{2}-\frac {b x}{2}}{b^{2}}\) | \(44\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 43, normalized size = 0.70 \begin {gather*} -\frac {b x - {\left (2 \, b x \operatorname {Si}\left (b x\right ) + \cos \left (b x\right )\right )} \sin \left (b x\right ) - 2 \, \cos \left (b x\right ) \operatorname {Si}\left (b x\right ) + \operatorname {Si}\left (2 \, b x\right )}{2 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x \cos {\left (b x \right )} \operatorname {Si}{\left (b x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.41, size = 124, normalized size = 2.03 \begin {gather*} {\left (\frac {x \sin \left (b x\right )}{b} + \frac {\cos \left (b x\right )}{b^{2}}\right )} \operatorname {Si}\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 )}} \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*} \int x\,\mathrm {sinint}\left (b\,x\right )\,\cos \left (b\,x\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________