Optimal. Leaf size=279 \[ -\frac {d \cos \left (\pi (a+b x)^2\right )}{4 b^2 \pi ^2}+\frac {(b c-a d) (a+b x) \text {FresnelC}(a+b x)^2}{b^2}+\frac {d (a+b x)^2 \text {FresnelC}(a+b x)^2}{2 b^2}+\frac {d \text {FresnelC}(a+b x) S(a+b x)}{2 b^2 \pi }+\frac {(b c-a d) S\left (\sqrt {2} (a+b x)\right )}{\sqrt {2} b^2 \pi }+\frac {i d (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;-\frac {1}{2} i \pi (a+b x)^2\right )}{8 b^2 \pi }-\frac {i d (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;\frac {1}{2} i \pi (a+b x)^2\right )}{8 b^2 \pi }-\frac {2 (b c-a d) \text {FresnelC}(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^2 \pi }-\frac {d (a+b x) \text {FresnelC}(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^2 \pi } \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 279, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 9, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.643, Rules used = {6568, 6556,
6588, 3432, 6566, 6590, 6582, 3460, 2718} \begin {gather*} \frac {i d (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;-\frac {1}{2} i \pi (a+b x)^2\right )}{8 \pi b^2}-\frac {i d (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;\frac {1}{2} i \pi (a+b x)^2\right )}{8 \pi b^2}+\frac {(a+b x) (b c-a d) \text {FresnelC}(a+b x)^2}{b^2}-\frac {2 (b c-a d) \text {FresnelC}(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{\pi b^2}+\frac {(b c-a d) S\left (\sqrt {2} (a+b x)\right )}{\sqrt {2} \pi b^2}+\frac {d \text {FresnelC}(a+b x) S(a+b x)}{2 \pi b^2}+\frac {d (a+b x)^2 \text {FresnelC}(a+b x)^2}{2 b^2}-\frac {d (a+b x) \text {FresnelC}(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{\pi b^2}-\frac {d \cos \left (\pi (a+b x)^2\right )}{4 \pi ^2 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2718
Rule 3432
Rule 3460
Rule 6556
Rule 6566
Rule 6568
Rule 6582
Rule 6588
Rule 6590
Rubi steps
\begin {align*} \int (c+d x) C(a+b x)^2 \, dx &=\frac {\text {Subst}\left (\int \left (b c \left (1-\frac {a d}{b c}\right ) C(x)^2+d x C(x)^2\right ) \, dx,x,a+b x\right )}{b^2}\\ &=\frac {d \text {Subst}\left (\int x C(x)^2 \, dx,x,a+b x\right )}{b^2}+\frac {(b c-a d) \text {Subst}\left (\int C(x)^2 \, dx,x,a+b x\right )}{b^2}\\ &=\frac {(b c-a d) (a+b x) C(a+b x)^2}{b^2}+\frac {d (a+b x)^2 C(a+b x)^2}{2 b^2}-\frac {d \text {Subst}\left (\int x^2 \cos \left (\frac {\pi x^2}{2}\right ) C(x) \, dx,x,a+b x\right )}{b^2}-\frac {(2 (b c-a d)) \text {Subst}\left (\int x \cos \left (\frac {\pi x^2}{2}\right ) C(x) \, dx,x,a+b x\right )}{b^2}\\ &=\frac {(b c-a d) (a+b x) C(a+b x)^2}{b^2}+\frac {d (a+b x)^2 C(a+b x)^2}{2 b^2}-\frac {2 (b c-a d) C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^2 \pi }-\frac {d (a+b x) C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^2 \pi }+\frac {d \text {Subst}\left (\int x \sin \left (\pi x^2\right ) \, dx,x,a+b x\right )}{2 b^2 \pi }+\frac {d \text {Subst}\left (\int C(x) \sin \left (\frac {\pi x^2}{2}\right ) \, dx,x,a+b x\right )}{b^2 \pi }+\frac {(b c-a d) \text {Subst}\left (\int \sin \left (\pi x^2\right ) \, dx,x,a+b x\right )}{b^2 \pi }\\ &=\frac {(b c-a d) (a+b x) C(a+b x)^2}{b^2}+\frac {d (a+b x)^2 C(a+b x)^2}{2 b^2}+\frac {d C(a+b x) S(a+b x)}{2 b^2 \pi }+\frac {(b c-a d) S\left (\sqrt {2} (a+b x)\right )}{\sqrt {2} b^2 \pi }+\frac {i d (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;-\frac {1}{2} i \pi (a+b x)^2\right )}{8 b^2 \pi }-\frac {i d (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;\frac {1}{2} i \pi (a+b x)^2\right )}{8 b^2 \pi }-\frac {2 (b c-a d) C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^2 \pi }-\frac {d (a+b x) C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^2 \pi }+\frac {d \text {Subst}\left (\int \sin (\pi x) \, dx,x,(a+b x)^2\right )}{4 b^2 \pi }\\ &=-\frac {d \cos \left (\pi (a+b x)^2\right )}{4 b^2 \pi ^2}+\frac {(b c-a d) (a+b x) C(a+b x)^2}{b^2}+\frac {d (a+b x)^2 C(a+b x)^2}{2 b^2}+\frac {d C(a+b x) S(a+b x)}{2 b^2 \pi }+\frac {(b c-a d) S\left (\sqrt {2} (a+b x)\right )}{\sqrt {2} b^2 \pi }+\frac {i d (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;-\frac {1}{2} i \pi (a+b x)^2\right )}{8 b^2 \pi }-\frac {i d (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;\frac {1}{2} i \pi (a+b x)^2\right )}{8 b^2 \pi }-\frac {2 (b c-a d) C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^2 \pi }-\frac {d (a+b x) C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^2 \pi }\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 0.39, size = 0, normalized size = 0.00 \begin {gather*} \int (c+d x) \text {FresnelC}(a+b x)^2 \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.13, size = 0, normalized size = 0.00 \[\int \left (d x +c \right ) \FresnelC \left (b x +a \right )^{2}\, dx\]
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 [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]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (c + d x\right ) C^{2}\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.00 \begin {gather*} \int {\mathrm {FresnelC}\left (a+b\,x\right )}^2\,\left (c+d\,x\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________