\(\int \frac {d+c x}{(-d+c x) \sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx\) [2817]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [F]
   Fricas [B] (verification not implemented)
   Sympy [F]
   Maxima [F]
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 38, antiderivative size = 278 \[ \int \frac {d+c x}{(-d+c x) \sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=\frac {2 (6 a d+3 a c x) \sqrt {b^2+a^2 x^2}+2 \left (b^2 c+6 a^2 d x+3 a^2 c x^2\right )}{3 a c \left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}}+\frac {4 d \arctan \left (\frac {\sqrt {c} \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{\sqrt {-a d-\sqrt {b^2 c^2+a^2 d^2}}}\right )}{\sqrt {c} \sqrt {-a d-\sqrt {b^2 c^2+a^2 d^2}}}+\frac {4 d \arctan \left (\frac {\sqrt {c} \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{\sqrt {-a d+\sqrt {b^2 c^2+a^2 d^2}}}\right )}{\sqrt {c} \sqrt {-a d+\sqrt {b^2 c^2+a^2 d^2}}} \]

[Out]

1/3*(2*(3*a*c*x+6*a*d)*(a^2*x^2+b^2)^(1/2)+6*a^2*c*x^2+12*a^2*d*x+2*b^2*c)/a/c/(a*x+(a^2*x^2+b^2)^(1/2))^(3/2)
+4*d*arctan(c^(1/2)*(a*x+(a^2*x^2+b^2)^(1/2))^(1/2)/(-a*d-(a^2*d^2+b^2*c^2)^(1/2))^(1/2))/c^(1/2)/(-a*d-(a^2*d
^2+b^2*c^2)^(1/2))^(1/2)+4*d*arctan(c^(1/2)*(a*x+(a^2*x^2+b^2)^(1/2))^(1/2)/(-a*d+(a^2*d^2+b^2*c^2)^(1/2))^(1/
2))/c^(1/2)/(-a*d+(a^2*d^2+b^2*c^2)^(1/2))^(1/2)

Rubi [A] (verified)

Time = 1.03 (sec) , antiderivative size = 278, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.237, Rules used = {6874, 2142, 14, 2144, 1642, 842, 840, 1180, 214} \[ \int \frac {d+c x}{(-d+c x) \sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=-\frac {4 d \text {arctanh}\left (\frac {\sqrt {c} \sqrt {\sqrt {a^2 x^2+b^2}+a x}}{\sqrt {a d-\sqrt {a^2 d^2+b^2 c^2}}}\right )}{\sqrt {c} \sqrt {a d-\sqrt {a^2 d^2+b^2 c^2}}}-\frac {4 d \text {arctanh}\left (\frac {\sqrt {c} \sqrt {\sqrt {a^2 x^2+b^2}+a x}}{\sqrt {\sqrt {a^2 d^2+b^2 c^2}+a d}}\right )}{\sqrt {c} \sqrt {\sqrt {a^2 d^2+b^2 c^2}+a d}}+\frac {4 d}{c \sqrt {\sqrt {a^2 x^2+b^2}+a x}}-\frac {b^2}{3 a \left (\sqrt {a^2 x^2+b^2}+a x\right )^{3/2}}+\frac {\sqrt {\sqrt {a^2 x^2+b^2}+a x}}{a} \]

[In]

Int[(d + c*x)/((-d + c*x)*Sqrt[a*x + Sqrt[b^2 + a^2*x^2]]),x]

[Out]

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

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 214

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x/Rt[-a/b, 2]], x] /; FreeQ[{a, b},
x] && NegQ[a/b]

Rule 840

Int[((f_.) + (g_.)*(x_))/(Sqrt[(d_.) + (e_.)*(x_)]*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)), x_Symbol] :> Dist[2,
Subst[Int[(e*f - d*g + g*x^2)/(c*d^2 - b*d*e + a*e^2 - (2*c*d - b*e)*x^2 + c*x^4), x], x, Sqrt[d + e*x]], x] /
; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0]

Rule 842

