3.227 \(\int \frac {\cos (c+d x) \sin (c+d x)}{a+a \sin (c+d x)} \, dx\)

Optimal. Leaf size=31 \[ \frac {\sin (c+d x)}{a d}-\frac {\log (\sin (c+d x)+1)}{a d} \]

[Out]

-ln(1+sin(d*x+c))/a/d+sin(d*x+c)/a/d

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {2833, 12, 43} \[ \frac {\sin (c+d x)}{a d}-\frac {\log (\sin (c+d x)+1)}{a d} \]

Antiderivative was successfully verified.

[In]

Int[(Cos[c + d*x]*Sin[c + d*x])/(a + a*Sin[c + d*x]),x]

[Out]

-(Log[1 + Sin[c + d*x]]/(a*d)) + Sin[c + d*x]/(a*d)

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2833

Int[cos[(e_.) + (f_.)*(x_)]*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)
])^(n_.), x_Symbol] :> Dist[1/(b*f), Subst[Int[(a + x)^m*(c + (d*x)/b)^n, x], x, b*Sin[e + f*x]], x] /; FreeQ[
{a, b, c, d, e, f, m, n}, x]

Rubi steps

\begin {align*} \int \frac {\cos (c+d x) \sin (c+d x)}{a+a \sin (c+d x)} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {x}{a (a+x)} \, dx,x,a \sin (c+d x)\right )}{a d}\\ &=\frac {\operatorname {Subst}\left (\int \frac {x}{a+x} \, dx,x,a \sin (c+d x)\right )}{a^2 d}\\ &=\frac {\operatorname {Subst}\left (\int \left (1-\frac {a}{a+x}\right ) \, dx,x,a \sin (c+d x)\right )}{a^2 d}\\ &=-\frac {\log (1+\sin (c+d x))}{a d}+\frac {\sin (c+d x)}{a d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 25, normalized size = 0.81 \[ \frac {\sin (c+d x)-\log (\sin (c+d x)+1)}{a d} \]

Antiderivative was successfully verified.

[In]

Integrate[(Cos[c + d*x]*Sin[c + d*x])/(a + a*Sin[c + d*x]),x]

[Out]

(-Log[1 + Sin[c + d*x]] + Sin[c + d*x])/(a*d)

________________________________________________________________________________________

fricas [A]  time = 0.50, size = 26, normalized size = 0.84 \[ -\frac {\log \left (\sin \left (d x + c\right ) + 1\right ) - \sin \left (d x + c\right )}{a d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*sin(d*x+c)/(a+a*sin(d*x+c)),x, algorithm="fricas")

[Out]

-(log(sin(d*x + c) + 1) - sin(d*x + c))/(a*d)

________________________________________________________________________________________

giac [A]  time = 0.14, size = 31, normalized size = 1.00 \[ -\frac {\frac {\log \left ({\left | \sin \left (d x + c\right ) + 1 \right |}\right )}{a} - \frac {\sin \left (d x + c\right )}{a}}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*sin(d*x+c)/(a+a*sin(d*x+c)),x, algorithm="giac")

[Out]

-(log(abs(sin(d*x + c) + 1))/a - sin(d*x + c)/a)/d

________________________________________________________________________________________

maple [A]  time = 0.07, size = 32, normalized size = 1.03 \[ -\frac {\ln \left (1+\sin \left (d x +c \right )\right )}{a d}+\frac {\sin \left (d x +c \right )}{a d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)*sin(d*x+c)/(a+a*sin(d*x+c)),x)

[Out]

-ln(1+sin(d*x+c))/a/d+sin(d*x+c)/a/d

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 30, normalized size = 0.97 \[ -\frac {\frac {\log \left (\sin \left (d x + c\right ) + 1\right )}{a} - \frac {\sin \left (d x + c\right )}{a}}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*sin(d*x+c)/(a+a*sin(d*x+c)),x, algorithm="maxima")

[Out]

-(log(sin(d*x + c) + 1)/a - sin(d*x + c)/a)/d

________________________________________________________________________________________

mupad [B]  time = 8.46, size = 26, normalized size = 0.84 \[ -\frac {\ln \left (\sin \left (c+d\,x\right )+1\right )-\sin \left (c+d\,x\right )}{a\,d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((cos(c + d*x)*sin(c + d*x))/(a + a*sin(c + d*x)),x)

[Out]

-(log(sin(c + d*x) + 1) - sin(c + d*x))/(a*d)

________________________________________________________________________________________

sympy [A]  time = 0.68, size = 37, normalized size = 1.19 \[ \begin {cases} - \frac {\log {\left (\sin {\left (c + d x \right )} + 1 \right )}}{a d} + \frac {\sin {\left (c + d x \right )}}{a d} & \text {for}\: d \neq 0 \\\frac {x \sin {\relax (c )} \cos {\relax (c )}}{a \sin {\relax (c )} + a} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*sin(d*x+c)/(a+a*sin(d*x+c)),x)

[Out]

Piecewise((-log(sin(c + d*x) + 1)/(a*d) + sin(c + d*x)/(a*d), Ne(d, 0)), (x*sin(c)*cos(c)/(a*sin(c) + a), True
))

________________________________________________________________________________________