Integrand size = 29, antiderivative size = 147 \[ \int \csc ^2(c+d x) \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {3 \left (5 a^2+b^2\right ) \text {arctanh}(\sin (c+d x))}{8 d}-\frac {a^2 \csc (c+d x)}{d}-\frac {2 a b \log (\cos (c+d x))}{d}+\frac {2 a b \log (\sin (c+d x))}{d}+\frac {a b \sec ^2(c+d x)}{d}+\frac {b \sec ^4(c+d x) \left (2 a+\frac {\left (a^2+b^2\right ) \sin (c+d x)}{b}\right )}{4 d}+\frac {\left (7 a^2+3 b^2\right ) \sec (c+d x) \tan (c+d x)}{8 d} \] Output:
3/8*(5*a^2+b^2)*arctanh(sin(d*x+c))/d-a^2*csc(d*x+c)/d-2*a*b*ln(cos(d*x+c) )/d+2*a*b*ln(sin(d*x+c))/d+a*b*sec(d*x+c)^2/d+1/4*b*sec(d*x+c)^4*(2*a+(a^2 +b^2)*sin(d*x+c)/b)/d+1/8*(7*a^2+3*b^2)*sec(d*x+c)*tan(d*x+c)/d
Time = 2.90 (sec) , antiderivative size = 162, normalized size of antiderivative = 1.10 \[ \int \csc ^2(c+d x) \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx=-\frac {16 a^2 \csc (c+d x)+\left (15 a^2+16 a b+3 b^2\right ) \log (1-\sin (c+d x))-32 a b \log (\sin (c+d x))-\left (15 a^2-16 a b+3 b^2\right ) \log (1+\sin (c+d x))-\frac {(a+b)^2}{(-1+\sin (c+d x))^2}+\frac {(a+b) (7 a+3 b)}{-1+\sin (c+d x)}+\frac {(a-b)^2}{(1+\sin (c+d x))^2}+\frac {(7 a-3 b) (a-b)}{1+\sin (c+d x)}}{16 d} \] Input:
Integrate[Csc[c + d*x]^2*Sec[c + d*x]^5*(a + b*Sin[c + d*x])^2,x]
Output:
-1/16*(16*a^2*Csc[c + d*x] + (15*a^2 + 16*a*b + 3*b^2)*Log[1 - Sin[c + d*x ]] - 32*a*b*Log[Sin[c + d*x]] - (15*a^2 - 16*a*b + 3*b^2)*Log[1 + Sin[c + d*x]] - (a + b)^2/(-1 + Sin[c + d*x])^2 + ((a + b)*(7*a + 3*b))/(-1 + Sin[ c + d*x]) + (a - b)^2/(1 + Sin[c + d*x])^2 + ((7*a - 3*b)*(a - b))/(1 + Si n[c + d*x]))/d
Time = 0.63 (sec) , antiderivative size = 215, normalized size of antiderivative = 1.46, number of steps used = 10, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.310, Rules used = {3042, 3316, 27, 532, 25, 2336, 25, 2333, 2009}
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 \csc ^2(c+d x) \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {(a+b \sin (c+d x))^2}{\sin (c+d x)^2 \cos (c+d x)^5}dx\) |
\(\Big \downarrow \) 3316 |
\(\displaystyle \frac {b^5 \int \frac {\csc ^2(c+d x) (a+b \sin (c+d x))^2}{\left (b^2-b^2 \sin ^2(c+d x)\right )^3}d(b \sin (c+d x))}{d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {b^7 \int \frac {\csc ^2(c+d x) (a+b \sin (c+d x))^2}{b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )^3}d(b \sin (c+d x))}{d}\) |
\(\Big \downarrow \) 532 |
\(\displaystyle \frac {b^7 \left (\frac {b \left (\frac {a^2}{b^2}+1\right ) \sin (c+d x)+2 a}{4 b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )^2}-\frac {\int -\frac {\csc ^2(c+d x) \left (4 a^2+8 b \sin (c+d x) a+3 \left (\frac {a^2}{b^2}+1\right ) b^2 \sin ^2(c+d x)\right )}{b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )^2}d(b \sin (c+d x))}{4 b^2}\right )}{d}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {b^7 \left (\frac {\int \frac {\csc ^2(c+d x) \left (4 a^2+8 b \sin (c+d x) a+3 \left (\frac {a^2}{b^2}+1\right ) b^2 \sin ^2(c+d x)\right )}{b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )^2}d(b \sin (c+d x))}{4 b^2}+\frac {b \left (\frac {a^2}{b^2}+1\right ) \sin (c+d x)+2 a}{4 b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )^2}\right )}{d}\) |
\(\Big \downarrow \) 2336 |
\(\displaystyle \frac {b^7 \left (\frac {\frac {b \left (\frac {7 a^2}{b^2}+3\right ) \sin (c+d x)+8 a}{2 b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )}-\frac {\int -\frac {\csc ^2(c+d x) \left (8 a^2+16 b \sin (c+d x) a+\left (\frac {7 a^2}{b^2}+3\right ) b^2 \sin ^2(c+d x)\right )}{b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )}d(b \sin (c+d x))}{2 b^2}}{4 b^2}+\frac {b \left (\frac {a^2}{b^2}+1\right ) \sin (c+d x)+2 a}{4 b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )^2}\right )}{d}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {b^7 \left (\frac {\frac {\int \frac {\csc ^2(c+d x) \left (8 a^2+16 b \sin (c+d x) a+\left (\frac {7 a^2}{b^2}+3\right ) b^2 \sin ^2(c+d x)\right )}{b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )}d(b \sin (c+d x))}{2 b^2}+\frac {b \left (\frac {7 a^2}{b^2}+3\right ) \sin (c+d x)+8 a}{2 b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )}}{4 b^2}+\frac {b \left (\frac {a^2}{b^2}+1\right ) \sin (c+d x)+2 a}{4 b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )^2}\right )}{d}\) |
\(\Big \downarrow \) 2333 |
\(\displaystyle \frac {b^7 \left (\frac {\frac {\int \left (\frac {8 a^2 \csc ^2(c+d x)}{b^4}+\frac {16 a \csc (c+d x)}{b^3}+\frac {15 a^2+16 b a+3 b^2}{2 b^3 (b-b \sin (c+d x))}+\frac {15 a^2-16 b a+3 b^2}{2 b^3 (\sin (c+d x) b+b)}\right )d(b \sin (c+d x))}{2 b^2}+\frac {b \left (\frac {7 a^2}{b^2}+3\right ) \sin (c+d x)+8 a}{2 b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )}}{4 b^2}+\frac {b \left (\frac {a^2}{b^2}+1\right ) \sin (c+d x)+2 a}{4 b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )^2}\right )}{d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {b^7 \left (\frac {b \left (\frac {a^2}{b^2}+1\right ) \sin (c+d x)+2 a}{4 b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )^2}+\frac {\frac {b \left (\frac {7 a^2}{b^2}+3\right ) \sin (c+d x)+8 a}{2 b^2 \left (b^2-b^2 \sin ^2(c+d x)\right )}+\frac {-\frac {8 a^2 \csc (c+d x)}{b^3}-\frac {\left (15 a^2+16 a b+3 b^2\right ) \log (b-b \sin (c+d x))}{2 b^3}+\frac {\left (15 a^2-16 a b+3 b^2\right ) \log (b \sin (c+d x)+b)}{2 b^3}+\frac {16 a \log (b \sin (c+d x))}{b^2}}{2 b^2}}{4 b^2}\right )}{d}\) |
Input:
Int[Csc[c + d*x]^2*Sec[c + d*x]^5*(a + b*Sin[c + d*x])^2,x]
Output:
(b^7*((2*a + (1 + a^2/b^2)*b*Sin[c + d*x])/(4*b^2*(b^2 - b^2*Sin[c + d*x]^ 2)^2) + (((-8*a^2*Csc[c + d*x])/b^3 + (16*a*Log[b*Sin[c + d*x]])/b^2 - ((1 5*a^2 + 16*a*b + 3*b^2)*Log[b - b*Sin[c + d*x]])/(2*b^3) + ((15*a^2 - 16*a *b + 3*b^2)*Log[b + b*Sin[c + d*x]])/(2*b^3))/(2*b^2) + (8*a + (3 + (7*a^2 )/b^2)*b*Sin[c + d*x])/(2*b^2*(b^2 - b^2*Sin[c + d*x]^2)))/(4*b^2)))/d
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[(x_)^(m_)*((c_) + (d_.)*(x_))^(n_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbo l] :> With[{Qx = PolynomialQuotient[x^m*(c + d*x)^n, a + b*x^2, x], e = Coe ff[PolynomialRemainder[x^m*(c + d*x)^n, a + b*x^2, x], x, 0], f = Coeff[Pol ynomialRemainder[x^m*(c + d*x)^n, a + b*x^2, x], x, 1]}, Simp[(a*f - b*e*x) *((a + b*x^2)^(p + 1)/(2*a*b*(p + 1))), x] + Simp[1/(2*a*(p + 1)) Int[x^m *(a + b*x^2)^(p + 1)*ExpandToSum[2*a*(p + 1)*(Qx/x^m) + e*((2*p + 3)/x^m), x], x], x]] /; FreeQ[{a, b, c, d}, x] && IGtQ[n, 0] && ILtQ[m, 0] && LtQ[p, -1] && IntegerQ[2*p]
Int[(Pq_)*((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ ExpandIntegrand[(c*x)^m*Pq*(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, m}, x] && PolyQ[Pq, x] && IGtQ[p, -2]
Int[(Pq_)*((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> With[ {Q = PolynomialQuotient[(c*x)^m*Pq, a + b*x^2, x], f = Coeff[PolynomialRema inder[(c*x)^m*Pq, a + b*x^2, x], x, 0], g = Coeff[PolynomialRemainder[(c*x) ^m*Pq, a + b*x^2, x], x, 1]}, Simp[(a*g - b*f*x)*((a + b*x^2)^(p + 1)/(2*a* b*(p + 1))), x] + Simp[1/(2*a*(p + 1)) Int[(c*x)^m*(a + b*x^2)^(p + 1)*Ex pandToSum[(2*a*(p + 1)*Q)/(c*x)^m + (f*(2*p + 3))/(c*x)^m, x], x], x]] /; F reeQ[{a, b, c}, x] && PolyQ[Pq, x] && LtQ[p, -1] && ILtQ[m, 0]
Int[cos[(e_.) + (f_.)*(x_)]^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_ .)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Simp[1/(b^p* f) Subst[Int[(a + x)^m*(c + (d/b)*x)^n*(b^2 - x^2)^((p - 1)/2), x], x, b* Sin[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IntegerQ[(p - 1) /2] && NeQ[a^2 - b^2, 0]
Time = 1.99 (sec) , antiderivative size = 153, normalized size of antiderivative = 1.04
method | result | size |
derivativedivides | \(\frac {a^{2} \left (\frac {1}{4 \sin \left (d x +c \right ) \cos \left (d x +c \right )^{4}}+\frac {5}{8 \sin \left (d x +c \right ) \cos \left (d x +c \right )^{2}}-\frac {15}{8 \sin \left (d x +c \right )}+\frac {15 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )+2 a b \left (\frac {1}{4 \cos \left (d x +c \right )^{4}}+\frac {1}{2 \cos \left (d x +c \right )^{2}}+\ln \left (\tan \left (d x +c \right )\right )\right )+b^{2} \left (-\left (-\frac {\sec \left (d x +c \right )^{3}}{4}-\frac {3 \sec \left (d x +c \right )}{8}\right ) \tan \left (d x +c \right )+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )}{d}\) | \(153\) |
default | \(\frac {a^{2} \left (\frac {1}{4 \sin \left (d x +c \right ) \cos \left (d x +c \right )^{4}}+\frac {5}{8 \sin \left (d x +c \right ) \cos \left (d x +c \right )^{2}}-\frac {15}{8 \sin \left (d x +c \right )}+\frac {15 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )+2 a b \left (\frac {1}{4 \cos \left (d x +c \right )^{4}}+\frac {1}{2 \cos \left (d x +c \right )^{2}}+\ln \left (\tan \left (d x +c \right )\right )\right )+b^{2} \left (-\left (-\frac {\sec \left (d x +c \right )^{3}}{4}-\frac {3 \sec \left (d x +c \right )}{8}\right ) \tan \left (d x +c \right )+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )}{d}\) | \(153\) |
parallelrisch | \(\frac {-15 \left (\frac {3}{4}+\frac {\cos \left (4 d x +4 c \right )}{4}+\cos \left (2 d x +2 c \right )\right ) \left (a^{2}+\frac {16}{15} a b +\frac {1}{5} b^{2}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )+15 \left (a^{2}-\frac {16}{15} a b +\frac {1}{5} b^{2}\right ) \left (\frac {3}{4}+\frac {\cos \left (4 d x +4 c \right )}{4}+\cos \left (2 d x +2 c \right )\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )+16 \left (\frac {3}{4}+\frac {\cos \left (4 d x +4 c \right )}{4}+\cos \left (2 d x +2 c \right )\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) a b -5 \sec \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\cos \left (2 d x +2 c \right )+\frac {3 \cos \left (4 d x +4 c \right )}{8}+\frac {9}{40}\right ) a^{2} \csc \left (\frac {d x}{2}+\frac {c}{2}\right )-4 b \left (a \cos \left (2 d x +2 c \right )+\frac {3 a \cos \left (4 d x +4 c \right )}{4}-\frac {11 b \sin \left (d x +c \right )}{8}-\frac {3 b \sin \left (3 d x +3 c \right )}{8}-\frac {7 a}{4}\right )}{2 d \left (\cos \left (4 d x +4 c \right )+4 \cos \left (2 d x +2 c \right )+3\right )}\) | \(261\) |
norman | \(\frac {\frac {8 a b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{d}+\frac {8 a b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}}{d}-\frac {a^{2}}{2 d}-\frac {a^{2} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{14}}{2 d}+\frac {7 b^{2} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}}{2 d}+\frac {7 b^{2} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}}{2 d}+\frac {\left (11 a^{2}+5 b^{2}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{4 d}+\frac {\left (11 a^{2}+5 b^{2}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{12}}{4 d}+\frac {\left (23 a^{2}+13 b^{2}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}{4 d}+\frac {\left (23 a^{2}+13 b^{2}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{10}}{4 d}+\frac {8 a b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{d}+\frac {8 a b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{11}}{d}}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )^{4} \left (1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )^{2}}+\frac {\left (15 a^{2}-16 a b +3 b^{2}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{8 d}-\frac {\left (15 a^{2}+16 a b +3 b^{2}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{8 d}+\frac {2 a b \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}\) | \(371\) |
risch | \(-\frac {i \left (15 a^{2} {\mathrm e}^{9 i \left (d x +c \right )}+3 b^{2} {\mathrm e}^{9 i \left (d x +c \right )}+40 a^{2} {\mathrm e}^{7 i \left (d x +c \right )}+8 b^{2} {\mathrm e}^{7 i \left (d x +c \right )}+16 i a b \,{\mathrm e}^{8 i \left (d x +c \right )}+18 a^{2} {\mathrm e}^{5 i \left (d x +c \right )}-22 b^{2} {\mathrm e}^{5 i \left (d x +c \right )}+48 i a b \,{\mathrm e}^{6 i \left (d x +c \right )}+40 a^{2} {\mathrm e}^{3 i \left (d x +c \right )}+8 b^{2} {\mathrm e}^{3 i \left (d x +c \right )}-48 i a b \,{\mathrm e}^{4 i \left (d x +c \right )}+15 a^{2} {\mathrm e}^{i \left (d x +c \right )}+3 b^{2} {\mathrm e}^{i \left (d x +c \right )}-16 i a b \,{\mathrm e}^{2 i \left (d x +c \right )}\right )}{4 d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{4} \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}-\frac {15 a^{2} \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}{8 d}-\frac {2 \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) a b}{d}-\frac {3 \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) b^{2}}{8 d}+\frac {15 a^{2} \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{8 d}-\frac {2 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) a b}{d}+\frac {3 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) b^{2}}{8 d}+\frac {2 a b \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}{d}\) | \(374\) |
Input:
int(csc(d*x+c)^2*sec(d*x+c)^5*(a+b*sin(d*x+c))^2,x,method=_RETURNVERBOSE)
Output:
1/d*(a^2*(1/4/sin(d*x+c)/cos(d*x+c)^4+5/8/sin(d*x+c)/cos(d*x+c)^2-15/8/sin (d*x+c)+15/8*ln(sec(d*x+c)+tan(d*x+c)))+2*a*b*(1/4/cos(d*x+c)^4+1/2/cos(d* x+c)^2+ln(tan(d*x+c)))+b^2*(-(-1/4*sec(d*x+c)^3-3/8*sec(d*x+c))*tan(d*x+c) +3/8*ln(sec(d*x+c)+tan(d*x+c))))
Time = 0.10 (sec) , antiderivative size = 202, normalized size of antiderivative = 1.37 \[ \int \csc ^2(c+d x) \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {32 \, a b \cos \left (d x + c\right )^{4} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) \sin \left (d x + c\right ) + {\left (15 \, a^{2} - 16 \, a b + 3 \, b^{2}\right )} \cos \left (d x + c\right )^{4} \log \left (\sin \left (d x + c\right ) + 1\right ) \sin \left (d x + c\right ) - {\left (15 \, a^{2} + 16 \, a b + 3 \, b^{2}\right )} \cos \left (d x + c\right )^{4} \log \left (-\sin \left (d x + c\right ) + 1\right ) \sin \left (d x + c\right ) - 6 \, {\left (5 \, a^{2} + b^{2}\right )} \cos \left (d x + c\right )^{4} + 2 \, {\left (5 \, a^{2} + b^{2}\right )} \cos \left (d x + c\right )^{2} + 4 \, a^{2} + 4 \, b^{2} + 8 \, {\left (2 \, a b \cos \left (d x + c\right )^{2} + a b\right )} \sin \left (d x + c\right )}{16 \, d \cos \left (d x + c\right )^{4} \sin \left (d x + c\right )} \] Input:
integrate(csc(d*x+c)^2*sec(d*x+c)^5*(a+b*sin(d*x+c))^2,x, algorithm="frica s")
Output:
1/16*(32*a*b*cos(d*x + c)^4*log(1/2*sin(d*x + c))*sin(d*x + c) + (15*a^2 - 16*a*b + 3*b^2)*cos(d*x + c)^4*log(sin(d*x + c) + 1)*sin(d*x + c) - (15*a ^2 + 16*a*b + 3*b^2)*cos(d*x + c)^4*log(-sin(d*x + c) + 1)*sin(d*x + c) - 6*(5*a^2 + b^2)*cos(d*x + c)^4 + 2*(5*a^2 + b^2)*cos(d*x + c)^2 + 4*a^2 + 4*b^2 + 8*(2*a*b*cos(d*x + c)^2 + a*b)*sin(d*x + c))/(d*cos(d*x + c)^4*sin (d*x + c))
Timed out. \[ \int \csc ^2(c+d x) \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx=\text {Timed out} \] Input:
integrate(csc(d*x+c)**2*sec(d*x+c)**5*(a+b*sin(d*x+c))**2,x)
Output:
Timed out
Time = 0.04 (sec) , antiderivative size = 163, normalized size of antiderivative = 1.11 \[ \int \csc ^2(c+d x) \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {32 \, a b \log \left (\sin \left (d x + c\right )\right ) + {\left (15 \, a^{2} - 16 \, a b + 3 \, b^{2}\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) - {\left (15 \, a^{2} + 16 \, a b + 3 \, b^{2}\right )} \log \left (\sin \left (d x + c\right ) - 1\right ) - \frac {2 \, {\left (8 \, a b \sin \left (d x + c\right )^{3} + 3 \, {\left (5 \, a^{2} + b^{2}\right )} \sin \left (d x + c\right )^{4} - 12 \, a b \sin \left (d x + c\right ) - 5 \, {\left (5 \, a^{2} + b^{2}\right )} \sin \left (d x + c\right )^{2} + 8 \, a^{2}\right )}}{\sin \left (d x + c\right )^{5} - 2 \, \sin \left (d x + c\right )^{3} + \sin \left (d x + c\right )}}{16 \, d} \] Input:
integrate(csc(d*x+c)^2*sec(d*x+c)^5*(a+b*sin(d*x+c))^2,x, algorithm="maxim a")
Output:
1/16*(32*a*b*log(sin(d*x + c)) + (15*a^2 - 16*a*b + 3*b^2)*log(sin(d*x + c ) + 1) - (15*a^2 + 16*a*b + 3*b^2)*log(sin(d*x + c) - 1) - 2*(8*a*b*sin(d* x + c)^3 + 3*(5*a^2 + b^2)*sin(d*x + c)^4 - 12*a*b*sin(d*x + c) - 5*(5*a^2 + b^2)*sin(d*x + c)^2 + 8*a^2)/(sin(d*x + c)^5 - 2*sin(d*x + c)^3 + sin(d *x + c)))/d
Time = 0.39 (sec) , antiderivative size = 175, normalized size of antiderivative = 1.19 \[ \int \csc ^2(c+d x) \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {2 \, a b \log \left ({\left | \sin \left (d x + c\right ) \right |}\right )}{d} + \frac {{\left (15 \, a^{2} - 16 \, a b + 3 \, b^{2}\right )} \log \left ({\left | \sin \left (d x + c\right ) + 1 \right |}\right )}{16 \, d} - \frac {{\left (15 \, a^{2} + 16 \, a b + 3 \, b^{2}\right )} \log \left ({\left | \sin \left (d x + c\right ) - 1 \right |}\right )}{16 \, d} - \frac {8 \, a b \sin \left (d x + c\right )^{3} + 3 \, {\left (5 \, a^{2} + b^{2}\right )} \sin \left (d x + c\right )^{4} - 12 \, a b \sin \left (d x + c\right ) - 5 \, {\left (5 \, a^{2} + b^{2}\right )} \sin \left (d x + c\right )^{2} + 8 \, a^{2}}{8 \, d {\left (\sin \left (d x + c\right ) + 1\right )}^{2} {\left (\sin \left (d x + c\right ) - 1\right )}^{2} \sin \left (d x + c\right )} \] Input:
integrate(csc(d*x+c)^2*sec(d*x+c)^5*(a+b*sin(d*x+c))^2,x, algorithm="giac" )
Output:
2*a*b*log(abs(sin(d*x + c)))/d + 1/16*(15*a^2 - 16*a*b + 3*b^2)*log(abs(si n(d*x + c) + 1))/d - 1/16*(15*a^2 + 16*a*b + 3*b^2)*log(abs(sin(d*x + c) - 1))/d - 1/8*(8*a*b*sin(d*x + c)^3 + 3*(5*a^2 + b^2)*sin(d*x + c)^4 - 12*a *b*sin(d*x + c) - 5*(5*a^2 + b^2)*sin(d*x + c)^2 + 8*a^2)/(d*(sin(d*x + c) + 1)^2*(sin(d*x + c) - 1)^2*sin(d*x + c))
Time = 19.49 (sec) , antiderivative size = 169, normalized size of antiderivative = 1.15 \[ \int \csc ^2(c+d x) \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {\ln \left (\sin \left (c+d\,x\right )+1\right )\,\left (\frac {15\,a^2}{16}-a\,b+\frac {3\,b^2}{16}\right )}{d}-\frac {\ln \left (\sin \left (c+d\,x\right )-1\right )\,\left (\frac {15\,a^2}{16}+a\,b+\frac {3\,b^2}{16}\right )}{d}-\frac {a^2+{\sin \left (c+d\,x\right )}^4\,\left (\frac {15\,a^2}{8}+\frac {3\,b^2}{8}\right )-{\sin \left (c+d\,x\right )}^2\,\left (\frac {25\,a^2}{8}+\frac {5\,b^2}{8}\right )-\frac {3\,a\,b\,\sin \left (c+d\,x\right )}{2}+a\,b\,{\sin \left (c+d\,x\right )}^3}{d\,\left ({\sin \left (c+d\,x\right )}^5-2\,{\sin \left (c+d\,x\right )}^3+\sin \left (c+d\,x\right )\right )}+\frac {2\,a\,b\,\ln \left (\sin \left (c+d\,x\right )\right )}{d} \] Input:
int((a + b*sin(c + d*x))^2/(cos(c + d*x)^5*sin(c + d*x)^2),x)
Output:
(log(sin(c + d*x) + 1)*((15*a^2)/16 - a*b + (3*b^2)/16))/d - (log(sin(c + d*x) - 1)*(a*b + (15*a^2)/16 + (3*b^2)/16))/d - (a^2 + sin(c + d*x)^4*((15 *a^2)/8 + (3*b^2)/8) - sin(c + d*x)^2*((25*a^2)/8 + (5*b^2)/8) - (3*a*b*si n(c + d*x))/2 + a*b*sin(c + d*x)^3)/(d*(sin(c + d*x) - 2*sin(c + d*x)^3 + sin(c + d*x)^5)) + (2*a*b*log(sin(c + d*x)))/d
Time = 0.19 (sec) , antiderivative size = 613, normalized size of antiderivative = 4.17 \[ \int \csc ^2(c+d x) \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx =\text {Too large to display} \] Input:
int(csc(d*x+c)^2*sec(d*x+c)^5*(a+b*sin(d*x+c))^2,x)
Output:
( - 15*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**5*a**2 - 16*log(tan((c + d* x)/2) - 1)*sin(c + d*x)**5*a*b - 3*log(tan((c + d*x)/2) - 1)*sin(c + d*x)* *5*b**2 + 30*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**3*a**2 + 32*log(tan(( c + d*x)/2) - 1)*sin(c + d*x)**3*a*b + 6*log(tan((c + d*x)/2) - 1)*sin(c + d*x)**3*b**2 - 15*log(tan((c + d*x)/2) - 1)*sin(c + d*x)*a**2 - 16*log(ta n((c + d*x)/2) - 1)*sin(c + d*x)*a*b - 3*log(tan((c + d*x)/2) - 1)*sin(c + d*x)*b**2 + 15*log(tan((c + d*x)/2) + 1)*sin(c + d*x)**5*a**2 - 16*log(ta n((c + d*x)/2) + 1)*sin(c + d*x)**5*a*b + 3*log(tan((c + d*x)/2) + 1)*sin( c + d*x)**5*b**2 - 30*log(tan((c + d*x)/2) + 1)*sin(c + d*x)**3*a**2 + 32* log(tan((c + d*x)/2) + 1)*sin(c + d*x)**3*a*b - 6*log(tan((c + d*x)/2) + 1 )*sin(c + d*x)**3*b**2 + 15*log(tan((c + d*x)/2) + 1)*sin(c + d*x)*a**2 - 16*log(tan((c + d*x)/2) + 1)*sin(c + d*x)*a*b + 3*log(tan((c + d*x)/2) + 1 )*sin(c + d*x)*b**2 + 16*log(tan((c + d*x)/2))*sin(c + d*x)**5*a*b - 32*lo g(tan((c + d*x)/2))*sin(c + d*x)**3*a*b + 16*log(tan((c + d*x)/2))*sin(c + d*x)*a*b - 12*sin(c + d*x)**5*a*b - 15*sin(c + d*x)**4*a**2 - 3*sin(c + d *x)**4*b**2 + 16*sin(c + d*x)**3*a*b + 25*sin(c + d*x)**2*a**2 + 5*sin(c + d*x)**2*b**2 - 8*a**2)/(8*sin(c + d*x)*d*(sin(c + d*x)**4 - 2*sin(c + d*x )**2 + 1))