Integral Calculator with Steps

Enter an integral with or without limits. The solver picks a method, shows each substitution or by-parts step, and checks the result by differentiating.

Try

Worked example

Find ∫ x · cos(x) dx

  1. Choose integration by parts. The integrand is a product, with x becoming simpler when differentiated. Let u = x and dv = cos(x) dx
  2. Find du and v. du = dx and v = sin(x)
  3. Apply ∫ u dv = uv − ∫ v du. x · sin(x) − ∫ sin(x) dx
  4. Integrate what remains. ∫ sin(x) dx = −cos(x), so the result is x · sin(x) + cos(x) + C

Answer: x sin(x) + cos(x) + C

Check: Differentiating gives sin(x) + x cos(x) − sin(x) = x cos(x).

This example is written out in full. Enter your own problem above and the solver sets out the working the same way.

Where it's used

An integral accumulates a quantity: area under a curve, distance from velocity, total cost from marginal cost, work done by a varying force, and probabilities from a density function.

How to do it by hand

  1. Simplify the integrand

    Expand, divide or apply an identity first. Many integrals become standard forms.

  2. Choose a technique

    Substitution when an inner function's derivative is present; parts for a product such as x·e^x; partial fractions for rational functions.

  3. Integrate and add C

    Find the antiderivative and include the constant of integration for indefinite integrals.

  4. Evaluate or check

    Apply the limits for a definite integral, or differentiate the answer to confirm it.

Common mistakes

Questions about integrals

Does it handle definite integrals?

Yes. Give the limits, for example “∫ from 0 to π of sin(x) dx”.

What if there is no elementary antiderivative?

Some integrals, such as ∫ e^(−x²) dx, have none. The solver will say so and give a numerical value for definite integrals.

How do I choose u in integration by parts?

Pick the factor that gets simpler when differentiated. A common order of preference is logarithms, inverse trig, algebraic, trig, then exponentials.

What is an improper integral?

One with an infinite limit or an integrand that blows up. It is evaluated as a limit, and it either converges to a number or diverges.

What if the integral has no closed form?

Then a definite integral is evaluated numerically. The solver will say when no elementary antiderivative exists and give a numerical value.

Instant calculators for integrals

No AI and no limits: answers as you type.

Related step-by-step solvers