\(\int \frac {(d+e x) \sqrt {f+g x}}{\sqrt {a+c x^2}} \, dx\) [126]

Optimal result
Mathematica [C] (verified)
Rubi [A] (warning: unable to verify)
Maple [A] (verified)
Fricas [A] (verification not implemented)
Sympy [F]
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 26, antiderivative size = 478 \[ \int \frac {(d+e x) \sqrt {f+g x}}{\sqrt {a+c x^2}} \, dx=\frac {2 e \sqrt {f+g x} \sqrt {a+c x^2}}{3 c}-\frac {2 \left (\sqrt {c} f-\sqrt {-a} g\right ) \sqrt {\sqrt {c} f+\sqrt {-a} g} (e f+3 d g) \sqrt {1-\frac {\sqrt {c} (f+g x)}{\sqrt {c} f-\sqrt {-a} g}} \sqrt {1-\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} E\left (\arcsin \left (\frac {\sqrt [4]{c} \sqrt {f+g x}}{\sqrt {\sqrt {c} f+\sqrt {-a} g}}\right )|\frac {\sqrt {c} f+\sqrt {-a} g}{\sqrt {c} f-\sqrt {-a} g}\right )}{3 c^{3/4} g^2 \sqrt {a+c x^2}}+\frac {2 \sqrt {\sqrt {c} f+\sqrt {-a} g} \left (3 c d f-a e g-\sqrt {-a} \sqrt {c} (e f+3 d g)\right ) \sqrt {1-\frac {\sqrt {c} (f+g x)}{\sqrt {c} f-\sqrt {-a} g}} \sqrt {1-\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt [4]{c} \sqrt {f+g x}}{\sqrt {\sqrt {c} f+\sqrt {-a} g}}\right ),\frac {\sqrt {c} f+\sqrt {-a} g}{\sqrt {c} f-\sqrt {-a} g}\right )}{3 c^{5/4} g \sqrt {a+c x^2}} \] Output:

2/3*e*(g*x+f)^(1/2)*(c*x^2+a)^(1/2)/c-2/3*(c^(1/2)*f-(-a)^(1/2)*g)*(c^(1/2 
)*f+(-a)^(1/2)*g)^(1/2)*(3*d*g+e*f)*(1-c^(1/2)*(g*x+f)/(c^(1/2)*f-(-a)^(1/ 
2)*g))^(1/2)*(1-c^(1/2)*(g*x+f)/(c^(1/2)*f+(-a)^(1/2)*g))^(1/2)*EllipticE( 
c^(1/4)*(g*x+f)^(1/2)/(c^(1/2)*f+(-a)^(1/2)*g)^(1/2),((c^(1/2)*f+(-a)^(1/2 
)*g)/(c^(1/2)*f-(-a)^(1/2)*g))^(1/2))/c^(3/4)/g^2/(c*x^2+a)^(1/2)+2/3*(c^( 
1/2)*f+(-a)^(1/2)*g)^(1/2)*(3*c*d*f-a*e*g-(-a)^(1/2)*c^(1/2)*(3*d*g+e*f))* 
(1-c^(1/2)*(g*x+f)/(c^(1/2)*f-(-a)^(1/2)*g))^(1/2)*(1-c^(1/2)*(g*x+f)/(c^( 
1/2)*f+(-a)^(1/2)*g))^(1/2)*EllipticF(c^(1/4)*(g*x+f)^(1/2)/(c^(1/2)*f+(-a 
)^(1/2)*g)^(1/2),((c^(1/2)*f+(-a)^(1/2)*g)/(c^(1/2)*f-(-a)^(1/2)*g))^(1/2) 
)/c^(5/4)/g/(c*x^2+a)^(1/2)
 

Mathematica [C] (verified)

Result contains complex when optimal does not.

