Integrand size = 34, antiderivative size = 138 \[ \int \frac {x \left (A+B x^2+C x^4\right )}{\left (c+d x^2\right ) \sqrt {a+c x^4}} \, dx=\frac {C \sqrt {a+c x^4}}{2 c d}-\frac {(c C-B d) \text {arctanh}\left (\frac {\sqrt {c} x^2}{\sqrt {a+c x^4}}\right )}{2 \sqrt {c} d^2}-\frac {\left (c^2 C-B c d+A d^2\right ) \text {arctanh}\left (\frac {a d-c^2 x^2}{\sqrt {c^3+a d^2} \sqrt {a+c x^4}}\right )}{2 d^2 \sqrt {c^3+a d^2}} \] Output:
1/2*C*(c*x^4+a)^(1/2)/c/d-1/2*(-B*d+C*c)*arctanh(c^(1/2)*x^2/(c*x^4+a)^(1/ 2))/c^(1/2)/d^2-1/2*(A*d^2-B*c*d+C*c^2)*arctanh((-c^2*x^2+a*d)/(a*d^2+c^3) ^(1/2)/(c*x^4+a)^(1/2))/d^2/(a*d^2+c^3)^(1/2)
Time = 0.62 (sec) , antiderivative size = 144, normalized size of antiderivative = 1.04 \[ \int \frac {x \left (A+B x^2+C x^4\right )}{\left (c+d x^2\right ) \sqrt {a+c x^4}} \, dx=\frac {\frac {C d \sqrt {a+c x^4}}{c}-\frac {2 \left (c^2 C-B c d+A d^2\right ) \arctan \left (\frac {c^{3/2}+\sqrt {c} d x^2-d \sqrt {a+c x^4}}{\sqrt {-c^3-a d^2}}\right )}{\sqrt {-c^3-a d^2}}+\frac {(c C-B d) \log \left (-\sqrt {c} x^2+\sqrt {a+c x^4}\right )}{\sqrt {c}}}{2 d^2} \] Input:
Integrate[(x*(A + B*x^2 + C*x^4))/((c + d*x^2)*Sqrt[a + c*x^4]),x]
Output:
((C*d*Sqrt[a + c*x^4])/c - (2*(c^2*C - B*c*d + A*d^2)*ArcTan[(c^(3/2) + Sq rt[c]*d*x^2 - d*Sqrt[a + c*x^4])/Sqrt[-c^3 - a*d^2]])/Sqrt[-c^3 - a*d^2] + ((c*C - B*d)*Log[-(Sqrt[c]*x^2) + Sqrt[a + c*x^4]])/Sqrt[c])/(2*d^2)
Time = 0.63 (sec) , antiderivative size = 142, normalized size of antiderivative = 1.03, number of steps used = 12, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.324, Rules used = {2237, 27, 2253, 2239, 25, 27, 719, 224, 219, 488, 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 {x \left (A+B x^2+C x^4\right )}{\sqrt {a+c x^4} \left (c+d x^2\right )} \, dx\) |
\(\Big \downarrow \) 2237 |
\(\displaystyle \frac {\int -\frac {2 \left (c C x^3 \left (d x^2+c\right )-c d x \left (C x^4+B x^2+A\right )\right )}{\left (d x^2+c\right ) \sqrt {c x^4+a}}dx}{2 c d}+\frac {C \sqrt {a+c x^4}}{2 c d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {C \sqrt {a+c x^4}}{2 c d}-\frac {\int \frac {c C x^3 \left (d x^2+c\right )-c d x \left (C x^4+B x^2+A\right )}{\left (d x^2+c\right ) \sqrt {c x^4+a}}dx}{c d}\) |
\(\Big \downarrow \) 2253 |
\(\displaystyle \frac {C \sqrt {a+c x^4}}{2 c d}-\frac {\int \frac {x \left (c (c C-B d) x^2-A c d\right )}{\left (d x^2+c\right ) \sqrt {c x^4+a}}dx}{c d}\) |
\(\Big \downarrow \) 2239 |
\(\displaystyle \frac {C \sqrt {a+c x^4}}{2 c d}-\frac {\int -\frac {c \left (A d-(c C-B d) x^2\right )}{\left (d x^2+c\right ) \sqrt {c x^4+a}}dx^2}{2 c d}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {\int \frac {c \left (A d-(c C-B d) x^2\right )}{\left (d x^2+c\right ) \sqrt {c x^4+a}}dx^2}{2 c d}+\frac {C \sqrt {a+c x^4}}{2 c d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\int \frac {A d-(c C-B d) x^2}{\left (d x^2+c\right ) \sqrt {c x^4+a}}dx^2}{2 d}+\frac {C \sqrt {a+c x^4}}{2 c d}\) |
\(\Big \downarrow \) 719 |
\(\displaystyle \frac {\frac {\left (A d^2-B c d+c^2 C\right ) \int \frac {1}{\left (d x^2+c\right ) \sqrt {c x^4+a}}dx^2}{d}-\frac {(c C-B d) \int \frac {1}{\sqrt {c x^4+a}}dx^2}{d}}{2 d}+\frac {C \sqrt {a+c x^4}}{2 c d}\) |
\(\Big \downarrow \) 224 |
\(\displaystyle \frac {\frac {\left (A d^2-B c d+c^2 C\right ) \int \frac {1}{\left (d x^2+c\right ) \sqrt {c x^4+a}}dx^2}{d}-\frac {(c C-B d) \int \frac {1}{1-c x^4}d\frac {x^2}{\sqrt {c x^4+a}}}{d}}{2 d}+\frac {C \sqrt {a+c x^4}}{2 c d}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {\frac {\left (A d^2-B c d+c^2 C\right ) \int \frac {1}{\left (d x^2+c\right ) \sqrt {c x^4+a}}dx^2}{d}-\frac {\text {arctanh}\left (\frac {\sqrt {c} x^2}{\sqrt {a+c x^4}}\right ) (c C-B d)}{\sqrt {c} d}}{2 d}+\frac {C \sqrt {a+c x^4}}{2 c d}\) |
\(\Big \downarrow \) 488 |
\(\displaystyle \frac {-\frac {\left (A d^2-B c d+c^2 C\right ) \int \frac {1}{-x^4+c^3+a d^2}d\frac {a d-c^2 x^2}{\sqrt {c x^4+a}}}{d}-\frac {\text {arctanh}\left (\frac {\sqrt {c} x^2}{\sqrt {a+c x^4}}\right ) (c C-B d)}{\sqrt {c} d}}{2 d}+\frac {C \sqrt {a+c x^4}}{2 c d}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {-\frac {\text {arctanh}\left (\frac {a d-c^2 x^2}{\sqrt {a d^2+c^3} \sqrt {a+c x^4}}\right ) \left (A d^2-B c d+c^2 C\right )}{d \sqrt {a d^2+c^3}}-\frac {\text {arctanh}\left (\frac {\sqrt {c} x^2}{\sqrt {a+c x^4}}\right ) (c C-B d)}{\sqrt {c} d}}{2 d}+\frac {C \sqrt {a+c x^4}}{2 c d}\) |
Input:
Int[(x*(A + B*x^2 + C*x^4))/((c + d*x^2)*Sqrt[a + c*x^4]),x]
Output:
(C*Sqrt[a + c*x^4])/(2*c*d) + (-(((c*C - B*d)*ArcTanh[(Sqrt[c]*x^2)/Sqrt[a + c*x^4]])/(Sqrt[c]*d)) - ((c^2*C - B*c*d + A*d^2)*ArcTanh[(a*d - c^2*x^2 )/(Sqrt[c^3 + a*d^2]*Sqrt[a + c*x^4])])/(d*Sqrt[c^3 + a*d^2]))/(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[((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[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a, b}, x] && !GtQ[a, 0]
Int[1/(((c_) + (d_.)*(x_))*Sqrt[(a_) + (b_.)*(x_)^2]), x_Symbol] :> -Subst[ Int[1/(b*c^2 + a*d^2 - x^2), x], x, (a*d - b*c*x)/Sqrt[a + b*x^2]] /; FreeQ [{a, b, c, d}, x]
Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p _.), x_Symbol] :> Simp[g/e Int[(d + e*x)^(m + 1)*(a + c*x^2)^p, x], x] + Simp[(e*f - d*g)/e Int[(d + e*x)^m*(a + c*x^2)^p, x], x] /; FreeQ[{a, c, d, e, f, g, m, p}, x] && !IGtQ[m, 0]
Int[(Px_)/(((d_) + (e_.)*(x_)^2)*Sqrt[(a_) + (c_.)*(x_)^4]), x_Symbol] :> W ith[{q = Expon[Px, x]}, Simp[Coeff[Px, x, q]*x^(q - 5)*(Sqrt[a + c*x^4]/(c* e*(q - 3))), x] + Simp[1/(c*e*(q - 3)) Int[(c*e*(q - 3)*Px - Coeff[Px, x, q]*x^(q - 6)*(d + e*x^2)*(a*(q - 5) + c*(q - 3)*x^4))/((d + e*x^2)*Sqrt[a + c*x^4]), x], x] /; GtQ[q, 4]] /; FreeQ[{a, c, d, e}, x] && PolyQ[Px, x]
Int[(Px_)*(x_)*((d_) + (e_.)*(x_)^2)^(q_.)*((a_) + (c_.)*(x_)^4)^(p_.), x_S ymbol] :> Simp[1/2 Subst[Int[(Px /. x -> Sqrt[x])*(d + e*x)^q*(a + c*x^2) ^p, x], x, x^2], x] /; FreeQ[{a, c, d, e, p, q}, x] && PolyQ[Px, x^2]
Int[(Px_)*((d_) + (e_.)*(x_)^2)^(q_.)*((a_) + (c_.)*(x_)^4)^(p_), x_Symbol] :> With[{m = Expon[Px, x, Min]}, Int[x^m*ExpandToSum[Px/x^m, x]*(d + e*x^2 )^q*(a + c*x^4)^p, x] /; GtQ[m, 0] && !MatchQ[Px, x^m*(u_.)]] /; FreeQ[{a, c, d, e, p, q}, x] && PolyQ[Px, x]
Time = 0.63 (sec) , antiderivative size = 198, normalized size of antiderivative = 1.43
method | result | size |
default | \(\frac {\frac {\left (B d -C c \right ) \ln \left (\sqrt {c}\, x^{2}+\sqrt {c \,x^{4}+a}\right )}{2 \sqrt {c}}+\frac {C d \sqrt {c \,x^{4}+a}}{2 c}}{d^{2}}-\frac {\left (A \,d^{2}-B c d +C \,c^{2}\right ) \ln \left (\frac {\frac {2 a \,d^{2}+2 c^{3}}{d^{2}}-\frac {2 c^{2} \left (x^{2}+\frac {c}{d}\right )}{d}+2 \sqrt {\frac {a \,d^{2}+c^{3}}{d^{2}}}\, \sqrt {\left (x^{2}+\frac {c}{d}\right )^{2} c -\frac {2 c^{2} \left (x^{2}+\frac {c}{d}\right )}{d}+\frac {a \,d^{2}+c^{3}}{d^{2}}}}{x^{2}+\frac {c}{d}}\right )}{2 d^{3} \sqrt {\frac {a \,d^{2}+c^{3}}{d^{2}}}}\) | \(198\) |
risch | \(\frac {C \sqrt {c \,x^{4}+a}}{2 c d}+\frac {\frac {\left (B d -C c \right ) \ln \left (\sqrt {c}\, x^{2}+\sqrt {c \,x^{4}+a}\right )}{2 d \sqrt {c}}-\frac {\left (A \,d^{2}-B c d +C \,c^{2}\right ) \ln \left (\frac {\frac {2 a \,d^{2}+2 c^{3}}{d^{2}}-\frac {2 c^{2} \left (x^{2}+\frac {c}{d}\right )}{d}+2 \sqrt {\frac {a \,d^{2}+c^{3}}{d^{2}}}\, \sqrt {\left (x^{2}+\frac {c}{d}\right )^{2} c -\frac {2 c^{2} \left (x^{2}+\frac {c}{d}\right )}{d}+\frac {a \,d^{2}+c^{3}}{d^{2}}}}{x^{2}+\frac {c}{d}}\right )}{2 d^{2} \sqrt {\frac {a \,d^{2}+c^{3}}{d^{2}}}}}{d}\) | \(203\) |
elliptic | \(\frac {\frac {B d \ln \left (\sqrt {c}\, x^{2}+\sqrt {c \,x^{4}+a}\right )}{\sqrt {c}}+\frac {C d \sqrt {c \,x^{4}+a}}{c}-C \sqrt {c}\, \ln \left (\sqrt {c}\, x^{2}+\sqrt {c \,x^{4}+a}\right )}{2 d^{2}}-\frac {\left (A \,d^{2}-B c d +C \,c^{2}\right ) \ln \left (\frac {\frac {2 a \,d^{2}+2 c^{3}}{d^{2}}-\frac {2 c^{2} \left (x^{2}+\frac {c}{d}\right )}{d}+2 \sqrt {\frac {a \,d^{2}+c^{3}}{d^{2}}}\, \sqrt {\left (x^{2}+\frac {c}{d}\right )^{2} c -\frac {2 c^{2} \left (x^{2}+\frac {c}{d}\right )}{d}+\frac {a \,d^{2}+c^{3}}{d^{2}}}}{x^{2}+\frac {c}{d}}\right )}{2 d^{3} \sqrt {\frac {a \,d^{2}+c^{3}}{d^{2}}}}\) | \(215\) |
Input:
int(x*(C*x^4+B*x^2+A)/(d*x^2+c)/(c*x^4+a)^(1/2),x,method=_RETURNVERBOSE)
Output:
1/d^2*(1/2*(B*d-C*c)*ln(c^(1/2)*x^2+(c*x^4+a)^(1/2))/c^(1/2)+1/2*C*d/c*(c* x^4+a)^(1/2))-1/2*(A*d^2-B*c*d+C*c^2)/d^3/((a*d^2+c^3)/d^2)^(1/2)*ln((2*(a *d^2+c^3)/d^2-2*c^2/d*(x^2+c/d)+2*((a*d^2+c^3)/d^2)^(1/2)*((x^2+c/d)^2*c-2 *c^2/d*(x^2+c/d)+(a*d^2+c^3)/d^2)^(1/2))/(x^2+c/d))
Time = 46.11 (sec) , antiderivative size = 863, normalized size of antiderivative = 6.25 \[ \int \frac {x \left (A+B x^2+C x^4\right )}{\left (c+d x^2\right ) \sqrt {a+c x^4}} \, dx =\text {Too large to display} \] Input:
integrate(x*(C*x^4+B*x^2+A)/(d*x^2+c)/(c*x^4+a)^(1/2),x, algorithm="fricas ")
Output:
[-1/4*((C*c^4 - B*c^3*d + C*a*c*d^2 - B*a*d^3)*sqrt(c)*log(-2*c*x^4 - 2*sq rt(c*x^4 + a)*sqrt(c)*x^2 - a) - (C*c^3 - B*c^2*d + A*c*d^2)*sqrt(c^3 + a* d^2)*log((2*a*c^2*d*x^2 - (2*c^4 + a*c*d^2)*x^4 - a*c^3 - 2*a^2*d^2 - 2*sq rt(c*x^4 + a)*(c^2*x^2 - a*d)*sqrt(c^3 + a*d^2))/(d^2*x^4 + 2*c*d*x^2 + c^ 2)) - 2*(C*c^3*d + C*a*d^3)*sqrt(c*x^4 + a))/(c^4*d^2 + a*c*d^4), 1/4*(2*( C*c^4 - B*c^3*d + C*a*c*d^2 - B*a*d^3)*sqrt(-c)*arctan(sqrt(c*x^4 + a)*sqr t(-c)/(c*x^2)) + (C*c^3 - B*c^2*d + A*c*d^2)*sqrt(c^3 + a*d^2)*log((2*a*c^ 2*d*x^2 - (2*c^4 + a*c*d^2)*x^4 - a*c^3 - 2*a^2*d^2 - 2*sqrt(c*x^4 + a)*(c ^2*x^2 - a*d)*sqrt(c^3 + a*d^2))/(d^2*x^4 + 2*c*d*x^2 + c^2)) + 2*(C*c^3*d + C*a*d^3)*sqrt(c*x^4 + a))/(c^4*d^2 + a*c*d^4), -1/4*(2*(C*c^3 - B*c^2*d + A*c*d^2)*sqrt(-c^3 - a*d^2)*arctan(sqrt(c*x^4 + a)*(c^2*x^2 - a*d)*sqrt (-c^3 - a*d^2)/((c^4 + a*c*d^2)*x^4 + a*c^3 + a^2*d^2)) + (C*c^4 - B*c^3*d + C*a*c*d^2 - B*a*d^3)*sqrt(c)*log(-2*c*x^4 - 2*sqrt(c*x^4 + a)*sqrt(c)*x ^2 - a) - 2*(C*c^3*d + C*a*d^3)*sqrt(c*x^4 + a))/(c^4*d^2 + a*c*d^4), -1/2 *((C*c^3 - B*c^2*d + A*c*d^2)*sqrt(-c^3 - a*d^2)*arctan(sqrt(c*x^4 + a)*(c ^2*x^2 - a*d)*sqrt(-c^3 - a*d^2)/((c^4 + a*c*d^2)*x^4 + a*c^3 + a^2*d^2)) - (C*c^4 - B*c^3*d + C*a*c*d^2 - B*a*d^3)*sqrt(-c)*arctan(sqrt(c*x^4 + a)* sqrt(-c)/(c*x^2)) - (C*c^3*d + C*a*d^3)*sqrt(c*x^4 + a))/(c^4*d^2 + a*c*d^ 4)]
\[ \int \frac {x \left (A+B x^2+C x^4\right )}{\left (c+d x^2\right ) \sqrt {a+c x^4}} \, dx=\int \frac {x \left (A + B x^{2} + C x^{4}\right )}{\sqrt {a + c x^{4}} \left (c + d x^{2}\right )}\, dx \] Input:
integrate(x*(C*x**4+B*x**2+A)/(d*x**2+c)/(c*x**4+a)**(1/2),x)
Output:
Integral(x*(A + B*x**2 + C*x**4)/(sqrt(a + c*x**4)*(c + d*x**2)), x)
\[ \int \frac {x \left (A+B x^2+C x^4\right )}{\left (c+d x^2\right ) \sqrt {a+c x^4}} \, dx=\int { \frac {{\left (C x^{4} + B x^{2} + A\right )} x}{\sqrt {c x^{4} + a} {\left (d x^{2} + c\right )}} \,d x } \] Input:
integrate(x*(C*x^4+B*x^2+A)/(d*x^2+c)/(c*x^4+a)^(1/2),x, algorithm="maxima ")
Output:
integrate((C*x^4 + B*x^2 + A)*x/(sqrt(c*x^4 + a)*(d*x^2 + c)), x)
Exception generated. \[ \int \frac {x \left (A+B x^2+C x^4\right )}{\left (c+d x^2\right ) \sqrt {a+c x^4}} \, dx=\text {Exception raised: TypeError} \] Input:
integrate(x*(C*x^4+B*x^2+A)/(d*x^2+c)/(c*x^4+a)^(1/2),x, algorithm="giac")
Output:
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:index.cc index_m i_lex_is_greater E rror: Bad Argument Value
Timed out. \[ \int \frac {x \left (A+B x^2+C x^4\right )}{\left (c+d x^2\right ) \sqrt {a+c x^4}} \, dx=\int \frac {x\,\left (C\,x^4+B\,x^2+A\right )}{\sqrt {c\,x^4+a}\,\left (d\,x^2+c\right )} \,d x \] Input:
int((x*(A + B*x^2 + C*x^4))/((a + c*x^4)^(1/2)*(c + d*x^2)),x)
Output:
int((x*(A + B*x^2 + C*x^4))/((a + c*x^4)^(1/2)*(c + d*x^2)), x)
\[ \int \frac {x \left (A+B x^2+C x^4\right )}{\left (c+d x^2\right ) \sqrt {a+c x^4}} \, dx=\left (\int \frac {x^{5}}{\sqrt {c \,x^{4}+a}\, c +\sqrt {c \,x^{4}+a}\, d \,x^{2}}d x \right ) c +\left (\int \frac {x^{3}}{\sqrt {c \,x^{4}+a}\, c +\sqrt {c \,x^{4}+a}\, d \,x^{2}}d x \right ) b +\left (\int \frac {x}{\sqrt {c \,x^{4}+a}\, c +\sqrt {c \,x^{4}+a}\, d \,x^{2}}d x \right ) a \] Input:
int(x*(C*x^4+B*x^2+A)/(d*x^2+c)/(c*x^4+a)^(1/2),x)
Output:
int(x**5/(sqrt(a + c*x**4)*c + sqrt(a + c*x**4)*d*x**2),x)*c + int(x**3/(s qrt(a + c*x**4)*c + sqrt(a + c*x**4)*d*x**2),x)*b + int(x/(sqrt(a + c*x**4 )*c + sqrt(a + c*x**4)*d*x**2),x)*a