Integrand size = 31, antiderivative size = 438 \[ \int \frac {\tan ^m(c+d x) (A+B \tan (c+d x))}{(a+b \tan (c+d x))^3} \, dx=\frac {\left (a^3 A-3 a A b^2+3 a^2 b B-b^3 B\right ) \operatorname {Hypergeometric2F1}\left (1,\frac {1+m}{2},\frac {3+m}{2},-\tan ^2(c+d x)\right ) \tan ^{1+m}(c+d x)}{\left (a^2+b^2\right )^3 d (1+m)}-\frac {b \left (A b^5 (1-m) m+a b^4 B m (1+m)-2 a^3 b^2 B \left (3+m-m^2\right )+2 a^2 A b^3 \left (1+3 m-m^2\right )-a^4 A b \left (6-5 m+m^2\right )+a^5 B \left (2-3 m+m^2\right )\right ) \operatorname {Hypergeometric2F1}\left (1,1+m,2+m,-\frac {b \tan (c+d x)}{a}\right ) \tan ^{1+m}(c+d x)}{2 a^3 \left (a^2+b^2\right )^3 d (1+m)}-\frac {\left (3 a^2 A b-A b^3-a^3 B+3 a b^2 B\right ) \operatorname {Hypergeometric2F1}\left (1,\frac {2+m}{2},\frac {4+m}{2},-\tan ^2(c+d x)\right ) \tan ^{2+m}(c+d x)}{\left (a^2+b^2\right )^3 d (2+m)}+\frac {b (A b-a B) \tan ^{1+m}(c+d x)}{2 a \left (a^2+b^2\right ) d (a+b \tan (c+d x))^2}+\frac {b \left (A b^3 (1-m)-a^3 B (3-m)+a^2 A b (5-m)+a b^2 B (1+m)\right ) \tan ^{1+m}(c+d x)}{2 a^2 \left (a^2+b^2\right )^2 d (a+b \tan (c+d x))} \] Output:
(A*a^3-3*A*a*b^2+3*B*a^2*b-B*b^3)*hypergeom([1, 1/2+1/2*m],[3/2+1/2*m],-ta n(d*x+c)^2)*tan(d*x+c)^(1+m)/(a^2+b^2)^3/d/(1+m)-1/2*b*(A*b^5*(1-m)*m+a*b^ 4*B*m*(1+m)-2*a^3*b^2*B*(-m^2+m+3)+2*a^2*A*b^3*(-m^2+3*m+1)-a^4*A*b*(m^2-5 *m+6)+a^5*B*(m^2-3*m+2))*hypergeom([1, 1+m],[2+m],-b*tan(d*x+c)/a)*tan(d*x +c)^(1+m)/a^3/(a^2+b^2)^3/d/(1+m)-(3*A*a^2*b-A*b^3-B*a^3+3*B*a*b^2)*hyperg eom([1, 1+1/2*m],[2+1/2*m],-tan(d*x+c)^2)*tan(d*x+c)^(2+m)/(a^2+b^2)^3/d/( 2+m)+1/2*b*(A*b-B*a)*tan(d*x+c)^(1+m)/a/(a^2+b^2)/d/(a+b*tan(d*x+c))^2+1/2 *b*(A*b^3*(1-m)-a^3*B*(3-m)+a^2*A*b*(5-m)+a*b^2*B*(1+m))*tan(d*x+c)^(1+m)/ a^2/(a^2+b^2)^2/d/(a+b*tan(d*x+c))
Time = 6.25 (sec) , antiderivative size = 530, normalized size of antiderivative = 1.21 \[ \int \frac {\tan ^m(c+d x) (A+B \tan (c+d x))}{(a+b \tan (c+d x))^3} \, dx=\frac {b (A b-a B) \tan ^{1+m}(c+d x)}{2 a \left (a^2+b^2\right ) d (a+b \tan (c+d x))^2}+\frac {\frac {\left (-a (-2 a b (A b-a B)-a b (A b-a B) (1-m))+b^2 \left (2 a^2 A+A b^2 (1-m)+a b B (1+m)\right )\right ) \tan ^{1+m}(c+d x)}{a \left (a^2+b^2\right ) d (a+b \tan (c+d x))}+\frac {\frac {\left (2 a^3 b \left (2 a A b-a^2 B+b^2 B\right )-a^2 b m \left (A b^3 (1-m)-a^3 B (3-m)+a^2 A b (5-m)+a b^2 B (1+m)\right )+b^2 \left (-a^2 b (A b-a B) (3-m) (1+m)+\left (a^2-b^2 m\right ) \left (2 a^2 A+A b^2 (1-m)+a b B (1+m)\right )\right )\right ) \operatorname {Hypergeometric2F1}\left (1,1+m,2+m,-\frac {b \tan (c+d x)}{a}\right ) \tan ^{1+m}(c+d x)}{a \left (a^2+b^2\right ) d (1+m)}+\frac {\frac {2 a^2 \left (a^3 A-3 a A b^2+3 a^2 b B-b^3 B\right ) \operatorname {Hypergeometric2F1}\left (1,\frac {1+m}{2},\frac {3+m}{2},-\tan ^2(c+d x)\right ) \tan ^{1+m}(c+d x)}{d (1+m)}-\frac {2 a^2 \left (3 a^2 A b-A b^3-a^3 B+3 a b^2 B\right ) \operatorname {Hypergeometric2F1}\left (1,\frac {2+m}{2},\frac {4+m}{2},-\tan ^2(c+d x)\right ) \tan ^{2+m}(c+d x)}{d (2+m)}}{a^2+b^2}}{a \left (a^2+b^2\right )}}{2 a \left (a^2+b^2\right )} \] Input:
Integrate[(Tan[c + d*x]^m*(A + B*Tan[c + d*x]))/(a + b*Tan[c + d*x])^3,x]
Output:
(b*(A*b - a*B)*Tan[c + d*x]^(1 + m))/(2*a*(a^2 + b^2)*d*(a + b*Tan[c + d*x ])^2) + (((-(a*(-2*a*b*(A*b - a*B) - a*b*(A*b - a*B)*(1 - m))) + b^2*(2*a^ 2*A + A*b^2*(1 - m) + a*b*B*(1 + m)))*Tan[c + d*x]^(1 + m))/(a*(a^2 + b^2) *d*(a + b*Tan[c + d*x])) + (((2*a^3*b*(2*a*A*b - a^2*B + b^2*B) - a^2*b*m* (A*b^3*(1 - m) - a^3*B*(3 - m) + a^2*A*b*(5 - m) + a*b^2*B*(1 + m)) + b^2* (-(a^2*b*(A*b - a*B)*(3 - m)*(1 + m)) + (a^2 - b^2*m)*(2*a^2*A + A*b^2*(1 - m) + a*b*B*(1 + m))))*Hypergeometric2F1[1, 1 + m, 2 + m, -((b*Tan[c + d* x])/a)]*Tan[c + d*x]^(1 + m))/(a*(a^2 + b^2)*d*(1 + m)) + ((2*a^2*(a^3*A - 3*a*A*b^2 + 3*a^2*b*B - b^3*B)*Hypergeometric2F1[1, (1 + m)/2, (3 + m)/2, -Tan[c + d*x]^2]*Tan[c + d*x]^(1 + m))/(d*(1 + m)) - (2*a^2*(3*a^2*A*b - A*b^3 - a^3*B + 3*a*b^2*B)*Hypergeometric2F1[1, (2 + m)/2, (4 + m)/2, -Tan [c + d*x]^2]*Tan[c + d*x]^(2 + m))/(d*(2 + m)))/(a^2 + b^2))/(a*(a^2 + b^2 )))/(2*a*(a^2 + b^2))
Time = 2.43 (sec) , antiderivative size = 464, normalized size of antiderivative = 1.06, number of steps used = 16, number of rules used = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.484, Rules used = {3042, 4092, 3042, 4132, 25, 3042, 4136, 27, 3042, 4021, 3042, 3957, 278, 4117, 74}
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 {\tan ^m(c+d x) (A+B \tan (c+d x))}{(a+b \tan (c+d x))^3} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\tan (c+d x)^m (A+B \tan (c+d x))}{(a+b \tan (c+d x))^3}dx\) |
\(\Big \downarrow \) 4092 |
\(\displaystyle \frac {\int \frac {\tan ^m(c+d x) \left (2 A a^2+b B (m+1) a-2 (A b-a B) \tan (c+d x) a+b (A b-a B) (1-m) \tan ^2(c+d x)+A b^2 (1-m)\right )}{(a+b \tan (c+d x))^2}dx}{2 a \left (a^2+b^2\right )}+\frac {b (A b-a B) \tan ^{m+1}(c+d x)}{2 a d \left (a^2+b^2\right ) (a+b \tan (c+d x))^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \frac {\tan (c+d x)^m \left (2 A a^2+b B (m+1) a-2 (A b-a B) \tan (c+d x) a+b (A b-a B) (1-m) \tan (c+d x)^2+A b^2 (1-m)\right )}{(a+b \tan (c+d x))^2}dx}{2 a \left (a^2+b^2\right )}+\frac {b (A b-a B) \tan ^{m+1}(c+d x)}{2 a d \left (a^2+b^2\right ) (a+b \tan (c+d x))^2}\) |
\(\Big \downarrow \) 4132 |
\(\displaystyle \frac {\frac {\int -\frac {\tan ^m(c+d x) \left (b (A b-a B) (3-m) (m+1) a^2+2 \left (-B a^2+2 A b a+b^2 B\right ) \tan (c+d x) a^2+b m \left (-B (3-m) a^3+A b (5-m) a^2+b^2 B (m+1) a+A b^3 (1-m)\right ) \tan ^2(c+d x)-\left (a^2-b^2 m\right ) \left (2 A a^2+b B (m+1) a+A b^2 (1-m)\right )\right )}{a+b \tan (c+d x)}dx}{a \left (a^2+b^2\right )}+\frac {b \left (a^3 (-B) (3-m)+a^2 A b (5-m)+a b^2 B (m+1)+A b^3 (1-m)\right ) \tan ^{m+1}(c+d x)}{a d \left (a^2+b^2\right ) (a+b \tan (c+d x))}}{2 a \left (a^2+b^2\right )}+\frac {b (A b-a B) \tan ^{m+1}(c+d x)}{2 a d \left (a^2+b^2\right ) (a+b \tan (c+d x))^2}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {\frac {b \left (a^3 (-B) (3-m)+a^2 A b (5-m)+a b^2 B (m+1)+A b^3 (1-m)\right ) \tan ^{m+1}(c+d x)}{a d \left (a^2+b^2\right ) (a+b \tan (c+d x))}-\frac {\int \frac {\tan ^m(c+d x) \left (b (A b-a B) (3-m) (m+1) a^2+2 \left (-B a^2+2 A b a+b^2 B\right ) \tan (c+d x) a^2+b m \left (-B (3-m) a^3+A b (5-m) a^2+b^2 B (m+1) a+A b^3 (1-m)\right ) \tan ^2(c+d x)-\left (a^2-b^2 m\right ) \left (2 A a^2+b B (m+1) a+A b^2 (1-m)\right )\right )}{a+b \tan (c+d x)}dx}{a \left (a^2+b^2\right )}}{2 a \left (a^2+b^2\right )}+\frac {b (A b-a B) \tan ^{m+1}(c+d x)}{2 a d \left (a^2+b^2\right ) (a+b \tan (c+d x))^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {b \left (a^3 (-B) (3-m)+a^2 A b (5-m)+a b^2 B (m+1)+A b^3 (1-m)\right ) \tan ^{m+1}(c+d x)}{a d \left (a^2+b^2\right ) (a+b \tan (c+d x))}-\frac {\int \frac {\tan (c+d x)^m \left (b (A b-a B) (3-m) (m+1) a^2+2 \left (-B a^2+2 A b a+b^2 B\right ) \tan (c+d x) a^2+b m \left (-B (3-m) a^3+A b (5-m) a^2+b^2 B (m+1) a+A b^3 (1-m)\right ) \tan (c+d x)^2-\left (a^2-b^2 m\right ) \left (2 A a^2+b B (m+1) a+A b^2 (1-m)\right )\right )}{a+b \tan (c+d x)}dx}{a \left (a^2+b^2\right )}}{2 a \left (a^2+b^2\right )}+\frac {b (A b-a B) \tan ^{m+1}(c+d x)}{2 a d \left (a^2+b^2\right ) (a+b \tan (c+d x))^2}\) |
\(\Big \downarrow \) 4136 |
\(\displaystyle \frac {\frac {b \left (a^3 (-B) (3-m)+a^2 A b (5-m)+a b^2 B (m+1)+A b^3 (1-m)\right ) \tan ^{m+1}(c+d x)}{a d \left (a^2+b^2\right ) (a+b \tan (c+d x))}-\frac {\frac {\int -2 \tan ^m(c+d x) \left (a^2 \left (A a^3+3 b B a^2-3 A b^2 a-b^3 B\right )-a^2 \left (-B a^3+3 A b a^2+3 b^2 B a-A b^3\right ) \tan (c+d x)\right )dx}{a^2+b^2}+\frac {b \left (a^5 B \left (m^2-3 m+2\right )-a^4 A b \left (m^2-5 m+6\right )-2 a^3 b^2 B \left (-m^2+m+3\right )+2 a^2 A b^3 \left (-m^2+3 m+1\right )+a b^4 B m (m+1)+A b^5 (1-m) m\right ) \int \frac {\tan ^m(c+d x) \left (\tan ^2(c+d x)+1\right )}{a+b \tan (c+d x)}dx}{a^2+b^2}}{a \left (a^2+b^2\right )}}{2 a \left (a^2+b^2\right )}+\frac {b (A b-a B) \tan ^{m+1}(c+d x)}{2 a d \left (a^2+b^2\right ) (a+b \tan (c+d x))^2}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {b \left (a^3 (-B) (3-m)+a^2 A b (5-m)+a b^2 B (m+1)+A b^3 (1-m)\right ) \tan ^{m+1}(c+d x)}{a d \left (a^2+b^2\right ) (a+b \tan (c+d x))}-\frac {\frac {b \left (a^5 B \left (m^2-3 m+2\right )-a^4 A b \left (m^2-5 m+6\right )-2 a^3 b^2 B \left (-m^2+m+3\right )+2 a^2 A b^3 \left (-m^2+3 m+1\right )+a b^4 B m (m+1)+A b^5 (1-m) m\right ) \int \frac {\tan ^m(c+d x) \left (\tan ^2(c+d x)+1\right )}{a+b \tan (c+d x)}dx}{a^2+b^2}-\frac {2 \int \tan ^m(c+d x) \left (a^2 \left (A a^3+3 b B a^2-3 A b^2 a-b^3 B\right )-a^2 \left (-B a^3+3 A b a^2+3 b^2 B a-A b^3\right ) \tan (c+d x)\right )dx}{a^2+b^2}}{a \left (a^2+b^2\right )}}{2 a \left (a^2+b^2\right )}+\frac {b (A b-a B) \tan ^{m+1}(c+d x)}{2 a d \left (a^2+b^2\right ) (a+b \tan (c+d x))^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {b \left (a^3 (-B) (3-m)+a^2 A b (5-m)+a b^2 B (m+1)+A b^3 (1-m)\right ) \tan ^{m+1}(c+d x)}{a d \left (a^2+b^2\right ) (a+b \tan (c+d x))}-\frac {\frac {b \left (a^5 B \left (m^2-3 m+2\right )-a^4 A b \left (m^2-5 m+6\right )-2 a^3 b^2 B \left (-m^2+m+3\right )+2 a^2 A b^3 \left (-m^2+3 m+1\right )+a b^4 B m (m+1)+A b^5 (1-m) m\right ) \int \frac {\tan (c+d x)^m \left (\tan (c+d x)^2+1\right )}{a+b \tan (c+d x)}dx}{a^2+b^2}-\frac {2 \int \tan (c+d x)^m \left (a^2 \left (A a^3+3 b B a^2-3 A b^2 a-b^3 B\right )-a^2 \left (-B a^3+3 A b a^2+3 b^2 B a-A b^3\right ) \tan (c+d x)\right )dx}{a^2+b^2}}{a \left (a^2+b^2\right )}}{2 a \left (a^2+b^2\right )}+\frac {b (A b-a B) \tan ^{m+1}(c+d x)}{2 a d \left (a^2+b^2\right ) (a+b \tan (c+d x))^2}\) |
\(\Big \downarrow \) 4021 |
\(\displaystyle \frac {\frac {b \left (a^3 (-B) (3-m)+a^2 A b (5-m)+a b^2 B (m+1)+A b^3 (1-m)\right ) \tan ^{m+1}(c+d x)}{a d \left (a^2+b^2\right ) (a+b \tan (c+d x))}-\frac {\frac {b \left (a^5 B \left (m^2-3 m+2\right )-a^4 A b \left (m^2-5 m+6\right )-2 a^3 b^2 B \left (-m^2+m+3\right )+2 a^2 A b^3 \left (-m^2+3 m+1\right )+a b^4 B m (m+1)+A b^5 (1-m) m\right ) \int \frac {\tan (c+d x)^m \left (\tan (c+d x)^2+1\right )}{a+b \tan (c+d x)}dx}{a^2+b^2}-\frac {2 \left (a^2 \left (a^3 A+3 a^2 b B-3 a A b^2-b^3 B\right ) \int \tan ^m(c+d x)dx-a^2 \left (a^3 (-B)+3 a^2 A b+3 a b^2 B-A b^3\right ) \int \tan ^{m+1}(c+d x)dx\right )}{a^2+b^2}}{a \left (a^2+b^2\right )}}{2 a \left (a^2+b^2\right )}+\frac {b (A b-a B) \tan ^{m+1}(c+d x)}{2 a d \left (a^2+b^2\right ) (a+b \tan (c+d x))^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {b \left (a^3 (-B) (3-m)+a^2 A b (5-m)+a b^2 B (m+1)+A b^3 (1-m)\right ) \tan ^{m+1}(c+d x)}{a d \left (a^2+b^2\right ) (a+b \tan (c+d x))}-\frac {\frac {b \left (a^5 B \left (m^2-3 m+2\right )-a^4 A b \left (m^2-5 m+6\right )-2 a^3 b^2 B \left (-m^2+m+3\right )+2 a^2 A b^3 \left (-m^2+3 m+1\right )+a b^4 B m (m+1)+A b^5 (1-m) m\right ) \int \frac {\tan (c+d x)^m \left (\tan (c+d x)^2+1\right )}{a+b \tan (c+d x)}dx}{a^2+b^2}-\frac {2 \left (a^2 \left (a^3 A+3 a^2 b B-3 a A b^2-b^3 B\right ) \int \tan (c+d x)^mdx-a^2 \left (a^3 (-B)+3 a^2 A b+3 a b^2 B-A b^3\right ) \int \tan (c+d x)^{m+1}dx\right )}{a^2+b^2}}{a \left (a^2+b^2\right )}}{2 a \left (a^2+b^2\right )}+\frac {b (A b-a B) \tan ^{m+1}(c+d x)}{2 a d \left (a^2+b^2\right ) (a+b \tan (c+d x))^2}\) |
\(\Big \downarrow \) 3957 |
\(\displaystyle \frac {\frac {b \left (a^3 (-B) (3-m)+a^2 A b (5-m)+a b^2 B (m+1)+A b^3 (1-m)\right ) \tan ^{m+1}(c+d x)}{a d \left (a^2+b^2\right ) (a+b \tan (c+d x))}-\frac {\frac {b \left (a^5 B \left (m^2-3 m+2\right )-a^4 A b \left (m^2-5 m+6\right )-2 a^3 b^2 B \left (-m^2+m+3\right )+2 a^2 A b^3 \left (-m^2+3 m+1\right )+a b^4 B m (m+1)+A b^5 (1-m) m\right ) \int \frac {\tan (c+d x)^m \left (\tan (c+d x)^2+1\right )}{a+b \tan (c+d x)}dx}{a^2+b^2}-\frac {2 \left (\frac {a^2 \left (a^3 A+3 a^2 b B-3 a A b^2-b^3 B\right ) \int \frac {\tan ^m(c+d x)}{\tan ^2(c+d x)+1}d\tan (c+d x)}{d}-\frac {a^2 \left (a^3 (-B)+3 a^2 A b+3 a b^2 B-A b^3\right ) \int \frac {\tan ^{m+1}(c+d x)}{\tan ^2(c+d x)+1}d\tan (c+d x)}{d}\right )}{a^2+b^2}}{a \left (a^2+b^2\right )}}{2 a \left (a^2+b^2\right )}+\frac {b (A b-a B) \tan ^{m+1}(c+d x)}{2 a d \left (a^2+b^2\right ) (a+b \tan (c+d x))^2}\) |
\(\Big \downarrow \) 278 |
\(\displaystyle \frac {\frac {b \left (a^3 (-B) (3-m)+a^2 A b (5-m)+a b^2 B (m+1)+A b^3 (1-m)\right ) \tan ^{m+1}(c+d x)}{a d \left (a^2+b^2\right ) (a+b \tan (c+d x))}-\frac {\frac {b \left (a^5 B \left (m^2-3 m+2\right )-a^4 A b \left (m^2-5 m+6\right )-2 a^3 b^2 B \left (-m^2+m+3\right )+2 a^2 A b^3 \left (-m^2+3 m+1\right )+a b^4 B m (m+1)+A b^5 (1-m) m\right ) \int \frac {\tan (c+d x)^m \left (\tan (c+d x)^2+1\right )}{a+b \tan (c+d x)}dx}{a^2+b^2}-\frac {2 \left (\frac {a^2 \left (a^3 A+3 a^2 b B-3 a A b^2-b^3 B\right ) \tan ^{m+1}(c+d x) \operatorname {Hypergeometric2F1}\left (1,\frac {m+1}{2},\frac {m+3}{2},-\tan ^2(c+d x)\right )}{d (m+1)}-\frac {a^2 \left (a^3 (-B)+3 a^2 A b+3 a b^2 B-A b^3\right ) \tan ^{m+2}(c+d x) \operatorname {Hypergeometric2F1}\left (1,\frac {m+2}{2},\frac {m+4}{2},-\tan ^2(c+d x)\right )}{d (m+2)}\right )}{a^2+b^2}}{a \left (a^2+b^2\right )}}{2 a \left (a^2+b^2\right )}+\frac {b (A b-a B) \tan ^{m+1}(c+d x)}{2 a d \left (a^2+b^2\right ) (a+b \tan (c+d x))^2}\) |
\(\Big \downarrow \) 4117 |
\(\displaystyle \frac {\frac {b \left (a^3 (-B) (3-m)+a^2 A b (5-m)+a b^2 B (m+1)+A b^3 (1-m)\right ) \tan ^{m+1}(c+d x)}{a d \left (a^2+b^2\right ) (a+b \tan (c+d x))}-\frac {\frac {b \left (a^5 B \left (m^2-3 m+2\right )-a^4 A b \left (m^2-5 m+6\right )-2 a^3 b^2 B \left (-m^2+m+3\right )+2 a^2 A b^3 \left (-m^2+3 m+1\right )+a b^4 B m (m+1)+A b^5 (1-m) m\right ) \int \frac {\tan ^m(c+d x)}{a+b \tan (c+d x)}d\tan (c+d x)}{d \left (a^2+b^2\right )}-\frac {2 \left (\frac {a^2 \left (a^3 A+3 a^2 b B-3 a A b^2-b^3 B\right ) \tan ^{m+1}(c+d x) \operatorname {Hypergeometric2F1}\left (1,\frac {m+1}{2},\frac {m+3}{2},-\tan ^2(c+d x)\right )}{d (m+1)}-\frac {a^2 \left (a^3 (-B)+3 a^2 A b+3 a b^2 B-A b^3\right ) \tan ^{m+2}(c+d x) \operatorname {Hypergeometric2F1}\left (1,\frac {m+2}{2},\frac {m+4}{2},-\tan ^2(c+d x)\right )}{d (m+2)}\right )}{a^2+b^2}}{a \left (a^2+b^2\right )}}{2 a \left (a^2+b^2\right )}+\frac {b (A b-a B) \tan ^{m+1}(c+d x)}{2 a d \left (a^2+b^2\right ) (a+b \tan (c+d x))^2}\) |
\(\Big \downarrow \) 74 |
\(\displaystyle \frac {b (A b-a B) \tan ^{m+1}(c+d x)}{2 a d \left (a^2+b^2\right ) (a+b \tan (c+d x))^2}+\frac {\frac {b \left (a^3 (-B) (3-m)+a^2 A b (5-m)+a b^2 B (m+1)+A b^3 (1-m)\right ) \tan ^{m+1}(c+d x)}{a d \left (a^2+b^2\right ) (a+b \tan (c+d x))}-\frac {\frac {b \left (a^5 B \left (m^2-3 m+2\right )-a^4 A b \left (m^2-5 m+6\right )-2 a^3 b^2 B \left (-m^2+m+3\right )+2 a^2 A b^3 \left (-m^2+3 m+1\right )+a b^4 B m (m+1)+A b^5 (1-m) m\right ) \tan ^{m+1}(c+d x) \operatorname {Hypergeometric2F1}\left (1,m+1,m+2,-\frac {b \tan (c+d x)}{a}\right )}{a d (m+1) \left (a^2+b^2\right )}-\frac {2 \left (\frac {a^2 \left (a^3 A+3 a^2 b B-3 a A b^2-b^3 B\right ) \tan ^{m+1}(c+d x) \operatorname {Hypergeometric2F1}\left (1,\frac {m+1}{2},\frac {m+3}{2},-\tan ^2(c+d x)\right )}{d (m+1)}-\frac {a^2 \left (a^3 (-B)+3 a^2 A b+3 a b^2 B-A b^3\right ) \tan ^{m+2}(c+d x) \operatorname {Hypergeometric2F1}\left (1,\frac {m+2}{2},\frac {m+4}{2},-\tan ^2(c+d x)\right )}{d (m+2)}\right )}{a^2+b^2}}{a \left (a^2+b^2\right )}}{2 a \left (a^2+b^2\right )}\) |
Input:
Int[(Tan[c + d*x]^m*(A + B*Tan[c + d*x]))/(a + b*Tan[c + d*x])^3,x]
Output:
(b*(A*b - a*B)*Tan[c + d*x]^(1 + m))/(2*a*(a^2 + b^2)*d*(a + b*Tan[c + d*x ])^2) + ((b*(A*b^3*(1 - m) - a^3*B*(3 - m) + a^2*A*b*(5 - m) + a*b^2*B*(1 + m))*Tan[c + d*x]^(1 + m))/(a*(a^2 + b^2)*d*(a + b*Tan[c + d*x])) - ((b*( A*b^5*(1 - m)*m + a*b^4*B*m*(1 + m) - 2*a^3*b^2*B*(3 + m - m^2) + 2*a^2*A* b^3*(1 + 3*m - m^2) - a^4*A*b*(6 - 5*m + m^2) + a^5*B*(2 - 3*m + m^2))*Hyp ergeometric2F1[1, 1 + m, 2 + m, -((b*Tan[c + d*x])/a)]*Tan[c + d*x]^(1 + m ))/(a*(a^2 + b^2)*d*(1 + m)) - (2*((a^2*(a^3*A - 3*a*A*b^2 + 3*a^2*b*B - b ^3*B)*Hypergeometric2F1[1, (1 + m)/2, (3 + m)/2, -Tan[c + d*x]^2]*Tan[c + d*x]^(1 + m))/(d*(1 + m)) - (a^2*(3*a^2*A*b - A*b^3 - a^3*B + 3*a*b^2*B)*H ypergeometric2F1[1, (2 + m)/2, (4 + m)/2, -Tan[c + d*x]^2]*Tan[c + d*x]^(2 + m))/(d*(2 + m))))/(a^2 + b^2))/(a*(a^2 + b^2)))/(2*a*(a^2 + b^2))
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[c^n*((b*x )^(m + 1)/(b*(m + 1)))*Hypergeometric2F1[-n, m + 1, m + 2, (-d)*(x/c)], x] /; FreeQ[{b, c, d, m, n}, x] && !IntegerQ[m] && (IntegerQ[n] || (GtQ[c, 0] && !(EqQ[n, -2^(-1)] && EqQ[c^2 - d^2, 0] && GtQ[-d/(b*c), 0])))
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[a^p*(( c*x)^(m + 1)/(c*(m + 1)))*Hypergeometric2F1[-p, (m + 1)/2, (m + 1)/2 + 1, ( -b)*(x^2/a)], x] /; FreeQ[{a, b, c, m, p}, x] && !IGtQ[p, 0] && (ILtQ[p, 0 ] || GtQ[a, 0])
Int[((b_.)*tan[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[b/d Subst[Int [x^n/(b^2 + x^2), x], x, b*Tan[c + d*x]], x] /; FreeQ[{b, c, d, n}, x] && !IntegerQ[n]
Int[((b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*tan[(e_.) + (f_.)*(x _)]), x_Symbol] :> Simp[c Int[(b*Tan[e + f*x])^m, x], x] + Simp[d/b Int [(b*Tan[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x] && NeQ[c^ 2 + d^2, 0] && !IntegerQ[2*m]
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*tan[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Si mp[b*(A*b - a*B)*(a + b*Tan[e + f*x])^(m + 1)*((c + d*Tan[e + f*x])^(n + 1) /(f*(m + 1)*(b*c - a*d)*(a^2 + b^2))), x] + Simp[1/((m + 1)*(b*c - a*d)*(a^ 2 + b^2)) Int[(a + b*Tan[e + f*x])^(m + 1)*(c + d*Tan[e + f*x])^n*Simp[b* B*(b*c*(m + 1) + a*d*(n + 1)) + A*(a*(b*c - a*d)*(m + 1) - b^2*d*(m + n + 2 )) - (A*b - a*B)*(b*c - a*d)*(m + 1)*Tan[e + f*x] - b*d*(A*b - a*B)*(m + n + 2)*Tan[e + f*x]^2, x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, n}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && NeQ[c^2 + d^2, 0] && LtQ[m, -1] && (IntegerQ[m] || IntegersQ[2*m, 2*n]) && !(ILtQ[n, -1] && ( !IntegerQ[m] || (EqQ[c, 0] && NeQ[a, 0])))
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_.)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)])^(n_.)*((A_) + (C_.)*tan[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[A/f Subst[Int[(a + b*x)^m*(c + d*x)^n, x], x, Tan[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, A, C, m, n}, x] && EqQ[A, C]
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)])^(n_)*((A_.) + (B_.)*tan[(e_.) + (f_.)*(x_)] + (C_.)*tan[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(A*b^2 - a*(b*B - a*C))*(a + b*Tan[e + f*x])^(m + 1)*((c + d*Tan[e + f*x])^(n + 1)/(f*(m + 1)*(b*c - a*d)*(a^2 + b^2))), x] + Simp[1/((m + 1)*(b*c - a*d)*(a^2 + b^2)) Int[(a + b*Tan[e + f*x])^(m + 1)*(c + d*Tan[e + f*x])^n*Simp[A*(a*(b*c - a*d)*(m + 1) - b^2*d* (m + n + 2)) + (b*B - a*C)*(b*c*(m + 1) + a*d*(n + 1)) - (m + 1)*(b*c - a*d )*(A*b - a*B - b*C)*Tan[e + f*x] - d*(A*b^2 - a*(b*B - a*C))*(m + n + 2)*Ta n[e + f*x]^2, x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C, n}, x] && NeQ [b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && NeQ[c^2 + d^2, 0] && LtQ[m, -1] && !(ILtQ[n, -1] && ( !IntegerQ[m] || (EqQ[c, 0] && NeQ[a, 0])))
Int[(((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)])^(n_)*((A_.) + (B_.)*tan[(e_.) + (f_.)*(x_)] + (C_.)*tan[(e_.) + (f_.)*(x_)]^2))/((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[1/(a^2 + b^2) Int[(c + d*Tan[e + f*x])^ n*Simp[b*B + a*(A - C) + (a*B - b*(A - C))*Tan[e + f*x], x], x], x] + Simp[ (A*b^2 - a*b*B + a^2*C)/(a^2 + b^2) Int[(c + d*Tan[e + f*x])^n*((1 + Tan[ e + f*x]^2)/(a + b*Tan[e + f*x])), x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C, n}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && NeQ[c^2 + d^2, 0] & & !GtQ[n, 0] && !LeQ[n, -1]
\[\int \frac {\tan \left (d x +c \right )^{m} \left (A +B \tan \left (d x +c \right )\right )}{\left (a +b \tan \left (d x +c \right )\right )^{3}}d x\]
Input:
int(tan(d*x+c)^m*(A+B*tan(d*x+c))/(a+b*tan(d*x+c))^3,x)
Output:
int(tan(d*x+c)^m*(A+B*tan(d*x+c))/(a+b*tan(d*x+c))^3,x)
\[ \int \frac {\tan ^m(c+d x) (A+B \tan (c+d x))}{(a+b \tan (c+d x))^3} \, dx=\int { \frac {{\left (B \tan \left (d x + c\right ) + A\right )} \tan \left (d x + c\right )^{m}}{{\left (b \tan \left (d x + c\right ) + a\right )}^{3}} \,d x } \] Input:
integrate(tan(d*x+c)^m*(A+B*tan(d*x+c))/(a+b*tan(d*x+c))^3,x, algorithm="f ricas")
Output:
integral((B*tan(d*x + c) + A)*tan(d*x + c)^m/(b^3*tan(d*x + c)^3 + 3*a*b^2 *tan(d*x + c)^2 + 3*a^2*b*tan(d*x + c) + a^3), x)
\[ \int \frac {\tan ^m(c+d x) (A+B \tan (c+d x))}{(a+b \tan (c+d x))^3} \, dx=\int \frac {\left (A + B \tan {\left (c + d x \right )}\right ) \tan ^{m}{\left (c + d x \right )}}{\left (a + b \tan {\left (c + d x \right )}\right )^{3}}\, dx \] Input:
integrate(tan(d*x+c)**m*(A+B*tan(d*x+c))/(a+b*tan(d*x+c))**3,x)
Output:
Integral((A + B*tan(c + d*x))*tan(c + d*x)**m/(a + b*tan(c + d*x))**3, x)
\[ \int \frac {\tan ^m(c+d x) (A+B \tan (c+d x))}{(a+b \tan (c+d x))^3} \, dx=\int { \frac {{\left (B \tan \left (d x + c\right ) + A\right )} \tan \left (d x + c\right )^{m}}{{\left (b \tan \left (d x + c\right ) + a\right )}^{3}} \,d x } \] Input:
integrate(tan(d*x+c)^m*(A+B*tan(d*x+c))/(a+b*tan(d*x+c))^3,x, algorithm="m axima")
Output:
integrate((B*tan(d*x + c) + A)*tan(d*x + c)^m/(b*tan(d*x + c) + a)^3, x)
Exception generated. \[ \int \frac {\tan ^m(c+d x) (A+B \tan (c+d x))}{(a+b \tan (c+d x))^3} \, dx=\text {Exception raised: RuntimeError} \] Input:
integrate(tan(d*x+c)^m*(A+B*tan(d*x+c))/(a+b*tan(d*x+c))^3,x, algorithm="g iac")
Output:
Exception raised: RuntimeError >> an error occurred running a Giac command :INPUT:sage2OUTPUT:Unable to divide, perhaps due to rounding error%%%{1,[0 ,1,0]%%%} / %%%{1,[0,0,3]%%%} Error: Bad Argument Value
Timed out. \[ \int \frac {\tan ^m(c+d x) (A+B \tan (c+d x))}{(a+b \tan (c+d x))^3} \, dx=\int \frac {{\mathrm {tan}\left (c+d\,x\right )}^m\,\left (A+B\,\mathrm {tan}\left (c+d\,x\right )\right )}{{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^3} \,d x \] Input:
int((tan(c + d*x)^m*(A + B*tan(c + d*x)))/(a + b*tan(c + d*x))^3,x)
Output:
int((tan(c + d*x)^m*(A + B*tan(c + d*x)))/(a + b*tan(c + d*x))^3, x)
\[ \int \frac {\tan ^m(c+d x) (A+B \tan (c+d x))}{(a+b \tan (c+d x))^3} \, dx=\left (\int \frac {\tan \left (d x +c \right )^{m}}{\tan \left (d x +c \right )^{2} b^{2} m -\tan \left (d x +c \right )^{2} b^{2}+2 \tan \left (d x +c \right ) a b m -2 \tan \left (d x +c \right ) a b +a^{2} m -a^{2}}d x \right ) \left (m -1\right ) \] Input:
int(tan(d*x+c)^m*(A+B*tan(d*x+c))/(a+b*tan(d*x+c))^3,x)
Output:
int(tan(c + d*x)**m/(tan(c + d*x)**2*b**2*m - tan(c + d*x)**2*b**2 + 2*tan (c + d*x)*a*b*m - 2*tan(c + d*x)*a*b + a**2*m - a**2),x)*(m - 1)