Optimal. Leaf size=108 \[ \frac {2 \sqrt {a+b \cos (d+e x)+c \sin (d+e x)} E\left (\frac {1}{2} \left (d+e x-\tan ^{-1}(b,c)\right )|\frac {2 \sqrt {b^2+c^2}}{a+\sqrt {b^2+c^2}}\right )}{e \sqrt {\frac {a+b \cos (d+e x)+c \sin (d+e x)}{a+\sqrt {b^2+c^2}}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 108, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {3119, 2653} \[ \frac {2 \sqrt {a+b \cos (d+e x)+c \sin (d+e x)} E\left (\frac {1}{2} \left (d+e x-\tan ^{-1}(b,c)\right )|\frac {2 \sqrt {b^2+c^2}}{a+\sqrt {b^2+c^2}}\right )}{e \sqrt {\frac {a+b \cos (d+e x)+c \sin (d+e x)}{a+\sqrt {b^2+c^2}}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2653
Rule 3119
Rubi steps
\begin {align*} \int \sqrt {a+b \cos (d+e x)+c \sin (d+e x)} \, dx &=\frac {\sqrt {a+b \cos (d+e x)+c \sin (d+e x)} \int \sqrt {\frac {a}{a+\sqrt {b^2+c^2}}+\frac {\sqrt {b^2+c^2} \cos \left (d+e x-\tan ^{-1}(b,c)\right )}{a+\sqrt {b^2+c^2}}} \, dx}{\sqrt {\frac {a+b \cos (d+e x)+c \sin (d+e x)}{a+\sqrt {b^2+c^2}}}}\\ &=\frac {2 E\left (\frac {1}{2} \left (d+e x-\tan ^{-1}(b,c)\right )|\frac {2 \sqrt {b^2+c^2}}{a+\sqrt {b^2+c^2}}\right ) \sqrt {a+b \cos (d+e x)+c \sin (d+e x)}}{e \sqrt {\frac {a+b \cos (d+e x)+c \sin (d+e x)}{a+\sqrt {b^2+c^2}}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 6.23, size = 1408, normalized size = 13.04 \[ \text {result too large to display} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.75, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\sqrt {b \cos \left (e x + d\right ) + c \sin \left (e x + d\right ) + a}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {b \cos \left (e x + d\right ) + c \sin \left (e x + d\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.46, size = 720, normalized size = 6.67 \[ \frac {2 \left (-a +\sqrt {b^{2}+c^{2}}\right ) \sqrt {-\frac {\sqrt {b^{2}+c^{2}}\, \sin \left (e x +d -\arctan \left (-b , c\right )\right )+a}{-a +\sqrt {b^{2}+c^{2}}}}\, \sqrt {-\frac {\left (\sin \left (e x +d -\arctan \left (-b , c\right )\right )-1\right ) \sqrt {b^{2}+c^{2}}}{a +\sqrt {b^{2}+c^{2}}}}\, \sqrt {\frac {\left (1+\sin \left (e x +d -\arctan \left (-b , c\right )\right )\right ) \sqrt {b^{2}+c^{2}}}{-a +\sqrt {b^{2}+c^{2}}}}\, \sqrt {\sqrt {b^{2}+c^{2}}\, \sin \left (e x +d -\arctan \left (-b , c\right )\right ) \left (\cos ^{2}\left (e x +d -\arctan \left (-b , c\right )\right )\right )+\left (\cos ^{2}\left (e x +d -\arctan \left (-b , c\right )\right )\right ) a}\, \left (\sqrt {b^{2}+c^{2}}\, \EllipticE \left (\sqrt {-\frac {\sqrt {b^{2}+c^{2}}\, \sin \left (e x +d -\arctan \left (-b , c\right )\right )}{-a +\sqrt {b^{2}+c^{2}}}-\frac {a}{-a +\sqrt {b^{2}+c^{2}}}}, \sqrt {-\frac {-a +\sqrt {b^{2}+c^{2}}}{a +\sqrt {b^{2}+c^{2}}}}\right )-\sqrt {b^{2}+c^{2}}\, \EllipticF \left (\sqrt {-\frac {\sqrt {b^{2}+c^{2}}\, \sin \left (e x +d -\arctan \left (-b , c\right )\right )}{-a +\sqrt {b^{2}+c^{2}}}-\frac {a}{-a +\sqrt {b^{2}+c^{2}}}}, \sqrt {-\frac {-a +\sqrt {b^{2}+c^{2}}}{a +\sqrt {b^{2}+c^{2}}}}\right )+\EllipticE \left (\sqrt {-\frac {\sqrt {b^{2}+c^{2}}\, \sin \left (e x +d -\arctan \left (-b , c\right )\right )}{-a +\sqrt {b^{2}+c^{2}}}-\frac {a}{-a +\sqrt {b^{2}+c^{2}}}}, \sqrt {-\frac {-a +\sqrt {b^{2}+c^{2}}}{a +\sqrt {b^{2}+c^{2}}}}\right ) a -\EllipticF \left (\sqrt {-\frac {\sqrt {b^{2}+c^{2}}\, \sin \left (e x +d -\arctan \left (-b , c\right )\right )}{-a +\sqrt {b^{2}+c^{2}}}-\frac {a}{-a +\sqrt {b^{2}+c^{2}}}}, \sqrt {-\frac {-a +\sqrt {b^{2}+c^{2}}}{a +\sqrt {b^{2}+c^{2}}}}\right ) a \right )}{\sqrt {b^{2}+c^{2}}\, \sqrt {\left (\cos ^{2}\left (e x +d -\arctan \left (-b , c\right )\right )\right ) \left (\sqrt {b^{2}+c^{2}}\, \sin \left (e x +d -\arctan \left (-b , c\right )\right )+a \right )}\, \cos \left (e x +d -\arctan \left (-b , c\right )\right ) \sqrt {\frac {b^{2} \sin \left (e x +d -\arctan \left (-b , c\right )\right )+c^{2} \sin \left (e x +d -\arctan \left (-b , c\right )\right )+a \sqrt {b^{2}+c^{2}}}{\sqrt {b^{2}+c^{2}}}}\, e} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {b \cos \left (e x + d\right ) + c \sin \left (e x + d\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \sqrt {a+b\,\cos \left (d+e\,x\right )+c\,\sin \left (d+e\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a + b \cos {\left (d + e x \right )} + c \sin {\left (d + e x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________