AP Calculus AB and BC

Integral of 1/(x^2+4): Answer, Proof, and Steps

The integral of 1/(x^2+4) is (1/2)arctan(x/2) + C. The integrand matches the standard form 1/(x^2 + a^2) with a = 2, whose antiderivative is (1/a)arctan(x/a). Differentiating (1/2)arctan(x/2) returns 1/(x^2+4), confirming the result.

1x2+4dx=12arctanx2+C\int \frac{1}{x^2+4}\,dx = \frac{1}{2}\arctan\frac{x}{2} + C

Matching the arctangent form

A constant over a sum of squares is the arctangent pattern. The constant term names a2a^2, so here a2=4a^2 = 4 and a=2a = 2.

1x2+a2dx=1aarctanxa+C\int \frac{1}{x^2+a^2}\,dx = \frac{1}{a}\arctan\frac{x}{a} + C
1x2+4dx=12arctanx2+C\int \frac{1}{x^2+4}\,dx = \frac{1}{2}\arctan\frac{x}{2} + C

The formula itself comes from substitution. Put x=2ux = 2u, so dx=2dudx = 2\,du and x2+4=4(u2+1)x^2 + 4 = 4(u^2+1).

2du4(u2+1)=12duu2+1=12arctanu+C=12arctanx2+C\int \frac{2\,du}{4(u^2+1)} = \frac{1}{2}\int \frac{du}{u^2+1} = \frac{1}{2}\arctan u + C = \frac{1}{2}\arctan\frac{x}{2} + C

Checking by differentiating

Differentiate with ddxarctanu=u1+u2\frac{d}{dx}\arctan u = \frac{u'}{1+u^2}, where u=x2u = \frac{x}{2} and u=12u' = \frac{1}{2}.

ddx(12arctanx2)=12121+x24=1444+x2=1x2+4\frac{d}{dx}\left(\frac{1}{2}\arctan\frac{x}{2}\right) = \frac{1}{2}\cdot\frac{\frac{1}{2}}{1+\frac{x^2}{4}} = \frac{1}{4}\cdot\frac{4}{4+x^2} = \frac{1}{x^2+4}

Multiplying the inner fraction top and bottom by 44 clears the compound fraction and returns the integrand.

The mistakes students make

  • Answering arctanx2\arctan\frac{x}{2} with no 12\frac{1}{2} in front. Differentiating that gives 2x2+4\frac{2}{x^2+4}, twice the integrand.
  • Using a=4a = 4 instead of a=2a = 2 and writing 14arctanx4\frac{1}{4}\arctan\frac{x}{4}. The constant in the denominator is a2a^2, not aa.
  • Answering ln(x2+4)\ln(x^2+4). A logarithm appears only when the numerator matches the derivative of the denominator, which would need an xx on top.
  • Confusing this with 14x2dx\int\frac{1}{\sqrt{4-x^2}}\,dx, which is an arcsine problem. A square root and a subtraction signal arcsine, not arctangent.

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

Why does a 1/2 appear out front?

Differentiating arctanx2\arctan\frac{x}{2} gives 1211+x24=2x2+4\frac{1}{2}\cdot\frac{1}{1+\frac{x^2}{4}} = \frac{2}{x^2+4}. The inner derivative contributes 1a\frac{1}{a}, and clearing the compound fraction contributes a2a^2, so the derivative overshoots the integrand by a factor of aa. Dividing by a=2a = 2 is where the 12\frac{1}{2} comes from, and in general the coefficient is 1a\frac{1}{a}.

What is the integral of 1/(x^2+4) from 0 to 2?

021x2+4dx=[12arctanx2]02=12arctan1=π8\int_0^2 \frac{1}{x^2+4}\,dx = \left[\frac{1}{2}\arctan\frac{x}{2}\right]_0^2 = \frac{1}{2}\arctan 1 = \frac{\pi}{8}.

What changes if the numerator is x instead of 1?

Then the numerator is a constant multiple of the derivative of x2+4x^2+4, so substitution with u=x2+4u = x^2+4 gives xx2+4dx=12ln(x2+4)+C\int\frac{x}{x^2+4}\,dx = \frac{1}{2}\ln(x^2+4) + C. Check the numerator before choosing a form.