Optimal. Leaf size=41 \[ \frac {2 \sqrt {c+d x}}{b d}-\frac {2 a \log \left (a+b \sqrt {c+d x}\right )}{b^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {253, 196, 45}
\begin {gather*} \frac {2 \sqrt {c+d x}}{b d}-\frac {2 a \log \left (a+b \sqrt {c+d x}\right )}{b^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 196
Rule 253
Rubi steps
\begin {align*} \int \frac {1}{a+b \sqrt {c+d x}} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{a+b \sqrt {x}} \, dx,x,c+d x\right )}{d}\\ &=\frac {2 \text {Subst}\left (\int \frac {x}{a+b x} \, dx,x,\sqrt {c+d x}\right )}{d}\\ &=\frac {2 \text {Subst}\left (\int \left (\frac {1}{b}-\frac {a}{b (a+b x)}\right ) \, dx,x,\sqrt {c+d x}\right )}{d}\\ &=\frac {2 \sqrt {c+d x}}{b d}-\frac {2 a \log \left (a+b \sqrt {c+d x}\right )}{b^2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 40, normalized size = 0.98 \begin {gather*} \frac {2 b \sqrt {c+d x}-2 a \log \left (b d \left (a+b \sqrt {c+d x}\right )\right )}{b^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(86\) vs.
\(2(37)=74\).
time = 0.02, size = 87, normalized size = 2.12
method | result | size |
derivativedivides | \(\frac {\frac {2 \sqrt {d x +c}}{b}-\frac {2 a \ln \left (a +b \sqrt {d x +c}\right )}{b^{2}}}{d}\) | \(36\) |
default | \(\frac {2 \sqrt {d x +c}}{b d}-\frac {a \ln \left (a +b \sqrt {d x +c}\right )}{b^{2} d}+\frac {a \ln \left (-a +b \sqrt {d x +c}\right )}{b^{2} d}-\frac {a \ln \left (b^{2} d x +b^{2} c -a^{2}\right )}{b^{2} d}\) | \(87\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.31, size = 35, normalized size = 0.85 \begin {gather*} -\frac {2 \, {\left (\frac {a \log \left (\sqrt {d x + c} b + a\right )}{b^{2}} - \frac {\sqrt {d x + c}}{b}\right )}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 33, normalized size = 0.80 \begin {gather*} -\frac {2 \, {\left (a \log \left (\sqrt {d x + c} b + a\right ) - \sqrt {d x + c} b\right )}}{b^{2} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.26, size = 49, normalized size = 1.20 \begin {gather*} \begin {cases} \frac {x}{a} & \text {for}\: b = 0 \wedge \left (b = 0 \vee d = 0\right ) \\\frac {x}{a + b \sqrt {c}} & \text {for}\: d = 0 \\- \frac {2 a \log {\left (\frac {a}{b} + \sqrt {c + d x} \right )}}{b^{2} d} + \frac {2 \sqrt {c + d x}}{b d} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.89, size = 38, normalized size = 0.93 \begin {gather*} -\frac {2 \, a \log \left ({\left | \sqrt {d x + c} b + a \right |}\right )}{b^{2} d} + \frac {2 \, \sqrt {d x + c}}{b d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.05, size = 33, normalized size = 0.80 \begin {gather*} -\frac {2\,\left (a\,\ln \left (a+b\,\sqrt {c+d\,x}\right )-b\,\sqrt {c+d\,x}\right )}{b^2\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________