◎ English

Integral Calculator

Type a function and choose an indefinite or definite integral. The calculator shows which method it used at every step: standard integrals, substitution, integration by parts, trigonometric identities, polynomial division and partial fractions. Each antiderivative is checked by differentiating it.

Example: x^2*sin(x), (x+1)/(x-1), e^(2x), sqrt(x), ln(x). Use * or write factors side by side (2x).

Interpreted as: x·ex

Limits can be numbers or constants such as pi/2 or e.

Examples

Calculations run in your browser; what you type is not sent to a server.

Result
∫ x·ex dx = x·ex − ex + C

C is an arbitrary constant.

Step-by-step solution

  1. Integration by parts ∫u dv = u·v − ∫v du

    Choose u = x and dv = ex dx; then du = 1 dx and v = ex.

    ∫x·ex dx = x·ex − ∫ex dx

    1. v = ∫dv:

      1. Standard integral

        ∫ex dx = ex

    2. Remaining integral:

      1. Standard integral

        ∫ex dx = ex

    = x·ex − ex

Guide: Integral Calculator

Indefinite and definite integrals

∫f(x) dx = F(x) + C where F′ = f; C is an arbitrary constant. A definite integral ∫ₐᵇ f(x) dx is a number, F(b) − F(a) by the fundamental theorem of calculus: ∫₀³ x² dx = 9. It measures signed area, so parts below the x-axis count negatively.

Substitution and integration by parts

If the integrand has the form f(g(x))·g′(x), let u = g(x): ∫2x·cos(x²) dx = sin(x²) + C. For products use ∫u dv = u·v − ∫v du, choosing u in the order logarithmic, inverse trigonometric, algebraic, trigonometric, exponential: ∫x·eˣ dx = x·eˣ − eˣ + C.

Rational functions

When the numerator’s degree is at least the denominator’s, divide first. Then factor the denominator and split into partial fractions: 1/(x²−1) = (1/2)/(x−1) − (1/2)/(x+1). Linear factors give logarithms; irreducible quadratic factors are handled by completing the square, giving ln and arctan terms.

What it cannot do step by step

Integrals such as eˣ·sin x (where parts cycles back), √(1 − x²) (trigonometric substitution) or e^(−x²) (no elementary antiderivative) produce no steps. The page then says so and shows the symbolic engine’s result without steps, or a numerical (Simpson) value for definite integrals. Improper integrals over intervals containing singularities are not evaluated.

Worked examples

  • Integration by parts: ∫ x·ex dx = x·ex − ex + C
  • Substitution: ∫ 2x·cos(x2) dx = sin(x2) + C
  • Partial fractions: ∫ 1x2 − 1 dx = ln|x − 1|2 − ln|x + 1|2 + C
  • Trigonometric identity: ∫ sin2(x) dx = −sin(2x)4 + x2 + C
  • Definite integral: ∫03 x2 dx = 9
  • Integral of ln x: ∫ ln(x) dx = x·ln(x) − x + C

Frequently asked questions

Why is + C added?

Functions that differ by a constant have the same derivative, so an indefinite integral is a whole family F(x) + C. In a definite integral the constant cancels.

How can I check an antiderivative?

Differentiate it; you should get the integrand back. The calculator does this numerically for every result, and the derivative calculator shows the differentiation step by step.

Why is there no step-by-step answer for e^(x²)?

Some functions, including e^(x²), e^(−x²) and sin(x)/x, have no antiderivative made of elementary functions. Their definite integrals can still be computed numerically.

Why ln|x| and not ln x?

1/x is defined for negative x as well, and the derivative of ln|x| is 1/x on both sides of zero.

Related tools

Sources: OpenStax — Calculus Volume 1 · OpenStax — Calculus Volume 2

What would you like to calculate?

Browse all calculators