Time = 24.89 (sec) , antiderivative size = 464, normalized size of antiderivative = 0.97 \[ \int \frac {(d+e x) \sqrt {f+g x}}{\sqrt {a+c x^2}} \, dx=\frac {2 \sqrt {f+g x} \left (e \left (a+c x^2\right )+\frac {(e f+3 d g) \left (a+c x^2\right )}{f+g x}+\frac {i c \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}} (e f+3 d g) \sqrt {\frac {g \left (\frac {i \sqrt {a}}{\sqrt {c}}+x\right )}{f+g x}} \sqrt {-\frac {\frac {i \sqrt {a} g}{\sqrt {c}}-g x}{f+g x}} \sqrt {f+g x} E\left (i \text {arcsinh}\left (\frac {\sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}}{\sqrt {f+g x}}\right )|\frac {\sqrt {c} f-i \sqrt {a} g}{\sqrt {c} f+i \sqrt {a} g}\right )}{g^2}+\frac {i \left (3 \sqrt {c} d+i \sqrt {a} e\right ) \left (\sqrt {c} f+i \sqrt {a} g\right ) \sqrt {\frac {g \left (\frac {i \sqrt {a}}{\sqrt {c}}+x\right )}{f+g x}} \sqrt {-\frac {\frac {i \sqrt {a} g}{\sqrt {c}}-g x}{f+g x}} \sqrt {f+g x} \operatorname {EllipticF}\left (i \text {arcsinh}\left (\frac {\sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}}{\sqrt {f+g x}}\right ),\frac {\sqrt {c} f-i \sqrt {a} g}{\sqrt {c} f+i \sqrt {a} g}\right )}{g \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}}\right )}{3 c \sqrt {a+c x^2}} \] Input:

Integrate[((d + e*x)*Sqrt[f + g*x])/Sqrt[a + c*x^2],x]
 

Output:

(2*Sqrt[f + g*x]*(e*(a + c*x^2) + ((e*f + 3*d*g)*(a + c*x^2))/(f + g*x) + 
(I*c*Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]]*(e*f + 3*d*g)*Sqrt[(g*((I*Sqrt[a])/S 
qrt[c] + x))/(f + g*x)]*Sqrt[-(((I*Sqrt[a]*g)/Sqrt[c] - g*x)/(f + g*x))]*S 
qrt[f + g*x]*EllipticE[I*ArcSinh[Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]]/Sqrt[f + 
 g*x]], (Sqrt[c]*f - I*Sqrt[a]*g)/(Sqrt[c]*f + I*Sqrt[a]*g)])/g^2 + (I*(3* 
Sqrt[c]*d + I*Sqrt[a]*e)*(Sqrt[c]*f + I*Sqrt[a]*g)*Sqrt[(g*((I*Sqrt[a])/Sq 
rt[c] + x))/(f + g*x)]*Sqrt[-(((I*Sqrt[a]*g)/Sqrt[c] - g*x)/(f + g*x))]*Sq 
rt[f + g*x]*EllipticF[I*ArcSinh[Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]]/Sqrt[f + 
g*x]], (Sqrt[c]*f - I*Sqrt[a]*g)/(Sqrt[c]*f + I*Sqrt[a]*g)])/(g*Sqrt[-f - 
(I*Sqrt[a]*g)/Sqrt[c]])))/(3*c*Sqrt[a + c*x^2])
 

Rubi [A] (warning: unable to verify)

Time = 1.29 (sec) , antiderivative size = 667, normalized size of antiderivative = 1.40, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {687, 27, 599, 1511, 1416, 1509}

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 {(d+e x) \sqrt {f+g x}}{\sqrt {a+c x^2}} \, dx\)

\(\Big \downarrow \) 687

\(\displaystyle \frac {2 \int \frac {3 c d f-a e g+c (e f+3 d g) x}{2 \sqrt {f+g x} \sqrt {c x^2+a}}dx}{3 c}+\frac {2 e \sqrt {a+c x^2} \sqrt {f+g x}}{3 c}\)

\(\Big \downarrow \) 27

\(\displaystyle \frac {\int \frac {3 c d f-a e g+c (e f+3 d g) x}{\sqrt {f+g x} \sqrt {c x^2+a}}dx}{3 c}+\frac {2 e \sqrt {a+c x^2} \sqrt {f+g x}}{3 c}\)

