Integrand size = 21, antiderivative size = 200 \[ \int \frac {\sec ^7(c+d x)}{(a+a \sec (c+d x))^5} \, dx=-\frac {5 \text {arctanh}(\sin (c+d x))}{a^5 d}+\frac {181 \tan (c+d x)}{63 a^5 d}-\frac {\sec ^5(c+d x) \tan (c+d x)}{9 d (a+a \sec (c+d x))^5}-\frac {5 \sec ^4(c+d x) \tan (c+d x)}{21 a d (a+a \sec (c+d x))^4}-\frac {29 \sec ^3(c+d x) \tan (c+d x)}{63 a^2 d (a+a \sec (c+d x))^3}-\frac {67 \sec ^2(c+d x) \tan (c+d x)}{63 a^3 d (a+a \sec (c+d x))^2}+\frac {5 \tan (c+d x)}{d \left (a^5+a^5 \sec (c+d x)\right )} \] Output:
-5*arctanh(sin(d*x+c))/a^5/d+181/63*tan(d*x+c)/a^5/d-1/9*sec(d*x+c)^5*tan( d*x+c)/d/(a+a*sec(d*x+c))^5-5/21*sec(d*x+c)^4*tan(d*x+c)/a/d/(a+a*sec(d*x+ c))^4-29/63*sec(d*x+c)^3*tan(d*x+c)/a^2/d/(a+a*sec(d*x+c))^3-67/63*sec(d*x +c)^2*tan(d*x+c)/a^3/d/(a+a*sec(d*x+c))^2+5*tan(d*x+c)/d/(a^5+a^5*sec(d*x+ c))
Leaf count is larger than twice the leaf count of optimal. \(401\) vs. \(2(200)=400\).
Time = 2.58 (sec) , antiderivative size = 401, normalized size of antiderivative = 2.00 \[ \int \frac {\sec ^7(c+d x)}{(a+a \sec (c+d x))^5} \, dx=\frac {\cos \left (\frac {1}{2} (c+d x)\right ) \sec ^5(c+d x) \left (322560 \cos ^9\left (\frac {1}{2} (c+d x)\right ) \left (\log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )\right )+\sec \left (\frac {c}{2}\right ) \sec (c) \sec (c+d x) \left (-33978 \sin \left (\frac {d x}{2}\right )+52002 \sin \left (\frac {3 d x}{2}\right )-56952 \sin \left (c-\frac {d x}{2}\right )+43722 \sin \left (c+\frac {d x}{2}\right )-47208 \sin \left (2 c+\frac {d x}{2}\right )-18144 \sin \left (c+\frac {3 d x}{2}\right )+41796 \sin \left (2 c+\frac {3 d x}{2}\right )-28350 \sin \left (3 c+\frac {3 d x}{2}\right )+34578 \sin \left (c+\frac {5 d x}{2}\right )-5691 \sin \left (2 c+\frac {5 d x}{2}\right )+28719 \sin \left (3 c+\frac {5 d x}{2}\right )-11550 \sin \left (4 c+\frac {5 d x}{2}\right )+15517 \sin \left (2 c+\frac {7 d x}{2}\right )-504 \sin \left (3 c+\frac {7 d x}{2}\right )+13186 \sin \left (4 c+\frac {7 d x}{2}\right )-2835 \sin \left (5 c+\frac {7 d x}{2}\right )+4149 \sin \left (3 c+\frac {9 d x}{2}\right )+252 \sin \left (4 c+\frac {9 d x}{2}\right )+3582 \sin \left (5 c+\frac {9 d x}{2}\right )-315 \sin \left (6 c+\frac {9 d x}{2}\right )+496 \sin \left (4 c+\frac {11 d x}{2}\right )+63 \sin \left (5 c+\frac {11 d x}{2}\right )+433 \sin \left (6 c+\frac {11 d x}{2}\right )\right )\right )}{2016 a^5 d (1+\sec (c+d x))^5} \] Input:
Integrate[Sec[c + d*x]^7/(a + a*Sec[c + d*x])^5,x]
Output:
(Cos[(c + d*x)/2]*Sec[c + d*x]^5*(322560*Cos[(c + d*x)/2]^9*(Log[Cos[(c + d*x)/2] - Sin[(c + d*x)/2]] - Log[Cos[(c + d*x)/2] + Sin[(c + d*x)/2]]) + Sec[c/2]*Sec[c]*Sec[c + d*x]*(-33978*Sin[(d*x)/2] + 52002*Sin[(3*d*x)/2] - 56952*Sin[c - (d*x)/2] + 43722*Sin[c + (d*x)/2] - 47208*Sin[2*c + (d*x)/2 ] - 18144*Sin[c + (3*d*x)/2] + 41796*Sin[2*c + (3*d*x)/2] - 28350*Sin[3*c + (3*d*x)/2] + 34578*Sin[c + (5*d*x)/2] - 5691*Sin[2*c + (5*d*x)/2] + 2871 9*Sin[3*c + (5*d*x)/2] - 11550*Sin[4*c + (5*d*x)/2] + 15517*Sin[2*c + (7*d *x)/2] - 504*Sin[3*c + (7*d*x)/2] + 13186*Sin[4*c + (7*d*x)/2] - 2835*Sin[ 5*c + (7*d*x)/2] + 4149*Sin[3*c + (9*d*x)/2] + 252*Sin[4*c + (9*d*x)/2] + 3582*Sin[5*c + (9*d*x)/2] - 315*Sin[6*c + (9*d*x)/2] + 496*Sin[4*c + (11*d *x)/2] + 63*Sin[5*c + (11*d*x)/2] + 433*Sin[6*c + (11*d*x)/2])))/(2016*a^5 *d*(1 + Sec[c + d*x])^5)
Time = 1.61 (sec) , antiderivative size = 232, normalized size of antiderivative = 1.16, number of steps used = 20, number of rules used = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.905, Rules used = {3042, 4303, 27, 3042, 4507, 3042, 4507, 27, 3042, 4507, 3042, 4496, 25, 3042, 4274, 3042, 4254, 24, 4257}
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 {\sec ^7(c+d x)}{(a \sec (c+d x)+a)^5} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^7}{\left (a \csc \left (c+d x+\frac {\pi }{2}\right )+a\right )^5}dx\) |
\(\Big \downarrow \) 4303 |
\(\displaystyle -\frac {\int \frac {5 \sec ^5(c+d x) (a-2 a \sec (c+d x))}{(\sec (c+d x) a+a)^4}dx}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {5 \int \frac {\sec ^5(c+d x) (a-2 a \sec (c+d x))}{(\sec (c+d x) a+a)^4}dx}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {5 \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^5 \left (a-2 a \csc \left (c+d x+\frac {\pi }{2}\right )\right )}{\left (\csc \left (c+d x+\frac {\pi }{2}\right ) a+a\right )^4}dx}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 4507 |
\(\displaystyle -\frac {5 \left (\frac {\int \frac {\sec ^4(c+d x) \left (12 a^2-17 a^2 \sec (c+d x)\right )}{(\sec (c+d x) a+a)^3}dx}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {5 \left (\frac {\int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^4 \left (12 a^2-17 a^2 \csc \left (c+d x+\frac {\pi }{2}\right )\right )}{\left (\csc \left (c+d x+\frac {\pi }{2}\right ) a+a\right )^3}dx}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 4507 |
\(\displaystyle -\frac {5 \left (\frac {\frac {\int \frac {3 \sec ^3(c+d x) \left (29 a^3-38 a^3 \sec (c+d x)\right )}{(\sec (c+d x) a+a)^2}dx}{5 a^2}+\frac {29 a^2 \tan (c+d x) \sec ^3(c+d x)}{5 d (a \sec (c+d x)+a)^3}}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {5 \left (\frac {\frac {3 \int \frac {\sec ^3(c+d x) \left (29 a^3-38 a^3 \sec (c+d x)\right )}{(\sec (c+d x) a+a)^2}dx}{5 a^2}+\frac {29 a^2 \tan (c+d x) \sec ^3(c+d x)}{5 d (a \sec (c+d x)+a)^3}}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {5 \left (\frac {\frac {3 \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^3 \left (29 a^3-38 a^3 \csc \left (c+d x+\frac {\pi }{2}\right )\right )}{\left (\csc \left (c+d x+\frac {\pi }{2}\right ) a+a\right )^2}dx}{5 a^2}+\frac {29 a^2 \tan (c+d x) \sec ^3(c+d x)}{5 d (a \sec (c+d x)+a)^3}}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 4507 |
\(\displaystyle -\frac {5 \left (\frac {\frac {3 \left (\frac {\int \frac {\sec ^2(c+d x) \left (134 a^4-181 a^4 \sec (c+d x)\right )}{\sec (c+d x) a+a}dx}{3 a^2}+\frac {67 a^3 \tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\right )}{5 a^2}+\frac {29 a^2 \tan (c+d x) \sec ^3(c+d x)}{5 d (a \sec (c+d x)+a)^3}}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {5 \left (\frac {\frac {3 \left (\frac {\int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^2 \left (134 a^4-181 a^4 \csc \left (c+d x+\frac {\pi }{2}\right )\right )}{\csc \left (c+d x+\frac {\pi }{2}\right ) a+a}dx}{3 a^2}+\frac {67 a^3 \tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\right )}{5 a^2}+\frac {29 a^2 \tan (c+d x) \sec ^3(c+d x)}{5 d (a \sec (c+d x)+a)^3}}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 4496 |
\(\displaystyle -\frac {5 \left (\frac {\frac {3 \left (\frac {-\frac {\int -\sec (c+d x) \left (315 a^5-181 a^5 \sec (c+d x)\right )dx}{a^2}-\frac {315 a^4 \tan (c+d x)}{d (a \sec (c+d x)+a)}}{3 a^2}+\frac {67 a^3 \tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\right )}{5 a^2}+\frac {29 a^2 \tan (c+d x) \sec ^3(c+d x)}{5 d (a \sec (c+d x)+a)^3}}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {5 \left (\frac {\frac {3 \left (\frac {\frac {\int \sec (c+d x) \left (315 a^5-181 a^5 \sec (c+d x)\right )dx}{a^2}-\frac {315 a^4 \tan (c+d x)}{d (a \sec (c+d x)+a)}}{3 a^2}+\frac {67 a^3 \tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\right )}{5 a^2}+\frac {29 a^2 \tan (c+d x) \sec ^3(c+d x)}{5 d (a \sec (c+d x)+a)^3}}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {5 \left (\frac {\frac {3 \left (\frac {\frac {\int \csc \left (c+d x+\frac {\pi }{2}\right ) \left (315 a^5-181 a^5 \csc \left (c+d x+\frac {\pi }{2}\right )\right )dx}{a^2}-\frac {315 a^4 \tan (c+d x)}{d (a \sec (c+d x)+a)}}{3 a^2}+\frac {67 a^3 \tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\right )}{5 a^2}+\frac {29 a^2 \tan (c+d x) \sec ^3(c+d x)}{5 d (a \sec (c+d x)+a)^3}}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 4274 |
\(\displaystyle -\frac {5 \left (\frac {\frac {3 \left (\frac {\frac {315 a^5 \int \sec (c+d x)dx-181 a^5 \int \sec ^2(c+d x)dx}{a^2}-\frac {315 a^4 \tan (c+d x)}{d (a \sec (c+d x)+a)}}{3 a^2}+\frac {67 a^3 \tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\right )}{5 a^2}+\frac {29 a^2 \tan (c+d x) \sec ^3(c+d x)}{5 d (a \sec (c+d x)+a)^3}}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {5 \left (\frac {\frac {3 \left (\frac {\frac {315 a^5 \int \csc \left (c+d x+\frac {\pi }{2}\right )dx-181 a^5 \int \csc \left (c+d x+\frac {\pi }{2}\right )^2dx}{a^2}-\frac {315 a^4 \tan (c+d x)}{d (a \sec (c+d x)+a)}}{3 a^2}+\frac {67 a^3 \tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\right )}{5 a^2}+\frac {29 a^2 \tan (c+d x) \sec ^3(c+d x)}{5 d (a \sec (c+d x)+a)^3}}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 4254 |
\(\displaystyle -\frac {5 \left (\frac {\frac {3 \left (\frac {\frac {\frac {181 a^5 \int 1d(-\tan (c+d x))}{d}+315 a^5 \int \csc \left (c+d x+\frac {\pi }{2}\right )dx}{a^2}-\frac {315 a^4 \tan (c+d x)}{d (a \sec (c+d x)+a)}}{3 a^2}+\frac {67 a^3 \tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\right )}{5 a^2}+\frac {29 a^2 \tan (c+d x) \sec ^3(c+d x)}{5 d (a \sec (c+d x)+a)^3}}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle -\frac {5 \left (\frac {\frac {3 \left (\frac {\frac {315 a^5 \int \csc \left (c+d x+\frac {\pi }{2}\right )dx-\frac {181 a^5 \tan (c+d x)}{d}}{a^2}-\frac {315 a^4 \tan (c+d x)}{d (a \sec (c+d x)+a)}}{3 a^2}+\frac {67 a^3 \tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\right )}{5 a^2}+\frac {29 a^2 \tan (c+d x) \sec ^3(c+d x)}{5 d (a \sec (c+d x)+a)^3}}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
\(\Big \downarrow \) 4257 |
\(\displaystyle -\frac {5 \left (\frac {\frac {29 a^2 \tan (c+d x) \sec ^3(c+d x)}{5 d (a \sec (c+d x)+a)^3}+\frac {3 \left (\frac {67 a^3 \tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}+\frac {\frac {\frac {315 a^5 \text {arctanh}(\sin (c+d x))}{d}-\frac {181 a^5 \tan (c+d x)}{d}}{a^2}-\frac {315 a^4 \tan (c+d x)}{d (a \sec (c+d x)+a)}}{3 a^2}\right )}{5 a^2}}{7 a^2}+\frac {3 a \tan (c+d x) \sec ^4(c+d x)}{7 d (a \sec (c+d x)+a)^4}\right )}{9 a^2}-\frac {\tan (c+d x) \sec ^5(c+d x)}{9 d (a \sec (c+d x)+a)^5}\) |
Input:
Int[Sec[c + d*x]^7/(a + a*Sec[c + d*x])^5,x]
Output:
-1/9*(Sec[c + d*x]^5*Tan[c + d*x])/(d*(a + a*Sec[c + d*x])^5) - (5*((3*a*S ec[c + d*x]^4*Tan[c + d*x])/(7*d*(a + a*Sec[c + d*x])^4) + ((29*a^2*Sec[c + d*x]^3*Tan[c + d*x])/(5*d*(a + a*Sec[c + d*x])^3) + (3*((67*a^3*Sec[c + d*x]^2*Tan[c + d*x])/(3*d*(a + a*Sec[c + d*x])^2) + ((-315*a^4*Tan[c + d*x ])/(d*(a + a*Sec[c + d*x])) + ((315*a^5*ArcTanh[Sin[c + d*x]])/d - (181*a^ 5*Tan[c + d*x])/d)/a^2)/(3*a^2)))/(5*a^2))/(7*a^2)))/(9*a^2)
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Simp[-d^(-1) Subst[Int[Exp andIntegrand[(1 + x^2)^(n/2 - 1), x], x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]
Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_.)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)), x_Symbol] :> Simp[a Int[(d*Csc[e + f*x])^n, x], x] + Simp[b/d In t[(d*Csc[e + f*x])^(n + 1), x], x] /; FreeQ[{a, b, d, e, f, n}, x]
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + ( a_))^(m_), x_Symbol] :> Simp[(-d^2)*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*((d *Csc[e + f*x])^(n - 2)/(f*(2*m + 1))), x] + Simp[d^2/(a*b*(2*m + 1)) Int[ (a + b*Csc[e + f*x])^(m + 1)*(d*Csc[e + f*x])^(n - 2)*(b*(n - 2) + a*(m - n + 2)*Csc[e + f*x]), x], x] /; FreeQ[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0] && LtQ[m, -1] && GtQ[n, 2] && (IntegersQ[2*m, 2*n] || IntegerQ[m])
Int[csc[(e_.) + (f_.)*(x_)]^2*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*( csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_)), x_Symbol] :> Simp[(-(A*b - a*B))*Cot [e + f*x]*((a + b*Csc[e + f*x])^m/(b*f*(2*m + 1))), x] + Simp[1/(b^2*(2*m + 1)) Int[Csc[e + f*x]*(a + b*Csc[e + f*x])^(m + 1)*Simp[A*b*m - a*B*m + b *B*(2*m + 1)*Csc[e + f*x], x], x], x] /; FreeQ[{a, b, e, f, A, B}, x] && Ne Q[A*b - a*B, 0] && EqQ[a^2 - b^2, 0] && LtQ[m, -2^(-1)]
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + ( a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_)), x_Symbol] :> Simp[d*(A*b - a*B)*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*((d*Csc[e + f*x])^(n - 1)/(a*f*( 2*m + 1))), x] - Simp[1/(a*b*(2*m + 1)) Int[(a + b*Csc[e + f*x])^(m + 1)* (d*Csc[e + f*x])^(n - 1)*Simp[A*(a*d*(n - 1)) - B*(b*d*(n - 1)) - d*(a*B*(m - n + 1) + A*b*(m + n))*Csc[e + f*x], x], x], x] /; FreeQ[{a, b, d, e, f, A, B}, x] && NeQ[A*b - a*B, 0] && EqQ[a^2 - b^2, 0] && LtQ[m, -2^(-1)] && G tQ[n, 0]
Time = 0.58 (sec) , antiderivative size = 131, normalized size of antiderivative = 0.66
method | result | size |
derivativedivides | \(\frac {\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}}{9}+\frac {8 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}}{7}+6 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}+24 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}+129 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {16}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1}-80 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )-\frac {16}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1}+80 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{16 d \,a^{5}}\) | \(131\) |
default | \(\frac {\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}}{9}+\frac {8 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}}{7}+6 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}+24 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}+129 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {16}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1}-80 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )-\frac {16}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1}+80 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{16 d \,a^{5}}\) | \(131\) |
parallelrisch | \(\frac {40320 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right ) \cos \left (d x +c \right )-40320 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right ) \cos \left (d x +c \right )+31846 \tan \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\cos \left (d x +c \right )+\frac {10010 \cos \left (2 d x +2 c \right )}{15923}+\frac {4253 \cos \left (3 d x +3 c \right )}{15923}+\frac {2165 \cos \left (4 d x +4 c \right )}{31846}+\frac {124 \cos \left (5 d x +5 c \right )}{15923}+\frac {18359}{31846}\right ) \sec \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}}{8064 d \,a^{5} \cos \left (d x +c \right )}\) | \(132\) |
risch | \(\frac {2 i \left (315 \,{\mathrm e}^{10 i \left (d x +c \right )}+2835 \,{\mathrm e}^{9 i \left (d x +c \right )}+11550 \,{\mathrm e}^{8 i \left (d x +c \right )}+28350 \,{\mathrm e}^{7 i \left (d x +c \right )}+47208 \,{\mathrm e}^{6 i \left (d x +c \right )}+56952 \,{\mathrm e}^{5 i \left (d x +c \right )}+52002 \,{\mathrm e}^{4 i \left (d x +c \right )}+34578 \,{\mathrm e}^{3 i \left (d x +c \right )}+15517 \,{\mathrm e}^{2 i \left (d x +c \right )}+4149 \,{\mathrm e}^{i \left (d x +c \right )}+496\right )}{63 d \,a^{5} \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )^{9} \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}+\frac {5 \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}{d \,a^{5}}-\frac {5 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{d \,a^{5}}\) | \(191\) |
Input:
int(sec(d*x+c)^7/(a+a*sec(d*x+c))^5,x,method=_RETURNVERBOSE)
Output:
1/16/d/a^5*(1/9*tan(1/2*d*x+1/2*c)^9+8/7*tan(1/2*d*x+1/2*c)^7+6*tan(1/2*d* x+1/2*c)^5+24*tan(1/2*d*x+1/2*c)^3+129*tan(1/2*d*x+1/2*c)-16/(tan(1/2*d*x+ 1/2*c)+1)-80*ln(tan(1/2*d*x+1/2*c)+1)-16/(tan(1/2*d*x+1/2*c)-1)+80*ln(tan( 1/2*d*x+1/2*c)-1))
Time = 0.09 (sec) , antiderivative size = 278, normalized size of antiderivative = 1.39 \[ \int \frac {\sec ^7(c+d x)}{(a+a \sec (c+d x))^5} \, dx=-\frac {315 \, {\left (\cos \left (d x + c\right )^{6} + 5 \, \cos \left (d x + c\right )^{5} + 10 \, \cos \left (d x + c\right )^{4} + 10 \, \cos \left (d x + c\right )^{3} + 5 \, \cos \left (d x + c\right )^{2} + \cos \left (d x + c\right )\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) - 315 \, {\left (\cos \left (d x + c\right )^{6} + 5 \, \cos \left (d x + c\right )^{5} + 10 \, \cos \left (d x + c\right )^{4} + 10 \, \cos \left (d x + c\right )^{3} + 5 \, \cos \left (d x + c\right )^{2} + \cos \left (d x + c\right )\right )} \log \left (-\sin \left (d x + c\right ) + 1\right ) - 2 \, {\left (496 \, \cos \left (d x + c\right )^{5} + 2165 \, \cos \left (d x + c\right )^{4} + 3633 \, \cos \left (d x + c\right )^{3} + 2840 \, \cos \left (d x + c\right )^{2} + 946 \, \cos \left (d x + c\right ) + 63\right )} \sin \left (d x + c\right )}{126 \, {\left (a^{5} d \cos \left (d x + c\right )^{6} + 5 \, a^{5} d \cos \left (d x + c\right )^{5} + 10 \, a^{5} d \cos \left (d x + c\right )^{4} + 10 \, a^{5} d \cos \left (d x + c\right )^{3} + 5 \, a^{5} d \cos \left (d x + c\right )^{2} + a^{5} d \cos \left (d x + c\right )\right )}} \] Input:
integrate(sec(d*x+c)^7/(a+a*sec(d*x+c))^5,x, algorithm="fricas")
Output:
-1/126*(315*(cos(d*x + c)^6 + 5*cos(d*x + c)^5 + 10*cos(d*x + c)^4 + 10*co s(d*x + c)^3 + 5*cos(d*x + c)^2 + cos(d*x + c))*log(sin(d*x + c) + 1) - 31 5*(cos(d*x + c)^6 + 5*cos(d*x + c)^5 + 10*cos(d*x + c)^4 + 10*cos(d*x + c) ^3 + 5*cos(d*x + c)^2 + cos(d*x + c))*log(-sin(d*x + c) + 1) - 2*(496*cos( d*x + c)^5 + 2165*cos(d*x + c)^4 + 3633*cos(d*x + c)^3 + 2840*cos(d*x + c) ^2 + 946*cos(d*x + c) + 63)*sin(d*x + c))/(a^5*d*cos(d*x + c)^6 + 5*a^5*d* cos(d*x + c)^5 + 10*a^5*d*cos(d*x + c)^4 + 10*a^5*d*cos(d*x + c)^3 + 5*a^5 *d*cos(d*x + c)^2 + a^5*d*cos(d*x + c))
\[ \int \frac {\sec ^7(c+d x)}{(a+a \sec (c+d x))^5} \, dx=\frac {\int \frac {\sec ^{7}{\left (c + d x \right )}}{\sec ^{5}{\left (c + d x \right )} + 5 \sec ^{4}{\left (c + d x \right )} + 10 \sec ^{3}{\left (c + d x \right )} + 10 \sec ^{2}{\left (c + d x \right )} + 5 \sec {\left (c + d x \right )} + 1}\, dx}{a^{5}} \] Input:
integrate(sec(d*x+c)**7/(a+a*sec(d*x+c))**5,x)
Output:
Integral(sec(c + d*x)**7/(sec(c + d*x)**5 + 5*sec(c + d*x)**4 + 10*sec(c + d*x)**3 + 10*sec(c + d*x)**2 + 5*sec(c + d*x) + 1), x)/a**5
Time = 0.04 (sec) , antiderivative size = 206, normalized size of antiderivative = 1.03 \[ \int \frac {\sec ^7(c+d x)}{(a+a \sec (c+d x))^5} \, dx=\frac {\frac {2016 \, \sin \left (d x + c\right )}{{\left (a^{5} - \frac {a^{5} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}\right )} {\left (\cos \left (d x + c\right ) + 1\right )}} + \frac {\frac {8127 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {1512 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {378 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} + \frac {72 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} + \frac {7 \, \sin \left (d x + c\right )^{9}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{9}}}{a^{5}} - \frac {5040 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}{a^{5}} + \frac {5040 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - 1\right )}{a^{5}}}{1008 \, d} \] Input:
integrate(sec(d*x+c)^7/(a+a*sec(d*x+c))^5,x, algorithm="maxima")
Output:
1/1008*(2016*sin(d*x + c)/((a^5 - a^5*sin(d*x + c)^2/(cos(d*x + c) + 1)^2) *(cos(d*x + c) + 1)) + (8127*sin(d*x + c)/(cos(d*x + c) + 1) + 1512*sin(d* x + c)^3/(cos(d*x + c) + 1)^3 + 378*sin(d*x + c)^5/(cos(d*x + c) + 1)^5 + 72*sin(d*x + c)^7/(cos(d*x + c) + 1)^7 + 7*sin(d*x + c)^9/(cos(d*x + c) + 1)^9)/a^5 - 5040*log(sin(d*x + c)/(cos(d*x + c) + 1) + 1)/a^5 + 5040*log(s in(d*x + c)/(cos(d*x + c) + 1) - 1)/a^5)/d
Time = 0.25 (sec) , antiderivative size = 155, normalized size of antiderivative = 0.78 \[ \int \frac {\sec ^7(c+d x)}{(a+a \sec (c+d x))^5} \, dx=-\frac {\frac {5040 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right )}{a^{5}} - \frac {5040 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right )}{a^{5}} + \frac {2016 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )} a^{5}} - \frac {7 \, a^{40} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 72 \, a^{40} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 378 \, a^{40} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 1512 \, a^{40} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 8127 \, a^{40} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{45}}}{1008 \, d} \] Input:
integrate(sec(d*x+c)^7/(a+a*sec(d*x+c))^5,x, algorithm="giac")
Output:
-1/1008*(5040*log(abs(tan(1/2*d*x + 1/2*c) + 1))/a^5 - 5040*log(abs(tan(1/ 2*d*x + 1/2*c) - 1))/a^5 + 2016*tan(1/2*d*x + 1/2*c)/((tan(1/2*d*x + 1/2*c )^2 - 1)*a^5) - (7*a^40*tan(1/2*d*x + 1/2*c)^9 + 72*a^40*tan(1/2*d*x + 1/2 *c)^7 + 378*a^40*tan(1/2*d*x + 1/2*c)^5 + 1512*a^40*tan(1/2*d*x + 1/2*c)^3 + 8127*a^40*tan(1/2*d*x + 1/2*c))/a^45)/d
Time = 9.31 (sec) , antiderivative size = 149, normalized size of antiderivative = 0.74 \[ \int \frac {\sec ^7(c+d x)}{(a+a \sec (c+d x))^5} \, dx=\frac {3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{2\,a^5\,d}+\frac {3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{8\,a^5\,d}+\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7}{14\,a^5\,d}+\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9}{144\,a^5\,d}-\frac {10\,\mathrm {atanh}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{a^5\,d}-\frac {2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left (a^5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-a^5\right )}+\frac {129\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{16\,a^5\,d} \] Input:
int(1/(cos(c + d*x)^7*(a + a/cos(c + d*x))^5),x)
Output:
(3*tan(c/2 + (d*x)/2)^3)/(2*a^5*d) + (3*tan(c/2 + (d*x)/2)^5)/(8*a^5*d) + tan(c/2 + (d*x)/2)^7/(14*a^5*d) + tan(c/2 + (d*x)/2)^9/(144*a^5*d) - (10*a tanh(tan(c/2 + (d*x)/2)))/(a^5*d) - (2*tan(c/2 + (d*x)/2))/(d*(a^5*tan(c/2 + (d*x)/2)^2 - a^5)) + (129*tan(c/2 + (d*x)/2))/(16*a^5*d)
Time = 0.18 (sec) , antiderivative size = 178, normalized size of antiderivative = 0.89 \[ \int \frac {\sec ^7(c+d x)}{(a+a \sec (c+d x))^5} \, dx=\frac {5040 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-5040 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )-5040 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+5040 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )+7 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{11}+65 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}+306 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}+1134 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}+6615 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}-10143 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{1008 a^{5} d \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )} \] Input:
int(sec(d*x+c)^7/(a+a*sec(d*x+c))^5,x)
Output:
(5040*log(tan((c + d*x)/2) - 1)*tan((c + d*x)/2)**2 - 5040*log(tan((c + d* x)/2) - 1) - 5040*log(tan((c + d*x)/2) + 1)*tan((c + d*x)/2)**2 + 5040*log (tan((c + d*x)/2) + 1) + 7*tan((c + d*x)/2)**11 + 65*tan((c + d*x)/2)**9 + 306*tan((c + d*x)/2)**7 + 1134*tan((c + d*x)/2)**5 + 6615*tan((c + d*x)/2 )**3 - 10143*tan((c + d*x)/2))/(1008*a**5*d*(tan((c + d*x)/2)**2 - 1))