Int[(((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_)))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[(e
*f - d*g)*((d + e*x)^(m + 1)/((m + 1)*(c*d^2 - b*d*e + a*e^2))), x] + Dist[1/(c*d^2 - b*d*e + a*e^2), Int[(d +
 e*x)^(m + 1)*(Simp[c*d*f - f*b*e + a*e*g - c*(e*f - d*g)*x, x]/(a + b*x + c*x^2)), x], x] /; FreeQ[{a, b, c,
d, e, f, g, m}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && FractionQ[m] && LtQ[m, -1]

Rule 1180

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rule 1642

Int[(Pq_)*((d_.) + (e_.)*(x_))^(m_.)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegra
nd[(d + e*x)^m*Pq*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, m}, x] && PolyQ[Pq, x] && IGtQ[p, -2]

Rule 2142

Int[((g_.) + (h_.)*((d_.) + (e_.)*(x_) + (f_.)*Sqrt[(a_) + (c_.)*(x_)^2])^(n_))^(p_.), x_Symbol] :> Dist[1/(2*
e), Subst[Int[(g + h*x^n)^p*((d^2 + a*f^2 - 2*d*x + x^2)/(d - x)^2), x], x, d + e*x + f*Sqrt[a + c*x^2]], x] /
; FreeQ[{a, c, d, e, f, g, h, n}, x] && EqQ[e^2 - c*f^2, 0] && IntegerQ[p]

Rule 2144

Int[((g_.) + (h_.)*(x_))^(m_.)*((e_.)*(x_) + (f_.)*Sqrt[(a_.) + (c_.)*(x_)^2])^(n_.), x_Symbol] :> Dist[1/(2^(
m + 1)*e^(m + 1)), Subst[Int[x^(n - m - 2)*(a*f^2 + x^2)*((-a)*f^2*h + 2*e*g*x + h*x^2)^m, x], x, e*x + f*Sqrt
[a + c*x^2]], x] /; FreeQ[{a, c, e, f, g, h, n}, x] && EqQ[e^2 - c*f^2, 0] && IntegerQ[m]

Rule 6874

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {1}{\sqrt {a x+\sqrt {b^2+a^2 x^2}}}-\frac {2 d}{(d-c x) \sqrt {a x+\sqrt {b^2+a^2 x^2}}}\right ) \, dx \\ & = -\left ((2 d) \int \frac {1}{(d-c x) \sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx\right )+\int \frac {1}{\sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx \\ & = \frac {\text {Subst}\left (\int \frac {b^2+x^2}{x^{5/2}} \, dx,x,a x+\sqrt {b^2+a^2 x^2}\right )}{2 a}-(2 d) \text {Subst}\left (\int \frac {b^2+x^2}{x^{3/2} \left (b^2 c+2 a d x-c x^2\right )} \, dx,x,a x+\sqrt {b^2+a^2 x^2}\right ) \\ & = \frac {\text {Subst}\left (\int \left (\frac {b^2}{x^{5/2}}+\frac {1}{\sqrt {x}}\right ) \, dx,x,a x+\sqrt {b^2+a^2 x^2}\right )}{2 a}-(2 d) \text {Subst}\left (\int \left (-\frac {1}{c x^{3/2}}+\frac {2 \left (b^2 c+a d x\right )}{c x^{3/2} \left (b^2 c+2 a d x-c x^2\right )}\right ) \, dx,x,a x+\sqrt {b^2+a^2 x^2}\right ) \\ & = -\frac {b^2}{3 a \left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}}-\frac {4 d}{c \sqrt {a x+\sqrt {b^2+a^2 x^2}}}+\frac {\sqrt {a x+\sqrt {b^2+a^2 x^2}}}{a}-\frac {(4 d) \text {Subst}\left (\int \frac {b^2 c+a d x}{x^{3/2} \left (b^2 c+2 a d x-c x^2\right )} \, dx,x,a x+\sqrt {b^2+a^2 x^2}\right )}{c} \\ & = -\frac {b^2}{3 a \left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}}+\frac {4 d}{c \sqrt {a x+\sqrt {b^2+a^2 x^2}}}+\frac {\sqrt {a x+\sqrt {b^2+a^2 x^2}}}{a}-\frac {(4 d) \text {Subst}\left (\int \frac {-a b^2 c d+b^2 c^2 x}{\sqrt {x} \left (b^2 c+2 a d x-c x^2\right )} \, dx,x,a x+\sqrt {b^2+a^2 x^2}\right )}{b^2 c^2} \\ & = -\frac {b^2}{3 a \left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}}+\frac {4 d}{c \sqrt {a x+\sqrt {b^2+a^2 x^2}}}+\frac {\sqrt {a x+\sqrt {b^2+a^2 x^2}}}{a}-\frac {(8 d) \text {Subst}\left (\int \frac {-a b^2 c d+b^2 c^2 x^2}{b^2 c+2 a d x^2-c x^4} \, dx,x,\sqrt {a x+\sqrt {b^2+a^2 x^2}}\right )}{b^2 c^2} \\ & = -\frac {b^2}{3 a \left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}}+\frac {4 d}{c \sqrt {a x+\sqrt {b^2+a^2 x^2}}}+\frac {\sqrt {a x+\sqrt {b^2+a^2 x^2}}}{a}-(4 d) \text {Subst}\left (\int \frac {1}{a d-\sqrt {b^2 c^2+a^2 d^2}-c x^2} \, dx,x,\sqrt {a x+\sqrt {b^2+a^2 x^2}}\right )-(4 d) \text {Subst}\left (\int \frac {1}{a d+\sqrt {b^2 c^2+a^2 d^2}-c x^2} \, dx,x,\sqrt {a x+\sqrt {b^2+a^2 x^2}}\right ) \\ & = -\frac {b^2}{3 a \left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}}+\frac {4 d}{c \sqrt {a x+\sqrt {b^2+a^2 x^2}}}+\frac {\sqrt {a x+\sqrt {b^2+a^2 x^2}}}{a}-\frac {4 d \text {arctanh}\left (\frac {\sqrt {c} \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{\sqrt {a d-\sqrt {b^2 c^2+a^2 d^2}}}\right )}{\sqrt {c} \sqrt {a d-\sqrt {b^2 c^2+a^2 d^2}}}-\frac {4 d \text {arctanh}\left (\frac {\sqrt {c} \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{\sqrt {a d+\sqrt {b^2 c^2+a^2 d^2}}}\right )}{\sqrt {c} \sqrt {a d+\sqrt {b^2 c^2+a^2 d^2}}} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.79 (sec) , antiderivative size = 262, normalized size of antiderivative = 0.94 \[ \int \frac {d+c x}{(-d+c x) \sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=\frac {2 \left (\frac {b^2 c+3 a (2 d+c x) \left (a x+\sqrt {b^2+a^2 x^2}\right )}{a \left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}}+\frac {6 \sqrt {c} d \arctan \left (\frac {\sqrt {c} \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{\sqrt {-a d-\sqrt {b^2 c^2+a^2 d^2}}}\right )}{\sqrt {-a d-\sqrt {b^2 c^2+a^2 d^2}}}+\frac {6 \sqrt {c} d \arctan \left (\frac {\sqrt {c} \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{\sqrt {-a d+\sqrt {b^2 c^2+a^2 d^2}}}\right )}{\sqrt {-a d+\sqrt {b^2 c^2+a^2 d^2}}}\right )}{3 c} \]

[In]

Integrate[(d + c*x)/((-d + c*x)*Sqrt[a*x + Sqrt[b^2 + a^2*x^2]]),x]

[Out]

(2*((b^2*c + 3*a*(2*d + c*x)*(a*x + Sqrt[b^2 + a^2*x^2]))/(a*(a*x + Sqrt[b^2 + a^2*x^2])^(3/2)) + (6*Sqrt[c]*d
*ArcTan[(Sqrt[c]*Sqrt[a*x + Sqrt[b^2 + a^2*x^2]])/Sqrt[-(a*d) - Sqrt[b^2*c^2 + a^2*d^2]]])/Sqrt[-(a*d) - Sqrt[
b^2*c^2 + a^2*d^2]] + (6*Sqrt[c]*d*ArcTan[(Sqrt[c]*Sqrt[a*x + Sqrt[b^2 + a^2*x^2]])/Sqrt[-(a*d) + Sqrt[b^2*c^2
 + a^2*d^2]]])/Sqrt[-(a*d) + Sqrt[b^2*c^2 + a^2*d^2]]))/(3*c)

Maple [F]

\[\int \frac {c x +d}{\left (c x -d \right ) \sqrt {a x +\sqrt {a^{2} x^{2}+b^{2}}}}d x\]

[In]

int((c*x+d)/(c*x-d)/(a*x+(a^2*x^2+b^2)^(1/2))^(1/2),x)

[Out]

int((c*x+d)/(c*x-d)/(a*x+(a^2*x^2+b^2)^(1/2))^(1/2),x)

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 781 vs. \(2 (234) = 468\).

Time = 0.29 (sec) , antiderivative size = 781, normalized size of antiderivative = 2.81 \[ \int \frac {d+c x}{(-d+c x) \sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=\frac {2 \, {\left (3 \, a b^{2} c \sqrt {-\frac {b^{2} c^{3} \sqrt {\frac {b^{2} c^{2} d^{4} + a^{2} d^{6}}{b^{4} c^{6}}} + a d^{3}}{b^{2} c^{3}}} \log \left (32 \, \sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}} d^{3} + 32 \, {\left (b^{2} c^{3} \sqrt {\frac {b^{2} c^{2} d^{4} + a^{2} d^{6}}{b^{4} c^{6}}} - a d^{3}\right )} \sqrt {-\frac {b^{2} c^{3} \sqrt {\frac {b^{2} c^{2} d^{4} + a^{2} d^{6}}{b^{4} c^{6}}} + a d^{3}}{b^{2} c^{3}}}\right ) - 3 \, a b^{2} c \sqrt {-\frac {b^{2} c^{3} \sqrt {\frac {b^{2} c^{2} d^{4} + a^{2} d^{6}}{b^{4} c^{6}}} + a d^{3}}{b^{2} c^{3}}} \log \left (32 \, \sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}} d^{3} - 32 \, {\left (b^{2} c^{3} \sqrt {\frac {b^{2} c^{2} d^{4} + a^{2} d^{6}}{b^{4} c^{6}}} - a d^{3}\right )} \sqrt {-\frac {b^{2} c^{3} \sqrt {\frac {b^{2} c^{2} d^{4} + a^{2} d^{6}}{b^{4} c^{6}}} + a d^{3}}{b^{2} c^{3}}}\right ) - 3 \, a b^{2} c \sqrt {\frac {b^{2} c^{3} \sqrt {\frac {b^{2} c^{2} d^{4} + a^{2} d^{6}}{b^{4} c^{6}}} - a d^{3}}{b^{2} c^{3}}} \log \left (32 \, \sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}} d^{3} + 32 \, {\left (b^{2} c^{3} \sqrt {\frac {b^{2} c^{2} d^{4} + a^{2} d^{6}}{b^{4} c^{6}}} + a d^{3}\right )} \sqrt {\frac {b^{2} c^{3} \sqrt {\frac {b^{2} c^{2} d^{4} + a^{2} d^{6}}{b^{4} c^{6}}} - a d^{3}}{b^{2} c^{3}}}\right ) + 3 \, a b^{2} c \sqrt {\frac {b^{2} c^{3} \sqrt {\frac {b^{2} c^{2} d^{4} + a^{2} d^{6}}{b^{4} c^{6}}} - a d^{3}}{b^{2} c^{3}}} \log \left (32 \, \sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}} d^{3} - 32 \, {\left (b^{2} c^{3} \sqrt {\frac {b^{2} c^{2} d^{4} + a^{2} d^{6}}{b^{4} c^{6}}} + a d^{3}\right )} \sqrt {\frac {b^{2} c^{3} \sqrt {\frac {b^{2} c^{2} d^{4} + a^{2} d^{6}}{b^{4} c^{6}}} - a d^{3}}{b^{2} c^{3}}}\right ) - {\left (a^{2} c x^{2} + 6 \, a^{2} d x - b^{2} c - \sqrt {a^{2} x^{2} + b^{2}} {\left (a c x + 6 \, a d\right )}\right )} \sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}}\right )}}{3 \, a b^{2} c} \]

