Integrand size = 22, antiderivative size = 40 \[ \int \frac {\cos ^2(a+b x)}{\sqrt {\sin (2 a+2 b x)}} \, dx=\frac {\operatorname {EllipticF}\left (a-\frac {\pi }{4}+b x,2\right )}{2 b}+\frac {\sqrt {\sin (2 a+2 b x)}}{2 b} \] Output:
1/2*InverseJacobiAM(a-1/4*Pi+b*x,2^(1/2))/b+1/2*sin(2*b*x+2*a)^(1/2)/b
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 0.47 (sec) , antiderivative size = 54, normalized size of antiderivative = 1.35 \[ \int \frac {\cos ^2(a+b x)}{\sqrt {\sin (2 a+2 b x)}} \, dx=\frac {\left (1+\operatorname {Hypergeometric2F1}\left (\frac {1}{4},\frac {1}{2},\frac {5}{4},-\tan ^2(a+b x)\right ) \sqrt {\sec ^2(a+b x)}\right ) \sqrt {\sin (2 (a+b x))}}{2 b} \] Input:
Integrate[Cos[a + b*x]^2/Sqrt[Sin[2*a + 2*b*x]],x]
Output:
((1 + Hypergeometric2F1[1/4, 1/2, 5/4, -Tan[a + b*x]^2]*Sqrt[Sec[a + b*x]^ 2])*Sqrt[Sin[2*(a + b*x)]])/(2*b)
Time = 0.26 (sec) , antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {3042, 4785, 3042, 3120}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\cos ^2(a+b x)}{\sqrt {\sin (2 a+2 b x)}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\cos (a+b x)^2}{\sqrt {\sin (2 a+2 b x)}}dx\) |
\(\Big \downarrow \) 4785 |
\(\displaystyle \frac {1}{2} \int \frac {1}{\sqrt {\sin (2 a+2 b x)}}dx+\frac {\sqrt {\sin (2 a+2 b x)}}{2 b}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{2} \int \frac {1}{\sqrt {\sin (2 a+2 b x)}}dx+\frac {\sqrt {\sin (2 a+2 b x)}}{2 b}\) |
\(\Big \downarrow \) 3120 |
\(\displaystyle \frac {\sqrt {\sin (2 a+2 b x)}}{2 b}+\frac {\operatorname {EllipticF}\left (a+b x-\frac {\pi }{4},2\right )}{2 b}\) |
Input:
Int[Cos[a + b*x]^2/Sqrt[Sin[2*a + 2*b*x]],x]
Output:
EllipticF[a - Pi/4 + b*x, 2]/(2*b) + Sqrt[Sin[2*a + 2*b*x]]/(2*b)
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticF[(1/2 )*(c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[(cos[(a_.) + (b_.)*(x_)]*(e_.))^(m_)*((g_.)*sin[(c_.) + (d_.)*(x_)])^(p _), x_Symbol] :> Simp[e^2*(e*Cos[a + b*x])^(m - 2)*((g*Sin[c + d*x])^(p + 1 )/(2*b*g*(m + 2*p))), x] + Simp[e^2*((m + p - 1)/(m + 2*p)) Int[(e*Cos[a + b*x])^(m - 2)*(g*Sin[c + d*x])^p, x], x] /; FreeQ[{a, b, c, d, e, g, p}, x] && EqQ[b*c - a*d, 0] && EqQ[d/b, 2] && !IntegerQ[p] && GtQ[m, 1] && NeQ [m + 2*p, 0] && IntegersQ[2*m, 2*p]
result has leaf size over 500,000. Avoiding possible recursion issues.
Time = 2.52 (sec) , antiderivative size = 12988217, normalized size of antiderivative = 324705.42
Input:
int(cos(b*x+a)^2/sin(2*b*x+2*a)^(1/2),x,method=_RETURNVERBOSE)
Output:
result too large to display
\[ \int \frac {\cos ^2(a+b x)}{\sqrt {\sin (2 a+2 b x)}} \, dx=\int { \frac {\cos \left (b x + a\right )^{2}}{\sqrt {\sin \left (2 \, b x + 2 \, a\right )}} \,d x } \] Input:
integrate(cos(b*x+a)^2/sin(2*b*x+2*a)^(1/2),x, algorithm="fricas")
Output:
integral(cos(b*x + a)^2/sqrt(sin(2*b*x + 2*a)), x)
Timed out. \[ \int \frac {\cos ^2(a+b x)}{\sqrt {\sin (2 a+2 b x)}} \, dx=\text {Timed out} \] Input:
integrate(cos(b*x+a)**2/sin(2*b*x+2*a)**(1/2),x)
Output:
Timed out
\[ \int \frac {\cos ^2(a+b x)}{\sqrt {\sin (2 a+2 b x)}} \, dx=\int { \frac {\cos \left (b x + a\right )^{2}}{\sqrt {\sin \left (2 \, b x + 2 \, a\right )}} \,d x } \] Input:
integrate(cos(b*x+a)^2/sin(2*b*x+2*a)^(1/2),x, algorithm="maxima")
Output:
integrate(cos(b*x + a)^2/sqrt(sin(2*b*x + 2*a)), x)
\[ \int \frac {\cos ^2(a+b x)}{\sqrt {\sin (2 a+2 b x)}} \, dx=\int { \frac {\cos \left (b x + a\right )^{2}}{\sqrt {\sin \left (2 \, b x + 2 \, a\right )}} \,d x } \] Input:
integrate(cos(b*x+a)^2/sin(2*b*x+2*a)^(1/2),x, algorithm="giac")
Output:
integrate(cos(b*x + a)^2/sqrt(sin(2*b*x + 2*a)), x)
Timed out. \[ \int \frac {\cos ^2(a+b x)}{\sqrt {\sin (2 a+2 b x)}} \, dx=\int \frac {{\cos \left (a+b\,x\right )}^2}{\sqrt {\sin \left (2\,a+2\,b\,x\right )}} \,d x \] Input:
int(cos(a + b*x)^2/sin(2*a + 2*b*x)^(1/2),x)
Output:
int(cos(a + b*x)^2/sin(2*a + 2*b*x)^(1/2), x)
\[ \int \frac {\cos ^2(a+b x)}{\sqrt {\sin (2 a+2 b x)}} \, dx=\int \frac {\sqrt {\sin \left (2 b x +2 a \right )}\, \cos \left (b x +a \right )^{2}}{\sin \left (2 b x +2 a \right )}d x \] Input:
int(cos(b*x+a)^2/sin(2*b*x+2*a)^(1/2),x)
Output:
int((sqrt(sin(2*a + 2*b*x))*cos(a + b*x)**2)/sin(2*a + 2*b*x),x)