3.28.15 \(\int \frac {\sqrt {-b+a x}}{1+\sqrt {a x+\sqrt {-b+a x}}} \, dx\)

Optimal. Leaf size=248 \[ \sqrt {a x-b} \left (\frac {\sqrt {\sqrt {a x-b}+a x}}{a}-\frac {2}{a}\right )-\frac {3 \sqrt {\sqrt {a x-b}+a x}}{2 a}+\frac {(4 b-19) \log \left (2 \sqrt {a x-b}-2 \sqrt {\sqrt {a x-b}+a x}+1\right )}{4 a}+\frac {2 \log \left (2 \sqrt {a x-b} \sqrt {\sqrt {a x-b}+a x}-\sqrt {\sqrt {a x-b}+a x}-2 a x+1\right )}{a}-\frac {4 (2 b-3) \tan ^{-1}\left (\frac {-2 \sqrt {a x-b}+2 \sqrt {\sqrt {a x-b}+a x}+1}{\sqrt {4 b-5}}\right )}{a \sqrt {4 b-5}} \]

________________________________________________________________________________________

Rubi [A]  time = 0.71, antiderivative size = 442, normalized size of antiderivative = 1.78, number of steps used = 25, number of rules used = 14, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {6742, 634, 618, 206, 628, 612, 621, 989, 982, 1019, 1076, 1, 1025, 1024} \begin {gather*} \frac {\sqrt {\sqrt {a x-b}+a x} \left (2 \sqrt {a x-b}+1\right )}{2 a}-\frac {2 \sqrt {a x-b}}{a}-\frac {2 \sqrt {\sqrt {a x-b}+a x}}{a}+\frac {\log \left (-\sqrt {a x-b}-a x+1\right )}{a}+\frac {2 \tanh ^{-1}\left (\sqrt {\sqrt {a x-b}+a x}\right )}{a}+\frac {2 (3-2 b) \tanh ^{-1}\left (\frac {2 \sqrt {a x-b}+1}{\sqrt {5-4 b}}\right )}{a \sqrt {5-4 b}}-\frac {(1-4 b) \tanh ^{-1}\left (\frac {2 \sqrt {a x-b}+1}{2 \sqrt {\sqrt {a x-b}+a x}}\right )}{4 a}+\frac {2 (1-b) \tanh ^{-1}\left (\frac {2 \sqrt {a x-b}+1}{2 \sqrt {\sqrt {a x-b}+a x}}\right )}{a}+\frac {\tanh ^{-1}\left (\frac {2 \sqrt {a x-b}+1}{2 \sqrt {\sqrt {a x-b}+a x}}\right )}{a}-\frac {4 (1-b) \tanh ^{-1}\left (\frac {2 \sqrt {a x-b}+1}{\sqrt {5-4 b} \sqrt {\sqrt {a x-b}+a x}}\right )}{a \sqrt {5-4 b}}-\frac {2 \tanh ^{-1}\left (\frac {2 \sqrt {a x-b}+1}{\sqrt {5-4 b} \sqrt {\sqrt {a x-b}+a x}}\right )}{a \sqrt {5-4 b}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[-b + a*x]/(1 + Sqrt[a*x + Sqrt[-b + a*x]]),x]

[Out]

(-2*Sqrt[-b + a*x])/a - (2*Sqrt[a*x + Sqrt[-b + a*x]])/a + (Sqrt[a*x + Sqrt[-b + a*x]]*(1 + 2*Sqrt[-b + a*x]))
/(2*a) + (2*ArcTanh[Sqrt[a*x + Sqrt[-b + a*x]]])/a + (2*(3 - 2*b)*ArcTanh[(1 + 2*Sqrt[-b + a*x])/Sqrt[5 - 4*b]
])/(a*Sqrt[5 - 4*b]) + ArcTanh[(1 + 2*Sqrt[-b + a*x])/(2*Sqrt[a*x + Sqrt[-b + a*x]])]/a - ((1 - 4*b)*ArcTanh[(
1 + 2*Sqrt[-b + a*x])/(2*Sqrt[a*x + Sqrt[-b + a*x]])])/(4*a) + (2*(1 - b)*ArcTanh[(1 + 2*Sqrt[-b + a*x])/(2*Sq
rt[a*x + Sqrt[-b + a*x]])])/a - (2*ArcTanh[(1 + 2*Sqrt[-b + a*x])/(Sqrt[5 - 4*b]*Sqrt[a*x + Sqrt[-b + a*x]])])
/(a*Sqrt[5 - 4*b]) - (4*(1 - b)*ArcTanh[(1 + 2*Sqrt[-b + a*x])/(Sqrt[5 - 4*b]*Sqrt[a*x + Sqrt[-b + a*x]])])/(a
*Sqrt[5 - 4*b]) + Log[1 - a*x - Sqrt[-b + a*x]]/a

Rule 1

