Mistake Master
Long Division and Completing the Square
Do the Algebra First
You'll learnwhich rewriting a rational integrand is asking for — long division, a completed square, or a substitution — and how to settle each one by differentiating what you wrote.
Some integrands have no antiderivative you recognize until they are rewritten, and after the rewrite they are routine. The whole difficulty is the algebra step, which is also the step that gets skipped, because the fraction looks like something the power rule ought to handle. Nothing here is a new antiderivative; it is a question of which rewriting carries you back to a rule you already have. Twelve short steps; press Next for each one.
Read all 12 steps as text
An improper fraction
Here is \(\frac{x^{2}}{x+1}\): the top has degree \(2\) and the bottom degree \(1\), so nothing on Topic 6.8's list of antiderivatives fits it as it stands.
A straight line hiding inside
Divide and the fraction turns out to be the line \(y = x - 1\) plus a leftover: far out in either direction the two curves close right up on each other.
The leftover, measured
The gap between the fraction and the line is \(\frac{1}{x+1}\), and it dies away as \(x\) grows — so \(\frac{x^{2}}{x+1} = x - 1 + \frac{1}{x+1}\).
Divide, then integrate
Once the fraction is divided there is no new antiderivative to learn: \(\int \frac{x^{2}}{x+1}\,dx = \frac{x^{2}}{2} - x + \ln|x+1| + C\), a power, a constant and a logarithm.
The check, drawn
Differentiate the answer and lay its slope over the integrand: the divided answer lands on it, while one divided with the wrong sign sits exactly \(2\) above at every \(x\).
Completing the square is a slide
\(x^{2}+4x+13\) is \((x+2)^{2}+9\): the same parabola moved \(2\) to the left, with its lowest point travelling from \((0, 9)\) to \((-2, 9)\).
The arctangent form
With \((x+2)^{2}+3^{2}\) downstairs the answer is \(\frac{1}{3}\arctan\!\left(\frac{x+2}{3}\right) + C\) — the \(3\) appears out front and inside, and the shift travels with it.
What splits and what does not
A numerator comes apart over one denominator, so \(\frac{x^{2}+1}{x} = x + \frac{1}{x}\) — but a sum in the denominator never distributes, and one sample value settles it.
A skipped preparation shows up as the wrong height
Antidifferentiating the numerator and leaving the denominator alone gives \(\frac{x^{3}}{3(x+1)}\), and its slope stands well away from the integrand at every \(x\).
The numerator decides
When the numerator is a multiple of the derivative of the denominator, the answer is a logarithm rather than an arctangent: \(\int \frac{x}{x^{2}+9}\,dx = \frac{1}{2}\ln\left(x^{2}+9\right) + C\).
Right at one point only
Reach for the arctangent instead and its slope crosses the integrand at exactly one \(x\) and misses it everywhere else — which is what an answer that is right at one point looks like.
The routine
Compare the degrees first, then look at the denominator and at what the numerator is doing, and finish by differentiating whatever you wrote down.