Skip to content

Integral Calculator

Find antiderivatives and definite integrals with steps. Leave the limits empty for an indefinite integral; fill them in for the exact area under the curve.

Your problem will appear here as you type.

Integration techniques used

TechniqueUse it whenExample
Power rulePolynomials∫ 3x² + 2x − 1 dx = x³ + x² − x + C
u-substitutionAn inner function and its derivative both appear∫ 2x cos(x²) dx = sin(x²) + C
Integration by partsA product like x·eˣ or x·sin x∫ x eˣ dx = eˣ(x − 1) + C
Partial fractionsA rational function∫ 1/(x² − 1) dx = ½ ln|(x − 1)/(x + 1)| + C
Trig identitiesPowers of sin and coscos²x = (1 + cos 2x)/2

Why there is a “+ C”

Many functions have the same derivative: x², x² + 5 and x² − 100 all differentiate to 2x. An indefinite integral therefore gives a whole family of antiderivatives, and C stands for the unknown constant. In a definite integral the constants cancel, so C disappears.

Worked example: u-substitution

Integrate 2x cos(x²) dx

  1. Let u = x². Then du = 2x dx.
  2. The integral becomes ∫ cos(u) du.
  3. That equals sin(u) + C.
  4. Substitute back: sin(x²) + C.

Answer: sin(x²) + C

Worked example: integration by parts

A good rule for choosing u is LIATE: Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential. Pick u from the earliest group in the list.

Integrate x eˣ dx

  1. The formula is ∫ u dv = uv − ∫ v du.
  2. Choose u = x, so du = dx, and dv = eˣ dx, so v = eˣ.
  3. Then ∫ x eˣ dx = x eˣ − ∫ eˣ dx = x eˣ − eˣ + C.
  4. Factor: eˣ(x − 1) + C.

Answer: eˣ(x − 1) + C

Check by differentiating

The quickest way to verify an indefinite integral is to differentiate the answer. If d/dx of eˣ(x − 1) gives x eˣ, the integration was right.

Improper integrals

An integral with an infinite limit, such as ∫ from 1 to ∞ of 1/x² dx, is evaluated as a limit. Here it converges to 1. By contrast ∫ from 1 to ∞ of 1/x dx diverges. For improper integrals the solver gives a numerical value and says so, so a result such as 0.9999999999 means 1.

Frequently asked questions

How do I enter limits of integration?

Use the lower and upper boxes, or type “∫ x^2 dx from 0 to 3”. Use ∞ for improper integrals.

What if there is no formula for the integral?

For a definite integral the area is computed numerically with adaptive Simpson's rule.

What does it mean when an integral has no closed form?

Functions like e^(−x²) have no antiderivative made of elementary functions. A definite integral of one can still be computed numerically.

Can I get the area under a curve?

Yes. Fill in the lower and upper limits and the area is shaded on the graph. Note that regions below the x-axis count as negative.

Other calculators