3.338 \(\int \frac{(d+e x)^2}{a+b x^2+c x^4} \, dx\)

Optimal. Leaf size=224 \[ \frac{\left (\frac{2 c d^2-b e^2}{\sqrt{b^2-4 a c}}+e^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} \sqrt{c} \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\left (e^2-\frac{2 c d^2-b e^2}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{2} \sqrt{c} \sqrt{\sqrt{b^2-4 a c}+b}}-\frac{2 d e \tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right )}{\sqrt{b^2-4 a c}} \]

[Out]

((e^2 + (2*c*d^2 - b*e^2)/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b -
 Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*Sqrt[c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + ((e^2 - (2
*c*d^2 - b*e^2)/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2
- 4*a*c]]])/(Sqrt[2]*Sqrt[c]*Sqrt[b + Sqrt[b^2 - 4*a*c]]) - (2*d*e*ArcTanh[(b +
2*c*x^2)/Sqrt[b^2 - 4*a*c]])/Sqrt[b^2 - 4*a*c]

_______________________________________________________________________________________

Rubi [A]  time = 0.66834, antiderivative size = 224, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 7, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.318 \[ \frac{\left (\frac{2 c d^2-b e^2}{\sqrt{b^2-4 a c}}+e^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{2} \sqrt{c} \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\left (e^2-\frac{2 c d^2-b e^2}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{2} \sqrt{c} \sqrt{\sqrt{b^2-4 a c}+b}}-\frac{2 d e \tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right )}{\sqrt{b^2-4 a c}} \]

Antiderivative was successfully verified.

[In]  Int[(d + e*x)^2/(a + b*x^2 + c*x^4),x]

[Out]

((e^2 + (2*c*d^2 - b*e^2)/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b -
 Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*Sqrt[c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + ((e^2 - (2
*c*d^2 - b*e^2)/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2
- 4*a*c]]])/(Sqrt[2]*Sqrt[c]*Sqrt[b + Sqrt[b^2 - 4*a*c]]) - (2*d*e*ArcTanh[(b +
2*c*x^2)/Sqrt[b^2 - 4*a*c]])/Sqrt[b^2 - 4*a*c]

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 61.612, size = 235, normalized size = 1.05 \[ - \frac{2 d e \operatorname{atanh}{\left (\frac{b + 2 c x^{2}}{\sqrt{- 4 a c + b^{2}}} \right )}}{\sqrt{- 4 a c + b^{2}}} + \frac{\sqrt{2} \left (b e^{2} - 2 c d^{2} + e^{2} \sqrt{- 4 a c + b^{2}}\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b + \sqrt{- 4 a c + b^{2}}}} \right )}}{2 \sqrt{c} \sqrt{b + \sqrt{- 4 a c + b^{2}}} \sqrt{- 4 a c + b^{2}}} - \frac{\sqrt{2} \left (b e^{2} - 2 c d^{2} - e^{2} \sqrt{- 4 a c + b^{2}}\right ) \operatorname{atan}{\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b - \sqrt{- 4 a c + b^{2}}}} \right )}}{2 \sqrt{c} \sqrt{b - \sqrt{- 4 a c + b^{2}}} \sqrt{- 4 a c + b^{2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((e*x+d)**2/(c*x**4+b*x**2+a),x)

[Out]

-2*d*e*atanh((b + 2*c*x**2)/sqrt(-4*a*c + b**2))/sqrt(-4*a*c + b**2) + sqrt(2)*(
b*e**2 - 2*c*d**2 + e**2*sqrt(-4*a*c + b**2))*atan(sqrt(2)*sqrt(c)*x/sqrt(b + sq
rt(-4*a*c + b**2)))/(2*sqrt(c)*sqrt(b + sqrt(-4*a*c + b**2))*sqrt(-4*a*c + b**2)
) - sqrt(2)*(b*e**2 - 2*c*d**2 - e**2*sqrt(-4*a*c + b**2))*atan(sqrt(2)*sqrt(c)*
x/sqrt(b - sqrt(-4*a*c + b**2)))/(2*sqrt(c)*sqrt(b - sqrt(-4*a*c + b**2))*sqrt(-
4*a*c + b**2))

_______________________________________________________________________________________

Mathematica [A]  time = 0.453746, size = 245, normalized size = 1.09 \[ \frac{\frac{\sqrt{2} \left (e^2 \left (\sqrt{b^2-4 a c}-b\right )+2 c d^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt{c} \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\sqrt{2} \left (e^2 \left (\sqrt{b^2-4 a c}+b\right )-2 c d^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right )}{\sqrt{c} \sqrt{\sqrt{b^2-4 a c}+b}}+2 d e \log \left (\sqrt{b^2-4 a c}-b-2 c x^2\right )-2 d e \log \left (\sqrt{b^2-4 a c}+b+2 c x^2\right )}{2 \sqrt{b^2-4 a c}} \]

Antiderivative was successfully verified.

[In]  Integrate[(d + e*x)^2/(a + b*x^2 + c*x^4),x]

[Out]

((Sqrt[2]*(2*c*d^2 + (-b + Sqrt[b^2 - 4*a*c])*e^2)*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sq
rt[b - Sqrt[b^2 - 4*a*c]]])/(Sqrt[c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + (Sqrt[2]*(-2
*c*d^2 + (b + Sqrt[b^2 - 4*a*c])*e^2)*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b
^2 - 4*a*c]]])/(Sqrt[c]*Sqrt[b + Sqrt[b^2 - 4*a*c]]) + 2*d*e*Log[-b + Sqrt[b^2 -
 4*a*c] - 2*c*x^2] - 2*d*e*Log[b + Sqrt[b^2 - 4*a*c] + 2*c*x^2])/(2*Sqrt[b^2 - 4
*a*c])

_______________________________________________________________________________________

Maple [B]  time = 0.039, size = 633, normalized size = 2.8 \[ \text{result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((e*x+d)^2/(c*x^4+b*x^2+a),x)

[Out]

(-4*a*c+b^2)^(1/2)/(4*a*c-b^2)*d*e*ln(2*c*x^2+(-4*a*c+b^2)^(1/2)+b)+2*c/(4*a*c-b
^2)*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((b+(-4*a*c+b^2)
^(1/2))*c)^(1/2))*e^2*a-1/2/(4*a*c-b^2)*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)
*arctan(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*e^2*b^2-1/2*(-4*a*c+b^2)^(
1/2)/(4*a*c-b^2)*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((b
+(-4*a*c+b^2)^(1/2))*c)^(1/2))*b*e^2+c*(-4*a*c+b^2)^(1/2)/(4*a*c-b^2)*2^(1/2)/((
b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/
2))*d^2-(-4*a*c+b^2)^(1/2)/(4*a*c-b^2)*d*e*ln(-2*c*x^2+(-4*a*c+b^2)^(1/2)-b)-2*c
/(4*a*c-b^2)*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(c*x*2^(1/2)/((-b+
(-4*a*c+b^2)^(1/2))*c)^(1/2))*e^2*a+1/2/(4*a*c-b^2)*2^(1/2)/((-b+(-4*a*c+b^2)^(1
/2))*c)^(1/2)*arctanh(c*x*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*e^2*b^2-1/2
*(-4*a*c+b^2)^(1/2)/(4*a*c-b^2)*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctan
h(c*x*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2))*b*e^2+c*(-4*a*c+b^2)^(1/2)/(4*a
*c-b^2)*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(c*x*2^(1/2)/((-b+(-4*a
*c+b^2)^(1/2))*c)^(1/2))*d^2

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (e x + d\right )}^{2}}{c x^{4} + b x^{2} + a}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x + d)^2/(c*x^4 + b*x^2 + a),x, algorithm="maxima")

[Out]

integrate((e*x + d)^2/(c*x^4 + b*x^2 + a), x)

_______________________________________________________________________________________

Fricas [F(-2)]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: NotImplementedError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x + d)^2/(c*x^4 + b*x^2 + a),x, algorithm="fricas")

[Out]

Exception raised: NotImplementedError

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x+d)**2/(c*x**4+b*x**2+a),x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 1.04054, size = 1, normalized size = 0. \[ \mathit{Done} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x + d)^2/(c*x^4 + b*x^2 + a),x, algorithm="giac")

[Out]

Done