[In]

integrate((c*x+d)/(c*x-d)/(a*x+(a^2*x^2+b^2)^(1/2))^(1/2),x, algorithm="fricas")

[Out]

2/3*(3*a*b^2*c*sqrt(-(b^2*c^3*sqrt((b^2*c^2*d^4 + a^2*d^6)/(b^4*c^6)) + a*d^3)/(b^2*c^3))*log(32*sqrt(a*x + sq
rt(a^2*x^2 + b^2))*d^3 + 32*(b^2*c^3*sqrt((b^2*c^2*d^4 + a^2*d^6)/(b^4*c^6)) - a*d^3)*sqrt(-(b^2*c^3*sqrt((b^2
*c^2*d^4 + a^2*d^6)/(b^4*c^6)) + a*d^3)/(b^2*c^3))) - 3*a*b^2*c*sqrt(-(b^2*c^3*sqrt((b^2*c^2*d^4 + a^2*d^6)/(b
^4*c^6)) + a*d^3)/(b^2*c^3))*log(32*sqrt(a*x + sqrt(a^2*x^2 + b^2))*d^3 - 32*(b^2*c^3*sqrt((b^2*c^2*d^4 + a^2*
d^6)/(b^4*c^6)) - a*d^3)*sqrt(-(b^2*c^3*sqrt((b^2*c^2*d^4 + a^2*d^6)/(b^4*c^6)) + a*d^3)/(b^2*c^3))) - 3*a*b^2
*c*sqrt((b^2*c^3*sqrt((b^2*c^2*d^4 + a^2*d^6)/(b^4*c^6)) - a*d^3)/(b^2*c^3))*log(32*sqrt(a*x + sqrt(a^2*x^2 +
b^2))*d^3 + 32*(b^2*c^3*sqrt((b^2*c^2*d^4 + a^2*d^6)/(b^4*c^6)) + a*d^3)*sqrt((b^2*c^3*sqrt((b^2*c^2*d^4 + a^2
*d^6)/(b^4*c^6)) - a*d^3)/(b^2*c^3))) + 3*a*b^2*c*sqrt((b^2*c^3*sqrt((b^2*c^2*d^4 + a^2*d^6)/(b^4*c^6)) - a*d^
3)/(b^2*c^3))*log(32*sqrt(a*x + sqrt(a^2*x^2 + b^2))*d^3 - 32*(b^2*c^3*sqrt((b^2*c^2*d^4 + a^2*d^6)/(b^4*c^6))
 + a*d^3)*sqrt((b^2*c^3*sqrt((b^2*c^2*d^4 + a^2*d^6)/(b^4*c^6)) - a*d^3)/(b^2*c^3))) - (a^2*c*x^2 + 6*a^2*d*x
- b^2*c - sqrt(a^2*x^2 + b^2)*(a*c*x + 6*a*d))*sqrt(a*x + sqrt(a^2*x^2 + b^2)))/(a*b^2*c)

