Integrand size = 14, antiderivative size = 291 \[ \int \frac {x^2}{a+b \cosh ^2(x)} \, dx=\frac {x^2 \log \left (1+\frac {b e^{2 x}}{2 a+b-2 \sqrt {a} \sqrt {a+b}}\right )}{2 \sqrt {a} \sqrt {a+b}}-\frac {x^2 \log \left (1+\frac {b e^{2 x}}{2 a+b+2 \sqrt {a} \sqrt {a+b}}\right )}{2 \sqrt {a} \sqrt {a+b}}+\frac {x \operatorname {PolyLog}\left (2,-\frac {b e^{2 x}}{2 a+b-2 \sqrt {a} \sqrt {a+b}}\right )}{2 \sqrt {a} \sqrt {a+b}}-\frac {x \operatorname {PolyLog}\left (2,-\frac {b e^{2 x}}{2 a+b+2 \sqrt {a} \sqrt {a+b}}\right )}{2 \sqrt {a} \sqrt {a+b}}-\frac {\operatorname {PolyLog}\left (3,-\frac {b e^{2 x}}{2 a+b-2 \sqrt {a} \sqrt {a+b}}\right )}{4 \sqrt {a} \sqrt {a+b}}+\frac {\operatorname {PolyLog}\left (3,-\frac {b e^{2 x}}{2 a+b+2 \sqrt {a} \sqrt {a+b}}\right )}{4 \sqrt {a} \sqrt {a+b}} \]
1/2*x^2*ln(1+b*exp(2*x)/(2*a+b-2*a^(1/2)*(a+b)^(1/2)))/a^(1/2)/(a+b)^(1/2) -1/2*x^2*ln(1+b*exp(2*x)/(2*a+b+2*a^(1/2)*(a+b)^(1/2)))/a^(1/2)/(a+b)^(1/2 )+1/2*x*polylog(2,-b*exp(2*x)/(2*a+b-2*a^(1/2)*(a+b)^(1/2)))/a^(1/2)/(a+b) ^(1/2)-1/2*x*polylog(2,-b*exp(2*x)/(2*a+b+2*a^(1/2)*(a+b)^(1/2)))/a^(1/2)/ (a+b)^(1/2)-1/4*polylog(3,-b*exp(2*x)/(2*a+b-2*a^(1/2)*(a+b)^(1/2)))/a^(1/ 2)/(a+b)^(1/2)+1/4*polylog(3,-b*exp(2*x)/(2*a+b+2*a^(1/2)*(a+b)^(1/2)))/a^ (1/2)/(a+b)^(1/2)
Time = 0.31 (sec) , antiderivative size = 434, normalized size of antiderivative = 1.49 \[ \int \frac {x^2}{a+b \cosh ^2(x)} \, dx=\frac {x^2 \log \left (1-\frac {e^x}{\sqrt {-\frac {2 a+b-2 \sqrt {a (a+b)}}{b}}}\right )+x^2 \log \left (1+\frac {e^x}{\sqrt {-\frac {2 a+b-2 \sqrt {a (a+b)}}{b}}}\right )-x^2 \log \left (1-\frac {e^x}{\sqrt {-\frac {2 a+b+2 \sqrt {a (a+b)}}{b}}}\right )-x^2 \log \left (1+\frac {e^x}{\sqrt {-\frac {2 a+b+2 \sqrt {a (a+b)}}{b}}}\right )+2 x \operatorname {PolyLog}\left (2,-\frac {e^x}{\sqrt {-\frac {2 a+b-2 \sqrt {a (a+b)}}{b}}}\right )+2 x \operatorname {PolyLog}\left (2,\frac {e^x}{\sqrt {-\frac {2 a+b-2 \sqrt {a (a+b)}}{b}}}\right )-2 x \operatorname {PolyLog}\left (2,-\frac {e^x}{\sqrt {-\frac {2 a+b+2 \sqrt {a (a+b)}}{b}}}\right )-2 x \operatorname {PolyLog}\left (2,\frac {e^x}{\sqrt {-\frac {2 a+b+2 \sqrt {a (a+b)}}{b}}}\right )-2 \operatorname {PolyLog}\left (3,-\frac {e^x}{\sqrt {-\frac {2 a+b-2 \sqrt {a (a+b)}}{b}}}\right )-2 \operatorname {PolyLog}\left (3,\frac {e^x}{\sqrt {-\frac {2 a+b-2 \sqrt {a (a+b)}}{b}}}\right )+2 \operatorname {PolyLog}\left (3,-\frac {e^x}{\sqrt {-\frac {2 a+b+2 \sqrt {a (a+b)}}{b}}}\right )+2 \operatorname {PolyLog}\left (3,\frac {e^x}{\sqrt {-\frac {2 a+b+2 \sqrt {a (a+b)}}{b}}}\right )}{2 \sqrt {a (a+b)}} \]
(x^2*Log[1 - E^x/Sqrt[-((2*a + b - 2*Sqrt[a*(a + b)])/b)]] + x^2*Log[1 + E ^x/Sqrt[-((2*a + b - 2*Sqrt[a*(a + b)])/b)]] - x^2*Log[1 - E^x/Sqrt[-((2*a + b + 2*Sqrt[a*(a + b)])/b)]] - x^2*Log[1 + E^x/Sqrt[-((2*a + b + 2*Sqrt[ a*(a + b)])/b)]] + 2*x*PolyLog[2, -(E^x/Sqrt[-((2*a + b - 2*Sqrt[a*(a + b) ])/b)])] + 2*x*PolyLog[2, E^x/Sqrt[-((2*a + b - 2*Sqrt[a*(a + b)])/b)]] - 2*x*PolyLog[2, -(E^x/Sqrt[-((2*a + b + 2*Sqrt[a*(a + b)])/b)])] - 2*x*Poly Log[2, E^x/Sqrt[-((2*a + b + 2*Sqrt[a*(a + b)])/b)]] - 2*PolyLog[3, -(E^x/ Sqrt[-((2*a + b - 2*Sqrt[a*(a + b)])/b)])] - 2*PolyLog[3, E^x/Sqrt[-((2*a + b - 2*Sqrt[a*(a + b)])/b)]] + 2*PolyLog[3, -(E^x/Sqrt[-((2*a + b + 2*Sqr t[a*(a + b)])/b)])] + 2*PolyLog[3, E^x/Sqrt[-((2*a + b + 2*Sqrt[a*(a + b)] )/b)]])/(2*Sqrt[a*(a + b)])
Time = 1.12 (sec) , antiderivative size = 275, normalized size of antiderivative = 0.95, number of steps used = 10, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.643, Rules used = {6164, 3042, 3801, 2694, 27, 2620, 3011, 2720, 7143}
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 {x^2}{a+b \cosh ^2(x)} \, dx\) |
\(\Big \downarrow \) 6164 |
\(\displaystyle 2 \int \frac {x^2}{2 a+b+b \cosh (2 x)}dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle 2 \int \frac {x^2}{2 a+b+b \sin \left (2 i x+\frac {\pi }{2}\right )}dx\) |
\(\Big \downarrow \) 3801 |
\(\displaystyle 4 \int \frac {e^{2 x} x^2}{e^{4 x} b+b+2 (2 a+b) e^{2 x}}dx\) |
\(\Big \downarrow \) 2694 |
\(\displaystyle 4 \left (\frac {b \int \frac {e^{2 x} x^2}{2 \left (2 a-2 \sqrt {a+b} \sqrt {a}+b e^{2 x}+b\right )}dx}{2 \sqrt {a} \sqrt {a+b}}-\frac {b \int \frac {e^{2 x} x^2}{2 \left (2 a+2 \sqrt {a+b} \sqrt {a}+b e^{2 x}+b\right )}dx}{2 \sqrt {a} \sqrt {a+b}}\right )\) |
\(\Big \downarrow \) 27 |
\(\displaystyle 4 \left (\frac {b \int \frac {e^{2 x} x^2}{2 a-2 \sqrt {a+b} \sqrt {a}+b e^{2 x}+b}dx}{4 \sqrt {a} \sqrt {a+b}}-\frac {b \int \frac {e^{2 x} x^2}{2 a+2 \sqrt {a+b} \sqrt {a}+b e^{2 x}+b}dx}{4 \sqrt {a} \sqrt {a+b}}\right )\) |
\(\Big \downarrow \) 2620 |
\(\displaystyle 4 \left (\frac {b \left (\frac {x^2 \log \left (\frac {b e^{2 x}}{-2 \sqrt {a} \sqrt {a+b}+2 a+b}+1\right )}{2 b}-\frac {\int x \log \left (\frac {e^{2 x} b}{2 a-2 \sqrt {a+b} \sqrt {a}+b}+1\right )dx}{b}\right )}{4 \sqrt {a} \sqrt {a+b}}-\frac {b \left (\frac {x^2 \log \left (\frac {b e^{2 x}}{2 \sqrt {a} \sqrt {a+b}+2 a+b}+1\right )}{2 b}-\frac {\int x \log \left (\frac {e^{2 x} b}{2 a+2 \sqrt {a+b} \sqrt {a}+b}+1\right )dx}{b}\right )}{4 \sqrt {a} \sqrt {a+b}}\right )\) |
\(\Big \downarrow \) 3011 |
\(\displaystyle 4 \left (\frac {b \left (\frac {x^2 \log \left (\frac {b e^{2 x}}{-2 \sqrt {a} \sqrt {a+b}+2 a+b}+1\right )}{2 b}-\frac {\frac {1}{2} \int \operatorname {PolyLog}\left (2,-\frac {b e^{2 x}}{2 a-2 \sqrt {a+b} \sqrt {a}+b}\right )dx-\frac {1}{2} x \operatorname {PolyLog}\left (2,-\frac {b e^{2 x}}{2 a-2 \sqrt {a+b} \sqrt {a}+b}\right )}{b}\right )}{4 \sqrt {a} \sqrt {a+b}}-\frac {b \left (\frac {x^2 \log \left (\frac {b e^{2 x}}{2 \sqrt {a} \sqrt {a+b}+2 a+b}+1\right )}{2 b}-\frac {\frac {1}{2} \int \operatorname {PolyLog}\left (2,-\frac {b e^{2 x}}{2 a+2 \sqrt {a+b} \sqrt {a}+b}\right )dx-\frac {1}{2} x \operatorname {PolyLog}\left (2,-\frac {b e^{2 x}}{2 a+2 \sqrt {a+b} \sqrt {a}+b}\right )}{b}\right )}{4 \sqrt {a} \sqrt {a+b}}\right )\) |
\(\Big \downarrow \) 2720 |
\(\displaystyle 4 \left (\frac {b \left (\frac {x^2 \log \left (\frac {b e^{2 x}}{-2 \sqrt {a} \sqrt {a+b}+2 a+b}+1\right )}{2 b}-\frac {\frac {1}{4} \int e^{-2 x} \operatorname {PolyLog}\left (2,-\frac {b e^{2 x}}{2 a-2 \sqrt {a+b} \sqrt {a}+b}\right )de^{2 x}-\frac {1}{2} x \operatorname {PolyLog}\left (2,-\frac {b e^{2 x}}{2 a-2 \sqrt {a+b} \sqrt {a}+b}\right )}{b}\right )}{4 \sqrt {a} \sqrt {a+b}}-\frac {b \left (\frac {x^2 \log \left (\frac {b e^{2 x}}{2 \sqrt {a} \sqrt {a+b}+2 a+b}+1\right )}{2 b}-\frac {\frac {1}{4} \int e^{-2 x} \operatorname {PolyLog}\left (2,-\frac {b e^{2 x}}{2 a+2 \sqrt {a+b} \sqrt {a}+b}\right )de^{2 x}-\frac {1}{2} x \operatorname {PolyLog}\left (2,-\frac {b e^{2 x}}{2 a+2 \sqrt {a+b} \sqrt {a}+b}\right )}{b}\right )}{4 \sqrt {a} \sqrt {a+b}}\right )\) |
\(\Big \downarrow \) 7143 |
\(\displaystyle 4 \left (\frac {b \left (\frac {x^2 \log \left (\frac {b e^{2 x}}{-2 \sqrt {a} \sqrt {a+b}+2 a+b}+1\right )}{2 b}-\frac {\frac {1}{4} \operatorname {PolyLog}\left (3,-\frac {b e^{2 x}}{2 a-2 \sqrt {a+b} \sqrt {a}+b}\right )-\frac {1}{2} x \operatorname {PolyLog}\left (2,-\frac {b e^{2 x}}{2 a-2 \sqrt {a+b} \sqrt {a}+b}\right )}{b}\right )}{4 \sqrt {a} \sqrt {a+b}}-\frac {b \left (\frac {x^2 \log \left (\frac {b e^{2 x}}{2 \sqrt {a} \sqrt {a+b}+2 a+b}+1\right )}{2 b}-\frac {\frac {1}{4} \operatorname {PolyLog}\left (3,-\frac {b e^{2 x}}{2 a+2 \sqrt {a+b} \sqrt {a}+b}\right )-\frac {1}{2} x \operatorname {PolyLog}\left (2,-\frac {b e^{2 x}}{2 a+2 \sqrt {a+b} \sqrt {a}+b}\right )}{b}\right )}{4 \sqrt {a} \sqrt {a+b}}\right )\) |
4*((b*((x^2*Log[1 + (b*E^(2*x))/(2*a + b - 2*Sqrt[a]*Sqrt[a + b])])/(2*b) - (-1/2*(x*PolyLog[2, -((b*E^(2*x))/(2*a + b - 2*Sqrt[a]*Sqrt[a + b]))]) + PolyLog[3, -((b*E^(2*x))/(2*a + b - 2*Sqrt[a]*Sqrt[a + b]))]/4)/b))/(4*Sq rt[a]*Sqrt[a + b]) - (b*((x^2*Log[1 + (b*E^(2*x))/(2*a + b + 2*Sqrt[a]*Sqr t[a + b])])/(2*b) - (-1/2*(x*PolyLog[2, -((b*E^(2*x))/(2*a + b + 2*Sqrt[a] *Sqrt[a + b]))]) + PolyLog[3, -((b*E^(2*x))/(2*a + b + 2*Sqrt[a]*Sqrt[a + b]))]/4)/b))/(4*Sqrt[a]*Sqrt[a + b]))
3.3.11.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[(((F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.))/ ((a_) + (b_.)*((F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)), x_Symbol] :> Simp [((c + d*x)^m/(b*f*g*n*Log[F]))*Log[1 + b*((F^(g*(e + f*x)))^n/a)], x] - Si mp[d*(m/(b*f*g*n*Log[F])) Int[(c + d*x)^(m - 1)*Log[1 + b*((F^(g*(e + f*x )))^n/a)], x], x] /; FreeQ[{F, a, b, c, d, e, f, g, n}, x] && IGtQ[m, 0]
Int[((F_)^(u_)*((f_.) + (g_.)*(x_))^(m_.))/((a_.) + (b_.)*(F_)^(u_) + (c_.) *(F_)^(v_)), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Simp[2*(c/q) Int [(f + g*x)^m*(F^u/(b - q + 2*c*F^u)), x], x] - Simp[2*(c/q) Int[(f + g*x) ^m*(F^u/(b + q + 2*c*F^u)), x], x]] /; FreeQ[{F, a, b, c, f, g}, x] && EqQ[ v, 2*u] && LinearQ[u, x] && NeQ[b^2 - 4*a*c, 0] && IGtQ[m, 0]
Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Simp[v/D[v, x] Subst[Int[FunctionOfExponentialFunction[u, x]/x, x], x, v], x]] /; Funct ionOfExponentialQ[u, x] && !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; FreeQ [{a, m, n}, x] && IntegerQ[m*n]] && !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x)) *(F_)[v_] /; FreeQ[{a, b, c}, x] && InverseFunctionQ[F[x]]]
Int[Log[1 + (e_.)*((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.)]*((f_.) + (g_.) *(x_))^(m_.), x_Symbol] :> Simp[(-(f + g*x)^m)*(PolyLog[2, (-e)*(F^(c*(a + b*x)))^n]/(b*c*n*Log[F])), x] + Simp[g*(m/(b*c*n*Log[F])) Int[(f + g*x)^( m - 1)*PolyLog[2, (-e)*(F^(c*(a + b*x)))^n], x], x] /; FreeQ[{F, a, b, c, e , f, g, n}, x] && GtQ[m, 0]
Int[((c_.) + (d_.)*(x_))^(m_.)/((a_) + (b_.)*sin[(e_.) + Pi*(k_.) + (Comple x[0, fz_])*(f_.)*(x_)]), x_Symbol] :> Simp[2 Int[((c + d*x)^m*(E^((-I)*e + f*fz*x)/(b + (2*a*E^((-I)*e + f*fz*x))/E^(I*Pi*(k - 1/2)) - (b*E^(2*((-I) *e + f*fz*x)))/E^(2*I*k*Pi))))/E^(I*Pi*(k - 1/2)), x], x] /; FreeQ[{a, b, c , d, e, f, fz}, x] && IntegerQ[2*k] && NeQ[a^2 - b^2, 0] && IGtQ[m, 0]
Int[(Cosh[(c_.) + (d_.)*(x_)]^2*(b_.) + (a_))^(n_)*(x_)^(m_.), x_Symbol] :> Simp[1/2^n Int[x^m*(2*a + b + b*Cosh[2*c + 2*d*x])^n, x], x] /; FreeQ[{a , b, c, d}, x] && NeQ[a - b, 0] && IGtQ[m, 0] && ILtQ[n, 0] && (EqQ[n, -1] || (EqQ[m, 1] && EqQ[n, -2]))
Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_S ymbol] :> Simp[PolyLog[n + 1, c*(a + b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d , e, n, p}, x] && EqQ[b*d, a*e]
Leaf count of result is larger than twice the leaf count of optimal. \(685\) vs. \(2(225)=450\).
Time = 0.16 (sec) , antiderivative size = 686, normalized size of antiderivative = 2.36
method | result | size |
risch | \(-\frac {2 x^{3}}{3 \left (-2 \sqrt {a \left (a +b \right )}-2 a -b \right )}+\frac {x^{2} \ln \left (1-\frac {b \,{\mathrm e}^{2 x}}{-2 \sqrt {a \left (a +b \right )}-2 a -b}\right )}{-2 \sqrt {a \left (a +b \right )}-2 a -b}+\frac {x \operatorname {polylog}\left (2, \frac {b \,{\mathrm e}^{2 x}}{-2 \sqrt {a \left (a +b \right )}-2 a -b}\right )}{-2 \sqrt {a \left (a +b \right )}-2 a -b}-\frac {\operatorname {polylog}\left (3, \frac {b \,{\mathrm e}^{2 x}}{-2 \sqrt {a \left (a +b \right )}-2 a -b}\right )}{2 \left (-2 \sqrt {a \left (a +b \right )}-2 a -b \right )}-\frac {2 a \,x^{3}}{3 \sqrt {a \left (a +b \right )}\, \left (-2 \sqrt {a \left (a +b \right )}-2 a -b \right )}+\frac {a \,x^{2} \ln \left (1-\frac {b \,{\mathrm e}^{2 x}}{-2 \sqrt {a \left (a +b \right )}-2 a -b}\right )}{\sqrt {a \left (a +b \right )}\, \left (-2 \sqrt {a \left (a +b \right )}-2 a -b \right )}+\frac {a x \operatorname {polylog}\left (2, \frac {b \,{\mathrm e}^{2 x}}{-2 \sqrt {a \left (a +b \right )}-2 a -b}\right )}{\sqrt {a \left (a +b \right )}\, \left (-2 \sqrt {a \left (a +b \right )}-2 a -b \right )}-\frac {a \operatorname {polylog}\left (3, \frac {b \,{\mathrm e}^{2 x}}{-2 \sqrt {a \left (a +b \right )}-2 a -b}\right )}{2 \sqrt {a \left (a +b \right )}\, \left (-2 \sqrt {a \left (a +b \right )}-2 a -b \right )}-\frac {b \,x^{3}}{3 \sqrt {a \left (a +b \right )}\, \left (-2 \sqrt {a \left (a +b \right )}-2 a -b \right )}+\frac {b \,x^{2} \ln \left (1-\frac {b \,{\mathrm e}^{2 x}}{-2 \sqrt {a \left (a +b \right )}-2 a -b}\right )}{2 \sqrt {a \left (a +b \right )}\, \left (-2 \sqrt {a \left (a +b \right )}-2 a -b \right )}+\frac {b x \operatorname {polylog}\left (2, \frac {b \,{\mathrm e}^{2 x}}{-2 \sqrt {a \left (a +b \right )}-2 a -b}\right )}{2 \sqrt {a \left (a +b \right )}\, \left (-2 \sqrt {a \left (a +b \right )}-2 a -b \right )}-\frac {b \operatorname {polylog}\left (3, \frac {b \,{\mathrm e}^{2 x}}{-2 \sqrt {a \left (a +b \right )}-2 a -b}\right )}{4 \sqrt {a \left (a +b \right )}\, \left (-2 \sqrt {a \left (a +b \right )}-2 a -b \right )}-\frac {x^{3}}{3 \sqrt {a \left (a +b \right )}}+\frac {x^{2} \ln \left (1-\frac {b \,{\mathrm e}^{2 x}}{2 \sqrt {a \left (a +b \right )}-2 a -b}\right )}{2 \sqrt {a \left (a +b \right )}}+\frac {x \operatorname {polylog}\left (2, \frac {b \,{\mathrm e}^{2 x}}{2 \sqrt {a \left (a +b \right )}-2 a -b}\right )}{2 \sqrt {a \left (a +b \right )}}-\frac {\operatorname {polylog}\left (3, \frac {b \,{\mathrm e}^{2 x}}{2 \sqrt {a \left (a +b \right )}-2 a -b}\right )}{4 \sqrt {a \left (a +b \right )}}\) | \(686\) |
-2/3/(-2*(a*(a+b))^(1/2)-2*a-b)*x^3+1/(-2*(a*(a+b))^(1/2)-2*a-b)*x^2*ln(1- b*exp(2*x)/(-2*(a*(a+b))^(1/2)-2*a-b))+1/(-2*(a*(a+b))^(1/2)-2*a-b)*x*poly log(2,b*exp(2*x)/(-2*(a*(a+b))^(1/2)-2*a-b))-1/2/(-2*(a*(a+b))^(1/2)-2*a-b )*polylog(3,b*exp(2*x)/(-2*(a*(a+b))^(1/2)-2*a-b))-2/3/(a*(a+b))^(1/2)/(-2 *(a*(a+b))^(1/2)-2*a-b)*a*x^3+1/(a*(a+b))^(1/2)/(-2*(a*(a+b))^(1/2)-2*a-b) *a*x^2*ln(1-b*exp(2*x)/(-2*(a*(a+b))^(1/2)-2*a-b))+1/(a*(a+b))^(1/2)/(-2*( a*(a+b))^(1/2)-2*a-b)*a*x*polylog(2,b*exp(2*x)/(-2*(a*(a+b))^(1/2)-2*a-b)) -1/2/(a*(a+b))^(1/2)/(-2*(a*(a+b))^(1/2)-2*a-b)*a*polylog(3,b*exp(2*x)/(-2 *(a*(a+b))^(1/2)-2*a-b))-1/3/(a*(a+b))^(1/2)/(-2*(a*(a+b))^(1/2)-2*a-b)*b* x^3+1/2/(a*(a+b))^(1/2)/(-2*(a*(a+b))^(1/2)-2*a-b)*b*x^2*ln(1-b*exp(2*x)/( -2*(a*(a+b))^(1/2)-2*a-b))+1/2/(a*(a+b))^(1/2)/(-2*(a*(a+b))^(1/2)-2*a-b)* b*x*polylog(2,b*exp(2*x)/(-2*(a*(a+b))^(1/2)-2*a-b))-1/4/(a*(a+b))^(1/2)/( -2*(a*(a+b))^(1/2)-2*a-b)*b*polylog(3,b*exp(2*x)/(-2*(a*(a+b))^(1/2)-2*a-b ))-1/3/(a*(a+b))^(1/2)*x^3+1/2/(a*(a+b))^(1/2)*x^2*ln(1-b*exp(2*x)/(2*(a*( a+b))^(1/2)-2*a-b))+1/2/(a*(a+b))^(1/2)*x*polylog(2,b*exp(2*x)/(2*(a*(a+b) )^(1/2)-2*a-b))-1/4/(a*(a+b))^(1/2)*polylog(3,b*exp(2*x)/(2*(a*(a+b))^(1/2 )-2*a-b))
Leaf count of result is larger than twice the leaf count of optimal. 1162 vs. \(2 (228) = 456\).
Time = 0.30 (sec) , antiderivative size = 1162, normalized size of antiderivative = 3.99 \[ \int \frac {x^2}{a+b \cosh ^2(x)} \, dx=\text {Too large to display} \]
-1/2*(b*x^2*sqrt((a^2 + a*b)/b^2)*log((((2*a + b)*cosh(x) + (2*a + b)*sinh (x) - 2*(b*cosh(x) + b*sinh(x))*sqrt((a^2 + a*b)/b^2))*sqrt(-(2*b*sqrt((a^ 2 + a*b)/b^2) + 2*a + b)/b) + b)/b) + b*x^2*sqrt((a^2 + a*b)/b^2)*log(-((( 2*a + b)*cosh(x) + (2*a + b)*sinh(x) - 2*(b*cosh(x) + b*sinh(x))*sqrt((a^2 + a*b)/b^2))*sqrt(-(2*b*sqrt((a^2 + a*b)/b^2) + 2*a + b)/b) - b)/b) - b*x ^2*sqrt((a^2 + a*b)/b^2)*log((((2*a + b)*cosh(x) + (2*a + b)*sinh(x) + 2*( b*cosh(x) + b*sinh(x))*sqrt((a^2 + a*b)/b^2))*sqrt((2*b*sqrt((a^2 + a*b)/b ^2) - 2*a - b)/b) + b)/b) - b*x^2*sqrt((a^2 + a*b)/b^2)*log(-(((2*a + b)*c osh(x) + (2*a + b)*sinh(x) + 2*(b*cosh(x) + b*sinh(x))*sqrt((a^2 + a*b)/b^ 2))*sqrt((2*b*sqrt((a^2 + a*b)/b^2) - 2*a - b)/b) - b)/b) + 2*b*x*sqrt((a^ 2 + a*b)/b^2)*dilog(-(((2*a + b)*cosh(x) + (2*a + b)*sinh(x) - 2*(b*cosh(x ) + b*sinh(x))*sqrt((a^2 + a*b)/b^2))*sqrt(-(2*b*sqrt((a^2 + a*b)/b^2) + 2 *a + b)/b) + b)/b + 1) + 2*b*x*sqrt((a^2 + a*b)/b^2)*dilog((((2*a + b)*cos h(x) + (2*a + b)*sinh(x) - 2*(b*cosh(x) + b*sinh(x))*sqrt((a^2 + a*b)/b^2) )*sqrt(-(2*b*sqrt((a^2 + a*b)/b^2) + 2*a + b)/b) - b)/b + 1) - 2*b*x*sqrt( (a^2 + a*b)/b^2)*dilog(-(((2*a + b)*cosh(x) + (2*a + b)*sinh(x) + 2*(b*cos h(x) + b*sinh(x))*sqrt((a^2 + a*b)/b^2))*sqrt((2*b*sqrt((a^2 + a*b)/b^2) - 2*a - b)/b) + b)/b + 1) - 2*b*x*sqrt((a^2 + a*b)/b^2)*dilog((((2*a + b)*c osh(x) + (2*a + b)*sinh(x) + 2*(b*cosh(x) + b*sinh(x))*sqrt((a^2 + a*b)/b^ 2))*sqrt((2*b*sqrt((a^2 + a*b)/b^2) - 2*a - b)/b) - b)/b + 1) - 2*b*sqr...
\[ \int \frac {x^2}{a+b \cosh ^2(x)} \, dx=\int \frac {x^{2}}{a + b \cosh ^{2}{\left (x \right )}}\, dx \]
\[ \int \frac {x^2}{a+b \cosh ^2(x)} \, dx=\int { \frac {x^{2}}{b \cosh \left (x\right )^{2} + a} \,d x } \]
\[ \int \frac {x^2}{a+b \cosh ^2(x)} \, dx=\int { \frac {x^{2}}{b \cosh \left (x\right )^{2} + a} \,d x } \]
Timed out. \[ \int \frac {x^2}{a+b \cosh ^2(x)} \, dx=\int \frac {x^2}{b\,{\mathrm {cosh}\left (x\right )}^2+a} \,d x \]