Optimal. Leaf size=68 \[ \frac {a \log (a-x)}{(a-b) (a-c)}-\frac {b \log (b-x)}{(a-b) (b-c)}+\frac {c \log (c-x)}{(a-c) (b-c)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 68, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.043, Rules used = {153}
\begin {gather*} \frac {a \log (a-x)}{(a-b) (a-c)}-\frac {b \log (b-x)}{(a-b) (b-c)}+\frac {c \log (c-x)}{(a-c) (b-c)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 153
Rubi steps
\begin {align*} \int \frac {x}{(-a+x) (-b+x) (-c+x)} \, dx &=\int \left (-\frac {a}{(a-b) (a-c) (a-x)}+\frac {b}{(a-b) (b-c) (b-x)}+\frac {c}{(a-c) (-b+c) (c-x)}\right ) \, dx\\ &=\frac {a \log (a-x)}{(a-b) (a-c)}-\frac {b \log (b-x)}{(a-b) (b-c)}+\frac {c \log (c-x)}{(a-c) (b-c)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 62, normalized size = 0.91 \begin {gather*} \frac {a (b-c) \log (-a+x)+b (-a+c) \log (-b+x)+(a-b) c \log (-c+x)}{(a-b) (a-c) (b-c)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 69, normalized size = 1.01
method | result | size |
default | \(\frac {a \ln \left (a -x \right )}{\left (a -b \right ) \left (a -c \right )}-\frac {b \ln \left (b -x \right )}{\left (a -b \right ) \left (b -c \right )}+\frac {c \ln \left (c -x \right )}{\left (a -c \right ) \left (b -c \right )}\) | \(69\) |
norman | \(\frac {c \ln \left (c -x \right )}{a b -a c -b c +c^{2}}+\frac {a \ln \left (a -x \right )}{\left (a -b \right ) \left (a -c \right )}-\frac {b \ln \left (b -x \right )}{\left (a -b \right ) \left (b -c \right )}\) | \(72\) |
risch | \(\frac {c \ln \left (c -x \right )}{a b -a c -b c +c^{2}}-\frac {b \ln \left (-b +x \right )}{a b -a c -b^{2}+b c}+\frac {a \ln \left (-a +x \right )}{a^{2}-a b -a c +b c}\) | \(79\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 2.90, size = 78, normalized size = 1.15 \begin {gather*} \frac {a \log \left (-a + x\right )}{a^{2} - a b - {\left (a - b\right )} c} - \frac {b \log \left (-b + x\right )}{a b - b^{2} - {\left (a - b\right )} c} + \frac {c \log \left (-c + x\right )}{a b - {\left (a + b\right )} c + c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.70, size = 81, normalized size = 1.19 \begin {gather*} \frac {{\left (a - b\right )} c \log \left (-c + x\right ) + {\left (a b - a c\right )} \log \left (-a + x\right ) - {\left (a b - b c\right )} \log \left (-b + x\right )}{a^{2} b - a b^{2} + {\left (a - b\right )} c^{2} - {\left (a^{2} - b^{2}\right )} c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 81, normalized size = 1.19 \begin {gather*} \frac {a \log \left ({\left | -a + x \right |}\right )}{a^{2} - a b - a c + b c} - \frac {b \log \left ({\left | -b + x \right |}\right )}{a b - b^{2} - a c + b c} + \frac {c \log \left ({\left | -c + x \right |}\right )}{a b - a c - b c + c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.57, size = 87, normalized size = 1.28 \begin {gather*} \ln \left (x-a\right )\,\left (\frac {b}{\left (a-b\right )\,\left (b-c\right )}-\frac {c}{\left (a-c\right )\,\left (b-c\right )}\right )-\frac {b\,\ln \left (x-b\right )}{\left (a-b\right )\,\left (b-c\right )}+\frac {c\,\ln \left (x-c\right )}{\left (a-c\right )\,\left (b-c\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________