Sympy [F]

\[ \int \frac {d+c x}{(-d+c x) \sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=\int \frac {c x + d}{\sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}} \left (c x - d\right )}\, dx \]

[In]

integrate((c*x+d)/(c*x-d)/(a*x+(a**2*x**2+b**2)**(1/2))**(1/2),x)

[Out]

Integral((c*x + d)/(sqrt(a*x + sqrt(a**2*x**2 + b**2))*(c*x - d)), x)

Maxima [F]

\[ \int \frac {d+c x}{(-d+c x) \sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=\int { \frac {c x + d}{\sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}} {\left (c x - d\right )}} \,d x } \]

[In]

integrate((c*x+d)/(c*x-d)/(a*x+(a^2*x^2+b^2)^(1/2))^(1/2),x, algorithm="maxima")

[Out]

integrate((c*x + d)/(sqrt(a*x + sqrt(a^2*x^2 + b^2))*(c*x - d)), x)

Giac [F]

\[ \int \frac {d+c x}{(-d+c x) \sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=\int { \frac {c x + d}{\sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}} {\left (c x - d\right )}} \,d x } \]

[In]

integrate((c*x+d)/(c*x-d)/(a*x+(a^2*x^2+b^2)^(1/2))^(1/2),x, algorithm="giac")

[Out]

integrate((c*x + d)/(sqrt(a*x + sqrt(a^2*x^2 + b^2))*(c*x - d)), x)

Mupad [F(-1)]

Timed out. \[ \int \frac {d+c x}{(-d+c x) \sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=\int -\frac {d+c\,x}{\sqrt {a\,x+\sqrt {a^2\,x^2+b^2}}\,\left (d-c\,x\right )} \,d x \]

[In]

int(-(d + c*x)/((a*x + (b^2 + a^2*x^2)^(1/2))^(1/2)*(d - c*x)),x)

[Out]

int(-(d + c*x)/((a*x + (b^2 + a^2*x^2)^(1/2))^(1/2)*(d - c*x)), x)