Integral Calculator

  • Free
  • No sign-up
  • Works on phones
  • Shows the working

Step-by-step solverExact symbolic engine

Interactive Calculus Problem Solver

Derivatives, antiderivatives, definite and improper integrals, and limits. Every answer comes with the rules used, and antiderivatives are verified by differentiating them back.

Try:
Input syntax
  • Powers x^2, roots sqrt(x), cbrt(x), absolute value |x|
  • Implicit multiplication works: 3x sin(2x)
  • sin cos tan sec csc cot, asin acos atan, sinh cosh tanh
  • e^x or exp(x); ln(x) and log(x) are both the natural log
  • Constants pi and e; bounds accept inf and -inf
Enter a function and press Solve to see a full worked solution.

This integral calculator finds antiderivatives with steps. Type a function of \( x \), press solve, and you get \( \int f(x)\,dx \) with the constant of integration, the rule that cracked it (power rule, substitution, integration by parts, standard trig and exponential forms) and a check that differentiating the answer gives back your integrand.

It works as an antiderivative calculator for homework, exam review, or just confirming a result you worked out by hand. The same solver has a Definite mode for integrals with limits. It is free and needs no sign-up.

How to use the integral calculator

  1. Type the integrand in the box. Use ^ for powers, sqrt() for roots, e^(x) or exp() for exponentials, ln() for the natural log and sin(), cos(), sec() for trig functions.
  2. Implicit multiplication works, so 3x, x^2 e^x and x ln(x) are read the way you would write them on paper. Use parentheses when in doubt, e.g. 1/(x^2 + 4).
  3. Press solve. The result appears with the rule used and a step list; you can copy it or plot it.
  4. For a number instead of a formula, switch to Definite, enter the lower and upper limits (pi and inf are allowed) and solve again.

How the calculator finds an antiderivative

An antiderivative of \( f \) is any function \( F \) with \( F'(x) = f(x) \). Every other antiderivative differs from it by a constant, which is why the answer ends in \( + C \):

$$\int f(x)\,dx = F(x) + C$$

The solver breaks sums into separate terms, pulls out constant factors, and then tries the standard tools in turn: the power rule \( \int x^n\,dx = \frac{x^{n+1}}{n+1} \) (with \( \ln|x| \) for \( n = -1 \)), known trig, exponential and inverse-trig forms, u-substitution when the derivative of an inner function is sitting in the integrand, and integration by parts for products like a polynomial times \( e^x \) or \( \ln x \). The last step differentiates the result to confirm it.

Worked example

Find \( \int x^2 e^x\,dx \). This is the example preloaded in the calculator above.

The integrand is a polynomial times an exponential, so use parts with \( u = x^2 \) and \( dv = e^x\,dx \). Then \( du = 2x\,dx \), \( v = e^x \), and

$$\int x^2 e^x\,dx = x^2 e^x - \int 2x\,e^x\,dx$$

The new integral needs parts once more (\( u = x \), \( dv = e^x\,dx \)), which gives \( \int x e^x\,dx = x e^x - e^x \). Put it together:

$$\begin{aligned}\int x^2 e^x\,dx &= x^2 e^x - 2(x e^x - e^x) + C \\ &= x^2 e^x - 2x e^x + 2e^x + C\end{aligned}$$

The calculator prints it in exactly this expanded form; factored, it is \( e^x(x^2 - 2x + 2) + C \). Check: differentiating gives \( 2xe^x + x^2e^x - 2e^x - 2xe^x + 2e^x = x^2 e^x \).

Want a number? In Definite mode from 0 to 1, the antiderivative is \( e \) at \( x = 1 \) and \( 2 \) at \( x = 0 \), so \( \int_0^1 x^2 e^x\,dx = e - 2 \approx 0.71828 \).

A quick substitution example to try next: type x/(x^2 + 9). With \( u = x^2 + 9 \), \( du = 2x\,dx \), the answer is \( \frac12 \ln(x^2 + 9) + C \).

What the solver can and cannot integrate

The step-by-step solver covers polynomials, roots and negative powers, \( e^{ax} \), sine and cosine of \( ax + b \), \( \sec^2 \), \( \tan \), \( \ln x \), \( \frac{1}{a^2 + x^2} \) forms, and products that yield to one substitution or repeated integration by parts.

Some integrands have no elementary antiderivative at all, such as \( e^{x^2} \) or \( \frac{\sin x}{x} \). Others, like \( \frac{1}{x^2 - 1} \), need partial fraction decomposition first, which the solver does not do automatically. In both cases it says that no closed form was found; switch to Definite mode and you still get an accurate numerical value between any two limits.

Related guides

Further reading

FAQ

Does the integral calculator show steps?

Yes. It lists the rule it applied, such as u-substitution with the choice of \( u \) and \( du \), or integration by parts with \( u \) and \( dv \), then adds \( + C \) and confirms the result by differentiating it.

Can it calculate definite integrals too?

Yes. Switch the solver to Definite, enter the limits, and it evaluates \( F(b) - F(a) \) when it finds an antiderivative, or integrates numerically otherwise. Infinite limits such as inf are accepted. The definite integral calculator does the same and also says whether an improper integral converges.

Why is my answer different from the textbook’s?

Two correct antiderivatives can look different and still differ only by a constant, or be the same expression written another way (expanded versus factored). Differentiate both (the derivative calculator makes this quick); if you get the same integrand, both are right.

Is the antiderivative calculator free?

Yes. It is free to use with no sign-up and no limit on the number of integrals.

Embed this calculator on your website

Teachers, tutors and bloggers are welcome to use this calculator for free. Copy the code below and paste it into any page (in WordPress, use a "Custom HTML" block). The small script makes the calculator grow to fit its answer; if your site removes scripts, it still works at a fixed height. Please keep the credit link.

More calculators

See all calculators