Int[(u_.)*((a_) + (b_.)*(x_)^(n_.))^(p_.), x_Symbol] :> Int[u*(b*x^n)^p, x] /; FreeQ[{a, b, n, p}, x] && EqQ[a
, 0]

Rule 206

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

Rule 612

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[((b + 2*c*x)*(a + b*x + c*x^2)^p)/(2*c*(2*p +
1)), x] - Dist[(p*(b^2 - 4*a*c))/(2*c*(2*p + 1)), Int[(a + b*x + c*x^2)^(p - 1), x], x] /; FreeQ[{a, b, c}, x]
 && NeQ[b^2 - 4*a*c, 0] && GtQ[p, 0] && IntegerQ[4*p]

Rule 618

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Dist[-2, Subst[Int[1/Simp[b^2 - 4*a*c - x^2, x], x]
, x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 621

Int[1/Sqrt[(a_) + (b_.)*(x_) + (c_.)*(x_)^2], x_Symbol] :> Dist[2, Subst[Int[1/(4*c - x^2), x], x, (b + 2*c*x)
/Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 628

Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[(d*Log[RemoveContent[a + b*x +
c*x^2, x]])/b, x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]

Rule 634

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

Rule 982

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

Rule 989

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

Rule 1019

Int[((g_.) + (h_.)*(x_))*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_)*((d_) + (e_.)*(x_) + (f_.)*(x_)^2)^(q_), x_Sy
mbol] :> Simp[(h*(a + b*x + c*x^2)^p*(d + e*x + f*x^2)^(q + 1))/(2*f*(p + q + 1)), x] - Dist[1/(2*f*(p + q + 1
)), Int[(a + b*x + c*x^2)^(p - 1)*(d + e*x + f*x^2)^q*Simp[h*p*(b*d - a*e) + a*(h*e - 2*g*f)*(p + q + 1) + (2*
h*p*(c*d - a*f) + b*(h*e - 2*g*f)*(p + q + 1))*x + (h*p*(c*e - b*f) + c*(h*e - 2*g*f)*(p + q + 1))*x^2, x], x]
, x] /; FreeQ[{a, b, c, d, e, f, g, h, q}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[e^2 - 4*d*f, 0] && GtQ[p, 0] && Ne
Q[p + q + 1, 0]

Rule 1024

Int[((g_) + (h_.)*(x_))/(((a_) + (b_.)*(x_) + (c_.)*(x_)^2)*Sqrt[(d_.) + (e_.)*(x_) + (f_.)*(x_)^2]), x_Symbol
] :> Dist[-2*g, Subst[Int[1/(b*d - a*e - b*x^2), 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] && EqQ[c*e - b*f, 0] && EqQ[h*e - 2*g*f, 0]

Rule 1025

Int[((g_.) + (h_.)*(x_))/(((a_) + (b_.)*(x_) + (c_.)*(x_)^2)*Sqrt[(d_.) + (e_.)*(x_) + (f_.)*(x_)^2]), x_Symbo
l] :> -Dist[(h*e - 2*g*f)/(2*f), Int[1/((a + b*x + c*x^2)*Sqrt[d + e*x + f*x^2]), x], x] + Dist[h/(2*f), Int[(
e + 2*f*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] && NeQ[b^2
- 4*a*c, 0] && NeQ[e^2 - 4*d*f, 0] && EqQ[c*e - b*f, 0] && NeQ[h*e - 2*g*f, 0]

Rule 1076

Int[((A_.) + (B_.)*(x_) + (C_.)*(x_)^2)/(((a_) + (b_.)*(x_) + (c_.)*(x_)^2)*Sqrt[(d_.) + (e_.)*(x_) + (f_.)*(x
_)^2]), x_Symbol] :> Dist[C/c, Int[1/Sqrt[d + e*x + f*x^2], x], x] + Dist[1/c, Int[(A*c - a*C + (B*c - b*C)*x)
/((a + b*x + c*x^2)*Sqrt[d + e*x + f*x^2]), x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C}, x] && NeQ[b^2 - 4*a*c
, 0] && NeQ[e^2 - 4*d*f, 0]

Rule 6742

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

Rubi steps

\begin {align*} \int \frac {\sqrt {-b+a x}}{1+\sqrt {a x+\sqrt {-b+a x}}} \, dx &=\frac {2 \operatorname {Subst}\left (\int \frac {x^2}{1+\sqrt {b+x+x^2}} \, dx,x,\sqrt {-b+a x}\right )}{a}\\ &=\frac {2 \operatorname {Subst}\left (\int \left (-1+\frac {-1+b+x}{-1+b+x+x^2}+\sqrt {b+x+x^2}+\frac {(1-b) \sqrt {b+x+x^2}}{-1+b+x+x^2}-\frac {x \sqrt {b+x+x^2}}{-1+b+x+x^2}\right ) \, dx,x,\sqrt {-b+a x}\right )}{a}\\ &=-\frac {2 \sqrt {-b+a x}}{a}+\frac {2 \operatorname {Subst}\left (\int \frac {-1+b+x}{-1+b+x+x^2} \, dx,x,\sqrt {-b+a x}\right )}{a}+\frac {2 \operatorname {Subst}\left (\int \sqrt {b+x+x^2} \, dx,x,\sqrt {-b+a x}\right )}{a}-\frac {2 \operatorname {Subst}\left (\int \frac {x \sqrt {b+x+x^2}}{-1+b+x+x^2} \, dx,x,\sqrt {-b+a x}\right )}{a}+\frac {(2 (1-b)) \operatorname {Subst}\left (\int \frac {\sqrt {b+x+x^2}}{-1+b+x+x^2} \, dx,x,\sqrt {-b+a x}\right )}{a}\\ &=-\frac {2 \sqrt {-b+a x}}{a}-\frac {2 \sqrt {a x+\sqrt {-b+a x}}}{a}+\frac {\sqrt {a x+\sqrt {-b+a x}} \left (1+2 \sqrt {-b+a x}\right )}{2 a}+\frac {\operatorname {Subst}\left (\int \frac {1+2 x}{-1+b+x+x^2} \, dx,x,\sqrt {-b+a x}\right )}{a}+\frac {2 \operatorname {Subst}\left (\int \frac {\frac {1}{2} (-1+b)-\frac {x}{2}+\frac {x^2}{2}}{\left (-1+b+x+x^2\right ) \sqrt {b+x+x^2}} \, dx,x,\sqrt {-b+a x}\right )}{a}-\frac {(1-4 b) \operatorname {Subst}\left (\int \frac {1}{\sqrt {b+x+x^2}} \, dx,x,\sqrt {-b+a x}\right )}{4 a}-\frac {(3-2 b) \operatorname {Subst}\left (\int \frac {1}{-1+b+x+x^2} \, dx,x,\sqrt {-b+a x}\right )}{a}+\frac {(2 (1-b)) \operatorname {Subst}\left (\int \frac {1}{\sqrt {b+x+x^2}} \, dx,x,\sqrt {-b+a x}\right )}{a}+\frac {(2 (1-b)) \operatorname {Subst}\left (\int \frac {1}{\left (-1+b+x+x^2\right ) \sqrt {b+x+x^2}} \, dx,x,\sqrt {-b+a x}\right )}{a}\\ &=-\frac {2 \sqrt {-b+a x}}{a}-\frac {2 \sqrt {a x+\sqrt {-b+a x}}}{a}+\frac {\sqrt {a x+\sqrt {-b+a x}} \left (1+2 \sqrt {-b+a x}\right )}{2 a}+\frac {\log \left (1-a x-\sqrt {-b+a x}\right )}{a}+\frac {\operatorname {Subst}\left (\int \frac {1}{\sqrt {b+x+x^2}} \, dx,x,\sqrt {-b+a x}\right )}{a}+\frac {2 \operatorname {Subst}\left (\int \frac {\frac {1-b}{2}+\frac {1}{2} (-1+b)-x}{\left (-1+b+x+x^2\right ) \sqrt {b+x+x^2}} \, dx,x,\sqrt {-b+a x}\right )}{a}-\frac {(1-4 b) \operatorname {Subst}\left (\int \frac {1}{4-x^2} \, dx,x,\frac {1+2 \sqrt {-b+a x}}{\sqrt {a x+\sqrt {-b+a x}}}\right )}{2 a}+\frac {(2 (3-2 b)) \operatorname {Subst}\left (\int \frac {1}{5-4 b-x^2} \, dx,x,1+2 \sqrt {-b+a x}\right )}{a}+\frac {(4 (1-b)) \operatorname {Subst}\left (\int \frac {1}{4-x^2} \, dx,x,\frac {1+2 \sqrt {-b+a x}}{\sqrt {a x+\sqrt {-b+a x}}}\right )}{a}-\frac {(4 (1-b)) \operatorname {Subst}\left (\int \frac {1}{1-4 (-1+b)-x^2} \, dx,x,\frac {1+2 \sqrt {-b+a x}}{\sqrt {a x+\sqrt {-b+a x}}}\right )}{a}\\ &=-\frac {2 \sqrt {-b+a x}}{a}-\frac {2 \sqrt {a x+\sqrt {-b+a x}}}{a}+\frac {\sqrt {a x+\sqrt {-b+a x}} \left (1+2 \sqrt {-b+a x}\right )}{2 a}+\frac {2 (3-2 b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{\sqrt {5-4 b}}\right )}{a \sqrt {5-4 b}}-\frac {(1-4 b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{2 \sqrt {a x+\sqrt {-b+a x}}}\right )}{4 a}+\frac {2 (1-b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{2 \sqrt {a x+\sqrt {-b+a x}}}\right )}{a}-\frac {4 (1-b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{\sqrt {5-4 b} \sqrt {a x+\sqrt {-b+a x}}}\right )}{a \sqrt {5-4 b}}+\frac {\log \left (1-a x-\sqrt {-b+a x}\right )}{a}+\frac {2 \operatorname {Subst}\left (\int \frac {1}{4-x^2} \, dx,x,\frac {1+2 \sqrt {-b+a x}}{\sqrt {a x+\sqrt {-b+a x}}}\right )}{a}-\frac {2 \operatorname {Subst}\left (\int \frac {x}{\left (-1+b+x+x^2\right ) \sqrt {b+x+x^2}} \, dx,x,\sqrt {-b+a x}\right )}{a}\\ &=-\frac {2 \sqrt {-b+a x}}{a}-\frac {2 \sqrt {a x+\sqrt {-b+a x}}}{a}+\frac {\sqrt {a x+\sqrt {-b+a x}} \left (1+2 \sqrt {-b+a x}\right )}{2 a}+\frac {2 (3-2 b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{\sqrt {5-4 b}}\right )}{a \sqrt {5-4 b}}+\frac {\tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{2 \sqrt {a x+\sqrt {-b+a x}}}\right )}{a}-\frac {(1-4 b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{2 \sqrt {a x+\sqrt {-b+a x}}}\right )}{4 a}+\frac {2 (1-b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{2 \sqrt {a x+\sqrt {-b+a x}}}\right )}{a}-\frac {4 (1-b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{\sqrt {5-4 b} \sqrt {a x+\sqrt {-b+a x}}}\right )}{a \sqrt {5-4 b}}+\frac {\log \left (1-a x-\sqrt {-b+a x}\right )}{a}+\frac {\operatorname {Subst}\left (\int \frac {1}{\left (-1+b+x+x^2\right ) \sqrt {b+x+x^2}} \, dx,x,\sqrt {-b+a x}\right )}{a}-\frac {\operatorname {Subst}\left (\int \frac {1+2 x}{\left (-1+b+x+x^2\right ) \sqrt {b+x+x^2}} \, dx,x,\sqrt {-b+a x}\right )}{a}\\ &=-\frac {2 \sqrt {-b+a x}}{a}-\frac {2 \sqrt {a x+\sqrt {-b+a x}}}{a}+\frac {\sqrt {a x+\sqrt {-b+a x}} \left (1+2 \sqrt {-b+a x}\right )}{2 a}+\frac {2 (3-2 b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{\sqrt {5-4 b}}\right )}{a \sqrt {5-4 b}}+\frac {\tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{2 \sqrt {a x+\sqrt {-b+a x}}}\right )}{a}-\frac {(1-4 b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{2 \sqrt {a x+\sqrt {-b+a x}}}\right )}{4 a}+\frac {2 (1-b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{2 \sqrt {a x+\sqrt {-b+a x}}}\right )}{a}-\frac {4 (1-b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{\sqrt {5-4 b} \sqrt {a x+\sqrt {-b+a x}}}\right )}{a \sqrt {5-4 b}}+\frac {\log \left (1-a x-\sqrt {-b+a x}\right )}{a}+\frac {2 \operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {a x+\sqrt {-b+a x}}\right )}{a}-\frac {2 \operatorname {Subst}\left (\int \frac {1}{1-4 (-1+b)-x^2} \, dx,x,\frac {1+2 \sqrt {-b+a x}}{\sqrt {a x+\sqrt {-b+a x}}}\right )}{a}\\ &=-\frac {2 \sqrt {-b+a x}}{a}-\frac {2 \sqrt {a x+\sqrt {-b+a x}}}{a}+\frac {\sqrt {a x+\sqrt {-b+a x}} \left (1+2 \sqrt {-b+a x}\right )}{2 a}+\frac {2 \tanh ^{-1}\left (\sqrt {a x+\sqrt {-b+a x}}\right )}{a}+\frac {2 (3-2 b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{\sqrt {5-4 b}}\right )}{a \sqrt {5-4 b}}+\frac {\tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{2 \sqrt {a x+\sqrt {-b+a x}}}\right )}{a}-\frac {(1-4 b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{2 \sqrt {a x+\sqrt {-b+a x}}}\right )}{4 a}+\frac {2 (1-b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{2 \sqrt {a x+\sqrt {-b+a x}}}\right )}{a}-\frac {2 \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{\sqrt {5-4 b} \sqrt {a x+\sqrt {-b+a x}}}\right )}{a \sqrt {5-4 b}}-\frac {4 (1-b) \tanh ^{-1}\left (\frac {1+2 \sqrt {-b+a x}}{\sqrt {5-4 b} \sqrt {a x+\sqrt {-b+a x}}}\right )}{a \sqrt {5-4 b}}+\frac {\log \left (1-a x-\sqrt {-b+a x}\right )}{a}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.79, size = 503, normalized size = 2.03 \begin {gather*} \frac {-8 \sqrt {5-4 b} \sqrt {a x-b}-6 \sqrt {5-4 b} \sqrt {\sqrt {a x-b}+a x}+4 \sqrt {5-4 b} \sqrt {a x-b} \sqrt {\sqrt {a x-b}+a x}+4 \sqrt {5-4 b} \log \left (-\sqrt {a x-b}-a x+1\right )-8 (2 b-3) \tanh ^{-1}\left (\frac {2 \sqrt {a x-b}+1}{\sqrt {5-4 b}}\right )-\sqrt {5-4 b} (4 b-11) \tanh ^{-1}\left (\frac {2 \sqrt {a x-b}+1}{2 \sqrt {\sqrt {a x-b}+a x}}\right )-4 \left (2 b+\sqrt {5-4 b}-3\right ) \tanh ^{-1}\left (\frac {-2 \sqrt {5-4 b} \sqrt {a x-b}-4 b-\sqrt {5-4 b}+1}{4 \sqrt {\sqrt {a x-b}+a x}}\right )+8 b \tanh ^{-1}\left (\frac {2 \sqrt {5-4 b} \sqrt {a x-b}-4 b+\sqrt {5-4 b}+1}{4 \sqrt {\sqrt {a x-b}+a x}}\right )-4 \sqrt {5-4 b} \tanh ^{-1}\left (\frac {2 \sqrt {5-4 b} \sqrt {a x-b}-4 b+\sqrt {5-4 b}+1}{4 \sqrt {\sqrt {a x-b}+a x}}\right )-12 \tanh ^{-1}\left (\frac {2 \sqrt {5-4 b} \sqrt {a x-b}-4 b+\sqrt {5-4 b}+1}{4 \sqrt {\sqrt {a x-b}+a x}}\right )}{4 a \sqrt {5-4 b}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[-b + a*x]/(1 + Sqrt[a*x + Sqrt[-b + a*x]]),x]

[Out]

(-8*Sqrt[5 - 4*b]*Sqrt[-b + a*x] - 6*Sqrt[5 - 4*b]*Sqrt[a*x + Sqrt[-b + a*x]] + 4*Sqrt[5 - 4*b]*Sqrt[-b + a*x]
*Sqrt[a*x + Sqrt[-b + a*x]] - 8*(-3 + 2*b)*ArcTanh[(1 + 2*Sqrt[-b + a*x])/Sqrt[5 - 4*b]] - Sqrt[5 - 4*b]*(-11
+ 4*b)*ArcTanh[(1 + 2*Sqrt[-b + a*x])/(2*Sqrt[a*x + Sqrt[-b + a*x]])] - 4*(-3 + Sqrt[5 - 4*b] + 2*b)*ArcTanh[(
1 - Sqrt[5 - 4*b] - 4*b - 2*Sqrt[5 - 4*b]*Sqrt[-b + a*x])/(4*Sqrt[a*x + Sqrt[-b + a*x]])] - 12*ArcTanh[(1 + Sq
rt[5 - 4*b] - 4*b + 2*Sqrt[5 - 4*b]*Sqrt[-b + a*x])/(4*Sqrt[a*x + Sqrt[-b + a*x]])] - 4*Sqrt[5 - 4*b]*ArcTanh[
(1 + Sqrt[5 - 4*b] - 4*b + 2*Sqrt[5 - 4*b]*Sqrt[-b + a*x])/(4*Sqrt[a*x + Sqrt[-b + a*x]])] + 8*b*ArcTanh[(1 +
Sqrt[5 - 4*b] - 4*b + 2*Sqrt[5 - 4*b]*Sqrt[-b + a*x])/(4*Sqrt[a*x + Sqrt[-b + a*x]])] + 4*Sqrt[5 - 4*b]*Log[1
- a*x - Sqrt[-b + a*x]])/(4*a*Sqrt[5 - 4*b])

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 0.56, size = 232, normalized size = 0.94 \begin {gather*} -\frac {2 \sqrt {-b+a x}}{a}+\frac {\sqrt {a x+\sqrt {-b+a x}} \left (-3+2 \sqrt {-b+a x}\right )}{2 a}-\frac {4 (-3+2 b) \tan ^{-1}\left (\frac {1-2 \sqrt {-b+a x}+2 \sqrt {a x+\sqrt {-b+a x}}}{\sqrt {-5+4 b}}\right )}{a \sqrt {-5+4 b}}+\frac {(-19+4 b) \log \left (a \left (-1-2 \sqrt {-b+a x}\right )+2 a \sqrt {a x+\sqrt {-b+a x}}\right )}{4 a}+\frac {2 \log \left (1-2 b-2 (-b+a x)+\sqrt {a x+\sqrt {-b+a x}} \left (-1+2 \sqrt {-b+a x}\right )\right )}{a} \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[Sqrt[-b + a*x]/(1 + Sqrt[a*x + Sqrt[-b + a*x]]),x]

[Out]

(-2*Sqrt[-b + a*x])/a + (Sqrt[a*x + Sqrt[-b + a*x]]*(-3 + 2*Sqrt[-b + a*x]))/(2*a) - (4*(-3 + 2*b)*ArcTan[(1 -
 2*Sqrt[-b + a*x] + 2*Sqrt[a*x + Sqrt[-b + a*x]])/Sqrt[-5 + 4*b]])/(a*Sqrt[-5 + 4*b]) + ((-19 + 4*b)*Log[a*(-1
 - 2*Sqrt[-b + a*x]) + 2*a*Sqrt[a*x + Sqrt[-b + a*x]]])/(4*a) + (2*Log[1 - 2*b - 2*(-b + a*x) + Sqrt[a*x + Sqr
t[-b + a*x]]*(-1 + 2*Sqrt[-b + a*x])])/a

________________________________________________________________________________________

fricas [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Exception raised: TypeError >>  Error detected within library code:   integrate: implementation incomplete (ir
rational residues)

________________________________________________________________________________________

giac [A]  time = 1.07, size = 395, normalized size = 1.59 \begin {gather*} \frac {1}{2} \, \sqrt {a x + \sqrt {a x - b}} {\left (\frac {2 \, \sqrt {a x - b}}{a} - \frac {3}{a}\right )} + \frac {{\left (4 \, b - 11\right )} \log \left ({\left | -2 \, \sqrt {a x - b} + 2 \, \sqrt {a x + \sqrt {a x - b}} - 1 \right |}\right )}{4 \, a} + \frac {2 \, {\left (2 \, b - 3\right )} \arctan \left (-\frac {2 \, \sqrt {a x - b} - 2 \, \sqrt {a x + \sqrt {a x - b}} + 3}{\sqrt {4 \, b - 5}}\right )}{a \sqrt {4 \, b - 5}} - \frac {2 \, {\left (2 \, b - 3\right )} \arctan \left (-\frac {2 \, \sqrt {a x - b} - 2 \, \sqrt {a x + \sqrt {a x - b}} - 1}{\sqrt {4 \, b - 5}}\right )}{a \sqrt {4 \, b - 5}} + \frac {2 \, {\left (2 \, b - 3\right )} \arctan \left (\frac {2 \, \sqrt {a x - b} + 1}{\sqrt {4 \, b - 5}}\right )}{a \sqrt {4 \, b - 5}} + \frac {\log \left (a x + \sqrt {a x - b} - 1\right )}{a} - \frac {\log \left ({\left (\sqrt {a x - b} - \sqrt {a x + \sqrt {a x - b}}\right )}^{2} + b + 3 \, \sqrt {a x - b} - 3 \, \sqrt {a x + \sqrt {a x - b}} + 1\right )}{a} + \frac {\log \left ({\left (\sqrt {a x - b} - \sqrt {a x + \sqrt {a x - b}}\right )}^{2} + b - \sqrt {a x - b} + \sqrt {a x + \sqrt {a x - b}} - 1\right )}{a} - \frac {2 \, \sqrt {a x - b}}{a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2*sqrt(a*x + sqrt(a*x - b))*(2*sqrt(a*x - b)/a - 3/a) + 1/4*(4*b - 11)*log(abs(-2*sqrt(a*x - b) + 2*sqrt(a*x
 + sqrt(a*x - b)) - 1))/a + 2*(2*b - 3)*arctan(-(2*sqrt(a*x - b) - 2*sqrt(a*x + sqrt(a*x - b)) + 3)/sqrt(4*b -
 5))/(a*sqrt(4*b - 5)) - 2*(2*b - 3)*arctan(-(2*sqrt(a*x - b) - 2*sqrt(a*x + sqrt(a*x - b)) - 1)/sqrt(4*b - 5)
)/(a*sqrt(4*b - 5)) + 2*(2*b - 3)*arctan((2*sqrt(a*x - b) + 1)/sqrt(4*b - 5))/(a*sqrt(4*b - 5)) + log(a*x + sq
rt(a*x - b) - 1)/a - log((sqrt(a*x - b) - sqrt(a*x + sqrt(a*x - b)))^2 + b + 3*sqrt(a*x - b) - 3*sqrt(a*x + sq
rt(a*x - b)) + 1)/a + log((sqrt(a*x - b) - sqrt(a*x + sqrt(a*x - b)))^2 + b - sqrt(a*x - b) + sqrt(a*x + sqrt(
a*x - b)) - 1)/a - 2*sqrt(a*x - b)/a

________________________________________________________________________________________

maple [B]  time = 0.72, size = 1551, normalized size = 6.25

method result size
derivativedivides \(\frac {-\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}+\frac {3 \ln \left (\sqrt {a x -b}+\frac {1}{2}+\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}\right )}{2}-\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}+\frac {3 \ln \left (\sqrt {a x -b}+\frac {1}{2}+\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}\right )}{2}-2 \sqrt {a x -b}-\frac {\ln \left (\frac {1}{2}+\sqrt {a x -b}+\sqrt {a x +\sqrt {a x -b}}\right )}{4}+\ln \left (a x +\sqrt {a x -b}-1\right )+\frac {2 b \arctanh \left (\frac {2+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )}{2 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}}\right )}{\sqrt {5-4 b}}-\frac {2 b \arctanh \left (\frac {2-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )}{2 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}}\right )}{\sqrt {5-4 b}}-\frac {\sqrt {5-4 b}\, \ln \left (\sqrt {a x -b}+\frac {1}{2}+\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}\right )}{2}-\frac {6 \arctan \left (\frac {2 \sqrt {a x -b}+1}{\sqrt {-5+4 b}}\right )}{\sqrt {-5+4 b}}+\arctanh \left (\frac {2-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )}{2 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}}\right )+\arctanh \left (\frac {2+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )}{2 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}}\right )-\frac {2 b \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}}{\sqrt {5-4 b}}+\frac {2 b \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}}{\sqrt {5-4 b}}+\frac {4 \arctan \left (\frac {2 \sqrt {a x -b}+1}{\sqrt {-5+4 b}}\right ) b}{\sqrt {-5+4 b}}+\frac {\sqrt {5-4 b}\, \ln \left (\sqrt {a x -b}+\frac {1}{2}+\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}\right )}{2}+\ln \left (\frac {1}{2}+\sqrt {a x -b}+\sqrt {a x +\sqrt {a x -b}}\right ) b -\frac {3 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}}{\sqrt {5-4 b}}-b \ln \left (\sqrt {a x -b}+\frac {1}{2}+\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}\right )+\frac {\left (2 \sqrt {a x -b}+1\right ) \sqrt {a x +\sqrt {a x -b}}}{2}+\frac {3 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}}{\sqrt {5-4 b}}-b \ln \left (\sqrt {a x -b}+\frac {1}{2}+\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}\right )+\frac {3 \arctanh \left (\frac {2-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )}{2 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}}\right )}{\sqrt {5-4 b}}-\frac {3 \arctanh \left (\frac {2+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )}{2 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}}\right )}{\sqrt {5-4 b}}}{a}\) \(1551\)
default \(\frac {-\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}+\frac {3 \ln \left (\sqrt {a x -b}+\frac {1}{2}+\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}\right )}{2}-\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}+\frac {3 \ln \left (\sqrt {a x -b}+\frac {1}{2}+\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}\right )}{2}-2 \sqrt {a x -b}-\frac {\ln \left (\frac {1}{2}+\sqrt {a x -b}+\sqrt {a x +\sqrt {a x -b}}\right )}{4}+\ln \left (a x +\sqrt {a x -b}-1\right )+\frac {2 b \arctanh \left (\frac {2+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )}{2 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}}\right )}{\sqrt {5-4 b}}-\frac {2 b \arctanh \left (\frac {2-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )}{2 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}}\right )}{\sqrt {5-4 b}}-\frac {\sqrt {5-4 b}\, \ln \left (\sqrt {a x -b}+\frac {1}{2}+\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}\right )}{2}-\frac {6 \arctan \left (\frac {2 \sqrt {a x -b}+1}{\sqrt {-5+4 b}}\right )}{\sqrt {-5+4 b}}+\arctanh \left (\frac {2-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )}{2 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}}\right )+\arctanh \left (\frac {2+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )}{2 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}}\right )-\frac {2 b \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}}{\sqrt {5-4 b}}+\frac {2 b \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}}{\sqrt {5-4 b}}+\frac {4 \arctan \left (\frac {2 \sqrt {a x -b}+1}{\sqrt {-5+4 b}}\right ) b}{\sqrt {-5+4 b}}+\frac {\sqrt {5-4 b}\, \ln \left (\sqrt {a x -b}+\frac {1}{2}+\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}\right )}{2}+\ln \left (\frac {1}{2}+\sqrt {a x -b}+\sqrt {a x +\sqrt {a x -b}}\right ) b -\frac {3 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}}{\sqrt {5-4 b}}-b \ln \left (\sqrt {a x -b}+\frac {1}{2}+\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}\right )+\frac {\left (2 \sqrt {a x -b}+1\right ) \sqrt {a x +\sqrt {a x -b}}}{2}+\frac {3 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}}{\sqrt {5-4 b}}-b \ln \left (\sqrt {a x -b}+\frac {1}{2}+\sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}\right )+\frac {3 \arctanh \left (\frac {2-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )}{2 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )^{2}-\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}+\frac {\sqrt {5-4 b}}{2}\right )+1}}\right )}{\sqrt {5-4 b}}-\frac {3 \arctanh \left (\frac {2+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )}{2 \sqrt {\left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )^{2}+\sqrt {5-4 b}\, \left (\sqrt {a x -b}+\frac {1}{2}-\frac {\sqrt {5-4 b}}{2}\right )+1}}\right )}{\sqrt {5-4 b}}}{a}\) \(1551\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*x-b)^(1/2)/(1+(a*x+(a*x-b)^(1/2))^(1/2)),x,method=_RETURNVERBOSE)