\(\Big \downarrow \) 599

\(\displaystyle \frac {2 e \sqrt {a+c x^2} \sqrt {f+g x}}{3 c}-\frac {2 \int \frac {e \left (c f^2+a g^2\right )-c (e f+3 d g) (f+g x)}{\sqrt {\frac {c f^2}{g^2}-\frac {2 c (f+g x) f}{g^2}+\frac {c (f+g x)^2}{g^2}+a}}d\sqrt {f+g x}}{3 c g^2}\)

\(\Big \downarrow \) 1511

\(\displaystyle \frac {2 e \sqrt {a+c x^2} \sqrt {f+g x}}{3 c}-\frac {2 \left (\left (-\sqrt {c} \sqrt {a g^2+c f^2} (3 d g+e f)+a e g^2+c e f^2\right ) \int \frac {1}{\sqrt {\frac {c f^2}{g^2}-\frac {2 c (f+g x) f}{g^2}+\frac {c (f+g x)^2}{g^2}+a}}d\sqrt {f+g x}+\sqrt {c} \sqrt {a g^2+c f^2} (3 d g+e f) \int \frac {1-\frac {\sqrt {c} (f+g x)}{\sqrt {c f^2+a g^2}}}{\sqrt {\frac {c f^2}{g^2}-\frac {2 c (f+g x) f}{g^2}+\frac {c (f+g x)^2}{g^2}+a}}d\sqrt {f+g x}\right )}{3 c g^2}\)

\(\Big \downarrow \) 1416

\(\displaystyle \frac {2 e \sqrt {a+c x^2} \sqrt {f+g x}}{3 c}-\frac {2 \left (\sqrt {c} \sqrt {a g^2+c f^2} (3 d g+e f) \int \frac {1-\frac {\sqrt {c} (f+g x)}{\sqrt {c f^2+a g^2}}}{\sqrt {\frac {c f^2}{g^2}-\frac {2 c (f+g x) f}{g^2}+\frac {c (f+g x)^2}{g^2}+a}}d\sqrt {f+g x}+\frac {\sqrt [4]{a g^2+c f^2} \left (\frac {\sqrt {c} (f+g x)}{\sqrt {a g^2+c f^2}}+1\right ) \sqrt {\frac {a+\frac {c f^2}{g^2}-\frac {2 c f (f+g x)}{g^2}+\frac {c (f+g x)^2}{g^2}}{\left (a+\frac {c f^2}{g^2}\right ) \left (\frac {\sqrt {c} (f+g x)}{\sqrt {a g^2+c f^2}}+1\right )^2}} \left (-\sqrt {c} \sqrt {a g^2+c f^2} (3 d g+e f)+a e g^2+c e f^2\right ) \operatorname {EllipticF}\left (2 \arctan \left (\frac {\sqrt [4]{c} \sqrt {f+g x}}{\sqrt [4]{c f^2+a g^2}}\right ),\frac {1}{2} \left (\frac {\sqrt {c} f}{\sqrt {c f^2+a g^2}}+1\right )\right )}{2 \sqrt [4]{c} \sqrt {a+\frac {c f^2}{g^2}-\frac {2 c f (f+g x)}{g^2}+\frac {c (f+g x)^2}{g^2}}}\right )}{3 c g^2}\)

\(\Big \downarrow \) 1509

