Integrand size = 13, antiderivative size = 68 \[ \int x^2 \coth ^2(a+2 \log (x)) \, dx=\frac {x^3}{3}+\frac {x^3}{1-e^{2 a} x^4}+\frac {3}{2} e^{-3 a/2} \arctan \left (e^{a/2} x\right )-\frac {3}{2} e^{-3 a/2} \text {arctanh}\left (e^{a/2} x\right ) \]
1/3*x^3+x^3/(1-exp(2*a)*x^4)+3/2*arctan(exp(1/2*a)*x)/exp(3/2*a)-3/2*arcta nh(exp(1/2*a)*x)/exp(3/2*a)
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 3.17 (sec) , antiderivative size = 154, normalized size of antiderivative = 2.26 \[ \int x^2 \coth ^2(a+2 \log (x)) \, dx=\frac {e^{-4 a} \left (-9317-17825 e^{2 a} x^4-4787 e^{4 a} x^8+1481 e^{6 a} x^{12}+7 \left (1331+1976 e^{2 a} x^4-398 e^{4 a} x^8-632 e^{6 a} x^{12}+27 e^{8 a} x^{16}\right ) \operatorname {Hypergeometric2F1}\left (\frac {3}{4},1,\frac {7}{4},e^{2 a} x^4\right )\right )}{2688 x^5}+\frac {16 e^{2 a} x^7 \left (1+e^{2 a} x^4\right )^2 \, _4F_3\left (\frac {7}{4},2,2,2;1,1,\frac {19}{4};e^{2 a} x^4\right )}{1155} \]
(-9317 - 17825*E^(2*a)*x^4 - 4787*E^(4*a)*x^8 + 1481*E^(6*a)*x^12 + 7*(133 1 + 1976*E^(2*a)*x^4 - 398*E^(4*a)*x^8 - 632*E^(6*a)*x^12 + 27*E^(8*a)*x^1 6)*Hypergeometric2F1[3/4, 1, 7/4, E^(2*a)*x^4])/(2688*E^(4*a)*x^5) + (16*E ^(2*a)*x^7*(1 + E^(2*a)*x^4)^2*HypergeometricPFQ[{7/4, 2, 2, 2}, {1, 1, 19 /4}, E^(2*a)*x^4])/1155
Time = 0.30 (sec) , antiderivative size = 89, normalized size of antiderivative = 1.31, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.538, Rules used = {6072, 963, 27, 959, 827, 216, 219}
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 x^2 \coth ^2(a+2 \log (x)) \, dx\) |
\(\Big \downarrow \) 6072 |
\(\displaystyle \int \frac {x^2 \left (-e^{2 a} x^4-1\right )^2}{\left (1-e^{2 a} x^4\right )^2}dx\) |
\(\Big \downarrow \) 963 |
\(\displaystyle \frac {x^3}{1-e^{2 a} x^4}-\frac {1}{4} e^{-4 a} \int \frac {4 x^2 \left (e^{6 a} x^4+2 e^{4 a}\right )}{1-e^{2 a} x^4}dx\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {x^3}{1-e^{2 a} x^4}-e^{-4 a} \int \frac {x^2 \left (e^{6 a} x^4+2 e^{4 a}\right )}{1-e^{2 a} x^4}dx\) |
\(\Big \downarrow \) 959 |
\(\displaystyle \frac {x^3}{1-e^{2 a} x^4}-e^{-4 a} \left (3 e^{4 a} \int \frac {x^2}{1-e^{2 a} x^4}dx-\frac {1}{3} e^{4 a} x^3\right )\) |
\(\Big \downarrow \) 827 |
\(\displaystyle \frac {x^3}{1-e^{2 a} x^4}-e^{-4 a} \left (3 e^{4 a} \left (\frac {1}{2} e^{-a} \int \frac {1}{1-e^a x^2}dx-\frac {1}{2} e^{-a} \int \frac {1}{e^a x^2+1}dx\right )-\frac {1}{3} e^{4 a} x^3\right )\) |
\(\Big \downarrow \) 216 |
\(\displaystyle \frac {x^3}{1-e^{2 a} x^4}-e^{-4 a} \left (3 e^{4 a} \left (\frac {1}{2} e^{-a} \int \frac {1}{1-e^a x^2}dx-\frac {1}{2} e^{-3 a/2} \arctan \left (e^{a/2} x\right )\right )-\frac {1}{3} e^{4 a} x^3\right )\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {x^3}{1-e^{2 a} x^4}-e^{-4 a} \left (3 e^{4 a} \left (\frac {1}{2} e^{-3 a/2} \text {arctanh}\left (e^{a/2} x\right )-\frac {1}{2} e^{-3 a/2} \arctan \left (e^{a/2} x\right )\right )-\frac {1}{3} e^{4 a} x^3\right )\) |
x^3/(1 - E^(2*a)*x^4) - (-1/3*(E^(4*a)*x^3) + 3*E^(4*a)*(-1/2*ArcTan[E^(a/ 2)*x]/E^((3*a)/2) + ArcTanh[E^(a/2)*x]/(2*E^((3*a)/2))))/E^(4*a)
3.2.59.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*A rcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a , 0] || GtQ[b, 0])
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt Q[a, 0] || LtQ[b, 0])
Int[(x_)^2/((a_) + (b_.)*(x_)^4), x_Symbol] :> With[{r = Numerator[Rt[-a/b, 2]], s = Denominator[Rt[-a/b, 2]]}, Simp[s/(2*b) Int[1/(r + s*x^2), x], x] - Simp[s/(2*b) Int[1/(r - s*x^2), x], x]] /; FreeQ[{a, b}, x] && !GtQ [a/b, 0]
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n _)), x_Symbol] :> Simp[d*(e*x)^(m + 1)*((a + b*x^n)^(p + 1)/(b*e*(m + n*(p + 1) + 1))), x] - Simp[(a*d*(m + 1) - b*c*(m + n*(p + 1) + 1))/(b*(m + n*(p + 1) + 1)) Int[(e*x)^m*(a + b*x^n)^p, x], x] /; FreeQ[{a, b, c, d, e, m, n, p}, x] && NeQ[b*c - a*d, 0] && NeQ[m + n*(p + 1) + 1, 0]
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_ ))^2, x_Symbol] :> Simp[(-(b*c - a*d)^2)*(e*x)^(m + 1)*((a + b*x^n)^(p + 1) /(a*b^2*e*n*(p + 1))), x] + Simp[1/(a*b^2*n*(p + 1)) Int[(e*x)^m*(a + b*x ^n)^(p + 1)*Simp[(b*c - a*d)^2*(m + 1) + b^2*c^2*n*(p + 1) + a*b*d^2*n*(p + 1)*x^n, x], x], x] /; FreeQ[{a, b, c, d, e, m, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[n, 0] && LtQ[p, -1]
Int[Coth[((a_.) + Log[x_]*(b_.))*(d_.)]^(p_.)*((e_.)*(x_))^(m_.), x_Symbol] :> Int[(e*x)^m*((-1 - E^(2*a*d)*x^(2*b*d))^p/(1 - E^(2*a*d)*x^(2*b*d))^p), x] /; FreeQ[{a, b, d, e, m, p}, x]
Time = 0.10 (sec) , antiderivative size = 100, normalized size of antiderivative = 1.47
method | result | size |
risch | \(\frac {x^{3}}{3}-\frac {x^{3}}{-1+{\mathrm e}^{2 a} x^{4}}+\frac {3 \ln \left (-\sqrt {{\mathrm e}^{a}}\, x +1\right )}{4 \left ({\mathrm e}^{a}\right )^{\frac {3}{2}}}-\frac {3 \ln \left (\sqrt {{\mathrm e}^{a}}\, x +1\right )}{4 \left ({\mathrm e}^{a}\right )^{\frac {3}{2}}}+\frac {3 \ln \left (\left (-{\mathrm e}^{a}\right )^{\frac {3}{2}}-{\mathrm e}^{2 a} x \right )}{4 \left (-{\mathrm e}^{a}\right )^{\frac {3}{2}}}-\frac {3 \ln \left (\left (-{\mathrm e}^{a}\right )^{\frac {3}{2}}+{\mathrm e}^{2 a} x \right )}{4 \left (-{\mathrm e}^{a}\right )^{\frac {3}{2}}}\) | \(100\) |
1/3*x^3-x^3/(-1+exp(2*a)*x^4)+3/4/exp(a)^(3/2)*ln(-exp(a)^(1/2)*x+1)-3/4/e xp(a)^(3/2)*ln(exp(a)^(1/2)*x+1)+3/4/(-exp(a))^(3/2)*ln((-exp(a))^(3/2)-ex p(2*a)*x)-3/4/(-exp(a))^(3/2)*ln((-exp(a))^(3/2)+exp(2*a)*x)
Leaf count of result is larger than twice the leaf count of optimal. 104 vs. \(2 (49) = 98\).
Time = 0.29 (sec) , antiderivative size = 104, normalized size of antiderivative = 1.53 \[ \int x^2 \coth ^2(a+2 \log (x)) \, dx=\frac {4 \, x^{7} e^{\left (4 \, a\right )} - 16 \, x^{3} e^{\left (2 \, a\right )} + 18 \, {\left (x^{4} e^{\left (2 \, a\right )} - 1\right )} \arctan \left (x e^{\left (\frac {1}{2} \, a\right )}\right ) e^{\left (\frac {1}{2} \, a\right )} + 9 \, {\left (x^{4} e^{\left (2 \, a\right )} - 1\right )} e^{\left (\frac {1}{2} \, a\right )} \log \left (\frac {x^{2} e^{a} - 2 \, x e^{\left (\frac {1}{2} \, a\right )} + 1}{x^{2} e^{a} - 1}\right )}{12 \, {\left (x^{4} e^{\left (4 \, a\right )} - e^{\left (2 \, a\right )}\right )}} \]
1/12*(4*x^7*e^(4*a) - 16*x^3*e^(2*a) + 18*(x^4*e^(2*a) - 1)*arctan(x*e^(1/ 2*a))*e^(1/2*a) + 9*(x^4*e^(2*a) - 1)*e^(1/2*a)*log((x^2*e^a - 2*x*e^(1/2* a) + 1)/(x^2*e^a - 1)))/(x^4*e^(4*a) - e^(2*a))
\[ \int x^2 \coth ^2(a+2 \log (x)) \, dx=\int x^{2} \coth ^{2}{\left (a + 2 \log {\left (x \right )} \right )}\, dx \]
Time = 0.26 (sec) , antiderivative size = 66, normalized size of antiderivative = 0.97 \[ \int x^2 \coth ^2(a+2 \log (x)) \, dx=\frac {1}{3} \, x^{3} - \frac {x^{3}}{x^{4} e^{\left (2 \, a\right )} - 1} + \frac {3}{2} \, \arctan \left (x e^{\left (\frac {1}{2} \, a\right )}\right ) e^{\left (-\frac {3}{2} \, a\right )} + \frac {3}{4} \, e^{\left (-\frac {3}{2} \, a\right )} \log \left (\frac {x e^{a} - e^{\left (\frac {1}{2} \, a\right )}}{x e^{a} + e^{\left (\frac {1}{2} \, a\right )}}\right ) \]
1/3*x^3 - x^3/(x^4*e^(2*a) - 1) + 3/2*arctan(x*e^(1/2*a))*e^(-3/2*a) + 3/4 *e^(-3/2*a)*log((x*e^a - e^(1/2*a))/(x*e^a + e^(1/2*a)))
Time = 0.28 (sec) , antiderivative size = 72, normalized size of antiderivative = 1.06 \[ \int x^2 \coth ^2(a+2 \log (x)) \, dx=\frac {1}{3} \, x^{3} - \frac {x^{3}}{x^{4} e^{\left (2 \, a\right )} - 1} + \frac {3}{2} \, \arctan \left (x e^{\left (\frac {1}{2} \, a\right )}\right ) e^{\left (-\frac {3}{2} \, a\right )} + \frac {3}{4} \, e^{\left (-\frac {3}{2} \, a\right )} \log \left (\frac {{\left | 2 \, x e^{a} - 2 \, e^{\left (\frac {1}{2} \, a\right )} \right |}}{{\left | 2 \, x e^{a} + 2 \, e^{\left (\frac {1}{2} \, a\right )} \right |}}\right ) \]
1/3*x^3 - x^3/(x^4*e^(2*a) - 1) + 3/2*arctan(x*e^(1/2*a))*e^(-3/2*a) + 3/4 *e^(-3/2*a)*log(abs(2*x*e^a - 2*e^(1/2*a))/abs(2*x*e^a + 2*e^(1/2*a)))
Time = 1.98 (sec) , antiderivative size = 60, normalized size of antiderivative = 0.88 \[ \int x^2 \coth ^2(a+2 \log (x)) \, dx=\frac {3\,\mathrm {atan}\left (x\,{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}\right )}{2\,{\left ({\mathrm {e}}^{2\,a}\right )}^{3/4}}-\frac {x^3}{x^4\,{\mathrm {e}}^{2\,a}-1}+\frac {x^3}{3}+\frac {\mathrm {atan}\left (x\,{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}\,1{}\mathrm {i}\right )\,3{}\mathrm {i}}{2\,{\left ({\mathrm {e}}^{2\,a}\right )}^{3/4}} \]