Integral Calculator with Steps

Finds antiderivatives with the method named at every step, checks the answer by differentiating it, evaluates definite integrals and shades the area on a graph.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Type the integrand

    Enter f(x) in the Integrand box, for example x sin(x), and pick the variable if it is not x.

  2. 2
    Set limits if needed

    Tick Definite integral and enter the lower limit a and the upper limit b.

  3. 3
    Read the result

    The Antiderivative and Method boxes show the answer and the main technique; the definite value appears beside them.

  4. 4
    Follow the working

    Read the numbered steps under Working; each line names the rule, such as Substitution or Integration by parts.

  5. 5
    Check the graph

    The graph shows f in blue, the antiderivative dashed in green and the shaded signed area between the limits.

  6. 6
    Practise

    Open Practice, pick a level and type antiderivatives without + C; Show solution explains each one.

  7. 7
    Save or print

    Press Save problem to keep it in the Saved tab, or Print / PDF for a worksheet copy.

About this tool

Integration is where calculus stops being mechanical. Differentiation follows fixed rules, but to integrate you have to recognise which technique fits. This calculator works the way a student is taught to: it splits sums, pulls out constants, looks the result up in the table of standard integrals, and when that is not enough it tries u-substitution, integration by parts in LIATE order, partial fractions for rational functions, power reduction and product-to-sum identities for trigonometric integrals, and trigonometric substitution for square roots of quadratics. Every step names the rule it used, so you can follow the reasoning and copy the method into your own working. Before any answer is shown it is differentiated numerically at several points and compared with your integrand, so a wrong antiderivative is never displayed. For definite integrals the tool also computes F(b) - F(a), confirms it with adaptive Simpson integration, and shades the signed area on an interactive graph.

What you can type

Write the integrand with ^ for powers and ordinary function names: x^2 e^x, sin(x)^3, 1/(x^2 - 1), sqrt(4 - x^2), ln(x)/x or e^x cos(x). Multiplication signs can be left out (3x, x sin(x)), and sin^2 x is read as (sin x)^2. The variable can be x, t, u, y or theta. Tick Definite integral and enter limits to get a number as well as the antiderivative.

The order of methods

The engine tries the cheapest idea first. Constants and sums are handled by linearity. Next comes the table: powers, 1/x, exponentials, the six trigonometric functions, sec squared, hyperbolic functions, ln x and the inverse trigonometric functions, all with a linear inside such as 3x - 1. Rational functions go to partial fractions after any long division. Products like e^x cos x use the cyclic parts formula. Powers of sine and cosine are rewritten with the odd-power trick or power reduction. Then substitution is tried with every inner function in the integrand, and finally integration by parts with u chosen by LIATE (logarithm, inverse trig, algebraic, trig, exponential).

Why the answer can look different from your textbook

Antiderivatives are only unique up to a constant, and identities can change their look. Your book may write -cos^2(x)/2 where this tool writes sin(x)^2/2 for ∫ sin x cos x dx; both are right because they differ by the constant 1/2. The practice mode therefore checks your answer by differentiating it, not by comparing text.

Worked example

For ∫ x^2 e^x dx the tool chooses parts with u = x^2 and dv = e^x dx, which gives x^2 e^x - ∫ 2x e^x dx. A second round of parts with u = x finishes the job: x^2 e^x - 2x e^x + 2e^x + C. From 0 to 1 the value is e - 2 ≈ 0.7182818, and the Simpson check agrees to ten digits.

Limits

This is a rule-based integrator, not a full computer algebra system. Integrals that need several clever substitutions, repeated quadratic factors in partial fractions or special functions are not solved symbolically; the tool then says so and still gives the definite value numerically. Some integrals, such as sin(x^2) or e^(-x^2), have no elementary antiderivative at all. Improper integrals with infinite limits are not handled. Use the steps to learn the methods, not as a substitute for showing your own working in an exam.

Worked example

∫ x^2 e^x dx = x^2 e^x - 2x e^x + 2e^x + C (parts twice); from 0 to 1 this equals e - 2 ≈ 0.7182818.

Quick facts

Frequently asked questions

How does the calculator choose a method?

It tries linearity and the table of standard integrals first, then partial fractions for rational functions, trigonometric rewrites, substitution with each inner function and finally integration by parts in LIATE order.

Can I trust the antiderivative?

Every result is differentiated numerically at several points and compared with the integrand before it is shown. If the check fails, the result is discarded and only the numerical definite value is given.

Why is there no answer for sin(x^2)?

Some functions have no antiderivative made of elementary functions. For those the tool reports that no closed form was found and still evaluates any definite integral numerically.

How is the definite integral computed?

When an antiderivative exists, as F(b) - F(a). It is always cross-checked with adaptive Simpson integration, and the numerical value is used if the two disagree, for example across a discontinuity.

Does the practice mode accept answers in a different form?

Yes. Your answer is differentiated and compared with the integrand at several points, so any correct antiderivative is accepted, whatever constant or identity you used.

Where is my work stored?

Saved problems stay in this browser's local storage. Save file exports everything as a JSON file you can open on another device; nothing is uploaded.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages