Integral: 1/(a² + x²) Equation Solver with Worked Examples

The integral of is . Type “integrate 1/(x^2+4)” and the solver integrates it.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What Integral: 1/(a² + x²) means

This reverses the derivative of . Substituting makes the denominator and gives the result.

For , , so the integral is .

If the denominator is a quadratic that does not factorise, complete the square first. It uses completing the square and gives the inverses in derivatives of inverse trig functions; similar forms are integral: 1 over root and trigonometric substitutions.

This page is part of Further calculus in Calculus. Topics that work alongside it: Derivatives of inverse trig functions, Integral: 1/√(a² − x²), Completing the square (a = 1), Integral: 1/√(x² + a²), Integral: 1/√(x² − a²) and Volume of revolution about the x-axis.

What is it used for?

The integral of 1/(a² + x²) is (1/a) arctan(x/a) + c. It appears whenever a quadratic with no real roots is in the denominator.

How to use integral: 1/(a² + x²)

  1. Write the denominator as .
  2. Identify .
  3. Write .
  4. Add .

Graph

y = 1/(1 + x²)(0, 1)-4-3-2-101234-0.200.20.40.60.811.2y = 1/(1 + x²)xyy = 1/(1 + x²)Graph with x from -4 to 4 and y from -0.2 to 1.2. Shows the curve y = 1/(1 + x²); point (0, 1) at (0, 1).

The total area under this curve from −∞ to ∞ is π, which comes from arctan.

Worked examples

The examples marked with a button were worked out by the solver on this page. You can try each one yourself.

Example 1: integrate 1/(x² + 4)

Find .

Indefinite integral
Answer
arctan⁡(x2)2+C\frac{\arctan\left(\frac{x}{2}\right)}{2} + C
  1. Integrate with respect to
  2. Power rule
  3. Add the constant of integration

Example 2: a = 3

Integrate 1/(x² + 9).

Indefinite integral
Answer
arctan⁡(x3)3+C\frac{\arctan\left(\frac{x}{3}\right)}{3} + C
  1. Integrate with respect to
  2. Power rule
  3. Add the constant of integration

Example 3: a definite integral

Find the integral of 1/(1 + x²) from 0 to 1.

Definite integral
Answer
π4\frac{\pi}{4}
  1. Integrate with respect to
  2. Power rule
  3. Antiderivative
  4. Evaluate

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

∫1/(x² + a²) dx

= (1/a) arctan(x/a) + c

a = 2 gives ½ arctan(x/2).

a = 3

∫ from 0 to 3 of 1/(x² + 9) = π/12

arctan 1 = π/4.

a = 1

∫ from 0 to 1 of 1/(1 + x²) = π/4

arctan 1.

With a coefficient

∫ 8/(x² + 4) from 0 to 2 = 4 × π/4 ... = π

8 × 0.3927.

Word problems

∫1/(x² + a²) dx = (1/a) arctan(x/a) + c.

a = 2

Evaluate ∫ from 0 to 2 of 1/(x² + 4) dx to 4 decimal places.

  1. Antiderivative½ arctan(x/2)
  2. Limits½ arctan 1 = π/8
  3. Check: 0.3927 ✓0.3927.

a = 3

Evaluate ∫ from 0 to 3 of 1/(x² + 9) dx to 4 decimal places.

  1. Antiderivative⅓ arctan(x/3)
  2. Limits⅓ × π/4
  3. Check: π/12 ✓0.2618.

a = 1 Higher

Evaluate ∫ from 0 to 1 of 1/(1 + x²) dx to 4 decimal places.

  1. Antiderivativearctan x
  2. Limitsπ/4
  3. Check: ✓0.7854.

With a coefficient Higher

Evaluate ∫ from 0 to 2 of 8/(x² + 4) dx to 4 decimal places.

  1. Multiply8 × π/8
  2. Check: π ✓3.1416.

Common mistakes

Forgetting 1/a

∫1/(x² + 4) dx = arctan(x/2) ✗

½ arctan(x/2) ✓

Include 1/a.

Using ln

∫1/(x² + 4) dx = ln(x² + 4) ✗

arctan form ✓

The numerator is not the derivative of the denominator.

Using a² instead of a

1/4 arctan ✗

1/2 arctan ✓

a = 2, not 4.

Using degrees

arctan 1 = 45 ✗

π/4 radians ✓

Use radians.

Exam tips

  1. (1/a) arctan(x/a).
  2. Identify a² first.
  3. Radians.
  4. Not a log.
  5. Constants come out.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. Evaluate ∫ from 0 to 1 of 1/(x² + 1) dx to 4 decimal places Foundation

0.7854

2. Evaluate ∫ from 0 to 4 of 1/(x² + 16) dx to 4 decimal places Foundation

0.1963

3. Evaluate ∫ from 0 to 5 of 1/(x² + 25) dx to 4 decimal places Foundation

0.1571

4. Evaluate ∫ from 0 to 2 of 4/(x² + 4) dx to 4 decimal places Higher

1.5708

5. Evaluate ∫ from 1 to 2 of 1/(x² + 1) dx to 4 decimal places Higher

0.3218

6. Evaluate ∫ from 0 to 3 of 6/(x² + 9) dx to 4 decimal places Higher

1.5708

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Arctangent
Inverse of tan.
Standard integral
A result to remember.
a²
The constant in x² + a².
Antiderivative
F with F′ = f.
Definite integral
Has limits.
Radian
Angle unit.

Frequently asked questions

What is ∫1/(x² + a²) dx?

(1/a) arctan(x/a) + c.

Why arctan?

The derivative of arctan x is 1/(1 + x²).

What if the coefficient of x² is not 1?

Factor it out first.

Do I use radians?

Yes.

Which page covers the derivative?

derivatives of inverse trig functions.

Which page covers 1/√(a² − x²)?

integral of 1/√(a² − x²).

More in Calculus and the formula sheets.