Optimal. Leaf size=108 \[ -\frac {x}{2 b}-\frac {a \text {CosIntegral}(2 a+2 b x)}{2 b^2}+\frac {a \log (a+b x)}{2 b^2}+\frac {\cos (a+b x) \sin (a+b x)}{2 b^2}+\frac {\cos (a+b x) \text {Si}(a+b x)}{b^2}+\frac {x \sin (a+b x) \text {Si}(a+b x)}{b}-\frac {\text {Si}(2 a+2 b x)}{2 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 108, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 10, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.714, Rules used = {6654, 6874,
2715, 8, 3393, 3383, 6646, 4491, 12, 3380} \begin {gather*} -\frac {a \text {CosIntegral}(2 a+2 b x)}{2 b^2}-\frac {\text {Si}(2 a+2 b x)}{2 b^2}+\frac {\text {Si}(a+b x) \cos (a+b x)}{b^2}+\frac {a \log (a+b x)}{2 b^2}+\frac {\sin (a+b x) \cos (a+b x)}{2 b^2}+\frac {x \text {Si}(a+b x) \sin (a+b x)}{b}-\frac {x}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 12
Rule 2715
Rule 3380
Rule 3383
Rule 3393
Rule 4491
Rule 6646
Rule 6654
Rule 6874
Rubi steps
\begin {align*} \int x \cos (a+b x) \text {Si}(a+b x) \, dx &=\frac {x \sin (a+b x) \text {Si}(a+b x)}{b}-\frac {\int \sin (a+b x) \text {Si}(a+b x) \, dx}{b}-\int \frac {x \sin ^2(a+b x)}{a+b x} \, dx\\ &=\frac {\cos (a+b x) \text {Si}(a+b x)}{b^2}+\frac {x \sin (a+b x) \text {Si}(a+b x)}{b}-\frac {\int \frac {\cos (a+b x) \sin (a+b x)}{a+b x} \, dx}{b}-\int \left (\frac {\sin ^2(a+b x)}{b}-\frac {a \sin ^2(a+b x)}{b (a+b x)}\right ) \, dx\\ &=\frac {\cos (a+b x) \text {Si}(a+b x)}{b^2}+\frac {x \sin (a+b x) \text {Si}(a+b x)}{b}-\frac {\int \sin ^2(a+b x) \, dx}{b}-\frac {\int \frac {\sin (2 a+2 b x)}{2 (a+b x)} \, dx}{b}+\frac {a \int \frac {\sin ^2(a+b x)}{a+b x} \, dx}{b}\\ &=\frac {\cos (a+b x) \sin (a+b x)}{2 b^2}+\frac {\cos (a+b x) \text {Si}(a+b x)}{b^2}+\frac {x \sin (a+b x) \text {Si}(a+b x)}{b}-\frac {\int 1 \, dx}{2 b}-\frac {\int \frac {\sin (2 a+2 b x)}{a+b x} \, dx}{2 b}+\frac {a \int \left (\frac {1}{2 (a+b x)}-\frac {\cos (2 a+2 b x)}{2 (a+b x)}\right ) \, dx}{b}\\ &=-\frac {x}{2 b}+\frac {a \log (a+b x)}{2 b^2}+\frac {\cos (a+b x) \sin (a+b x)}{2 b^2}+\frac {\cos (a+b x) \text {Si}(a+b x)}{b^2}+\frac {x \sin (a+b x) \text {Si}(a+b x)}{b}-\frac {\text {Si}(2 a+2 b x)}{2 b^2}-\frac {a \int \frac {\cos (2 a+2 b x)}{a+b x} \, dx}{2 b}\\ &=-\frac {x}{2 b}-\frac {a \text {Ci}(2 a+2 b x)}{2 b^2}+\frac {a \log (a+b x)}{2 b^2}+\frac {\cos (a+b x) \sin (a+b x)}{2 b^2}+\frac {\cos (a+b x) \text {Si}(a+b x)}{b^2}+\frac {x \sin (a+b x) \text {Si}(a+b x)}{b}-\frac {\text {Si}(2 a+2 b x)}{2 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 74, normalized size = 0.69 \begin {gather*} \frac {-2 b x-2 a \text {CosIntegral}(2 (a+b x))+2 a \log (a+b x)+\sin (2 (a+b x))+4 (\cos (a+b x)+b x \sin (a+b x)) \text {Si}(a+b x)-2 \text {Si}(2 (a+b x))}{4 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.57, size = 94, normalized size = 0.87
method | result | size |
derivativedivides | \(\frac {\sinIntegral \left (b x +a \right ) \left (-a \sin \left (b x +a \right )+\cos \left (b x +a \right )+\left (b x +a \right ) \sin \left (b x +a \right )\right )+\frac {a \ln \left (b x +a \right )}{2}-\frac {a \cosineIntegral \left (2 b x +2 a \right )}{2}-\frac {\sinIntegral \left (2 b x +2 a \right )}{2}+\frac {\sin \left (b x +a \right ) \cos \left (b x +a \right )}{2}-\frac {b x}{2}-\frac {a}{2}}{b^{2}}\) | \(94\) |
default | \(\frac {\sinIntegral \left (b x +a \right ) \left (-a \sin \left (b x +a \right )+\cos \left (b x +a \right )+\left (b x +a \right ) \sin \left (b x +a \right )\right )+\frac {a \ln \left (b x +a \right )}{2}-\frac {a \cosineIntegral \left (2 b x +2 a \right )}{2}-\frac {\sinIntegral \left (2 b x +2 a \right )}{2}+\frac {\sin \left (b x +a \right ) \cos \left (b x +a \right )}{2}-\frac {b x}{2}-\frac {a}{2}}{b^{2}}\) | \(94\) |
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 = 91, normalized size = 0.84 \begin {gather*} -\frac {2 \, b x + a \operatorname {Ci}\left (2 \, b x + 2 \, a\right ) + a \operatorname {Ci}\left (-2 \, b x - 2 \, a\right ) - 2 \, a \log \left (b x + a\right ) - 2 \, {\left (2 \, b x \operatorname {Si}\left (b x + a\right ) + \cos \left (b x + a\right )\right )} \sin \left (b x + a\right ) - 4 \, \cos \left (b x + a\right ) \operatorname {Si}\left (b x + a\right ) + 2 \, \operatorname {Si}\left (2 \, b x + 2 \, a\right )}{4 \, 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 (a + b x \right )} \operatorname {Si}{\left (a + 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 = 528, normalized size = 4.89 \begin {gather*} {\left (\frac {x \sin \left (b x + a\right )}{b} + \frac {\cos \left (b x + a\right )}{b^{2}}\right )} \operatorname {Si}\left (b x + a\right ) - \frac {2 \, b x \tan \left (b x\right )^{2} \tan \left (a\right )^{2} - 2 \, a \log \left ({\left | b x + a \right |}\right ) \tan \left (b x\right )^{2} \tan \left (a\right )^{2} + a \Re \left ( \operatorname {Ci}\left (2 \, b x + 2 \, a\right ) \right ) \tan \left (b x\right )^{2} \tan \left (a\right )^{2} + a \Re \left ( \operatorname {Ci}\left (-2 \, b x - 2 \, a\right ) \right ) \tan \left (b x\right )^{2} \tan \left (a\right )^{2} + \Im \left ( \operatorname {Ci}\left (2 \, b x + 2 \, a\right ) \right ) \tan \left (b x\right )^{2} \tan \left (a\right )^{2} - \Im \left ( \operatorname {Ci}\left (-2 \, b x - 2 \, a\right ) \right ) \tan \left (b x\right )^{2} \tan \left (a\right )^{2} + 2 \, \operatorname {Si}\left (2 \, b x + 2 \, a\right ) \tan \left (b x\right )^{2} \tan \left (a\right )^{2} + 2 \, b x \tan \left (b x\right )^{2} - 2 \, a \log \left ({\left | b x + a \right |}\right ) \tan \left (b x\right )^{2} + a \Re \left ( \operatorname {Ci}\left (2 \, b x + 2 \, a\right ) \right ) \tan \left (b x\right )^{2} + a \Re \left ( \operatorname {Ci}\left (-2 \, b x - 2 \, a\right ) \right ) \tan \left (b x\right )^{2} + 2 \, b x \tan \left (a\right )^{2} - 2 \, a \log \left ({\left | b x + a \right |}\right ) \tan \left (a\right )^{2} + a \Re \left ( \operatorname {Ci}\left (2 \, b x + 2 \, a\right ) \right ) \tan \left (a\right )^{2} + a \Re \left ( \operatorname {Ci}\left (-2 \, b x - 2 \, a\right ) \right ) \tan \left (a\right )^{2} + \Im \left ( \operatorname {Ci}\left (2 \, b x + 2 \, a\right ) \right ) \tan \left (b x\right )^{2} - \Im \left ( \operatorname {Ci}\left (-2 \, b x - 2 \, a\right ) \right ) \tan \left (b x\right )^{2} + 2 \, \operatorname {Si}\left (2 \, b x + 2 \, a\right ) \tan \left (b x\right )^{2} + 2 \, \tan \left (b x\right )^{2} \tan \left (a\right ) + \Im \left ( \operatorname {Ci}\left (2 \, b x + 2 \, a\right ) \right ) \tan \left (a\right )^{2} - \Im \left ( \operatorname {Ci}\left (-2 \, b x - 2 \, a\right ) \right ) \tan \left (a\right )^{2} + 2 \, \operatorname {Si}\left (2 \, b x + 2 \, a\right ) \tan \left (a\right )^{2} + 2 \, \tan \left (b x\right ) \tan \left (a\right )^{2} + 2 \, b x - 2 \, a \log \left ({\left | b x + a \right |}\right ) + a \Re \left ( \operatorname {Ci}\left (2 \, b x + 2 \, a\right ) \right ) + a \Re \left ( \operatorname {Ci}\left (-2 \, b x - 2 \, a\right ) \right ) + \Im \left ( \operatorname {Ci}\left (2 \, b x + 2 \, a\right ) \right ) - \Im \left ( \operatorname {Ci}\left (-2 \, b x - 2 \, a\right ) \right ) + 2 \, \operatorname {Si}\left (2 \, b x + 2 \, a\right ) - 2 \, \tan \left (b x\right ) - 2 \, \tan \left (a\right )}{4 \, {\left (b^{2} \tan \left (b x\right )^{2} \tan \left (a\right )^{2} + b^{2} \tan \left (b x\right )^{2} + b^{2} \tan \left (a\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.01 \begin {gather*} \int x\,\mathrm {sinint}\left (a+b\,x\right )\,\cos \left (a+b\,x\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________