AP Calculus BC
Integral of 1/(x^2-4): A Log, Not an Arctangent
The integral of 1 over x squared minus 4 is one quarter times the natural log of the absolute value of x minus 2 over x plus 2, plus C. The minus sign lets the denominator factor into x minus 2 times x plus 2, which is what makes this a partial fractions problem and not an arctangent.
The denominator factors, so split it
is a difference of squares: . Distinct linear factors mean partial fractions, so set and clear denominators to get .
Substituting gives , so . Substituting gives , so . The is the gap between the two roots, which is where the coefficient in the final answer comes from.
Compare it with 1/(x^2+4)
Change one sign and the problem changes species. has no real roots, so it does not factor over the reals and there is nothing for partial fractions to split. That integrand is an arctangent.
Check the denominator before choosing a method
For a denominator shaped like x squared plus or minus a constant, the minus case factors into real linear pieces and gives a logarithm, and the plus case is irreducible and gives an arctangent. For any other quadratic the signs tell you nothing: check the discriminant. Real roots mean partial fractions, no real roots mean completing the square and an arctangent.
The mistakes students make
Each of these is a one-symbol slip that lands on a clean but incorrect answer, which is why they survive to the end of a free response.
- Reaching for the arctangent pattern and writing . That is the answer to , a different problem.
- Losing the and answering , whose derivative is , four times too big.
- Guessing from the shape of the fraction. Its derivative is , and there is no in the numerator to justify it.
Every answer on this page is machine checked
An automated test differentiates the antiderivative above and confirms it returns the integrand. A wrong sign or a missing factor fails the build, so it cannot reach you.
Frequently asked questions
What is the integral of 1/(x^2-4)?
Because splits into , the answer is a difference of logs, written compactly as .
Why is 1/(x^2+4) an arctangent but 1/(x^2-4) a log?
Because factors into real linear pieces and does not. Real factors give partial fractions and logs; an irreducible quadratic under a constant numerator gives an arctangent.
Where does the 1/4 come from?
From the partial fractions coefficients. The roots are and , which are apart, and that gap becomes the in front of both logs.