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.
∫x2+41dx=21arctan2x+C
Matching the arctangent form
A constant over a sum of squares is the arctangent pattern. The constant term names a2, so here a2=4 and a=2.
∫x2+a21dx=a1arctanax+C
∫x2+41dx=21arctan2x+C
The formula itself comes from substitution. Put x=2u, so dx=2du and x2+4=4(u2+1).
Multiplying the inner fraction top and bottom by 4 clears the compound fraction and returns the integrand.
The mistakes students make
Answering arctan2x with no 21 in front. Differentiating that gives x2+42, twice the integrand.
Using a=4 instead of a=2 and writing 41arctan4x. The constant in the denominator is a2, not a.
Answering ln(x2+4). A logarithm appears only when the numerator matches the derivative of the denominator, which would need an x on top.
Confusing this with ∫4−x21dx, 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 arctan2x gives 21⋅1+4x21=x2+42. The inner derivative contributes a1, and clearing the compound fraction contributes a2, so the derivative overshoots the integrand by a factor of a. Dividing by a=2 is where the 21 comes from, and in general the coefficient is a1.
What is the integral of 1/(x^2+4) from 0 to 2?
∫02x2+41dx=[21arctan2x]02=21arctan1=8π.
What changes if the numerator is x instead of 1?
Then the numerator is a constant multiple of the derivative of x2+4, so substitution with u=x2+4 gives ∫x2+4xdx=21ln(x2+4)+C. Check the numerator before choosing a form.