Integrand size = 31, antiderivative size = 87 \[ \int \frac {\sqrt {c+\sqrt {b+a x}}}{d-\sqrt {b+a x}} \, dx=-\frac {4 \sqrt {c+\sqrt {b+a x}} \left (c+3 d+\sqrt {b+a x}\right )}{3 a}-\frac {4 \sqrt {-c-d} d \arctan \left (\frac {\sqrt {-c-d} \sqrt {c+\sqrt {b+a x}}}{c+d}\right )}{a} \] Output:
-4/3*(c+(a*x+b)^(1/2))^(1/2)*(c+3*d+(a*x+b)^(1/2))/a-4*(-c-d)^(1/2)*d*arct an((-c-d)^(1/2)*(c+(a*x+b)^(1/2))^(1/2)/(c+d))/a
Time = 0.16 (sec) , antiderivative size = 81, normalized size of antiderivative = 0.93 \[ \int \frac {\sqrt {c+\sqrt {b+a x}}}{d-\sqrt {b+a x}} \, dx=\frac {-4 \sqrt {c+\sqrt {b+a x}} \left (c+3 d+\sqrt {b+a x}\right )+12 \sqrt {-c-d} d \arctan \left (\frac {\sqrt {c+\sqrt {b+a x}}}{\sqrt {-c-d}}\right )}{3 a} \] Input:
Integrate[Sqrt[c + Sqrt[b + a*x]]/(d - Sqrt[b + a*x]),x]
Output:
(-4*Sqrt[c + Sqrt[b + a*x]]*(c + 3*d + Sqrt[b + a*x]) + 12*Sqrt[-c - d]*d* ArcTan[Sqrt[c + Sqrt[b + a*x]]/Sqrt[-c - d]])/(3*a)
Time = 0.21 (sec) , antiderivative size = 78, normalized size of antiderivative = 0.90, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.194, Rules used = {938, 900, 90, 60, 73, 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 {\sqrt {\sqrt {a x+b}+c}}{d-\sqrt {a x+b}} \, dx\) |
\(\Big \downarrow \) 938 |
\(\displaystyle \frac {\int \frac {\sqrt {c+\sqrt {b+a x}}}{d-\sqrt {b+a x}}d(b+a x)}{a}\) |
\(\Big \downarrow \) 900 |
\(\displaystyle \frac {2 \int \frac {\sqrt {b+a x} \sqrt {c+\sqrt {b+a x}}}{-b+d-a x}d\sqrt {b+a x}}{a}\) |
\(\Big \downarrow \) 90 |
\(\displaystyle \frac {2 \left (d \int \frac {\sqrt {c+\sqrt {b+a x}}}{-b+d-a x}d\sqrt {b+a x}-\frac {2}{3} \left (\sqrt {a x+b}+c\right )^{3/2}\right )}{a}\) |
\(\Big \downarrow \) 60 |
\(\displaystyle \frac {2 \left (d \left ((c+d) \int \frac {1}{(-b+d-a x) \sqrt {c+\sqrt {b+a x}}}d\sqrt {b+a x}-2 \sqrt {\sqrt {a x+b}+c}\right )-\frac {2}{3} \left (\sqrt {a x+b}+c\right )^{3/2}\right )}{a}\) |
\(\Big \downarrow \) 73 |
\(\displaystyle \frac {2 \left (d \left (2 (c+d) \int \frac {1}{-b+c+d-a x}d\sqrt {c+\sqrt {b+a x}}-2 \sqrt {\sqrt {a x+b}+c}\right )-\frac {2}{3} \left (\sqrt {a x+b}+c\right )^{3/2}\right )}{a}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {2 \left (d \left (2 \sqrt {c+d} \text {arctanh}\left (\frac {\sqrt {\sqrt {a x+b}+c}}{\sqrt {c+d}}\right )-2 \sqrt {\sqrt {a x+b}+c}\right )-\frac {2}{3} \left (\sqrt {a x+b}+c\right )^{3/2}\right )}{a}\) |
Input:
Int[Sqrt[c + Sqrt[b + a*x]]/(d - Sqrt[b + a*x]),x]
Output:
(2*((-2*(c + Sqrt[b + a*x])^(3/2))/3 + d*(-2*Sqrt[c + Sqrt[b + a*x]] + 2*S qrt[c + d]*ArcTanh[Sqrt[c + Sqrt[b + a*x]]/Sqrt[c + d]])))/a
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[ (a + b*x)^(m + 1)*((c + d*x)^n/(b*(m + n + 1))), x] + Simp[n*((b*c - a*d)/( b*(m + n + 1))) Int[(a + b*x)^m*(c + d*x)^(n - 1), x], x] /; FreeQ[{a, b, c, d}, x] && GtQ[n, 0] && NeQ[m + n + 1, 0] && !(IGtQ[m, 0] && ( !Integer Q[n] || (GtQ[m, 0] && LtQ[m - n, 0]))) && !ILtQ[m + n + 2, 0] && IntLinear Q[a, b, c, d, m, n, x]
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[ {p = Denominator[m]}, Simp[p/b Subst[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] && Lt Q[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntL inearQ[a, b, c, d, m, n, x]
Int[((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p _.), x_] :> Simp[b*(c + d*x)^(n + 1)*((e + f*x)^(p + 1)/(d*f*(n + p + 2))), x] + Simp[(a*d*f*(n + p + 2) - b*(d*e*(n + 1) + c*f*(p + 1)))/(d*f*(n + p + 2)) Int[(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n, p}, x] && NeQ[n + p + 2, 0]
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[((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol ] :> With[{g = Denominator[n]}, Simp[g Subst[Int[x^(g - 1)*(a + b*x^(g*n) )^p*(c + d*x^(g*n))^q, x], x, x^(1/g)], x]] /; FreeQ[{a, b, c, d, p, q}, x] && NeQ[b*c - a*d, 0] && FractionQ[n]
Int[((a_.) + (b_.)*(u_)^(n_))^(p_.)*((c_.) + (d_.)*(u_)^(n_))^(q_.), x_Symb ol] :> Simp[1/Coefficient[u, x, 1] Subst[Int[(a + b*x^n)^p*(c + d*x^n)^q, x], x, u], x] /; FreeQ[{a, b, c, d, n, p, q}, x] && LinearQ[u, x] && NeQ[u , x]
Time = 0.06 (sec) , antiderivative size = 60, normalized size of antiderivative = 0.69
method | result | size |
derivativedivides | \(\frac {-\frac {4 \left (c +\sqrt {a x +b}\right )^{\frac {3}{2}}}{3}-4 \sqrt {c +\sqrt {a x +b}}\, d +4 d \sqrt {c +d}\, \operatorname {arctanh}\left (\frac {\sqrt {c +\sqrt {a x +b}}}{\sqrt {c +d}}\right )}{a}\) | \(60\) |
default | \(\frac {-\frac {4 \left (c +\sqrt {a x +b}\right )^{\frac {3}{2}}}{3}-4 \sqrt {c +\sqrt {a x +b}}\, d +4 d \sqrt {c +d}\, \operatorname {arctanh}\left (\frac {\sqrt {c +\sqrt {a x +b}}}{\sqrt {c +d}}\right )}{a}\) | \(60\) |
Input:
int((c+(a*x+b)^(1/2))^(1/2)/(d-(a*x+b)^(1/2)),x,method=_RETURNVERBOSE)
Output:
2/a*(-2/3*(c+(a*x+b)^(1/2))^(3/2)-2*(c+(a*x+b)^(1/2))^(1/2)*d+2*d*(c+d)^(1 /2)*arctanh((c+(a*x+b)^(1/2))^(1/2)/(c+d)^(1/2)))
Time = 0.11 (sec) , antiderivative size = 212, normalized size of antiderivative = 2.44 \[ \int \frac {\sqrt {c+\sqrt {b+a x}}}{d-\sqrt {b+a x}} \, dx=\left [\frac {2 \, {\left (3 \, \sqrt {c + d} d \log \left (-\frac {2 \, c d + d^{2} + a x + 2 \, \sqrt {a x + b} {\left (c + d\right )} + 2 \, {\left (\sqrt {c + d} d + \sqrt {a x + b} \sqrt {c + d}\right )} \sqrt {c + \sqrt {a x + b}} + b}{d^{2} - a x - b}\right ) - 2 \, {\left (c + 3 \, d + \sqrt {a x + b}\right )} \sqrt {c + \sqrt {a x + b}}\right )}}{3 \, a}, -\frac {4 \, {\left (3 \, \sqrt {-c - d} d \arctan \left (\frac {{\left (c \sqrt {-c - d} - \sqrt {a x + b} \sqrt {-c - d}\right )} \sqrt {c + \sqrt {a x + b}}}{c^{2} - a x - b}\right ) + {\left (c + 3 \, d + \sqrt {a x + b}\right )} \sqrt {c + \sqrt {a x + b}}\right )}}{3 \, a}\right ] \] Input:
integrate((c+(a*x+b)^(1/2))^(1/2)/(d-(a*x+b)^(1/2)),x, algorithm="fricas")
Output:
[2/3*(3*sqrt(c + d)*d*log(-(2*c*d + d^2 + a*x + 2*sqrt(a*x + b)*(c + d) + 2*(sqrt(c + d)*d + sqrt(a*x + b)*sqrt(c + d))*sqrt(c + sqrt(a*x + b)) + b) /(d^2 - a*x - b)) - 2*(c + 3*d + sqrt(a*x + b))*sqrt(c + sqrt(a*x + b)))/a , -4/3*(3*sqrt(-c - d)*d*arctan((c*sqrt(-c - d) - sqrt(a*x + b)*sqrt(-c - d))*sqrt(c + sqrt(a*x + b))/(c^2 - a*x - b)) + (c + 3*d + sqrt(a*x + b))*s qrt(c + sqrt(a*x + b)))/a]
Time = 1.13 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.08 \[ \int \frac {\sqrt {c+\sqrt {b+a x}}}{d-\sqrt {b+a x}} \, dx=\begin {cases} \frac {2 \left (- 2 d \sqrt {c + \sqrt {a x + b}} - \frac {2 d \left (c + d\right ) \operatorname {atan}{\left (\frac {\sqrt {c + \sqrt {a x + b}}}{\sqrt {- c - d}} \right )}}{\sqrt {- c - d}} - \frac {2 \left (c + \sqrt {a x + b}\right )^{\frac {3}{2}}}{3}\right )}{a} & \text {for}\: a \neq 0 \\\frac {x \sqrt {\sqrt {b} + c}}{- \sqrt {b} + d} & \text {otherwise} \end {cases} \] Input:
integrate((c+(a*x+b)**(1/2))**(1/2)/(d-(a*x+b)**(1/2)),x)
Output:
Piecewise((2*(-2*d*sqrt(c + sqrt(a*x + b)) - 2*d*(c + d)*atan(sqrt(c + sqr t(a*x + b))/sqrt(-c - d))/sqrt(-c - d) - 2*(c + sqrt(a*x + b))**(3/2)/3)/a , Ne(a, 0)), (x*sqrt(sqrt(b) + c)/(-sqrt(b) + d), True))
Time = 0.13 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.01 \[ \int \frac {\sqrt {c+\sqrt {b+a x}}}{d-\sqrt {b+a x}} \, dx=-\frac {2 \, {\left (2 \, {\left (c + \sqrt {a x + b}\right )}^{\frac {3}{2}} + 6 \, \sqrt {c + \sqrt {a x + b}} d + \frac {3 \, {\left (c d + d^{2}\right )} \log \left (-\frac {\sqrt {c + d} - \sqrt {c + \sqrt {a x + b}}}{\sqrt {c + d} + \sqrt {c + \sqrt {a x + b}}}\right )}{\sqrt {c + d}}\right )}}{3 \, a} \] Input:
integrate((c+(a*x+b)^(1/2))^(1/2)/(d-(a*x+b)^(1/2)),x, algorithm="maxima")
Output:
-2/3*(2*(c + sqrt(a*x + b))^(3/2) + 6*sqrt(c + sqrt(a*x + b))*d + 3*(c*d + d^2)*log(-(sqrt(c + d) - sqrt(c + sqrt(a*x + b)))/(sqrt(c + d) + sqrt(c + sqrt(a*x + b))))/sqrt(c + d))/a
Time = 0.27 (sec) , antiderivative size = 82, normalized size of antiderivative = 0.94 \[ \int \frac {\sqrt {c+\sqrt {b+a x}}}{d-\sqrt {b+a x}} \, dx=-\frac {4 \, {\left (c d + d^{2}\right )} \arctan \left (\frac {\sqrt {c + \sqrt {a x + b}}}{\sqrt {-c - d}}\right )}{a \sqrt {-c - d}} - \frac {4 \, {\left (a^{2} {\left (c + \sqrt {a x + b}\right )}^{\frac {3}{2}} + 3 \, a^{2} \sqrt {c + \sqrt {a x + b}} d\right )}}{3 \, a^{3}} \] Input:
integrate((c+(a*x+b)^(1/2))^(1/2)/(d-(a*x+b)^(1/2)),x, algorithm="giac")
Output:
-4*(c*d + d^2)*arctan(sqrt(c + sqrt(a*x + b))/sqrt(-c - d))/(a*sqrt(-c - d )) - 4/3*(a^2*(c + sqrt(a*x + b))^(3/2) + 3*a^2*sqrt(c + sqrt(a*x + b))*d) /a^3
Time = 8.83 (sec) , antiderivative size = 63, normalized size of antiderivative = 0.72 \[ \int \frac {\sqrt {c+\sqrt {b+a x}}}{d-\sqrt {b+a x}} \, dx=\frac {4\,d\,\mathrm {atanh}\left (\frac {\sqrt {c+\sqrt {b+a\,x}}}{\sqrt {c+d}}\right )\,\sqrt {c+d}}{a}-\frac {4\,d\,\sqrt {c+\sqrt {b+a\,x}}}{a}-\frac {4\,{\left (c+\sqrt {b+a\,x}\right )}^{3/2}}{3\,a} \] Input:
int((c + (b + a*x)^(1/2))^(1/2)/(d - (b + a*x)^(1/2)),x)
Output:
(4*d*atanh((c + (b + a*x)^(1/2))^(1/2)/(c + d)^(1/2))*(c + d)^(1/2))/a - ( 4*d*(c + (b + a*x)^(1/2))^(1/2))/a - (4*(c + (b + a*x)^(1/2))^(3/2))/(3*a)
Time = 0.15 (sec) , antiderivative size = 73, normalized size of antiderivative = 0.84 \[ \int \frac {\sqrt {c+\sqrt {b+a x}}}{d-\sqrt {b+a x}} \, dx=\frac {-4 \sqrt {c +d}\, \mathit {atan} \left (\frac {\sqrt {\sqrt {a x +b}+c}\, i}{\sqrt {c +d}}\right ) d i -\frac {4 \sqrt {a x +b}\, \sqrt {\sqrt {a x +b}+c}}{3}-\frac {4 \sqrt {\sqrt {a x +b}+c}\, c}{3}-4 \sqrt {\sqrt {a x +b}+c}\, d}{a} \] Input:
int((c+(a*x+b)^(1/2))^(1/2)/(d-(a*x+b)^(1/2)),x)
Output:
(4*( - 3*sqrt(c + d)*atan((sqrt(sqrt(a*x + b) + c)*i)/sqrt(c + d))*d*i - s qrt(a*x + b)*sqrt(sqrt(a*x + b) + c) - sqrt(sqrt(a*x + b) + c)*c - 3*sqrt( sqrt(a*x + b) + c)*d))/(3*a)