Integrand size = 32, antiderivative size = 80 \[ \int \frac {B+A x}{\left (17-18 x+5 x^2\right ) \sqrt {13-22 x+10 x^2}} \, dx=-\frac {(2 A+B) \arctan \left (\frac {\sqrt {35} (2-x)}{\sqrt {13-22 x+10 x^2}}\right )}{\sqrt {35}}-\frac {(A+B) \text {arctanh}\left (\frac {\sqrt {35} (1-x)}{2 \sqrt {13-22 x+10 x^2}}\right )}{2 \sqrt {35}} \] Output:
-1/35*(2*A+B)*arctan((2-x)*35^(1/2)/(10*x^2-22*x+13)^(1/2))*35^(1/2)-1/70* (A+B)*arctanh(1/2*(1-x)*35^(1/2)/(10*x^2-22*x+13)^(1/2))*35^(1/2)
Result contains complex when optimal does not.
Time = 0.83 (sec) , antiderivative size = 124, normalized size of antiderivative = 1.55 \[ \int \frac {B+A x}{\left (17-18 x+5 x^2\right ) \sqrt {13-22 x+10 x^2}} \, dx=\frac {((1+4 i) A+(1+2 i) B) \text {arctanh}\left (\frac {(4-i) \sqrt {10}-(2-i) \sqrt {10} x+(2-i) \sqrt {13-22 x+10 x^2}}{\sqrt {35}}\right )+((1-4 i) A+(1-2 i) B) \text {arctanh}\left (\frac {(4+i) \sqrt {10}-(2+i) \sqrt {10} x+(2+i) \sqrt {13-22 x+10 x^2}}{\sqrt {35}}\right )}{2 \sqrt {35}} \] Input:
Integrate[(B + A*x)/((17 - 18*x + 5*x^2)*Sqrt[13 - 22*x + 10*x^2]),x]
Output:
(((1 + 4*I)*A + (1 + 2*I)*B)*ArcTanh[((4 - I)*Sqrt[10] - (2 - I)*Sqrt[10]* x + (2 - I)*Sqrt[13 - 22*x + 10*x^2])/Sqrt[35]] + ((1 - 4*I)*A + (1 - 2*I) *B)*ArcTanh[((4 + I)*Sqrt[10] - (2 + I)*Sqrt[10]*x + (2 + I)*Sqrt[13 - 22* x + 10*x^2])/Sqrt[35]])/(2*Sqrt[35])
Time = 0.29 (sec) , antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.156, Rules used = {1368, 27, 1362, 217, 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 \frac {A x+B}{\left (5 x^2-18 x+17\right ) \sqrt {10 x^2-22 x+13}} \, dx\) |
\(\Big \downarrow \) 1368 |
\(\displaystyle \frac {1}{70} \int \frac {70 (A+B) (2-x)}{\left (5 x^2-18 x+17\right ) \sqrt {10 x^2-22 x+13}}dx-\frac {1}{70} \int \frac {70 (2 A+B-(2 A+B) x)}{\left (5 x^2-18 x+17\right ) \sqrt {10 x^2-22 x+13}}dx\) |
\(\Big \downarrow \) 27 |
\(\displaystyle (A+B) \int \frac {2-x}{\left (5 x^2-18 x+17\right ) \sqrt {10 x^2-22 x+13}}dx-\int \frac {2 A+B-(2 A+B) x}{\left (5 x^2-18 x+17\right ) \sqrt {10 x^2-22 x+13}}dx\) |
\(\Big \downarrow \) 1362 |
\(\displaystyle 32 (2 A+B)^2 \int \frac {1}{-\frac {8960 (2-x)^2 (2 A+B)^2}{10 x^2-22 x+13}-256 (2 A+B)^2}d\frac {8 (2 A+B) (2-x)}{\sqrt {10 x^2-22 x+13}}+8 (A+B) \int \frac {1}{64-\frac {560 (1-x)^2}{10 x^2-22 x+13}}d\left (-\frac {2 (1-x)}{\sqrt {10 x^2-22 x+13}}\right )\) |
\(\Big \downarrow \) 217 |
\(\displaystyle 8 (A+B) \int \frac {1}{64-\frac {560 (1-x)^2}{10 x^2-22 x+13}}d\left (-\frac {2 (1-x)}{\sqrt {10 x^2-22 x+13}}\right )-\frac {(2 A+B) \arctan \left (\frac {\sqrt {35} (2-x)}{\sqrt {10 x^2-22 x+13}}\right )}{\sqrt {35}}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle -\frac {(2 A+B) \arctan \left (\frac {\sqrt {35} (2-x)}{\sqrt {10 x^2-22 x+13}}\right )}{\sqrt {35}}-\frac {(A+B) \text {arctanh}\left (\frac {\sqrt {35} (1-x)}{2 \sqrt {10 x^2-22 x+13}}\right )}{2 \sqrt {35}}\) |
Input:
Int[(B + A*x)/((17 - 18*x + 5*x^2)*Sqrt[13 - 22*x + 10*x^2]),x]
Output:
-(((2*A + B)*ArcTan[(Sqrt[35]*(2 - x))/Sqrt[13 - 22*x + 10*x^2]])/Sqrt[35] ) - ((A + B)*ArcTanh[(Sqrt[35]*(1 - x))/(2*Sqrt[13 - 22*x + 10*x^2])])/(2* Sqrt[35])
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[(-(Rt[-a, 2]*Rt[-b, 2])^( -1))*ArcTan[Rt[-b, 2]*(x/Rt[-a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] & & (LtQ[a, 0] || LtQ[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[((g_.) + (h_.)*(x_))/(((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)*Sqrt[(d_.) + (e_.)*(x_) + (f_.)*(x_)^2]), x_Symbol] :> Simp[-2*g*(g*b - 2*a*h) Subst[I nt[1/Simp[g*(g*b - 2*a*h)*(b^2 - 4*a*c) - (b*d - a*e)*x^2, x], x], x, Simp[ g*b - 2*a*h - (b*h - 2*g*c)*x, x]/Sqrt[d + e*x + f*x^2]], x] /; FreeQ[{a, b , c, d, e, f, g, h}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[e^2 - 4*d*f, 0] && Ne Q[b*d - a*e, 0] && EqQ[h^2*(b*d - a*e) - 2*g*h*(c*d - a*f) + g^2*(c*e - b*f ), 0]
Int[((g_.) + (h_.)*(x_))/(((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)*Sqrt[(d_.) + (e_.)*(x_) + (f_.)*(x_)^2]), x_Symbol] :> With[{q = Rt[(c*d - a*f)^2 - (b*d - a*e)*(c*e - b*f), 2]}, Simp[1/(2*q) Int[Simp[h*(b*d - a*e) - g*(c*d - a*f - q) - (g*(c*e - b*f) - h*(c*d - a*f + q))*x, x]/((a + b*x + c*x^2)*Sqr t[d + e*x + f*x^2]), x], x] - Simp[1/(2*q) Int[Simp[h*(b*d - a*e) - g*(c* d - a*f + q) - (g*(c*e - b*f) - h*(c*d - a*f - q))*x, x]/((a + b*x + c*x^2) *Sqrt[d + e*x + f*x^2]), x], x]] /; FreeQ[{a, b, c, d, e, f, g, h}, x] && N eQ[b^2 - 4*a*c, 0] && NeQ[e^2 - 4*d*f, 0] && NeQ[b*d - a*e, 0] && NegQ[b^2 - 4*a*c]
Leaf count of result is larger than twice the leaf count of optimal. \(191\) vs. \(2(64)=128\).
Time = 0.72 (sec) , antiderivative size = 192, normalized size of antiderivative = 2.40
method | result | size |
default | \(\frac {\sqrt {\frac {\left (-2+x \right )^{2}}{\left (1-x \right )^{2}}+9}\, \sqrt {35}\, \left (\operatorname {arctanh}\left (\frac {2 \sqrt {\frac {\left (-2+x \right )^{2}}{\left (1-x \right )^{2}}+9}\, \sqrt {35}}{35}\right ) A -4 \arctan \left (\frac {\sqrt {35}\, \left (-2+x \right )}{\sqrt {\frac {\left (-2+x \right )^{2}}{\left (1-x \right )^{2}}+9}\, \left (1-x \right )}\right ) A +\operatorname {arctanh}\left (\frac {2 \sqrt {\frac {\left (-2+x \right )^{2}}{\left (1-x \right )^{2}}+9}\, \sqrt {35}}{35}\right ) B -2 \arctan \left (\frac {\sqrt {35}\, \left (-2+x \right )}{\sqrt {\frac {\left (-2+x \right )^{2}}{\left (1-x \right )^{2}}+9}\, \left (1-x \right )}\right ) B \right )}{70 \sqrt {\frac {\frac {\left (-2+x \right )^{2}}{\left (1-x \right )^{2}}+9}{\left (\frac {-2+x}{1-x}+1\right )^{2}}}\, \left (\frac {-2+x}{1-x}+1\right )}\) | \(192\) |
Input:
int((A*x+B)/(5*x^2-18*x+17)/(10*x^2-22*x+13)^(1/2),x,method=_RETURNVERBOSE )
Output:
1/70*((-2+x)^2/(1-x)^2+9)^(1/2)*35^(1/2)*(arctanh(2/35*((-2+x)^2/(1-x)^2+9 )^(1/2)*35^(1/2))*A-4*arctan(35^(1/2)/((-2+x)^2/(1-x)^2+9)^(1/2)*(-2+x)/(1 -x))*A+arctanh(2/35*((-2+x)^2/(1-x)^2+9)^(1/2)*35^(1/2))*B-2*arctan(35^(1/ 2)/((-2+x)^2/(1-x)^2+9)^(1/2)*(-2+x)/(1-x))*B)/(((-2+x)^2/(1-x)^2+9)/((-2+ x)/(1-x)+1)^2)^(1/2)/((-2+x)/(1-x)+1)
Leaf count of result is larger than twice the leaf count of optimal. 483 vs. \(2 (61) = 122\).
Time = 0.10 (sec) , antiderivative size = 483, normalized size of antiderivative = 6.04 \[ \int \frac {B+A x}{\left (17-18 x+5 x^2\right ) \sqrt {13-22 x+10 x^2}} \, dx =\text {Too large to display} \] Input:
integrate((A*x+B)/(5*x^2-18*x+17)/(10*x^2-22*x+13)^(1/2),x, algorithm="fri cas")
Output:
1/2*sqrt(4/35*A^2 + 4/35*A*B + 1/35*B^2)*arctan(35*(17*sqrt(4/35*A^2 + 4/3 5*A*B + 1/35*B^2)*((A + B)*x - 2*A - 2*B)*sqrt(10*x^2 - 22*x + 13) + 18*sq rt(4/35*A^2 + 4/35*A*B + 1/35*B^2)*sqrt(1/35*A^2 + 2/35*A*B + 1/35*B^2)*(9 *x^2 - 17*x))/(134*(2*A^2 + 3*A*B + B^2)*x^2 + 442*A^2 + 663*A*B + 221*B^2 - 374*(2*A^2 + 3*A*B + B^2)*x)) + 1/2*sqrt(4/35*A^2 + 4/35*A*B + 1/35*B^2 )*arctan(35*(17*sqrt(4/35*A^2 + 4/35*A*B + 1/35*B^2)*((A + B)*x - 2*A - 2* B)*sqrt(10*x^2 - 22*x + 13) - 18*sqrt(4/35*A^2 + 4/35*A*B + 1/35*B^2)*sqrt (1/35*A^2 + 2/35*A*B + 1/35*B^2)*(9*x^2 - 17*x))/(134*(2*A^2 + 3*A*B + B^2 )*x^2 + 442*A^2 + 663*A*B + 221*B^2 - 374*(2*A^2 + 3*A*B + B^2)*x)) + 1/8* sqrt(1/35*A^2 + 2/35*A*B + 1/35*B^2)*log((75*(A + B)*x^2 + 140*sqrt(1/35*A ^2 + 2/35*A*B + 1/35*B^2)*sqrt(10*x^2 - 22*x + 13)*(x - 1) - 158*(A + B)*x + 87*A + 87*B)/x^2) - 1/8*sqrt(1/35*A^2 + 2/35*A*B + 1/35*B^2)*log((75*(A + B)*x^2 - 140*sqrt(1/35*A^2 + 2/35*A*B + 1/35*B^2)*sqrt(10*x^2 - 22*x + 13)*(x - 1) - 158*(A + B)*x + 87*A + 87*B)/x^2)
\[ \int \frac {B+A x}{\left (17-18 x+5 x^2\right ) \sqrt {13-22 x+10 x^2}} \, dx=\int \frac {A x + B}{\left (5 x^{2} - 18 x + 17\right ) \sqrt {10 x^{2} - 22 x + 13}}\, dx \] Input:
integrate((A*x+B)/(5*x**2-18*x+17)/(10*x**2-22*x+13)**(1/2),x)
Output:
Integral((A*x + B)/((5*x**2 - 18*x + 17)*sqrt(10*x**2 - 22*x + 13)), x)
\[ \int \frac {B+A x}{\left (17-18 x+5 x^2\right ) \sqrt {13-22 x+10 x^2}} \, dx=\int { \frac {A x + B}{\sqrt {10 \, x^{2} - 22 \, x + 13} {\left (5 \, x^{2} - 18 \, x + 17\right )}} \,d x } \] Input:
integrate((A*x+B)/(5*x^2-18*x+17)/(10*x^2-22*x+13)^(1/2),x, algorithm="max ima")
Output:
integrate((A*x + B)/(sqrt(10*x^2 - 22*x + 13)*(5*x^2 - 18*x + 17)), x)
Leaf count of result is larger than twice the leaf count of optimal. 629 vs. \(2 (61) = 122\).
Time = 0.23 (sec) , antiderivative size = 629, normalized size of antiderivative = 7.86 \[ \int \frac {B+A x}{\left (17-18 x+5 x^2\right ) \sqrt {13-22 x+10 x^2}} \, dx =\text {Too large to display} \] Input:
integrate((A*x+B)/(5*x^2-18*x+17)/(10*x^2-22*x+13)^(1/2),x, algorithm="gia c")
Output:
2/35*sqrt(35)*(2*A^2 + 3*A*B + B^2)*sqrt(A^2 + 2*A*B + B^2)*(arctan(3) + a rctan(-(5*(sqrt(10)*x - sqrt(10*x^2 - 22*x + 13))*(300*sqrt(14) - 1129) - 7658*sqrt(35) + 14361*sqrt(10))/(2329*sqrt(35) - 4358*sqrt(10))))/(15*A^2 + 14*A*B + 3*B^2 - sqrt(289*A^4 + 612*A^3*B + 494*A^2*B^2 + 180*A*B^3 + 25 *B^4)) - 2/35*sqrt(35)*(2*A^2 + 3*A*B + B^2)*sqrt(A^2 + 2*A*B + B^2)*(arct an(1/7) + arctan(-(5*(sqrt(10)*x - sqrt(10*x^2 - 22*x + 13))*(62556*sqrt(1 4) + 245977) - 1617962*sqrt(35) - 3089577*sqrt(10))/(496201*sqrt(35) + 929 846*sqrt(10))))/(15*A^2 + 14*A*B + 3*B^2 - sqrt(289*A^4 + 612*A^3*B + 494* A^2*B^2 + 180*A*B^3 + 25*B^4)) + 1/140*sqrt(35)*sqrt(A^2 + 2*A*B + B^2)*lo g(25*(546*sqrt(14)*(sqrt(10)*x - sqrt(10*x^2 - 22*x + 13)) + 2807*sqrt(10) *x - 234*sqrt(35)*sqrt(14) - 1014*sqrt(14)*sqrt(10) - 1203*sqrt(35) - 5213 *sqrt(10) - 2807*sqrt(10*x^2 - 22*x + 13))^2 + 25*(78*sqrt(14)*(sqrt(10)*x - sqrt(10*x^2 - 22*x + 13)) + 401*sqrt(10)*x + 48*sqrt(35)*sqrt(14) + 208 *sqrt(14)*sqrt(10) + 141*sqrt(35) + 611*sqrt(10) - 401*sqrt(10*x^2 - 22*x + 13))^2) - 1/140*sqrt(35)*sqrt(A^2 + 2*A*B + B^2)*log(625*(18*sqrt(14)*(s qrt(10)*x - sqrt(10*x^2 - 22*x + 13)) - 75*sqrt(10)*x + 8*sqrt(35)*sqrt(14 ) - 24*sqrt(14)*sqrt(10) - 37*sqrt(35) + 111*sqrt(10) + 75*sqrt(10*x^2 - 2 2*x + 13))^2 + 625*(6*sqrt(14)*(sqrt(10)*x - sqrt(10*x^2 - 22*x + 13)) - 2 5*sqrt(10)*x + 6*sqrt(35)*sqrt(14) - 18*sqrt(14)*sqrt(10) - 25*sqrt(35) + 75*sqrt(10) + 25*sqrt(10*x^2 - 22*x + 13))^2)
Timed out. \[ \int \frac {B+A x}{\left (17-18 x+5 x^2\right ) \sqrt {13-22 x+10 x^2}} \, dx=\int \frac {B+A\,x}{\left (5\,x^2-18\,x+17\right )\,\sqrt {10\,x^2-22\,x+13}} \,d x \] Input:
int((B + A*x)/((5*x^2 - 18*x + 17)*(10*x^2 - 22*x + 13)^(1/2)),x)
Output:
int((B + A*x)/((5*x^2 - 18*x + 17)*(10*x^2 - 22*x + 13)^(1/2)), x)
\[ \int \frac {B+A x}{\left (17-18 x+5 x^2\right ) \sqrt {13-22 x+10 x^2}} \, dx=\left (\int \frac {x}{5 \sqrt {10 x^{2}-22 x +13}\, x^{2}-18 \sqrt {10 x^{2}-22 x +13}\, x +17 \sqrt {10 x^{2}-22 x +13}}d x \right ) a +\left (\int \frac {1}{5 \sqrt {10 x^{2}-22 x +13}\, x^{2}-18 \sqrt {10 x^{2}-22 x +13}\, x +17 \sqrt {10 x^{2}-22 x +13}}d x \right ) b \] Input:
int((A*x+B)/(5*x^2-18*x+17)/(10*x^2-22*x+13)^(1/2),x)
Output:
int(x/(5*sqrt(10*x**2 - 22*x + 13)*x**2 - 18*sqrt(10*x**2 - 22*x + 13)*x + 17*sqrt(10*x**2 - 22*x + 13)),x)*a + int(1/(5*sqrt(10*x**2 - 22*x + 13)*x **2 - 18*sqrt(10*x**2 - 22*x + 13)*x + 17*sqrt(10*x**2 - 22*x + 13)),x)*b