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

Optimal. Leaf size=29 \[ \frac {i}{d (a \cos (c+d x)+i a \sin (c+d x))} \]

[Out]

I/d/(a*cos(d*x+c)+I*a*sin(d*x+c))

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.045, Rules used = {3071} \[ \frac {i}{d (a \cos (c+d x)+i a \sin (c+d x))} \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 3071

Int[(cos[(c_.) + (d_.)*(x_)]*(a_.) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(a*(a*Cos[c + d*x]
 + b*Sin[c + d*x])^n)/(b*d*n), x] /; FreeQ[{a, b, c, d, n}, x] && EqQ[a^2 + b^2, 0]

Rubi steps

\begin {align*} \int \frac {1}{a \cos (c+d x)+i a \sin (c+d x)} \, dx &=\frac {i}{d (a \cos (c+d x)+i a \sin (c+d x))}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 29, normalized size = 1.00 \[ \frac {i}{d (a \cos (c+d x)+i a \sin (c+d x))} \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.57, size = 17, normalized size = 0.59 \[ \frac {i \, e^{\left (-i \, d x - i \, c\right )}}{a d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

I*e^(-I*d*x - I*c)/(a*d)

________________________________________________________________________________________

giac [A]  time = 0.16, size = 21, normalized size = 0.72 \[ \frac {2}{a d {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - i\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2/(a*d*(tan(1/2*d*x + 1/2*c) - I))

________________________________________________________________________________________

maple [A]  time = 0.13, size = 23, normalized size = 0.79 \[ \frac {2}{d a \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-i\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2/d/a/(tan(1/2*d*x+1/2*c)-I)

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 29, normalized size = 1.00 \[ \frac {2}{{\left (-i \, a + \frac {a \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )} d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2/((-I*a + a*sin(d*x + c)/(cos(d*x + c) + 1))*d)

________________________________________________________________________________________

mupad [B]  time = 0.61, size = 25, normalized size = 0.86 \[ \frac {2{}\mathrm {i}}{a\,d\,\left (1+\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,1{}\mathrm {i}\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2i/(a*d*(tan(c/2 + (d*x)/2)*1i + 1))

________________________________________________________________________________________

sympy [A]  time = 0.14, size = 31, normalized size = 1.07 \[ \begin {cases} \frac {i e^{- i c} e^{- i d x}}{a d} & \text {for}\: a d e^{i c} \neq 0 \\\frac {x e^{- i c}}{a} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Piecewise((I*exp(-I*c)*exp(-I*d*x)/(a*d), Ne(a*d*exp(I*c), 0)), (x*exp(-I*c)/a, True))

________________________________________________________________________________________