3.1.12 \(\int \frac {x}{(-a+x) (-b+x) (-c+x)} \, dx\) [12]

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]

a*ln(a-x)/(a-b)/(a-c)-b*ln(b-x)/(a-b)/(b-c)+c*ln(c-x)/(a-c)/(b-c)

________________________________________________________________________________________

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]

Int[x/((-a + x)*(-b + x)*(-c + x)),x]

[Out]

(a*Log[a - x])/((a - b)*(a - c)) - (b*Log[b - x])/((a - b)*(b - c)) + (c*Log[c - x])/((a - c)*(b - c))

Rule 153

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_))^(p_)*((g_.) + (h_.)*(x_)), x_Symb
ol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*x)^n*(e + f*x)^p*(g + h*x), x], x] /; FreeQ[{a, b, c, d, e, f, g
, h, m}, x] && (IntegersQ[m, n, p] || (IGtQ[n, 0] && IGtQ[p, 0]))

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]

Integrate[x/((-a + x)*(-b + x)*(-c + x)),x]

[Out]

(a*(b - c)*Log[-a + x] + b*(-a + c)*Log[-b + x] + (a - b)*c*Log[-c + x])/((a - b)*(a - c)*(b - c))

________________________________________________________________________________________

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]

int(x/(-a+x)/(-b+x)/(-c+x),x,method=_RETURNVERBOSE)

[Out]

a*ln(a-x)/(a-b)/(a-c)-b*ln(b-x)/(a-b)/(b-c)+c*ln(c-x)/(a-c)/(b-c)

________________________________________________________________________________________

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]

integrate(x/(-a+x)/(-b+x)/(-c+x),x, algorithm="maxima")

[Out]

a*log(-a + x)/(a^2 - a*b - (a - b)*c) - b*log(-b + x)/(a*b - b^2 - (a - b)*c) + c*log(-c + x)/(a*b - (a + b)*c
 + c^2)

________________________________________________________________________________________

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]

integrate(x/(-a+x)/(-b+x)/(-c+x),x, algorithm="fricas")

[Out]

((a - b)*c*log(-c + x) + (a*b - a*c)*log(-a + x) - (a*b - b*c)*log(-b + x))/(a^2*b - a*b^2 + (a - b)*c^2 - (a^
2 - b^2)*c)

________________________________________________________________________________________

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]

integrate(x/(-a+x)/(-b+x)/(-c+x),x)

[Out]

Timed 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]

integrate(x/(-a+x)/(-b+x)/(-c+x),x, algorithm="giac")

[Out]

a*log(abs(-a + x))/(a^2 - a*b - a*c + b*c) - b*log(abs(-b + x))/(a*b - b^2 - a*c + b*c) + c*log(abs(-c + x))/(
a*b - a*c - b*c + c^2)

________________________________________________________________________________________

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]

int(-x/((a - x)*(b - x)*(c - x)),x)

[Out]

log(x - a)*(b/((a - b)*(b - c)) - c/((a - c)*(b - c))) - (b*log(x - b))/((a - b)*(b - c)) + (c*log(x - c))/((a
 - c)*(b - c))

________________________________________________________________________________________