Integral calculator with steps

Integration reverses differentiation and finds areas under curves. An indefinite integral needs a constant of integration, while a definite integral with limits gives a number.

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 this topic covers

Start with the integral of a power and the standard results for e^{kx}, 1/x and sin and cos. Harder integrals need substitution, integration by parts or partial fractions. The link to areas is area under a curve and the fundamental theorem of calculus.

Each part of this topic has its own page with the formula, worked examples and a solver: Integral of a power, Fundamental theorem of calculus, Area under a curve, Area between two curves, Integral of e^{kx}, Integral of 1/x, Integral of sin kx and cos kx, Integral of sec² kx, Integral of f′(x)/f(x), Integral of (ax + b)^n.

Closely related topics: Differentiation, Limits, Logarithms and exponentials.

What is it used for?

Integration reverses differentiation and finds areas, totals and accumulated change. A definite integral gives a number, an indefinite integral a function.

How to solve it

  1. Power rule: add one to the power and divide by the new power.
  2. For a definite integral, integrate, then substitute the upper limit and subtract the lower limit.
  3. Use substitution when the integrand contains a function and its derivative.
  4. Use integration by parts, ∫u dv = uv - ∫v du, for products such as x eˣ.
  5. Differentiate your answer to check that you get back to the original.

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 x^2 from 0 to 3

Worked out by the solver on this page. Press the button to try it yourself.

Definite integral
Answer
99
  1. Integrate with respect to
  2. Power rule
  3. Antiderivative
  4. Evaluate

Example 2: integrate x e^x

Worked out by the solver on this page. Press the button to try it yourself.

Indefinite integral
Answer
ex(x−1)+Ce^{x} \left(x-1\right) + C
  1. Integrate with respect to
  2. Power rule
  3. Add the constant of integration

Example 3: integrate sin(x)^2

Worked out by the solver on this page. Press the button to try it yourself.

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

Example 4: integrate 1/(x^2+1) from 0 to 1

Worked out by the solver on this page. Press the button to try it yourself.

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

Example 5: integrate x ln(x)

Worked out by the solver on this page. Press the button to try it yourself.

Indefinite integral
Answer
−x24+x2ln⁡(x)2+C-\frac{x^{2}}{4}+\frac{x^{2} \ln\left(x\right)}{2} + C
  1. Integrate with respect to
  2. Add the constant of integration

Special cases

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

Power rule

∫x² dx = x³/3 + C

Add 1 to the power, divide.

Definite integral

∫₀³ x² dx = 9

Upper minus lower.

Reverse chain

∫2x(x² + 1)³ dx

Substitute u = x² + 1.

By parts

∫x eˣ dx = (x − 1)eˣ + C

∫u dv = uv − ∫v du.

Word problems

Add 1 to the power and divide by the new power, remembering + C for an indefinite integral. For a definite integral, subtract the value at the lower limit from the upper.

Power rule

Integrate x² from 0 to 3.

  1. Antiderivativex³/3
  2. Limits9 − 0
  3. Check: ✓9

By parts

Integrate x eˣ.

  1. u = x, dv = eˣv = eˣ
  2. Formulax eˣ − eˣ
  3. Check: differentiate to get x eˣ ✓0

Trig Higher

Integrate sin²x using cos 2x.

  1. sin²x(1 − cos 2x)/2
  2. Integratex/2 − sin 2x/4
  3. Check: derivative 1/2 − cos 2x/2 ✓0.5

A standard result Higher

Integrate 1/(x² + 1) from 0 to 1.

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

Common mistakes

Forgetting + C

∫x² dx = x³/3 ✗

+ C ✓

Indefinite integrals have a constant.

Integrating 1/x with the power rule

x⁰/0 ✗

ln|x| ✓

The power rule fails for n = −1.

Not changing limits after substitution

old limits for u ✗

new limits ✓

Convert the limits.

Subtracting in the wrong order

lower − upper ✗

upper − lower ✓

Negative area.

Exam tips

  1. Add 1, divide by the new power.
  2. + C for indefinite.
  3. 1/x gives ln |x|.
  4. Check by differentiating.
  5. Limits: upper − lower.

Practice questions

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

1. ∫₀² x³ dx Foundation

4

2. ∫₁⁴ 2x dx Foundation

15

3. ∫₀¹ eˣ dx (3 dp) Foundation

1.718

4. ∫₁^e 1/x dx Higher

1

5. ∫₀^π sin x dx Higher

2

6. ∫₀³ 4 dx Higher

12

Practice generator

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

Solve: …

Key terms

Integral
The reverse of the derivative.
Constant of integration
+ C.
Definite integral
With limits.
Antiderivative
A function whose derivative is f.
Substitution
Change of variable.
Integration by parts
∫u dv = uv − ∫v du.

Frequently asked questions

What is integration?

The reverse of differentiation, and a way to find areas.

Why + C?

Constants disappear when differentiating.

How do I integrate 1/x?

ln |x| + C.

Which page covers powers?

integral of a power.

Which page covers by parts?

integration by parts.

Which page covers areas?

area under a curve and area between two curves.

More in Calculus and the formula sheets.