[Out]

2/a*(-1/2*(((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2))^2-(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2))+1)^(1/2
)+3/4*ln((a*x-b)^(1/2)+1/2+(((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2))^2-(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2+1/2*(5-4*
b)^(1/2))+1)^(1/2))+1/2*arctanh(1/2*(2-(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2)))/(((a*x-b)^(1/2)+1/
2+1/2*(5-4*b)^(1/2))^2-(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2))+1)^(1/2))-1/2*(((a*x-b)^(1/2)+1/2-1
/2*(5-4*b)^(1/2))^2+(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2))+1)^(1/2)+3/4*ln((a*x-b)^(1/2)+1/2+(((a
*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2))^2+(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2))+1)^(1/2))+1/2*arctanh
(1/2*(2+(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2)))/(((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2))^2+(5-4*b)^
(1/2)*((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2))+1)^(1/2))-(a*x-b)^(1/2)-1/8*ln(1/2+(a*x-b)^(1/2)+(a*x+(a*x-b)^(1/2
))^(1/2))+1/2*ln(a*x+(a*x-b)^(1/2)-1)-1/4*(5-4*b)^(1/2)*ln((a*x-b)^(1/2)+1/2+(((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(
1/2))^2+(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2))+1)^(1/2))-3/(-5+4*b)^(1/2)*arctan((2*(a*x-b)^(1/2)
+1)/(-5+4*b)^(1/2))-1/(5-4*b)^(1/2)*b*(((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2))^2+(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/
2-1/2*(5-4*b)^(1/2))+1)^(1/2)+1/(5-4*b)^(1/2)*b*arctanh(1/2*(2+(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1
/2)))/(((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2))^2+(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2))+1)^(1/2))+1
/(5-4*b)^(1/2)*b*(((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2))^2-(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2))+
1)^(1/2)-1/(5-4*b)^(1/2)*b*arctanh(1/2*(2-(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2)))/(((a*x-b)^(1/2)
+1/2+1/2*(5-4*b)^(1/2))^2-(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2))+1)^(1/2))+2/(-5+4*b)^(1/2)*arcta
n((2*(a*x-b)^(1/2)+1)/(-5+4*b)^(1/2))*b+1/4*(5-4*b)^(1/2)*ln((a*x-b)^(1/2)+1/2+(((a*x-b)^(1/2)+1/2+1/2*(5-4*b)
^(1/2))^2-(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2))+1)^(1/2))+1/2*ln(1/2+(a*x-b)^(1/2)+(a*x+(a*x-b)^
(1/2))^(1/2))*b-3/2/(5-4*b)^(1/2)*(((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2))^2-(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2+1/
2*(5-4*b)^(1/2))+1)^(1/2)+3/2/(5-4*b)^(1/2)*arctanh(1/2*(2-(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2))
)/(((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2))^2-(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2))+1)^(1/2))-1/2*b
*ln((a*x-b)^(1/2)+1/2+(((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1/2))^2-(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2+1/2*(5-4*b)^(1
/2))+1)^(1/2))+1/4*(2*(a*x-b)^(1/2)+1)*(a*x+(a*x-b)^(1/2))^(1/2)+3/2/(5-4*b)^(1/2)*(((a*x-b)^(1/2)+1/2-1/2*(5-
4*b)^(1/2))^2+(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2))+1)^(1/2)-3/2/(5-4*b)^(1/2)*arctanh(1/2*(2+(5
-4*b)^(1/2)*((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2)))/(((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2))^2+(5-4*b)^(1/2)*((a*
x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2))+1)^(1/2))-1/2*b*ln((a*x-b)^(1/2)+1/2+(((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2))^
2+(5-4*b)^(1/2)*((a*x-b)^(1/2)+1/2-1/2*(5-4*b)^(1/2))+1)^(1/2)))

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {a x - b}}{\sqrt {a x + \sqrt {a x - b}} + 1}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(sqrt(a*x - b)/(sqrt(a*x + sqrt(a*x - b)) + 1), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\sqrt {a\,x-b}}{\sqrt {a\,x+\sqrt {a\,x-b}}+1} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {a x - b}}{\sqrt {a x + \sqrt {a x - b}} + 1}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Integral(sqrt(a*x - b)/(sqrt(a*x + sqrt(a*x - b)) + 1), x)

________________________________________________________________________________________