Integral Calculator

Find an antiderivative or evaluate a definite integral. Follow the calculation steps and see the signed area under the curve for finite bounds.

∫0π sin(x) dx=2

Set up your integral

Use ^ for powers and parentheses for functions, such as sin(x). You can also enter pi, e and 2x.

Solution

—

Enter a function and select Calculate integral.

How to use the integral calculator

  1. Enter a function in x, such as 3x^2 + 2x or sin(x).
  2. Choose Indefinite for an antiderivative or Definite and add two finite bounds.
  3. Select Calculate integral to see the result and the method used.

Worked integral examples

Indefinite. For 3x² + 2x, the power rule gives x³ + x² + C.

Definite. From 0 to π, integrate sin(x) by evaluating −cos(x) at the bounds. The result is −cos(π) + cos(0) = 2.

Review the formulas and signed area. OpenStax Calculus

Integral Calculator graph of the shaded area under sin(x) from zero to pi, with a definite integral of 2.

Try sin(x) from 0 to 2*pi in the integral calculator. Over a full period, the positive area from 0 to π and the negative contribution from π to 2π cancel, so the exact integral is zero. The calculator may show a tiny rounding difference from zero.

Check an antiderivative by differentiating it with the Derivative Calculator. The derivative should match the original integrand where both expressions are defined.

Integral calculator FAQs

What is the difference between indefinite and definite integrals?

An indefinite integral gives a family of antiderivatives. A definite integral gives the signed accumulation between two bounds.

Why does an indefinite integral include + C?

The derivative of any constant is zero. Adding C represents every antiderivative that differs by a constant.

Can I see the calculation steps?

Yes. The tool shows the symbolic rule when it finds an antiderivative. For a numerical result, it explains how the finite interval was evaluated.

How should I type fractions and powers?

Use ^ for powers and put fractions in parentheses when needed. For example, use 1/(x+1) for a reciprocal and x^(1/2) for a square root.

Can I enter π in the bounds?

Yes. Enter pi, π or an expression such as pi/2. Trigonometric functions use radians.

Why is my definite integral negative?

Values below the x-axis contribute negative signed area. Reversing the order of the bounds also reverses the sign.

Which integrals can this tool solve?

Symbolic rules cover polynomials, standard trig, exponential and logarithmic patterns, and selected substitutions and integration-by-parts patterns. Numerical mode is for continuous real functions on finite closed intervals. Integrals with poles or unbounded limits require a limit calculation.