Mistake Master
Student view — seeing the site as a student does
Mistake Master · AP Calculus · Unit 6 · Step-Through Animation

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.

12 STEPS · 6 QUICK CHECKS · PREPARE THE INTEGRAND, THEN DIFFERENTIATE WHAT YOU WROTE · v2

compare the degrees, complete the square, then differentiate what you wrote
Before you start
What you're looking at
One plot panel. Blue is always the integrand; pink is what the algebra turns it into; yellow is the measured slope of a candidate answer and red the slope of one that skipped a step.
The question
Which rewriting does a rational integrand need before it can be integrated at all, and how do you check what you wrote?
Step 1 / 12

Read all 12 steps as text
Step 1

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.

Step 2

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.

Step 3

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}\).

Step 4

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.

Step 5

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\).

Step 6

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)\).

Step 7

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.

Step 8

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.

Step 9

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\).

Step 10

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\).

Step 11

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.

Step 12

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.