Integrand size = 35, antiderivative size = 68 \[ \int \frac {A+C \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}} \, dx=\frac {A \text {arctanh}(\sin (c+d x)) \sqrt {\cos (c+d x)}}{d \sqrt {b \cos (c+d x)}}+\frac {C \sqrt {\cos (c+d x)} \sin (c+d x)}{d \sqrt {b \cos (c+d x)}} \] Output:
A*arctanh(sin(d*x+c))*cos(d*x+c)^(1/2)/d/(b*cos(d*x+c))^(1/2)+C*cos(d*x+c) ^(1/2)*sin(d*x+c)/d/(b*cos(d*x+c))^(1/2)
Time = 0.05 (sec) , antiderivative size = 44, normalized size of antiderivative = 0.65 \[ \int \frac {A+C \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}} \, dx=\frac {\sqrt {\cos (c+d x)} (A \text {arctanh}(\sin (c+d x))+C \sin (c+d x))}{d \sqrt {b \cos (c+d x)}} \] Input:
Integrate[(A + C*Cos[c + d*x]^2)/(Sqrt[Cos[c + d*x]]*Sqrt[b*Cos[c + d*x]]) ,x]
Output:
(Sqrt[Cos[c + d*x]]*(A*ArcTanh[Sin[c + d*x]] + C*Sin[c + d*x]))/(d*Sqrt[b* Cos[c + d*x]])
Time = 0.30 (sec) , antiderivative size = 47, normalized size of antiderivative = 0.69, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2032, 3042, 3493, 3042, 4257}
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 {A+C \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}} \, dx\) |
\(\Big \downarrow \) 2032 |
\(\displaystyle \frac {\sqrt {\cos (c+d x)} \int \left (C \cos ^2(c+d x)+A\right ) \sec (c+d x)dx}{\sqrt {b \cos (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\sqrt {\cos (c+d x)} \int \frac {C \sin \left (c+d x+\frac {\pi }{2}\right )^2+A}{\sin \left (c+d x+\frac {\pi }{2}\right )}dx}{\sqrt {b \cos (c+d x)}}\) |
\(\Big \downarrow \) 3493 |
\(\displaystyle \frac {\sqrt {\cos (c+d x)} \left (A \int \sec (c+d x)dx+\frac {C \sin (c+d x)}{d}\right )}{\sqrt {b \cos (c+d x)}}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\sqrt {\cos (c+d x)} \left (A \int \csc \left (c+d x+\frac {\pi }{2}\right )dx+\frac {C \sin (c+d x)}{d}\right )}{\sqrt {b \cos (c+d x)}}\) |
\(\Big \downarrow \) 4257 |
\(\displaystyle \frac {\sqrt {\cos (c+d x)} \left (\frac {A \text {arctanh}(\sin (c+d x))}{d}+\frac {C \sin (c+d x)}{d}\right )}{\sqrt {b \cos (c+d x)}}\) |
Input:
Int[(A + C*Cos[c + d*x]^2)/(Sqrt[Cos[c + d*x]]*Sqrt[b*Cos[c + d*x]]),x]
Output:
(Sqrt[Cos[c + d*x]]*((A*ArcTanh[Sin[c + d*x]])/d + (C*Sin[c + d*x])/d))/Sq rt[b*Cos[c + d*x]]
Int[(Fx_.)*((a_.)*(v_))^(m_)*((b_.)*(v_))^(n_), x_Symbol] :> Simp[a^(m - 1/ 2)*b^(n + 1/2)*(Sqrt[a*v]/Sqrt[b*v]) Int[v^(m + n)*Fx, x], x] /; FreeQ[{a , b, m}, x] && !IntegerQ[m] && ILtQ[n - 1/2, 0] && IntegerQ[m + n]
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_) + (C_.)*sin[(e_.) + (f_.)*( x_)]^2), x_Symbol] :> Simp[(-C)*Cos[e + f*x]*((b*Sin[e + f*x])^(m + 1)/(b*f *(m + 2))), x] + Simp[(A*(m + 2) + C*(m + 1))/(m + 2) Int[(b*Sin[e + f*x] )^m, x], x] /; FreeQ[{b, e, f, A, C, m}, x] && !LtQ[m, -1]
Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]
Time = 0.39 (sec) , antiderivative size = 53, normalized size of antiderivative = 0.78
method | result | size |
default | \(-\frac {\left (2 A \,\operatorname {arctanh}\left (-\csc \left (d x +c \right )+\cot \left (d x +c \right )\right )-C \sin \left (d x +c \right )\right ) \sqrt {\cos \left (d x +c \right )}}{d \sqrt {b \cos \left (d x +c \right )}}\) | \(53\) |
parts | \(\frac {C \sqrt {\cos \left (d x +c \right )}\, \sin \left (d x +c \right )}{d \sqrt {b \cos \left (d x +c \right )}}-\frac {2 A \,\operatorname {arctanh}\left (-\csc \left (d x +c \right )+\cot \left (d x +c \right )\right ) \sqrt {\cos \left (d x +c \right )}}{d \sqrt {b \cos \left (d x +c \right )}}\) | \(71\) |
risch | \(\frac {\sqrt {\cos \left (d x +c \right )}\, A \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{\sqrt {b \cos \left (d x +c \right )}\, d}-\frac {\sqrt {\cos \left (d x +c \right )}\, A \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}{\sqrt {b \cos \left (d x +c \right )}\, d}+\frac {C \sin \left (2 d x +2 c \right )}{2 d \sqrt {\cos \left (d x +c \right )}\, \sqrt {b \cos \left (d x +c \right )}}\) | \(108\) |
Input:
int((A+C*cos(d*x+c)^2)/cos(d*x+c)^(1/2)/(b*cos(d*x+c))^(1/2),x,method=_RET URNVERBOSE)
Output:
-1/d*(2*A*arctanh(-csc(d*x+c)+cot(d*x+c))-C*sin(d*x+c))*cos(d*x+c)^(1/2)/( b*cos(d*x+c))^(1/2)
Time = 0.14 (sec) , antiderivative size = 207, normalized size of antiderivative = 3.04 \[ \int \frac {A+C \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}} \, dx=\left [\frac {A \sqrt {b} \cos \left (d x + c\right ) \log \left (-\frac {b \cos \left (d x + c\right )^{3} - 2 \, \sqrt {b \cos \left (d x + c\right )} \sqrt {b} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 2 \, b \cos \left (d x + c\right )}{\cos \left (d x + c\right )^{3}}\right ) + 2 \, \sqrt {b \cos \left (d x + c\right )} C \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{2 \, b d \cos \left (d x + c\right )}, -\frac {A \sqrt {-b} \arctan \left (\frac {\sqrt {b \cos \left (d x + c\right )} \sqrt {-b} \sin \left (d x + c\right )}{b \sqrt {\cos \left (d x + c\right )}}\right ) \cos \left (d x + c\right ) - \sqrt {b \cos \left (d x + c\right )} C \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{b d \cos \left (d x + c\right )}\right ] \] Input:
integrate((A+C*cos(d*x+c)^2)/cos(d*x+c)^(1/2)/(b*cos(d*x+c))^(1/2),x, algo rithm="fricas")
Output:
[1/2*(A*sqrt(b)*cos(d*x + c)*log(-(b*cos(d*x + c)^3 - 2*sqrt(b*cos(d*x + c ))*sqrt(b)*sqrt(cos(d*x + c))*sin(d*x + c) - 2*b*cos(d*x + c))/cos(d*x + c )^3) + 2*sqrt(b*cos(d*x + c))*C*sqrt(cos(d*x + c))*sin(d*x + c))/(b*d*cos( d*x + c)), -(A*sqrt(-b)*arctan(sqrt(b*cos(d*x + c))*sqrt(-b)*sin(d*x + c)/ (b*sqrt(cos(d*x + c))))*cos(d*x + c) - sqrt(b*cos(d*x + c))*C*sqrt(cos(d*x + c))*sin(d*x + c))/(b*d*cos(d*x + c))]
\[ \int \frac {A+C \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}} \, dx=\int \frac {A + C \cos ^{2}{\left (c + d x \right )}}{\sqrt {b \cos {\left (c + d x \right )}} \sqrt {\cos {\left (c + d x \right )}}}\, dx \] Input:
integrate((A+C*cos(d*x+c)**2)/cos(d*x+c)**(1/2)/(b*cos(d*x+c))**(1/2),x)
Output:
Integral((A + C*cos(c + d*x)**2)/(sqrt(b*cos(c + d*x))*sqrt(cos(c + d*x))) , x)
Time = 0.37 (sec) , antiderivative size = 80, normalized size of antiderivative = 1.18 \[ \int \frac {A+C \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}} \, dx=\frac {\frac {A {\left (\log \left (\cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} + 2 \, \sin \left (d x + c\right ) + 1\right ) - \log \left (\cos \left (d x + c\right )^{2} + \sin \left (d x + c\right )^{2} - 2 \, \sin \left (d x + c\right ) + 1\right )\right )}}{\sqrt {b}} + \frac {2 \, C \sin \left (d x + c\right )}{\sqrt {b}}}{2 \, d} \] Input:
integrate((A+C*cos(d*x+c)^2)/cos(d*x+c)^(1/2)/(b*cos(d*x+c))^(1/2),x, algo rithm="maxima")
Output:
1/2*(A*(log(cos(d*x + c)^2 + sin(d*x + c)^2 + 2*sin(d*x + c) + 1) - log(co s(d*x + c)^2 + sin(d*x + c)^2 - 2*sin(d*x + c) + 1))/sqrt(b) + 2*C*sin(d*x + c)/sqrt(b))/d
Exception generated. \[ \int \frac {A+C \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}} \, dx=\text {Exception raised: TypeError} \] Input:
integrate((A+C*cos(d*x+c)^2)/cos(d*x+c)^(1/2)/(b*cos(d*x+c))^(1/2),x, algo rithm="giac")
Output:
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:sym2poly/r2sym(const gen & e,const index_m & i,const vecteur & l) Error: Bad Argument Value
Timed out. \[ \int \frac {A+C \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}} \, dx=\int \frac {C\,{\cos \left (c+d\,x\right )}^2+A}{\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {b\,\cos \left (c+d\,x\right )}} \,d x \] Input:
int((A + C*cos(c + d*x)^2)/(cos(c + d*x)^(1/2)*(b*cos(c + d*x))^(1/2)),x)
Output:
int((A + C*cos(c + d*x)^2)/(cos(c + d*x)^(1/2)*(b*cos(c + d*x))^(1/2)), x)
Time = 0.16 (sec) , antiderivative size = 47, normalized size of antiderivative = 0.69 \[ \int \frac {A+C \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}} \, dx=\frac {\sqrt {b}\, \left (-\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right ) a +\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right ) a +\sin \left (d x +c \right ) c \right )}{b d} \] Input:
int((A+C*cos(d*x+c)^2)/cos(d*x+c)^(1/2)/(b*cos(d*x+c))^(1/2),x)
Output:
(sqrt(b)*( - log(tan((c + d*x)/2) - 1)*a + log(tan((c + d*x)/2) + 1)*a + s in(c + d*x)*c))/(b*d)