\(\displaystyle \frac {2 e \sqrt {a+c x^2} \sqrt {f+g x}}{3 c}-\frac {2 \left (\frac {\sqrt [4]{a g^2+c f^2} \left (\frac {\sqrt {c} (f+g x)}{\sqrt {a g^2+c f^2}}+1\right ) \sqrt {\frac {a+\frac {c f^2}{g^2}-\frac {2 c f (f+g x)}{g^2}+\frac {c (f+g x)^2}{g^2}}{\left (a+\frac {c f^2}{g^2}\right ) \left (\frac {\sqrt {c} (f+g x)}{\sqrt {a g^2+c f^2}}+1\right )^2}} \left (-\sqrt {c} \sqrt {a g^2+c f^2} (3 d g+e f)+a e g^2+c e f^2\right ) \operatorname {EllipticF}\left (2 \arctan \left (\frac {\sqrt [4]{c} \sqrt {f+g x}}{\sqrt [4]{c f^2+a g^2}}\right ),\frac {1}{2} \left (\frac {\sqrt {c} f}{\sqrt {c f^2+a g^2}}+1\right )\right )}{2 \sqrt [4]{c} \sqrt {a+\frac {c f^2}{g^2}-\frac {2 c f (f+g x)}{g^2}+\frac {c (f+g x)^2}{g^2}}}+\sqrt {c} \sqrt {a g^2+c f^2} (3 d g+e f) \left (\frac {\sqrt [4]{a g^2+c f^2} \left (\frac {\sqrt {c} (f+g x)}{\sqrt {a g^2+c f^2}}+1\right ) \sqrt {\frac {a+\frac {c f^2}{g^2}-\frac {2 c f (f+g x)}{g^2}+\frac {c (f+g x)^2}{g^2}}{\left (a+\frac {c f^2}{g^2}\right ) \left (\frac {\sqrt {c} (f+g x)}{\sqrt {a g^2+c f^2}}+1\right )^2}} E\left (2 \arctan \left (\frac {\sqrt [4]{c} \sqrt {f+g x}}{\sqrt [4]{c f^2+a g^2}}\right )|\frac {1}{2} \left (\frac {\sqrt {c} f}{\sqrt {c f^2+a g^2}}+1\right )\right )}{\sqrt [4]{c} \sqrt {a+\frac {c f^2}{g^2}-\frac {2 c f (f+g x)}{g^2}+\frac {c (f+g x)^2}{g^2}}}-\frac {\sqrt {f+g x} \sqrt {a+\frac {c f^2}{g^2}-\frac {2 c f (f+g x)}{g^2}+\frac {c (f+g x)^2}{g^2}}}{\left (a+\frac {c f^2}{g^2}\right ) \left (\frac {\sqrt {c} (f+g x)}{\sqrt {a g^2+c f^2}}+1\right )}\right )\right )}{3 c g^2}\)

Input:

Int[((d + e*x)*Sqrt[f + g*x])/Sqrt[a + c*x^2],x]
 

Output:

(2*e*Sqrt[f + g*x]*Sqrt[a + c*x^2])/(3*c) - (2*(Sqrt[c]*(e*f + 3*d*g)*Sqrt 
[c*f^2 + a*g^2]*(-((Sqrt[f + g*x]*Sqrt[a + (c*f^2)/g^2 - (2*c*f*(f + g*x)) 
/g^2 + (c*(f + g*x)^2)/g^2])/((a + (c*f^2)/g^2)*(1 + (Sqrt[c]*(f + g*x))/S 
qrt[c*f^2 + a*g^2]))) + ((c*f^2 + a*g^2)^(1/4)*(1 + (Sqrt[c]*(f + g*x))/Sq 
rt[c*f^2 + a*g^2])*Sqrt[(a + (c*f^2)/g^2 - (2*c*f*(f + g*x))/g^2 + (c*(f + 
 g*x)^2)/g^2)/((a + (c*f^2)/g^2)*(1 + (Sqrt[c]*(f + g*x))/Sqrt[c*f^2 + a*g 
^2])^2)]*EllipticE[2*ArcTan[(c^(1/4)*Sqrt[f + g*x])/(c*f^2 + a*g^2)^(1/4)] 
, (1 + (Sqrt[c]*f)/Sqrt[c*f^2 + a*g^2])/2])/(c^(1/4)*Sqrt[a + (c*f^2)/g^2 
- (2*c*f*(f + g*x))/g^2 + (c*(f + g*x)^2)/g^2])) + ((c*f^2 + a*g^2)^(1/4)* 
(c*e*f^2 + a*e*g^2 - Sqrt[c]*(e*f + 3*d*g)*Sqrt[c*f^2 + a*g^2])*(1 + (Sqrt 
[c]*(f + g*x))/Sqrt[c*f^2 + a*g^2])*Sqrt[(a + (c*f^2)/g^2 - (2*c*f*(f + g* 
x))/g^2 + (c*(f + g*x)^2)/g^2)/((a + (c*f^2)/g^2)*(1 + (Sqrt[c]*(f + g*x)) 
/Sqrt[c*f^2 + a*g^2])^2)]*EllipticF[2*ArcTan[(c^(1/4)*Sqrt[f + g*x])/(c*f^ 
2 + a*g^2)^(1/4)], (1 + (Sqrt[c]*f)/Sqrt[c*f^2 + a*g^2])/2])/(2*c^(1/4)*Sq 
rt[a + (c*f^2)/g^2 - (2*c*f*(f + g*x))/g^2 + (c*(f + g*x)^2)/g^2])))/(3*c* 
g^2)
 

