Optimal. Leaf size=495 \[ \frac {2 d^2 x}{3 b^2 \pi ^2}-\frac {d (b c-a d) \cos \left (\pi (a+b x)^2\right )}{2 b^3 \pi ^2}-\frac {d^2 (a+b x) \cos \left (\pi (a+b x)^2\right )}{6 b^3 \pi ^2}-\frac {4 d^2 \cos \left (\frac {1}{2} \pi (a+b x)^2\right ) \text {FresnelC}(a+b x)}{3 b^3 \pi ^2}+\frac {(b c-a d)^2 (a+b x) \text {FresnelC}(a+b x)^2}{b^3}+\frac {d (b c-a d) (a+b x)^2 \text {FresnelC}(a+b x)^2}{b^3}+\frac {d^2 (a+b x)^3 \text {FresnelC}(a+b x)^2}{3 b^3}+\frac {5 d^2 \text {FresnelC}\left (\sqrt {2} (a+b x)\right )}{6 \sqrt {2} b^3 \pi ^2}+\frac {d (b c-a d) \text {FresnelC}(a+b x) S(a+b x)}{b^3 \pi }+\frac {(b c-a d)^2 S\left (\sqrt {2} (a+b x)\right )}{\sqrt {2} b^3 \pi }+\frac {i d (b c-a d) (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;-\frac {1}{2} i \pi (a+b x)^2\right )}{4 b^3 \pi }-\frac {i d (b c-a d) (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;\frac {1}{2} i \pi (a+b x)^2\right )}{4 b^3 \pi }-\frac {2 (b c-a d)^2 \text {FresnelC}(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^3 \pi }-\frac {2 d (b c-a d) (a+b x) \text {FresnelC}(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^3 \pi }-\frac {2 d^2 (a+b x)^2 \text {FresnelC}(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{3 b^3 \pi } \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.27, antiderivative size = 495, normalized size of antiderivative = 1.00, number
of steps used = 18, number of rules used = 13, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.812, Rules
used = {6568, 6556, 6588, 3432, 6566, 6590, 6582, 3460, 2718, 6596, 3439, 3433, 3466}
\begin {gather*} \frac {i d (a+b x)^2 (b c-a d) \, _2F_2\left (1,1;\frac {3}{2},2;-\frac {1}{2} i \pi (a+b x)^2\right )}{4 \pi b^3}-\frac {i d (a+b x)^2 (b c-a d) \, _2F_2\left (1,1;\frac {3}{2},2;\frac {1}{2} i \pi (a+b x)^2\right )}{4 \pi b^3}+\frac {d (b c-a d) \text {FresnelC}(a+b x) S(a+b x)}{\pi b^3}+\frac {d (a+b x)^2 (b c-a d) \text {FresnelC}(a+b x)^2}{b^3}+\frac {(a+b x) (b c-a d)^2 \text {FresnelC}(a+b x)^2}{b^3}-\frac {2 d (a+b x) (b c-a d) \text {FresnelC}(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{\pi b^3}-\frac {2 (b c-a d)^2 \text {FresnelC}(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{\pi b^3}+\frac {(b c-a d)^2 S\left (\sqrt {2} (a+b x)\right )}{\sqrt {2} \pi b^3}-\frac {d (b c-a d) \cos \left (\pi (a+b x)^2\right )}{2 \pi ^2 b^3}+\frac {d^2 (a+b x)^3 \text {FresnelC}(a+b x)^2}{3 b^3}+\frac {5 d^2 \text {FresnelC}\left (\sqrt {2} (a+b x)\right )}{6 \sqrt {2} \pi ^2 b^3}-\frac {2 d^2 (a+b x)^2 \text {FresnelC}(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{3 \pi b^3}-\frac {4 d^2 \text {FresnelC}(a+b x) \cos \left (\frac {1}{2} \pi (a+b x)^2\right )}{3 \pi ^2 b^3}-\frac {d^2 (a+b x) \cos \left (\pi (a+b x)^2\right )}{6 \pi ^2 b^3}+\frac {2 d^2 x}{3 \pi ^2 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2718
Rule 3432
Rule 3433
Rule 3439
Rule 3460
Rule 3466
Rule 6556
Rule 6566
Rule 6568
Rule 6582
Rule 6588
Rule 6590
Rule 6596
Rubi steps
\begin {align*} \int (c+d x)^2 C(a+b x)^2 \, dx &=\frac {\text {Subst}\left (\int \left (b^2 c^2 \left (1+\frac {a d (-2 b c+a d)}{b^2 c^2}\right ) C(x)^2+2 b c d \left (1-\frac {a d}{b c}\right ) x C(x)^2+d^2 x^2 C(x)^2\right ) \, dx,x,a+b x\right )}{b^3}\\ &=\frac {d^2 \text {Subst}\left (\int x^2 C(x)^2 \, dx,x,a+b x\right )}{b^3}+\frac {(2 d (b c-a d)) \text {Subst}\left (\int x C(x)^2 \, dx,x,a+b x\right )}{b^3}+\frac {(b c-a d)^2 \text {Subst}\left (\int C(x)^2 \, dx,x,a+b x\right )}{b^3}\\ &=\frac {(b c-a d)^2 (a+b x) C(a+b x)^2}{b^3}+\frac {d (b c-a d) (a+b x)^2 C(a+b x)^2}{b^3}+\frac {d^2 (a+b x)^3 C(a+b x)^2}{3 b^3}-\frac {\left (2 d^2\right ) \text {Subst}\left (\int x^3 \cos \left (\frac {\pi x^2}{2}\right ) C(x) \, dx,x,a+b x\right )}{3 b^3}-\frac {(2 d (b c-a d)) \text {Subst}\left (\int x^2 \cos \left (\frac {\pi x^2}{2}\right ) C(x) \, dx,x,a+b x\right )}{b^3}-\frac {\left (2 (b c-a d)^2\right ) \text {Subst}\left (\int x \cos \left (\frac {\pi x^2}{2}\right ) C(x) \, dx,x,a+b x\right )}{b^3}\\ &=\frac {(b c-a d)^2 (a+b x) C(a+b x)^2}{b^3}+\frac {d (b c-a d) (a+b x)^2 C(a+b x)^2}{b^3}+\frac {d^2 (a+b x)^3 C(a+b x)^2}{3 b^3}-\frac {2 (b c-a d)^2 C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^3 \pi }-\frac {2 d (b c-a d) (a+b x) C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^3 \pi }-\frac {2 d^2 (a+b x)^2 C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{3 b^3 \pi }+\frac {d^2 \text {Subst}\left (\int x^2 \sin \left (\pi x^2\right ) \, dx,x,a+b x\right )}{3 b^3 \pi }+\frac {\left (4 d^2\right ) \text {Subst}\left (\int x C(x) \sin \left (\frac {\pi x^2}{2}\right ) \, dx,x,a+b x\right )}{3 b^3 \pi }+\frac {(d (b c-a d)) \text {Subst}\left (\int x \sin \left (\pi x^2\right ) \, dx,x,a+b x\right )}{b^3 \pi }+\frac {(2 d (b c-a d)) \text {Subst}\left (\int C(x) \sin \left (\frac {\pi x^2}{2}\right ) \, dx,x,a+b x\right )}{b^3 \pi }+\frac {(b c-a d)^2 \text {Subst}\left (\int \sin \left (\pi x^2\right ) \, dx,x,a+b x\right )}{b^3 \pi }\\ &=-\frac {d^2 (a+b x) \cos \left (\pi (a+b x)^2\right )}{6 b^3 \pi ^2}-\frac {4 d^2 \cos \left (\frac {1}{2} \pi (a+b x)^2\right ) C(a+b x)}{3 b^3 \pi ^2}+\frac {(b c-a d)^2 (a+b x) C(a+b x)^2}{b^3}+\frac {d (b c-a d) (a+b x)^2 C(a+b x)^2}{b^3}+\frac {d^2 (a+b x)^3 C(a+b x)^2}{3 b^3}+\frac {d (b c-a d) C(a+b x) S(a+b x)}{b^3 \pi }+\frac {(b c-a d)^2 S\left (\sqrt {2} (a+b x)\right )}{\sqrt {2} b^3 \pi }+\frac {i d (b c-a d) (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;-\frac {1}{2} i \pi (a+b x)^2\right )}{4 b^3 \pi }-\frac {i d (b c-a d) (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;\frac {1}{2} i \pi (a+b x)^2\right )}{4 b^3 \pi }-\frac {2 (b c-a d)^2 C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^3 \pi }-\frac {2 d (b c-a d) (a+b x) C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^3 \pi }-\frac {2 d^2 (a+b x)^2 C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{3 b^3 \pi }+\frac {d^2 \text {Subst}\left (\int \cos \left (\pi x^2\right ) \, dx,x,a+b x\right )}{6 b^3 \pi ^2}+\frac {\left (4 d^2\right ) \text {Subst}\left (\int \cos ^2\left (\frac {\pi x^2}{2}\right ) \, dx,x,a+b x\right )}{3 b^3 \pi ^2}+\frac {(d (b c-a d)) \text {Subst}\left (\int \sin (\pi x) \, dx,x,(a+b x)^2\right )}{2 b^3 \pi }\\ &=-\frac {d (b c-a d) \cos \left (\pi (a+b x)^2\right )}{2 b^3 \pi ^2}-\frac {d^2 (a+b x) \cos \left (\pi (a+b x)^2\right )}{6 b^3 \pi ^2}-\frac {4 d^2 \cos \left (\frac {1}{2} \pi (a+b x)^2\right ) C(a+b x)}{3 b^3 \pi ^2}+\frac {(b c-a d)^2 (a+b x) C(a+b x)^2}{b^3}+\frac {d (b c-a d) (a+b x)^2 C(a+b x)^2}{b^3}+\frac {d^2 (a+b x)^3 C(a+b x)^2}{3 b^3}+\frac {d^2 C\left (\sqrt {2} (a+b x)\right )}{6 \sqrt {2} b^3 \pi ^2}+\frac {d (b c-a d) C(a+b x) S(a+b x)}{b^3 \pi }+\frac {(b c-a d)^2 S\left (\sqrt {2} (a+b x)\right )}{\sqrt {2} b^3 \pi }+\frac {i d (b c-a d) (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;-\frac {1}{2} i \pi (a+b x)^2\right )}{4 b^3 \pi }-\frac {i d (b c-a d) (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;\frac {1}{2} i \pi (a+b x)^2\right )}{4 b^3 \pi }-\frac {2 (b c-a d)^2 C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^3 \pi }-\frac {2 d (b c-a d) (a+b x) C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^3 \pi }-\frac {2 d^2 (a+b x)^2 C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{3 b^3 \pi }+\frac {\left (4 d^2\right ) \text {Subst}\left (\int \left (\frac {1}{2}+\frac {1}{2} \cos \left (\pi x^2\right )\right ) \, dx,x,a+b x\right )}{3 b^3 \pi ^2}\\ &=\frac {2 d^2 x}{3 b^2 \pi ^2}-\frac {d (b c-a d) \cos \left (\pi (a+b x)^2\right )}{2 b^3 \pi ^2}-\frac {d^2 (a+b x) \cos \left (\pi (a+b x)^2\right )}{6 b^3 \pi ^2}-\frac {4 d^2 \cos \left (\frac {1}{2} \pi (a+b x)^2\right ) C(a+b x)}{3 b^3 \pi ^2}+\frac {(b c-a d)^2 (a+b x) C(a+b x)^2}{b^3}+\frac {d (b c-a d) (a+b x)^2 C(a+b x)^2}{b^3}+\frac {d^2 (a+b x)^3 C(a+b x)^2}{3 b^3}+\frac {d^2 C\left (\sqrt {2} (a+b x)\right )}{6 \sqrt {2} b^3 \pi ^2}+\frac {d (b c-a d) C(a+b x) S(a+b x)}{b^3 \pi }+\frac {(b c-a d)^2 S\left (\sqrt {2} (a+b x)\right )}{\sqrt {2} b^3 \pi }+\frac {i d (b c-a d) (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;-\frac {1}{2} i \pi (a+b x)^2\right )}{4 b^3 \pi }-\frac {i d (b c-a d) (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;\frac {1}{2} i \pi (a+b x)^2\right )}{4 b^3 \pi }-\frac {2 (b c-a d)^2 C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^3 \pi }-\frac {2 d (b c-a d) (a+b x) C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^3 \pi }-\frac {2 d^2 (a+b x)^2 C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{3 b^3 \pi }+\frac {\left (2 d^2\right ) \text {Subst}\left (\int \cos \left (\pi x^2\right ) \, dx,x,a+b x\right )}{3 b^3 \pi ^2}\\ &=\frac {2 d^2 x}{3 b^2 \pi ^2}-\frac {d (b c-a d) \cos \left (\pi (a+b x)^2\right )}{2 b^3 \pi ^2}-\frac {d^2 (a+b x) \cos \left (\pi (a+b x)^2\right )}{6 b^3 \pi ^2}-\frac {4 d^2 \cos \left (\frac {1}{2} \pi (a+b x)^2\right ) C(a+b x)}{3 b^3 \pi ^2}+\frac {(b c-a d)^2 (a+b x) C(a+b x)^2}{b^3}+\frac {d (b c-a d) (a+b x)^2 C(a+b x)^2}{b^3}+\frac {d^2 (a+b x)^3 C(a+b x)^2}{3 b^3}+\frac {d^2 C\left (\sqrt {2} (a+b x)\right )}{6 \sqrt {2} b^3 \pi ^2}+\frac {\sqrt {2} d^2 C\left (\sqrt {2} (a+b x)\right )}{3 b^3 \pi ^2}+\frac {d (b c-a d) C(a+b x) S(a+b x)}{b^3 \pi }+\frac {(b c-a d)^2 S\left (\sqrt {2} (a+b x)\right )}{\sqrt {2} b^3 \pi }+\frac {i d (b c-a d) (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;-\frac {1}{2} i \pi (a+b x)^2\right )}{4 b^3 \pi }-\frac {i d (b c-a d) (a+b x)^2 \, _2F_2\left (1,1;\frac {3}{2},2;\frac {1}{2} i \pi (a+b x)^2\right )}{4 b^3 \pi }-\frac {2 (b c-a d)^2 C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^3 \pi }-\frac {2 d (b c-a d) (a+b x) C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{b^3 \pi }-\frac {2 d^2 (a+b x)^2 C(a+b x) \sin \left (\frac {1}{2} \pi (a+b x)^2\right )}{3 b^3 \pi }\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 0.44, size = 0, normalized size = 0.00 \begin {gather*} \int (c+d x)^2 \text {FresnelC}(a+b x)^2 \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.24, size = 0, normalized size = 0.00 \[\int \left (d x +c \right )^{2} \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 )^{2} 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 )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________