$\fraction{4}{x - 2} - \fraction{5}{x + 1}$
Evaluate
Differentiate w.r.t. x
Graph

## Share

\frac{4\left(x+1\right)}{\left(x-2\right)\left(x+1\right)}-\frac{5\left(x-2\right)}{\left(x-2\right)\left(x+1\right)}
To add or subtract expressions, expand them to make their denominators the same. Least common multiple of x-2 and x+1 is \left(x-2\right)\left(x+1\right). Multiply \frac{4}{x-2} times \frac{x+1}{x+1}. Multiply \frac{5}{x+1} times \frac{x-2}{x-2}.
\frac{4\left(x+1\right)-5\left(x-2\right)}{\left(x-2\right)\left(x+1\right)}
Since \frac{4\left(x+1\right)}{\left(x-2\right)\left(x+1\right)} and \frac{5\left(x-2\right)}{\left(x-2\right)\left(x+1\right)} have the same denominator, subtract them by subtracting their numerators.
\frac{4x+4-5x+10}{\left(x-2\right)\left(x+1\right)}
Do the multiplications in 4\left(x+1\right)-5\left(x-2\right).
\frac{-x+14}{\left(x-2\right)\left(x+1\right)}
Combine like terms in 4x+4-5x+10.
\frac{-x+14}{x^{2}-x-2}
Expand \left(x-2\right)\left(x+1\right).
\frac{\mathrm{d}}{\mathrm{d}x}(\frac{4\left(x+1\right)}{\left(x-2\right)\left(x+1\right)}-\frac{5\left(x-2\right)}{\left(x-2\right)\left(x+1\right)})
To add or subtract expressions, expand them to make their denominators the same. Least common multiple of x-2 and x+1 is \left(x-2\right)\left(x+1\right). Multiply \frac{4}{x-2} times \frac{x+1}{x+1}. Multiply \frac{5}{x+1} times \frac{x-2}{x-2}.
\frac{\mathrm{d}}{\mathrm{d}x}(\frac{4\left(x+1\right)-5\left(x-2\right)}{\left(x-2\right)\left(x+1\right)})
Since \frac{4\left(x+1\right)}{\left(x-2\right)\left(x+1\right)} and \frac{5\left(x-2\right)}{\left(x-2\right)\left(x+1\right)} have the same denominator, subtract them by subtracting their numerators.
\frac{\mathrm{d}}{\mathrm{d}x}(\frac{4x+4-5x+10}{\left(x-2\right)\left(x+1\right)})
Do the multiplications in 4\left(x+1\right)-5\left(x-2\right).
\frac{\mathrm{d}}{\mathrm{d}x}(\frac{-x+14}{\left(x-2\right)\left(x+1\right)})
Combine like terms in 4x+4-5x+10.
\frac{\mathrm{d}}{\mathrm{d}x}(\frac{-x+14}{x^{2}+x-2x-2})
Apply the distributive property by multiplying each term of x-2 by each term of x+1.
\frac{\mathrm{d}}{\mathrm{d}x}(\frac{-x+14}{x^{2}-x-2})
Combine x and -2x to get -x.
\frac{\left(x^{2}-x^{1}-2\right)\frac{\mathrm{d}}{\mathrm{d}x}(-x^{1}+14)-\left(-x^{1}+14\right)\frac{\mathrm{d}}{\mathrm{d}x}(x^{2}-x^{1}-2)}{\left(x^{2}-x^{1}-2\right)^{2}}
For any two differentiable functions, the derivative of the quotient of two functions is the denominator times the derivative of the numerator minus the numerator times the derivative of the denominator, all divided by the denominator squared.
\frac{\left(x^{2}-x^{1}-2\right)\left(-1\right)x^{1-1}-\left(-x^{1}+14\right)\left(2x^{2-1}-x^{1-1}\right)}{\left(x^{2}-x^{1}-2\right)^{2}}
The derivative of a polynomial is the sum of the derivatives of its terms. The derivative of a constant term is 0. The derivative of ax^{n} is nax^{n-1}.
\frac{\left(x^{2}-x^{1}-2\right)\left(-1\right)x^{0}-\left(-x^{1}+14\right)\left(2x^{1}-x^{0}\right)}{\left(x^{2}-x^{1}-2\right)^{2}}
Simplify.
\frac{x^{2}\left(-1\right)x^{0}-x^{1}\left(-1\right)x^{0}-2\left(-1\right)x^{0}-\left(-x^{1}+14\right)\left(2x^{1}-x^{0}\right)}{\left(x^{2}-x^{1}-2\right)^{2}}
Multiply x^{2}-x^{1}-2 times -x^{0}.
\frac{x^{2}\left(-1\right)x^{0}-x^{1}\left(-1\right)x^{0}-2\left(-1\right)x^{0}-\left(-x^{1}\times 2x^{1}-x^{1}\left(-1\right)x^{0}+14\times 2x^{1}+14\left(-1\right)x^{0}\right)}{\left(x^{2}-x^{1}-2\right)^{2}}
Multiply -x^{1}+14 times 2x^{1}-x^{0}.
\frac{-x^{2}-\left(-x^{1}\right)-2\left(-1\right)x^{0}-\left(-2x^{1+1}-\left(-x^{1}\right)+14\times 2x^{1}+14\left(-1\right)x^{0}\right)}{\left(x^{2}-x^{1}-2\right)^{2}}
To multiply powers of the same base, add their exponents.
\frac{-x^{2}+x^{1}+2x^{0}-\left(-2x^{2}+x^{1}+28x^{1}-14x^{0}\right)}{\left(x^{2}-x^{1}-2\right)^{2}}
Simplify.
\frac{x^{2}-28x^{1}+16x^{0}}{\left(x^{2}-x^{1}-2\right)^{2}}
Combine like terms.
\frac{x^{2}-28x+16x^{0}}{\left(x^{2}-x-2\right)^{2}}
For any term t, t^{1}=t.
\frac{x^{2}-28x+16\times 1}{\left(x^{2}-x-2\right)^{2}}
For any term t except 0, t^{0}=1.
\frac{x^{2}-28x+16}{\left(x^{2}-x-2\right)^{2}}
For any term t, t\times 1=t and 1t=t.