Defintions of rubi rules used

rule 27
Int[(a_)*(Fx_), x_Symbol] :> Simp[a   Int[Fx, x], x] /; FreeQ[a, x] &&  !Ma 
tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
 

rule 599
Int[((A_.) + (B_.)*(x_))/(Sqrt[(c_) + (d_.)*(x_)]*Sqrt[(a_) + (b_.)*(x_)^2] 
), x_Symbol] :> Simp[-2/d^2   Subst[Int[(B*c - A*d - B*x^2)/Sqrt[(b*c^2 + a 
*d^2)/d^2 - 2*b*c*(x^2/d^2) + b*(x^4/d^2)], x], x, Sqrt[c + d*x]], x] /; Fr 
eeQ[{a, b, c, d, A, B}, x] && PosQ[b/a]
 

rule 687
Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p 
_.), x_Symbol] :> Simp[g*(d + e*x)^m*((a + c*x^2)^(p + 1)/(c*(m + 2*p + 2)) 
), x] + Simp[1/(c*(m + 2*p + 2))   Int[(d + e*x)^(m - 1)*(a + c*x^2)^p*Simp 
[c*d*f*(m + 2*p + 2) - a*e*g*m + c*(e*f*(m + 2*p + 2) + d*g*m)*x, x], x], x 
] /; FreeQ[{a, c, d, e, f, g, p}, x] && GtQ[m, 0] && NeQ[m + 2*p + 2, 0] && 
 (IntegerQ[m] || IntegerQ[p] || IntegersQ[2*m, 2*p]) &&  !(IGtQ[m, 0] && Eq 
Q[f, 0])
 

rule 1416
Int[1/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbol] :> With[{q = Rt[c 
/a, 4]}, Simp[(1 + q^2*x^2)*(Sqrt[(a + b*x^2 + c*x^4)/(a*(1 + q^2*x^2)^2)]/ 
(2*q*Sqrt[a + b*x^2 + c*x^4]))*EllipticF[2*ArcTan[q*x], 1/2 - b*(q^2/(4*c)) 
], x]] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0] && PosQ[c/a]
 

rule 1509
Int[((d_) + (e_.)*(x_)^2)/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbo 
l] :> With[{q = Rt[c/a, 4]}, Simp[(-d)*x*(Sqrt[a + b*x^2 + c*x^4]/(a*(1 + q 
^2*x^2))), x] + Simp[d*(1 + q^2*x^2)*(Sqrt[(a + b*x^2 + c*x^4)/(a*(1 + q^2* 
x^2)^2)]/(q*Sqrt[a + b*x^2 + c*x^4]))*EllipticE[2*ArcTan[q*x], 1/2 - b*(q^2 
/(4*c))], x] /; EqQ[e + d*q^2, 0]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 
- 4*a*c, 0] && PosQ[c/a]
 

