Optimal. Leaf size=128 \[ \frac {4 x}{b^3}-\frac {x^3}{6 b}-\frac {4 \cos (b x) \sin (b x)}{b^4}+\frac {x^2 \cos (b x) \sin (b x)}{2 b^2}-\frac {2 x \sin ^2(b x)}{b^3}-\frac {6 \cos (b x) \text {Si}(b x)}{b^4}+\frac {3 x^2 \cos (b x) \text {Si}(b x)}{b^2}-\frac {6 x \sin (b x) \text {Si}(b x)}{b^3}+\frac {x^3 \sin (b x) \text {Si}(b x)}{b}+\frac {3 \text {Si}(2 b x)}{b^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 128, normalized size of antiderivative = 1.00, number of steps
used = 20, number of rules used = 11, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.917, Rules used = {6654, 12,
3392, 30, 2715, 8, 6648, 3524, 6646, 4491, 3380} \begin {gather*} \frac {3 \text {Si}(2 b x)}{b^4}-\frac {6 \text {Si}(b x) \cos (b x)}{b^4}-\frac {4 \sin (b x) \cos (b x)}{b^4}-\frac {6 x \text {Si}(b x) \sin (b x)}{b^3}+\frac {4 x}{b^3}-\frac {2 x \sin ^2(b x)}{b^3}+\frac {3 x^2 \text {Si}(b x) \cos (b x)}{b^2}+\frac {x^2 \sin (b x) \cos (b x)}{2 b^2}+\frac {x^3 \text {Si}(b x) \sin (b x)}{b}-\frac {x^3}{6 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 12
Rule 30
Rule 2715
Rule 3380
Rule 3392
Rule 3524
Rule 4491
Rule 6646
Rule 6648
Rule 6654
Rubi steps
\begin {align*} \int x^3 \cos (b x) \text {Si}(b x) \, dx &=\frac {x^3 \sin (b x) \text {Si}(b x)}{b}-\frac {3 \int x^2 \sin (b x) \text {Si}(b x) \, dx}{b}-\int \frac {x^2 \sin ^2(b x)}{b} \, dx\\ &=\frac {3 x^2 \cos (b x) \text {Si}(b x)}{b^2}+\frac {x^3 \sin (b x) \text {Si}(b x)}{b}-\frac {6 \int x \cos (b x) \text {Si}(b x) \, dx}{b^2}-\frac {\int x^2 \sin ^2(b x) \, dx}{b}-\frac {3 \int \frac {x \cos (b x) \sin (b x)}{b} \, dx}{b}\\ &=\frac {x^2 \cos (b x) \sin (b x)}{2 b^2}-\frac {x \sin ^2(b x)}{2 b^3}+\frac {3 x^2 \cos (b x) \text {Si}(b x)}{b^2}-\frac {6 x \sin (b x) \text {Si}(b x)}{b^3}+\frac {x^3 \sin (b x) \text {Si}(b x)}{b}+\frac {\int \sin ^2(b x) \, dx}{2 b^3}+\frac {6 \int \sin (b x) \text {Si}(b x) \, dx}{b^3}-\frac {3 \int x \cos (b x) \sin (b x) \, dx}{b^2}+\frac {6 \int \frac {\sin ^2(b x)}{b} \, dx}{b^2}-\frac {\int x^2 \, dx}{2 b}\\ &=-\frac {x^3}{6 b}-\frac {\cos (b x) \sin (b x)}{4 b^4}+\frac {x^2 \cos (b x) \sin (b x)}{2 b^2}-\frac {2 x \sin ^2(b x)}{b^3}-\frac {6 \cos (b x) \text {Si}(b x)}{b^4}+\frac {3 x^2 \cos (b x) \text {Si}(b x)}{b^2}-\frac {6 x \sin (b x) \text {Si}(b x)}{b^3}+\frac {x^3 \sin (b x) \text {Si}(b x)}{b}+\frac {\int 1 \, dx}{4 b^3}+\frac {3 \int \sin ^2(b x) \, dx}{2 b^3}+\frac {6 \int \frac {\cos (b x) \sin (b x)}{b x} \, dx}{b^3}+\frac {6 \int \sin ^2(b x) \, dx}{b^3}\\ &=\frac {x}{4 b^3}-\frac {x^3}{6 b}-\frac {4 \cos (b x) \sin (b x)}{b^4}+\frac {x^2 \cos (b x) \sin (b x)}{2 b^2}-\frac {2 x \sin ^2(b x)}{b^3}-\frac {6 \cos (b x) \text {Si}(b x)}{b^4}+\frac {3 x^2 \cos (b x) \text {Si}(b x)}{b^2}-\frac {6 x \sin (b x) \text {Si}(b x)}{b^3}+\frac {x^3 \sin (b x) \text {Si}(b x)}{b}+\frac {6 \int \frac {\cos (b x) \sin (b x)}{x} \, dx}{b^4}+\frac {3 \int 1 \, dx}{4 b^3}+\frac {3 \int 1 \, dx}{b^3}\\ &=\frac {4 x}{b^3}-\frac {x^3}{6 b}-\frac {4 \cos (b x) \sin (b x)}{b^4}+\frac {x^2 \cos (b x) \sin (b x)}{2 b^2}-\frac {2 x \sin ^2(b x)}{b^3}-\frac {6 \cos (b x) \text {Si}(b x)}{b^4}+\frac {3 x^2 \cos (b x) \text {Si}(b x)}{b^2}-\frac {6 x \sin (b x) \text {Si}(b x)}{b^3}+\frac {x^3 \sin (b x) \text {Si}(b x)}{b}+\frac {6 \int \frac {\sin (2 b x)}{2 x} \, dx}{b^4}\\ &=\frac {4 x}{b^3}-\frac {x^3}{6 b}-\frac {4 \cos (b x) \sin (b x)}{b^4}+\frac {x^2 \cos (b x) \sin (b x)}{2 b^2}-\frac {2 x \sin ^2(b x)}{b^3}-\frac {6 \cos (b x) \text {Si}(b x)}{b^4}+\frac {3 x^2 \cos (b x) \text {Si}(b x)}{b^2}-\frac {6 x \sin (b x) \text {Si}(b x)}{b^3}+\frac {x^3 \sin (b x) \text {Si}(b x)}{b}+\frac {3 \int \frac {\sin (2 b x)}{x} \, dx}{b^4}\\ &=\frac {4 x}{b^3}-\frac {x^3}{6 b}-\frac {4 \cos (b x) \sin (b x)}{b^4}+\frac {x^2 \cos (b x) \sin (b x)}{2 b^2}-\frac {2 x \sin ^2(b x)}{b^3}-\frac {6 \cos (b x) \text {Si}(b x)}{b^4}+\frac {3 x^2 \cos (b x) \text {Si}(b x)}{b^2}-\frac {6 x \sin (b x) \text {Si}(b x)}{b^3}+\frac {x^3 \sin (b x) \text {Si}(b x)}{b}+\frac {3 \text {Si}(2 b x)}{b^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 94, normalized size = 0.73 \begin {gather*} \frac {36 b x-2 b^3 x^3+12 b x \cos (2 b x)-24 \sin (2 b x)+3 b^2 x^2 \sin (2 b x)+12 \left (3 \left (-2+b^2 x^2\right ) \cos (b x)+b x \left (-6+b^2 x^2\right ) \sin (b x)\right ) \text {Si}(b x)+36 \text {Si}(2 b x)}{12 b^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.53, size = 111, normalized size = 0.87
method | result | size |
derivativedivides | \(\frac {\sinIntegral \left (b x \right ) \left (b^{3} x^{3} \sin \left (b x \right )+3 b^{2} x^{2} \cos \left (b x \right )-6 \cos \left (b x \right )-6 b x \sin \left (b x \right )\right )-b^{2} x^{2} \left (-\frac {\sin \left (b x \right ) \cos \left (b x \right )}{2}+\frac {b x}{2}\right )+2 b x \left (\cos ^{2}\left (b x \right )\right )-4 \sin \left (b x \right ) \cos \left (b x \right )+2 b x +\frac {b^{3} x^{3}}{3}+3 \sinIntegral \left (2 b x \right )}{b^{4}}\) | \(111\) |
default | \(\frac {\sinIntegral \left (b x \right ) \left (b^{3} x^{3} \sin \left (b x \right )+3 b^{2} x^{2} \cos \left (b x \right )-6 \cos \left (b x \right )-6 b x \sin \left (b x \right )\right )-b^{2} x^{2} \left (-\frac {\sin \left (b x \right ) \cos \left (b x \right )}{2}+\frac {b x}{2}\right )+2 b x \left (\cos ^{2}\left (b x \right )\right )-4 \sin \left (b x \right ) \cos \left (b x \right )+2 b x +\frac {b^{3} x^{3}}{3}+3 \sinIntegral \left (2 b x \right )}{b^{4}}\) | \(111\) |
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.35, size = 92, normalized size = 0.72 \begin {gather*} -\frac {b^{3} x^{3} - 12 \, b x \cos \left (b x\right )^{2} - 18 \, {\left (b^{2} x^{2} - 2\right )} \cos \left (b x\right ) \operatorname {Si}\left (b x\right ) - 12 \, b x - 3 \, {\left ({\left (b^{2} x^{2} - 8\right )} \cos \left (b x\right ) + 2 \, {\left (b^{3} x^{3} - 6 \, b x\right )} \operatorname {Si}\left (b x\right )\right )} \sin \left (b x\right ) - 18 \, \operatorname {Si}\left (2 \, b x\right )}{6 \, b^{4}} \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^{3} \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.42, size = 180, normalized size = 1.41 \begin {gather*} {\left (\frac {3 \, {\left (b^{2} x^{2} - 2\right )} \cos \left (b x\right )}{b^{4}} + \frac {{\left (b^{3} x^{3} - 6 \, b x\right )} \sin \left (b x\right )}{b^{4}}\right )} \operatorname {Si}\left (b x\right ) - \frac {b^{3} x^{3} \tan \left (b x\right )^{2} + b^{3} x^{3} - 3 \, b^{2} x^{2} \tan \left (b x\right ) - 12 \, b x \tan \left (b x\right )^{2} - 9 \, \Im \left ( \operatorname {Ci}\left (2 \, b x\right ) \right ) \tan \left (b x\right )^{2} + 9 \, \Im \left ( \operatorname {Ci}\left (-2 \, b x\right ) \right ) \tan \left (b x\right )^{2} - 18 \, \operatorname {Si}\left (2 \, b x\right ) \tan \left (b x\right )^{2} - 24 \, b x - 9 \, \Im \left ( \operatorname {Ci}\left (2 \, b x\right ) \right ) + 9 \, \Im \left ( \operatorname {Ci}\left (-2 \, b x\right ) \right ) - 18 \, \operatorname {Si}\left (2 \, b x\right ) + 24 \, \tan \left (b x\right )}{6 \, {\left (b^{4} \tan \left (b x\right )^{2} + b^{4}\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.01 \begin {gather*} \int x^3\,\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]
________________________________________________________________________________________