Optimal. Leaf size=36 \[ \frac {\cos \left (\frac {1}{2} \pi (a+b x)^2\right )}{b \pi }+\frac {(a+b x) S(a+b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {6553}
\begin {gather*} \frac {(a+b x) S(a+b x)}{b}+\frac {\cos \left (\frac {1}{2} \pi (a+b x)^2\right )}{\pi b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6553
Rubi steps
\begin {align*} \int S(a+b x) \, dx &=\frac {\cos \left (\frac {1}{2} \pi (a+b x)^2\right )}{b \pi }+\frac {(a+b x) S(a+b x)}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(89\) vs. \(2(36)=72\).
time = 0.02, size = 89, normalized size = 2.47 \begin {gather*} \frac {\cos \left (\frac {a^2 \pi }{2}\right ) \cos \left (a b \pi x+\frac {1}{2} b^2 \pi x^2\right )}{b \pi }+\frac {a S(a+b x)}{b}+x S(a+b x)-\frac {\sin \left (\frac {a^2 \pi }{2}\right ) \sin \left (a b \pi x+\frac {1}{2} b^2 \pi x^2\right )}{b \pi } \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.38, size = 33, normalized size = 0.92
method | result | size |
derivativedivides | \(\frac {\mathrm {S}\left (b x +a \right ) \left (b x +a \right )+\frac {\cos \left (\frac {\pi \left (b x +a \right )^{2}}{2}\right )}{\pi }}{b}\) | \(33\) |
default | \(\frac {\mathrm {S}\left (b x +a \right ) \left (b x +a \right )+\frac {\cos \left (\frac {\pi \left (b x +a \right )^{2}}{2}\right )}{\pi }}{b}\) | \(33\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 43, normalized size = 1.19 \begin {gather*} \frac {{\left (b x + a\right )} \operatorname {S}\left (b x + a\right ) + \frac {\cos \left (\frac {1}{2} \, \pi b^{2} x^{2} + \pi a b x + \frac {1}{2} \, \pi a^{2}\right )}{\pi }}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 45, normalized size = 1.25 \begin {gather*} \frac {{\left (\pi b x + \pi a\right )} \operatorname {S}\left (b x + a\right ) + \cos \left (\frac {1}{2} \, \pi b^{2} x^{2} + \pi a b x + \frac {1}{2} \, \pi a^{2}\right )}{\pi b} \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 S\left (a + b x\right )\, dx \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.03 \begin {gather*} \int \mathrm {FresnelS}\left (a+b\,x\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________