rule 1511
Int[((d_) + (e_.)*(x_)^2)/Sqrt[(a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4], x_Symbo 
l] :> With[{q = Rt[c/a, 2]}, Simp[(e + d*q)/q   Int[1/Sqrt[a + b*x^2 + c*x^ 
4], x], x] - Simp[e/q   Int[(1 - q*x^2)/Sqrt[a + b*x^2 + c*x^4], x], x] /; 
NeQ[e + d*q, 0]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && Pos 
Q[c/a]
 
Maple [A] (verified)

Time = 2.26 (sec) , antiderivative size = 602, normalized size of antiderivative = 1.26

method result size
elliptic \(\frac {\sqrt {\left (g x +f \right ) \left (c \,x^{2}+a \right )}\, \left (\frac {2 e \sqrt {c g \,x^{3}+c f \,x^{2}+a g x +a f}}{3 c}+\frac {2 \left (d f -\frac {e a g}{3 c}\right ) \left (\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x -\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x +\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}}\, \operatorname {EllipticF}\left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )}{\sqrt {c g \,x^{3}+c f \,x^{2}+a g x +a f}}+\frac {2 \left (d g +\frac {e f}{3}\right ) \left (\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x -\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x +\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}}\, \left (\left (-\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \operatorname {EllipticE}\left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )+\frac {\sqrt {-a c}\, \operatorname {EllipticF}\left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )}{c}\right )}{\sqrt {c g \,x^{3}+c f \,x^{2}+a g x +a f}}\right )}{\sqrt {g x +f}\, \sqrt {c \,x^{2}+a}}\) \(602\)
risch \(\frac {2 e \sqrt {g x +f}\, \sqrt {c \,x^{2}+a}}{3 c}-\frac {\left (-\frac {2 c \left (3 d g +e f \right ) \left (\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x -\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x +\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}}\, \left (\left (-\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \operatorname {EllipticE}\left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )+\frac {\sqrt {-a c}\, \operatorname {EllipticF}\left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )}{c}\right )}{\sqrt {c g \,x^{3}+c f \,x^{2}+a g x +a f}}+\frac {2 a e g \left (\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x -\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x +\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}}\, \operatorname {EllipticF}\left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )}{\sqrt {c g \,x^{3}+c f \,x^{2}+a g x +a f}}-\frac {6 d f c \left (\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x -\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x +\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}}\, \operatorname {EllipticF}\left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )}{\sqrt {c g \,x^{3}+c f \,x^{2}+a g x +a f}}\right ) \sqrt {\left (g x +f \right ) \left (c \,x^{2}+a \right )}}{3 c \sqrt {g x +f}\, \sqrt {c \,x^{2}+a}}\) \(806\)
default \(\text {Expression too large to display}\) \(1286\)

Input:

int((e*x+d)*(g*x+f)^(1/2)/(c*x^2+a)^(1/2),x,method=_RETURNVERBOSE)
 

Output:

((g*x+f)*(c*x^2+a))^(1/2)/(g*x+f)^(1/2)/(c*x^2+a)^(1/2)*(2/3*e/c*(c*g*x^3+ 
c*f*x^2+a*g*x+a*f)^(1/2)+2*(d*f-1/3*e/c*a*g)*(f/g-(-a*c)^(1/2)/c)*((x+f/g) 
/(f/g-(-a*c)^(1/2)/c))^(1/2)*((x-(-a*c)^(1/2)/c)/(-f/g-(-a*c)^(1/2)/c))^(1 
/2)*((x+(-a*c)^(1/2)/c)/(-f/g+(-a*c)^(1/2)/c))^(1/2)/(c*g*x^3+c*f*x^2+a*g* 
x+a*f)^(1/2)*EllipticF(((x+f/g)/(f/g-(-a*c)^(1/2)/c))^(1/2),((-f/g+(-a*c)^ 
(1/2)/c)/(-f/g-(-a*c)^(1/2)/c))^(1/2))+2*(d*g+1/3*e*f)*(f/g-(-a*c)^(1/2)/c 
)*((x+f/g)/(f/g-(-a*c)^(1/2)/c))^(1/2)*((x-(-a*c)^(1/2)/c)/(-f/g-(-a*c)^(1 
/2)/c))^(1/2)*((x+(-a*c)^(1/2)/c)/(-f/g+(-a*c)^(1/2)/c))^(1/2)/(c*g*x^3+c* 
f*x^2+a*g*x+a*f)^(1/2)*((-f/g-(-a*c)^(1/2)/c)*EllipticE(((x+f/g)/(f/g-(-a* 
c)^(1/2)/c))^(1/2),((-f/g+(-a*c)^(1/2)/c)/(-f/g-(-a*c)^(1/2)/c))^(1/2))+(- 
a*c)^(1/2)/c*EllipticF(((x+f/g)/(f/g-(-a*c)^(1/2)/c))^(1/2),((-f/g+(-a*c)^ 
(1/2)/c)/(-f/g-(-a*c)^(1/2)/c))^(1/2))))
 

