Optimal. Leaf size=33 \[ -\frac {4 \sqrt {a+b x}}{b}+\frac {4 \log \left (\sqrt {a+b x}+1\right )}{b}+x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 33, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {431, 376, 77} \[ -\frac {4 \sqrt {a+b x}}{b}+\frac {4 \log \left (\sqrt {a+b x}+1\right )}{b}+x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 77
Rule 376
Rule 431
Rubi steps
\begin {align*} \int \frac {-1+\sqrt {a+b x}}{1+\sqrt {a+b x}} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {-1+\sqrt {x}}{1+\sqrt {x}} \, dx,x,a+b x\right )}{b}\\ &=\frac {2 \operatorname {Subst}\left (\int \frac {(-1+x) x}{1+x} \, dx,x,\sqrt {a+b x}\right )}{b}\\ &=\frac {2 \operatorname {Subst}\left (\int \left (-2+x+\frac {2}{1+x}\right ) \, dx,x,\sqrt {a+b x}\right )}{b}\\ &=x-\frac {4 \sqrt {a+b x}}{b}+\frac {4 \log \left (1+\sqrt {a+b x}\right )}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 33, normalized size = 1.00 \[ -\frac {4 \sqrt {a+b x}}{b}+\frac {4 \log \left (\sqrt {a+b x}+1\right )}{b}+x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.39, size = 29, normalized size = 0.88 \[ \frac {b x - 4 \, \sqrt {b x + a} + 4 \, \log \left (\sqrt {b x + a} + 1\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.36, size = 38, normalized size = 1.15 \[ \frac {4 \, \log \left (\sqrt {b x + a} + 1\right )}{b} + \frac {{\left (b x + a\right )} b - 4 \, \sqrt {b x + a} b}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 35, normalized size = 1.06 \[ x +\frac {a}{b}+\frac {4 \ln \left (1+\sqrt {b x +a}\right )}{b}-\frac {4 \sqrt {b x +a}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.05, size = 30, normalized size = 0.91 \[ \frac {b x + a - 4 \, \sqrt {b x + a} + 4 \, \log \left (\sqrt {b x + a} + 1\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.02, size = 29, normalized size = 0.88 \[ x+\frac {4\,\ln \left (\sqrt {a+b\,x}+1\right )}{b}-\frac {4\,\sqrt {a+b\,x}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.44, size = 42, normalized size = 1.27 \[ \begin {cases} x - \frac {4 \sqrt {a + b x}}{b} + \frac {4 \log {\left (\sqrt {a + b x} + 1 \right )}}{b} & \text {for}\: b \neq 0 \\\frac {x \left (\sqrt {a} - 1\right )}{\sqrt {a} + 1} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________