Integrand size = 26, antiderivative size = 78 \[ \int (a+i a \tan (e+f x))^m (c+d \tan (e+f x)) \, dx=\frac {d (a+i a \tan (e+f x))^m}{f m}-\frac {(i c+d) \operatorname {Hypergeometric2F1}\left (1,m,1+m,\frac {1}{2} (1+i \tan (e+f x))\right ) (a+i a \tan (e+f x))^m}{2 f m} \] Output:
d*(a+I*a*tan(f*x+e))^m/f/m-1/2*(I*c+d)*hypergeom([1, m],[1+m],1/2+1/2*I*ta n(f*x+e))*(a+I*a*tan(f*x+e))^m/f/m
Time = 0.18 (sec) , antiderivative size = 60, normalized size of antiderivative = 0.77 \[ \int (a+i a \tan (e+f x))^m (c+d \tan (e+f x)) \, dx=\frac {\left (2 d-(i c+d) \operatorname {Hypergeometric2F1}\left (1,m,1+m,\frac {1}{2} (1+i \tan (e+f x))\right )\right ) (a+i a \tan (e+f x))^m}{2 f m} \] Input:
Integrate[(a + I*a*Tan[e + f*x])^m*(c + d*Tan[e + f*x]),x]
Output:
((2*d - (I*c + d)*Hypergeometric2F1[1, m, 1 + m, (1 + I*Tan[e + f*x])/2])* (a + I*a*Tan[e + f*x])^m)/(2*f*m)
Time = 0.32 (sec) , antiderivative size = 84, normalized size of antiderivative = 1.08, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {3042, 4010, 3042, 3962, 78}
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 (a+i a \tan (e+f x))^m (c+d \tan (e+f x)) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int (a+i a \tan (e+f x))^m (c+d \tan (e+f x))dx\) |
\(\Big \downarrow \) 4010 |
\(\displaystyle (c-i d) \int (i \tan (e+f x) a+a)^mdx+\frac {d (a+i a \tan (e+f x))^m}{f m}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle (c-i d) \int (i \tan (e+f x) a+a)^mdx+\frac {d (a+i a \tan (e+f x))^m}{f m}\) |
\(\Big \downarrow \) 3962 |
\(\displaystyle \frac {d (a+i a \tan (e+f x))^m}{f m}-\frac {i a (c-i d) \int \frac {(i \tan (e+f x) a+a)^{m-1}}{a-i a \tan (e+f x)}d(i a \tan (e+f x))}{f}\) |
\(\Big \downarrow \) 78 |
\(\displaystyle \frac {d (a+i a \tan (e+f x))^m}{f m}-\frac {i (c-i d) (a+i a \tan (e+f x))^m \operatorname {Hypergeometric2F1}\left (1,m,m+1,\frac {i \tan (e+f x) a+a}{2 a}\right )}{2 f m}\) |
Input:
Int[(a + I*a*Tan[e + f*x])^m*(c + d*Tan[e + f*x]),x]
Output:
(d*(a + I*a*Tan[e + f*x])^m)/(f*m) - ((I/2)*(c - I*d)*Hypergeometric2F1[1, m, 1 + m, (a + I*a*Tan[e + f*x])/(2*a)]*(a + I*a*Tan[e + f*x])^m)/(f*m)
Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(b *c - a*d)^n*((a + b*x)^(m + 1)/(b^(n + 1)*(m + 1)))*Hypergeometric2F1[-n, m + 1, m + 2, (-d)*((a + b*x)/(b*c - a*d))], x] /; FreeQ[{a, b, c, d, m}, x] && !IntegerQ[m] && IntegerQ[n]
Int[((a_) + (b_.)*tan[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[-b/d S ubst[Int[(a + x)^(n - 1)/(a - x), x], x, b*Tan[c + d*x]], x] /; FreeQ[{a, b , c, d, n}, x] && EqQ[a^2 + b^2, 0]
Int[((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[d*((a + b*Tan[e + f*x])^m/(f*m)), x] + Simp [(b*c + a*d)/b Int[(a + b*Tan[e + f*x])^m, x], x] /; FreeQ[{a, b, c, d, e , f, m}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 + b^2, 0] && !LtQ[m, 0]
\[\int \left (a +i a \tan \left (f x +e \right )\right )^{m} \left (c +d \tan \left (f x +e \right )\right )d x\]
Input:
int((a+I*a*tan(f*x+e))^m*(c+d*tan(f*x+e)),x)
Output:
int((a+I*a*tan(f*x+e))^m*(c+d*tan(f*x+e)),x)
\[ \int (a+i a \tan (e+f x))^m (c+d \tan (e+f x)) \, dx=\int { {\left (d \tan \left (f x + e\right ) + c\right )} {\left (i \, a \tan \left (f x + e\right ) + a\right )}^{m} \,d x } \] Input:
integrate((a+I*a*tan(f*x+e))^m*(c+d*tan(f*x+e)),x, algorithm="fricas")
Output:
integral(((c - I*d)*e^(2*I*f*x + 2*I*e) + c + I*d)*(2*a*e^(2*I*f*x + 2*I*e )/(e^(2*I*f*x + 2*I*e) + 1))^m/(e^(2*I*f*x + 2*I*e) + 1), x)
\[ \int (a+i a \tan (e+f x))^m (c+d \tan (e+f x)) \, dx=\int \left (i a \left (\tan {\left (e + f x \right )} - i\right )\right )^{m} \left (c + d \tan {\left (e + f x \right )}\right )\, dx \] Input:
integrate((a+I*a*tan(f*x+e))**m*(c+d*tan(f*x+e)),x)
Output:
Integral((I*a*(tan(e + f*x) - I))**m*(c + d*tan(e + f*x)), x)
\[ \int (a+i a \tan (e+f x))^m (c+d \tan (e+f x)) \, dx=\int { {\left (d \tan \left (f x + e\right ) + c\right )} {\left (i \, a \tan \left (f x + e\right ) + a\right )}^{m} \,d x } \] Input:
integrate((a+I*a*tan(f*x+e))^m*(c+d*tan(f*x+e)),x, algorithm="maxima")
Output:
integrate((d*tan(f*x + e) + c)*(I*a*tan(f*x + e) + a)^m, x)
\[ \int (a+i a \tan (e+f x))^m (c+d \tan (e+f x)) \, dx=\int { {\left (d \tan \left (f x + e\right ) + c\right )} {\left (i \, a \tan \left (f x + e\right ) + a\right )}^{m} \,d x } \] Input:
integrate((a+I*a*tan(f*x+e))^m*(c+d*tan(f*x+e)),x, algorithm="giac")
Output:
integrate((d*tan(f*x + e) + c)*(I*a*tan(f*x + e) + a)^m, x)
Timed out. \[ \int (a+i a \tan (e+f x))^m (c+d \tan (e+f x)) \, dx=\int {\left (a+a\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}\right )}^m\,\left (c+d\,\mathrm {tan}\left (e+f\,x\right )\right ) \,d x \] Input:
int((a + a*tan(e + f*x)*1i)^m*(c + d*tan(e + f*x)),x)
Output:
int((a + a*tan(e + f*x)*1i)^m*(c + d*tan(e + f*x)), x)
\[ \int (a+i a \tan (e+f x))^m (c+d \tan (e+f x)) \, dx=\frac {-\left (\tan \left (f x +e \right ) a i +a \right )^{m} c i +\left (\int \left (\tan \left (f x +e \right ) a i +a \right )^{m} \tan \left (f x +e \right )d x \right ) c f i m +\left (\int \left (\tan \left (f x +e \right ) a i +a \right )^{m} \tan \left (f x +e \right )d x \right ) d f m}{f m} \] Input:
int((a+I*a*tan(f*x+e))^m*(c+d*tan(f*x+e)),x)
Output:
( - (tan(e + f*x)*a*i + a)**m*c*i + int((tan(e + f*x)*a*i + a)**m*tan(e + f*x),x)*c*f*i*m + int((tan(e + f*x)*a*i + a)**m*tan(e + f*x),x)*d*f*m)/(f* m)