Fricas [A] (verification not implemented)

Time = 0.09 (sec) , antiderivative size = 227, normalized size of antiderivative = 0.47 \[ \int \frac {(d+e x) \sqrt {f+g x}}{\sqrt {a+c x^2}} \, dx=\frac {2 \, {\left (3 \, \sqrt {c x^{2} + a} \sqrt {g x + f} c e g^{2} - {\left (c e f^{2} - 6 \, c d f g + 3 \, a e g^{2}\right )} \sqrt {c g} {\rm weierstrassPInverse}\left (\frac {4 \, {\left (c f^{2} - 3 \, a g^{2}\right )}}{3 \, c g^{2}}, -\frac {8 \, {\left (c f^{3} + 9 \, a f g^{2}\right )}}{27 \, c g^{3}}, \frac {3 \, g x + f}{3 \, g}\right ) - 3 \, {\left (c e f g + 3 \, c d g^{2}\right )} \sqrt {c g} {\rm weierstrassZeta}\left (\frac {4 \, {\left (c f^{2} - 3 \, a g^{2}\right )}}{3 \, c g^{2}}, -\frac {8 \, {\left (c f^{3} + 9 \, a f g^{2}\right )}}{27 \, c g^{3}}, {\rm weierstrassPInverse}\left (\frac {4 \, {\left (c f^{2} - 3 \, a g^{2}\right )}}{3 \, c g^{2}}, -\frac {8 \, {\left (c f^{3} + 9 \, a f g^{2}\right )}}{27 \, c g^{3}}, \frac {3 \, g x + f}{3 \, g}\right )\right )\right )}}{9 \, c^{2} g^{2}} \] Input:

integrate((e*x+d)*(g*x+f)^(1/2)/(c*x^2+a)^(1/2),x, algorithm="fricas")
 

Output:

2/9*(3*sqrt(c*x^2 + a)*sqrt(g*x + f)*c*e*g^2 - (c*e*f^2 - 6*c*d*f*g + 3*a* 
e*g^2)*sqrt(c*g)*weierstrassPInverse(4/3*(c*f^2 - 3*a*g^2)/(c*g^2), -8/27* 
(c*f^3 + 9*a*f*g^2)/(c*g^3), 1/3*(3*g*x + f)/g) - 3*(c*e*f*g + 3*c*d*g^2)* 
sqrt(c*g)*weierstrassZeta(4/3*(c*f^2 - 3*a*g^2)/(c*g^2), -8/27*(c*f^3 + 9* 
a*f*g^2)/(c*g^3), weierstrassPInverse(4/3*(c*f^2 - 3*a*g^2)/(c*g^2), -8/27 
*(c*f^3 + 9*a*f*g^2)/(c*g^3), 1/3*(3*g*x + f)/g)))/(c^2*g^2)
 

Sympy [F]

\[ \int \frac {(d+e x) \sqrt {f+g x}}{\sqrt {a+c x^2}} \, dx=\int \frac {\left (d + e x\right ) \sqrt {f + g x}}{\sqrt {a + c x^{2}}}\, dx \] Input:

integrate((e*x+d)*(g*x+f)**(1/2)/(c*x**2+a)**(1/2),x)
 

Output:

Integral((d + e*x)*sqrt(f + g*x)/sqrt(a + c*x**2), x)
 

Maxima [F]

\[ \int \frac {(d+e x) \sqrt {f+g x}}{\sqrt {a+c x^2}} \, dx=\int { \frac {{\left (e x + d\right )} \sqrt {g x + f}}{\sqrt {c x^{2} + a}} \,d x } \] Input:

