Optimal. Leaf size=120 \[ -\frac {a f^{\frac {c}{a+b x}} (a+b x)}{b^2}+\frac {f^{\frac {c}{a+b x}} (a+b x)^2}{2 b^2}+\frac {c f^{\frac {c}{a+b x}} (a+b x) \log (f)}{2 b^2}+\frac {a c \text {Ei}\left (\frac {c \log (f)}{a+b x}\right ) \log (f)}{b^2}-\frac {c^2 \text {Ei}\left (\frac {c \log (f)}{a+b x}\right ) \log ^2(f)}{2 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 120, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 4, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {2258, 2237,
2241, 2245} \begin {gather*} -\frac {c^2 \log ^2(f) \text {Ei}\left (\frac {c \log (f)}{a+b x}\right )}{2 b^2}+\frac {a c \log (f) \text {Ei}\left (\frac {c \log (f)}{a+b x}\right )}{b^2}+\frac {(a+b x)^2 f^{\frac {c}{a+b x}}}{2 b^2}-\frac {a (a+b x) f^{\frac {c}{a+b x}}}{b^2}+\frac {c \log (f) (a+b x) f^{\frac {c}{a+b x}}}{2 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2237
Rule 2241
Rule 2245
Rule 2258
Rubi steps
\begin {align*} \int f^{\frac {c}{a+b x}} x \, dx &=\int \left (-\frac {a f^{\frac {c}{a+b x}}}{b}+\frac {f^{\frac {c}{a+b x}} (a+b x)}{b}\right ) \, dx\\ &=\frac {\int f^{\frac {c}{a+b x}} (a+b x) \, dx}{b}-\frac {a \int f^{\frac {c}{a+b x}} \, dx}{b}\\ &=-\frac {a f^{\frac {c}{a+b x}} (a+b x)}{b^2}+\frac {f^{\frac {c}{a+b x}} (a+b x)^2}{2 b^2}+\frac {(c \log (f)) \int f^{\frac {c}{a+b x}} \, dx}{2 b}-\frac {(a c \log (f)) \int \frac {f^{\frac {c}{a+b x}}}{a+b x} \, dx}{b}\\ &=-\frac {a f^{\frac {c}{a+b x}} (a+b x)}{b^2}+\frac {f^{\frac {c}{a+b x}} (a+b x)^2}{2 b^2}+\frac {c f^{\frac {c}{a+b x}} (a+b x) \log (f)}{2 b^2}+\frac {a c \text {Ei}\left (\frac {c \log (f)}{a+b x}\right ) \log (f)}{b^2}+\frac {\left (c^2 \log ^2(f)\right ) \int \frac {f^{\frac {c}{a+b x}}}{a+b x} \, dx}{2 b}\\ &=-\frac {a f^{\frac {c}{a+b x}} (a+b x)}{b^2}+\frac {f^{\frac {c}{a+b x}} (a+b x)^2}{2 b^2}+\frac {c f^{\frac {c}{a+b x}} (a+b x) \log (f)}{2 b^2}+\frac {a c \text {Ei}\left (\frac {c \log (f)}{a+b x}\right ) \log (f)}{b^2}-\frac {c^2 \text {Ei}\left (\frac {c \log (f)}{a+b x}\right ) \log ^2(f)}{2 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 82, normalized size = 0.68 \begin {gather*} -\frac {a f^{\frac {c}{a+b x}} (a-c \log (f))}{2 b^2}+\frac {c \text {Ei}\left (\frac {c \log (f)}{a+b x}\right ) \log (f) (2 a-c \log (f))+b f^{\frac {c}{a+b x}} x (b x+c \log (f))}{2 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 126, normalized size = 1.05
method | result | size |
risch | \(\frac {f^{\frac {c}{b x +a}} x^{2}}{2}-\frac {f^{\frac {c}{b x +a}} a^{2}}{2 b^{2}}+\frac {c \ln \left (f \right ) f^{\frac {c}{b x +a}} x}{2 b}+\frac {c \ln \left (f \right ) f^{\frac {c}{b x +a}} a}{2 b^{2}}+\frac {c^{2} \ln \left (f \right )^{2} \expIntegral \left (1, -\frac {c \ln \left (f \right )}{b x +a}\right )}{2 b^{2}}-\frac {c \ln \left (f \right ) a \expIntegral \left (1, -\frac {c \ln \left (f \right )}{b x +a}\right )}{b^{2}}\) | \(126\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 71, normalized size = 0.59 \begin {gather*} \frac {{\left (b^{2} x^{2} - a^{2} + {\left (b c x + a c\right )} \log \left (f\right )\right )} f^{\frac {c}{b x + a}} - {\left (c^{2} \log \left (f\right )^{2} - 2 \, a c \log \left (f\right )\right )} {\rm Ei}\left (\frac {c \log \left (f\right )}{b x + a}\right )}{2 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int f^{\frac {c}{a + b x}} x\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.65, size = 136, normalized size = 1.13 \begin {gather*} \frac {\frac {b\,f^{\frac {c}{a+b\,x}}\,x^3}{2}+f^{\frac {c}{a+b\,x}}\,x^2\,\left (\frac {a}{2}+\frac {c\,\ln \left (f\right )}{2}\right )-\frac {a^2\,f^{\frac {c}{a+b\,x}}\,\left (a-c\,\ln \left (f\right )\right )}{2\,b^2}-\frac {f^{\frac {c}{a+b\,x}}\,x\,\left (a^2-2\,a\,c\,\ln \left (f\right )\right )}{2\,b}}{a+b\,x}-\frac {\mathrm {ei}\left (\frac {c\,\ln \left (f\right )}{a+b\,x}\right )\,\left (c^2\,{\ln \left (f\right )}^2-2\,a\,c\,\ln \left (f\right )\right )}{2\,b^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________