Integrand size = 21, antiderivative size = 89 \[ \int \frac {\sec ^4(c+d x)}{(a+a \sec (c+d x))^2} \, dx=-\frac {2 \text {arctanh}(\sin (c+d x))}{a^2 d}+\frac {4 \tan (c+d x)}{3 a^2 d}+\frac {2 \tan (c+d x)}{a^2 d (1+\sec (c+d x))}-\frac {\sec ^2(c+d x) \tan (c+d x)}{3 d (a+a \sec (c+d x))^2} \] Output:
-2*arctanh(sin(d*x+c))/a^2/d+4/3*tan(d*x+c)/a^2/d+2*tan(d*x+c)/a^2/d/(1+se c(d*x+c))-1/3*sec(d*x+c)^2*tan(d*x+c)/d/(a+a*sec(d*x+c))^2
Time = 0.31 (sec) , antiderivative size = 104, normalized size of antiderivative = 1.17 \[ \int \frac {\sec ^4(c+d x)}{(a+a \sec (c+d x))^2} \, dx=\frac {\cos \left (\frac {1}{2} (c+d x)\right ) \sec ^2(c+d x) \left (-24 \text {arctanh}(\sin (c+d x)) \cos ^3\left (\frac {1}{2} (c+d x)\right )+\sec (c+d x) \left (2 \sin \left (\frac {1}{2} (c+d x)\right )+9 \sin \left (\frac {3}{2} (c+d x)\right )+5 \sin \left (\frac {5}{2} (c+d x)\right )\right )\right )}{3 a^2 d (1+\sec (c+d x))^2} \] Input:
Integrate[Sec[c + d*x]^4/(a + a*Sec[c + d*x])^2,x]
Output:
(Cos[(c + d*x)/2]*Sec[c + d*x]^2*(-24*ArcTanh[Sin[c + d*x]]*Cos[(c + d*x)/ 2]^3 + Sec[c + d*x]*(2*Sin[(c + d*x)/2] + 9*Sin[(3*(c + d*x))/2] + 5*Sin[( 5*(c + d*x))/2])))/(3*a^2*d*(1 + Sec[c + d*x])^2)
Time = 0.68 (sec) , antiderivative size = 97, normalized size of antiderivative = 1.09, number of steps used = 13, number of rules used = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.571, Rules used = {3042, 4303, 27, 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 ^4(c+d x)}{(a \sec (c+d x)+a)^2} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^4}{\left (a \csc \left (c+d x+\frac {\pi }{2}\right )+a\right )^2}dx\) |
\(\Big \downarrow \) 4303 |
\(\displaystyle -\frac {\int \frac {2 \sec ^2(c+d x) (a-2 a \sec (c+d x))}{\sec (c+d x) a+a}dx}{3 a^2}-\frac {\tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {2 \int \frac {\sec ^2(c+d x) (a-2 a \sec (c+d x))}{\sec (c+d x) a+a}dx}{3 a^2}-\frac {\tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {2 \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^2 \left (a-2 a \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 {\tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\) |
\(\Big \downarrow \) 4496 |
\(\displaystyle -\frac {2 \left (-\frac {\int -\sec (c+d x) \left (3 a^2-2 a^2 \sec (c+d x)\right )dx}{a^2}-\frac {3 \tan (c+d x)}{d (\sec (c+d x)+1)}\right )}{3 a^2}-\frac {\tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {2 \left (\frac {\int \sec (c+d x) \left (3 a^2-2 a^2 \sec (c+d x)\right )dx}{a^2}-\frac {3 \tan (c+d x)}{d (\sec (c+d x)+1)}\right )}{3 a^2}-\frac {\tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {2 \left (\frac {\int \csc \left (c+d x+\frac {\pi }{2}\right ) \left (3 a^2-2 a^2 \csc \left (c+d x+\frac {\pi }{2}\right )\right )dx}{a^2}-\frac {3 \tan (c+d x)}{d (\sec (c+d x)+1)}\right )}{3 a^2}-\frac {\tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\) |
\(\Big \downarrow \) 4274 |
\(\displaystyle -\frac {2 \left (\frac {3 a^2 \int \sec (c+d x)dx-2 a^2 \int \sec ^2(c+d x)dx}{a^2}-\frac {3 \tan (c+d x)}{d (\sec (c+d x)+1)}\right )}{3 a^2}-\frac {\tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {2 \left (\frac {3 a^2 \int \csc \left (c+d x+\frac {\pi }{2}\right )dx-2 a^2 \int \csc \left (c+d x+\frac {\pi }{2}\right )^2dx}{a^2}-\frac {3 \tan (c+d x)}{d (\sec (c+d x)+1)}\right )}{3 a^2}-\frac {\tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\) |
\(\Big \downarrow \) 4254 |
\(\displaystyle -\frac {2 \left (\frac {\frac {2 a^2 \int 1d(-\tan (c+d x))}{d}+3 a^2 \int \csc \left (c+d x+\frac {\pi }{2}\right )dx}{a^2}-\frac {3 \tan (c+d x)}{d (\sec (c+d x)+1)}\right )}{3 a^2}-\frac {\tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle -\frac {2 \left (\frac {3 a^2 \int \csc \left (c+d x+\frac {\pi }{2}\right )dx-\frac {2 a^2 \tan (c+d x)}{d}}{a^2}-\frac {3 \tan (c+d x)}{d (\sec (c+d x)+1)}\right )}{3 a^2}-\frac {\tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\) |
\(\Big \downarrow \) 4257 |
\(\displaystyle -\frac {2 \left (\frac {\frac {3 a^2 \text {arctanh}(\sin (c+d x))}{d}-\frac {2 a^2 \tan (c+d x)}{d}}{a^2}-\frac {3 \tan (c+d x)}{d (\sec (c+d x)+1)}\right )}{3 a^2}-\frac {\tan (c+d x) \sec ^2(c+d x)}{3 d (a \sec (c+d x)+a)^2}\) |
Input:
Int[Sec[c + d*x]^4/(a + a*Sec[c + d*x])^2,x]
Output:
-1/3*(Sec[c + d*x]^2*Tan[c + d*x])/(d*(a + a*Sec[c + d*x])^2) - (2*((-3*Ta n[c + d*x])/(d*(1 + Sec[c + d*x])) + ((3*a^2*ArcTanh[Sin[c + d*x]])/d - (2 *a^2*Tan[c + d*x])/d)/a^2))/(3*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)]
Time = 0.45 (sec) , antiderivative size = 92, normalized size of antiderivative = 1.03
method | result | size |
derivativedivides | \(\frac {\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{3}+5 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {2}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1}-4 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )-\frac {2}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1}+4 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{2 d \,a^{2}}\) | \(92\) |
default | \(\frac {\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{3}+5 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {2}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1}-4 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )-\frac {2}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1}+4 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{2 d \,a^{2}}\) | \(92\) |
parallelrisch | \(\frac {6 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right ) \cos \left (d x +c \right )-6 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right ) \cos \left (d x +c \right )+7 \sec \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \left (\cos \left (d x +c \right )+\frac {5 \cos \left (2 d x +2 c \right )}{14}+\frac {4}{7}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{3 a^{2} d \cos \left (d x +c \right )}\) | \(99\) |
risch | \(\frac {4 i \left (3 \,{\mathrm e}^{4 i \left (d x +c \right )}+9 \,{\mathrm e}^{3 i \left (d x +c \right )}+11 \,{\mathrm e}^{2 i \left (d x +c \right )}+12 \,{\mathrm e}^{i \left (d x +c \right )}+5\right )}{3 d \,a^{2} \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )^{3} \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}-\frac {2 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{a^{2} d}+\frac {2 \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}{a^{2} d}\) | \(125\) |
norman | \(\frac {-\frac {9 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 a d}+\frac {34 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{3 a d}-\frac {9 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{a d}+\frac {2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}}{a d}+\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}}{6 a d}}{\left (-1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )^{3} a}+\frac {2 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{a^{2} d}-\frac {2 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{a^{2} d}\) | \(155\) |
Input:
int(sec(d*x+c)^4/(a+a*sec(d*x+c))^2,x,method=_RETURNVERBOSE)
Output:
1/2/d/a^2*(1/3*tan(1/2*d*x+1/2*c)^3+5*tan(1/2*d*x+1/2*c)-2/(tan(1/2*d*x+1/ 2*c)+1)-4*ln(tan(1/2*d*x+1/2*c)+1)-2/(tan(1/2*d*x+1/2*c)-1)+4*ln(tan(1/2*d *x+1/2*c)-1))
Time = 0.08 (sec) , antiderivative size = 146, normalized size of antiderivative = 1.64 \[ \int \frac {\sec ^4(c+d x)}{(a+a \sec (c+d x))^2} \, dx=-\frac {3 \, {\left (\cos \left (d x + c\right )^{3} + 2 \, \cos \left (d x + c\right )^{2} + \cos \left (d x + c\right )\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) - 3 \, {\left (\cos \left (d x + c\right )^{3} + 2 \, \cos \left (d x + c\right )^{2} + \cos \left (d x + c\right )\right )} \log \left (-\sin \left (d x + c\right ) + 1\right ) - {\left (10 \, \cos \left (d x + c\right )^{2} + 14 \, \cos \left (d x + c\right ) + 3\right )} \sin \left (d x + c\right )}{3 \, {\left (a^{2} d \cos \left (d x + c\right )^{3} + 2 \, a^{2} d \cos \left (d x + c\right )^{2} + a^{2} d \cos \left (d x + c\right )\right )}} \] Input:
integrate(sec(d*x+c)^4/(a+a*sec(d*x+c))^2,x, algorithm="fricas")
Output:
-1/3*(3*(cos(d*x + c)^3 + 2*cos(d*x + c)^2 + cos(d*x + c))*log(sin(d*x + c ) + 1) - 3*(cos(d*x + c)^3 + 2*cos(d*x + c)^2 + cos(d*x + c))*log(-sin(d*x + c) + 1) - (10*cos(d*x + c)^2 + 14*cos(d*x + c) + 3)*sin(d*x + c))/(a^2* d*cos(d*x + c)^3 + 2*a^2*d*cos(d*x + c)^2 + a^2*d*cos(d*x + c))
\[ \int \frac {\sec ^4(c+d x)}{(a+a \sec (c+d x))^2} \, dx=\frac {\int \frac {\sec ^{4}{\left (c + d x \right )}}{\sec ^{2}{\left (c + d x \right )} + 2 \sec {\left (c + d x \right )} + 1}\, dx}{a^{2}} \] Input:
integrate(sec(d*x+c)**4/(a+a*sec(d*x+c))**2,x)
Output:
Integral(sec(c + d*x)**4/(sec(c + d*x)**2 + 2*sec(c + d*x) + 1), x)/a**2
Time = 0.07 (sec) , antiderivative size = 145, normalized size of antiderivative = 1.63 \[ \int \frac {\sec ^4(c+d x)}{(a+a \sec (c+d x))^2} \, dx=\frac {\frac {\frac {15 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {\sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}}{a^{2}} - \frac {12 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}{a^{2}} + \frac {12 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - 1\right )}{a^{2}} + \frac {12 \, \sin \left (d x + c\right )}{{\left (a^{2} - \frac {a^{2} \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 )}}}{6 \, d} \] Input:
integrate(sec(d*x+c)^4/(a+a*sec(d*x+c))^2,x, algorithm="maxima")
Output:
1/6*((15*sin(d*x + c)/(cos(d*x + c) + 1) + sin(d*x + c)^3/(cos(d*x + c) + 1)^3)/a^2 - 12*log(sin(d*x + c)/(cos(d*x + c) + 1) + 1)/a^2 + 12*log(sin(d *x + c)/(cos(d*x + c) + 1) - 1)/a^2 + 12*sin(d*x + c)/((a^2 - a^2*sin(d*x + c)^2/(cos(d*x + c) + 1)^2)*(cos(d*x + c) + 1)))/d
Time = 0.16 (sec) , antiderivative size = 106, normalized size of antiderivative = 1.19 \[ \int \frac {\sec ^4(c+d x)}{(a+a \sec (c+d x))^2} \, dx=-\frac {\frac {12 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right )}{a^{2}} - \frac {12 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right )}{a^{2}} + \frac {12 \, \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^{2}} - \frac {a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 15 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{6}}}{6 \, d} \] Input:
integrate(sec(d*x+c)^4/(a+a*sec(d*x+c))^2,x, algorithm="giac")
Output:
-1/6*(12*log(abs(tan(1/2*d*x + 1/2*c) + 1))/a^2 - 12*log(abs(tan(1/2*d*x + 1/2*c) - 1))/a^2 + 12*tan(1/2*d*x + 1/2*c)/((tan(1/2*d*x + 1/2*c)^2 - 1)* a^2) - (a^4*tan(1/2*d*x + 1/2*c)^3 + 15*a^4*tan(1/2*d*x + 1/2*c))/a^6)/d
Time = 9.63 (sec) , antiderivative size = 92, normalized size of antiderivative = 1.03 \[ \int \frac {\sec ^4(c+d x)}{(a+a \sec (c+d x))^2} \, dx=\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{6\,a^2\,d}-\frac {4\,\mathrm {atanh}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{a^2\,d}-\frac {2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left (a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-a^2\right )}+\frac {5\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2\,a^2\,d} \] Input:
int(1/(cos(c + d*x)^4*(a + a/cos(c + d*x))^2),x)
Output:
tan(c/2 + (d*x)/2)^3/(6*a^2*d) - (4*atanh(tan(c/2 + (d*x)/2)))/(a^2*d) - ( 2*tan(c/2 + (d*x)/2))/(d*(a^2*tan(c/2 + (d*x)/2)^2 - a^2)) + (5*tan(c/2 + (d*x)/2))/(2*a^2*d)
Time = 0.18 (sec) , antiderivative size = 137, normalized size of antiderivative = 1.54 \[ \int \frac {\sec ^4(c+d x)}{(a+a \sec (c+d x))^2} \, dx=\frac {12 \,\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}-12 \,\mathrm {log}\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )-12 \,\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}+12 \,\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 )^{5}+14 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}-27 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{6 a^{2} d \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )} \] Input:
int(sec(d*x+c)^4/(a+a*sec(d*x+c))^2,x)
Output:
(12*log(tan((c + d*x)/2) - 1)*tan((c + d*x)/2)**2 - 12*log(tan((c + d*x)/2 ) - 1) - 12*log(tan((c + d*x)/2) + 1)*tan((c + d*x)/2)**2 + 12*log(tan((c + d*x)/2) + 1) + tan((c + d*x)/2)**5 + 14*tan((c + d*x)/2)**3 - 27*tan((c + d*x)/2))/(6*a**2*d*(tan((c + d*x)/2)**2 - 1))