integrate((e*x+d)*(g*x+f)^(1/2)/(c*x^2+a)^(1/2),x, algorithm="maxima")
 

Output:

integrate((e*x + d)*sqrt(g*x + f)/sqrt(c*x^2 + a), x)
 

Giac [F]

\[ \int \frac {(d+e x) \sqrt {f+g x}}{\sqrt {a+c x^2}} \, dx=\int { \frac {{\left (e x + d\right )} \sqrt {g x + f}}{\sqrt {c x^{2} + a}} \,d x } \] Input:

integrate((e*x+d)*(g*x+f)^(1/2)/(c*x^2+a)^(1/2),x, algorithm="giac")
 

Output:

integrate((e*x + d)*sqrt(g*x + f)/sqrt(c*x^2 + a), x)
 

Mupad [F(-1)]

Timed out. \[ \int \frac {(d+e x) \sqrt {f+g x}}{\sqrt {a+c x^2}} \, dx=\int \frac {\sqrt {f+g\,x}\,\left (d+e\,x\right )}{\sqrt {c\,x^2+a}} \,d x \] Input:

int(((f + g*x)^(1/2)*(d + e*x))/(a + c*x^2)^(1/2),x)
 

Output:

int(((f + g*x)^(1/2)*(d + e*x))/(a + c*x^2)^(1/2), x)
 

Reduce [F]

\[ \int \frac {(d+e x) \sqrt {f+g x}}{\sqrt {a+c x^2}} \, dx=\frac {2 \sqrt {g x +f}\, \sqrt {c \,x^{2}+a}\, d g +2 \sqrt {g x +f}\, \sqrt {c \,x^{2}+a}\, e f -3 \left (\int \frac {\sqrt {g x +f}\, \sqrt {c \,x^{2}+a}\, x^{2}}{c g \,x^{3}+c f \,x^{2}+a g x +a f}d x \right ) c d \,g^{2}-\left (\int \frac {\sqrt {g x +f}\, \sqrt {c \,x^{2}+a}\, x^{2}}{c g \,x^{3}+c f \,x^{2}+a g x +a f}d x \right ) c e f g -\left (\int \frac {\sqrt {g x +f}\, \sqrt {c \,x^{2}+a}}{c g \,x^{3}+c f \,x^{2}+a g x +a f}d x \right ) a d \,g^{2}-\left (\int \frac {\sqrt {g x +f}\, \sqrt {c \,x^{2}+a}}{c g \,x^{3}+c f \,x^{2}+a g x +a f}d x \right ) a e f g +2 \left (\int \frac {\sqrt {g x +f}\, \sqrt {c \,x^{2}+a}}{c g \,x^{3}+c f \,x^{2}+a g x +a f}d x \right ) c d \,f^{2}}{2 c f} \] Input:

int((e*x+d)*(g*x+f)^(1/2)/(c*x^2+a)^(1/2),x)
 

Output:

(2*sqrt(f + g*x)*sqrt(a + c*x**2)*d*g + 2*sqrt(f + g*x)*sqrt(a + c*x**2)*e 
*f - 3*int((sqrt(f + g*x)*sqrt(a + c*x**2)*x**2)/(a*f + a*g*x + c*f*x**2 + 
 c*g*x**3),x)*c*d*g**2 - int((sqrt(f + g*x)*sqrt(a + c*x**2)*x**2)/(a*f + 
a*g*x + c*f*x**2 + c*g*x**3),x)*c*e*f*g - int((sqrt(f + g*x)*sqrt(a + c*x* 
*2))/(a*f + a*g*x + c*f*x**2 + c*g*x**3),x)*a*d*g**2 - int((sqrt(f + g*x)* 
sqrt(a + c*x**2))/(a*f + a*g*x + c*f*x**2 + c*g*x**3),x)*a*e*f*g + 2*int(( 
sqrt(f + g*x)*sqrt(a + c*x**2))/(a*f + a*g*x + c*f*x**2 + c*g*x**3),x)*c*d 
*f**2)/(2*c*f)