3.369 \(\int (e \cos (c+d x))^{1-2 m} (a+a \sin (c+d x))^m \, dx\)

Optimal. Leaf size=44 \[ -\frac {a (a \sin (c+d x)+a)^{m-1} (e \cos (c+d x))^{2-2 m}}{d e (1-m)} \]

[Out]

-a*(e*cos(d*x+c))^(2-2*m)*(a+a*sin(d*x+c))^(-1+m)/d/e/(1-m)

________________________________________________________________________________________

Rubi [A]  time = 0.06, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.037, Rules used = {2673} \[ -\frac {a (a \sin (c+d x)+a)^{m-1} (e \cos (c+d x))^{2-2 m}}{d e (1-m)} \]

Antiderivative was successfully verified.

[In]

Int[(e*Cos[c + d*x])^(1 - 2*m)*(a + a*Sin[c + d*x])^m,x]

[Out]

-((a*(e*Cos[c + d*x])^(2 - 2*m)*(a + a*Sin[c + d*x])^(-1 + m))/(d*e*(1 - m)))

Rule 2673

Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> Simp[(b*(g*
Cos[e + f*x])^(p + 1)*(a + b*Sin[e + f*x])^(m - 1))/(f*g*(m - 1)), x] /; FreeQ[{a, b, e, f, g, m, p}, x] && Eq
Q[a^2 - b^2, 0] && EqQ[2*m + p - 1, 0] && NeQ[m, 1]

Rubi steps

\begin {align*} \int (e \cos (c+d x))^{1-2 m} (a+a \sin (c+d x))^m \, dx &=-\frac {a (e \cos (c+d x))^{2-2 m} (a+a \sin (c+d x))^{-1+m}}{d e (1-m)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.15, size = 43, normalized size = 0.98 \[ -\frac {e (\sin (c+d x)-1) (a (\sin (c+d x)+1))^m (e \cos (c+d x))^{-2 m}}{d (m-1)} \]

Antiderivative was successfully verified.

[In]

Integrate[(e*Cos[c + d*x])^(1 - 2*m)*(a + a*Sin[c + d*x])^m,x]

[Out]

-((e*(-1 + Sin[c + d*x])*(a*(1 + Sin[c + d*x]))^m)/(d*(-1 + m)*(e*Cos[c + d*x])^(2*m)))

________________________________________________________________________________________

fricas [A]  time = 0.49, size = 80, normalized size = 1.82 \[ \frac {\left (e \cos \left (d x + c\right )\right )^{-2 \, m + 1} {\left (a \sin \left (d x + c\right ) + a\right )}^{m} {\left (\cos \left (d x + c\right ) - \sin \left (d x + c\right ) + 1\right )}}{d m + {\left (d m - d\right )} \cos \left (d x + c\right ) + {\left (d m - d\right )} \sin \left (d x + c\right ) - d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*cos(d*x+c))^(1-2*m)*(a+a*sin(d*x+c))^m,x, algorithm="fricas")

[Out]

(e*cos(d*x + c))^(-2*m + 1)*(a*sin(d*x + c) + a)^m*(cos(d*x + c) - sin(d*x + c) + 1)/(d*m + (d*m - d)*cos(d*x
+ c) + (d*m - d)*sin(d*x + c) - d)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (e \cos \left (d x + c\right )\right )^{-2 \, m + 1} {\left (a \sin \left (d x + c\right ) + a\right )}^{m}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*cos(d*x+c))^(1-2*m)*(a+a*sin(d*x+c))^m,x, algorithm="giac")

[Out]

integrate((e*cos(d*x + c))^(-2*m + 1)*(a*sin(d*x + c) + a)^m, x)

________________________________________________________________________________________

maple [F]  time = 2.20, size = 0, normalized size = 0.00 \[ \int \left (e \cos \left (d x +c \right )\right )^{1-2 m} \left (a +a \sin \left (d x +c \right )\right )^{m}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*cos(d*x+c))^(1-2*m)*(a+a*sin(d*x+c))^m,x)

[Out]

int((e*cos(d*x+c))^(1-2*m)*(a+a*sin(d*x+c))^m,x)

________________________________________________________________________________________

maxima [B]  time = 0.95, size = 144, normalized size = 3.27 \[ \frac {{\left (a^{m} e - \frac {2 \, a^{m} e \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {a^{m} e \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}\right )} e^{\left (-2 \, m \log \left (-\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right ) + m \log \left (\frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + 1\right )\right )}}{{\left (e^{2 \, m} {\left (m - 1\right )} + \frac {e^{2 \, m} {\left (m - 1\right )} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}\right )} d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*cos(d*x+c))^(1-2*m)*(a+a*sin(d*x+c))^m,x, algorithm="maxima")

[Out]

(a^m*e - 2*a^m*e*sin(d*x + c)/(cos(d*x + c) + 1) + a^m*e*sin(d*x + c)^2/(cos(d*x + c) + 1)^2)*e^(-2*m*log(-sin
(d*x + c)/(cos(d*x + c) + 1) + 1) + m*log(sin(d*x + c)^2/(cos(d*x + c) + 1)^2 + 1))/((e^(2*m)*(m - 1) + e^(2*m
)*(m - 1)*sin(d*x + c)^2/(cos(d*x + c) + 1)^2)*d)

________________________________________________________________________________________

mupad [B]  time = 5.58, size = 58, normalized size = 1.32 \[ \frac {e\,\left (\cos \left (2\,c+2\,d\,x\right )+1\right )\,{\left (a\,\left (\sin \left (c+d\,x\right )+1\right )\right )}^m}{2\,d\,{\left (e\,\cos \left (c+d\,x\right )\right )}^{2\,m}\,\left (m-1\right )\,\left (\sin \left (c+d\,x\right )+1\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*cos(c + d*x))^(1 - 2*m)*(a + a*sin(c + d*x))^m,x)

[Out]

(e*(cos(2*c + 2*d*x) + 1)*(a*(sin(c + d*x) + 1))^m)/(2*d*(e*cos(c + d*x))^(2*m)*(m - 1)*(sin(c + d*x) + 1))

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a \left (\sin {\left (c + d x \right )} + 1\right )\right )^{m} \left (e \cos {\left (c + d x \right )}\right )^{1 - 2 m}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*cos(d*x+c))**(1-2*m)*(a+a*sin(d*x+c))**m,x)

[Out]

Integral((a*(sin(c + d*x) + 1))**m*(e*cos(c + d*x))**(1 - 2*m), x)

________________________________________________________________________________________