Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Definite Integral Calculator

How to use
  1. Type the function in the f(x)f(x) box, for example x2x^2 or sin⁡(x)\sin(x). Learn more about evaluating an integral
  2. Type the limits in From a and To b.
  3. Read the value of ∫abf(x) dx\int_a^b f(x)\,dx under Integral. The signed area is shaded on the graph: area above the xx-axis counts as positive, below as negative. Learn more about reading the shaded area
  4. Change the function or either limit and the value and the shading follow at once.

Integral
Integral
∫03x2 dx≈9\displaystyle \int_{0}^{3} {x}^{2}\,dx \approx 9
How it was found

The integral is the signed area between the graph of ff and the x-axis, from x=0x = 0 to x=3x = 3.

Area above the axis counts as positive, area below as negative.

Worked out numerically: 99.

f(x)=x2f\left(x\right)={x}^{2}


Evaluating an integral

DemoEvaluate an integral
Step 0 of 4
Type a function and the two limits. The calculator gives the value of the definite integral

∫abf(x) dx\int_a^b f(x)\,dx


and shades the region it measures on the graph. Change the function or a limit and both update at once.

The value is worked out numerically, to many more places than the four shown, so it agrees with the exact answer where one exists: ∫03x2 dx\int_0^3 x^2\,dx shows 99, and ∫02x2 dx\int_0^2 x^2\,dx shows 2.66672.6667, the decimal for 83\frac{8}{3}.

Reading the shaded area

DemoPositive and negative area
Step 0 of 4
    The shaded region lies between the curve and the xx-axis, from x=ax = a to x=bx = b. The integral is its signed area:

  • area above the xx-axis counts as positive;
  • area below the xx-axis counts as negative.

  • So a total of 00 does not mean there is no area: ∫02πsin⁡x dx=0\int_0^{2\pi} \sin x\,dx = 0 because the arch above and the arch below are the same size. To find the total area regardless of sign, integrate ∣f(x)∣|f(x)| instead.

    If ff has a vertical asymptote between aa and bb, the area is not finite, and the calculator says so rather than give a number.

What a definite integral is

The definite integral of ff from aa to bb adds up the values of ff across the interval. Picture the region under the curve cut into thin vertical strips, each of width Δx\Delta x and height f(x)f(x); the sum of their areas, ∑f(x) Δx\sum f(x)\,\Delta x, gets closer and closer to one number as the strips get thinner. That number is the integral.

For f(x)=x2f(x) = x^2 from 00 to 33 the region under the parabola has area 99. The Riemann Sum visualizer shows the strips getting thinner.
The area under y=x2y = x^2 from 00 to 33 is 99.

Signed area

    Because f(x) Δxf(x)\,\Delta x is negative wherever f(x)f(x) is negative, the integral subtracts the area that lies below the axis. For sin⁡x\sin x:

  • ∫0πsin⁡x dx=2\int_0^{\pi} \sin x\,dx = 2 (the first arch, above the axis);
  • ∫π2πsin⁡x dx=−2\int_{\pi}^{2\pi} \sin x\,dx = -2 (the second arch, below);
  • ∫02πsin⁡x dx=0\int_0^{2\pi} \sin x\,dx = 0 (they cancel).

  • Swapping the limits changes the sign too: ∫baf(x) dx=−∫abf(x) dx\int_b^a f(x)\,dx = -\int_a^b f(x)\,dx.
One arch of sin⁡x\sin x above the axis (positive), one below (negative).

The Fundamental Theorem of Calculus

Integrals can be found exactly with an antiderivative: a function FF with F′=fF' = f. The Fundamental Theorem of Calculus says

∫abf(x) dx=F(b)−F(a).\int_a^b f(x)\,dx = F(b) - F(a).


For f(x)=2xf(x) = 2x an antiderivative is F(x)=x2F(x) = x^2, so ∫132x dx=32−12=8\int_1^3 2x\,dx = 3^2 - 1^2 = 8. The calculator gets the same 88 by adding up thin strips, without needing FF — which is why it can also handle functions such as e−x2e^{-x^2} whose antiderivative has no simple formula.
∫132x dx=8\int_1^3 2x\,dx = 8; the dashed curve is the antiderivative x2x^2.

Rules for integrals

    A few rules make integrals easier to split up and check:

  • Linearity: ∫ab(cf(x)+g(x))dx=c∫abf(x) dx+∫abg(x) dx\int_a^b \big(c f(x) + g(x)\big)dx = c\int_a^b f(x)\,dx + \int_a^b g(x)\,dx.
  • Adding intervals: ∫abf(x) dx+∫bcf(x) dx=∫acf(x) dx\int_a^b f(x)\,dx + \int_b^c f(x)\,dx = \int_a^c f(x)\,dx.
  • Same limits: ∫aaf(x) dx=0\int_a^a f(x)\,dx = 0.
  • Symmetry: for an odd function, ∫−aaf(x) dx=0\int_{-a}^{a} f(x)\,dx = 0; for an even one, ∫−aaf(x) dx=2∫0af(x) dx\int_{-a}^{a} f(x)\,dx = 2\int_0^a f(x)\,dx.

  • Each rule can be tried in the calculator: ∫−22x3 dx\int_{-2}^{2} x^3\,dx comes out 00.

Asymptotes and infinite areas

When ff has a vertical asymptote inside [a,b][a, b], the region under the curve runs up forever, and its area may or may not be finite. Such an integral is called improper; it is defined as a limit, and it needs to be worked out by hand.

The calculator refuses to give a number across an asymptote rather than risk a wrong one. For example ∫−111x dx\int_{-1}^{1} \frac{1}{x}\,dx has no finite value, even though the two halves look as if they might cancel. Between 11 and 33, away from the asymptote, 1x\frac{1}{x} integrates to ln⁡3\ln 3 without trouble.
1x2\frac{1}{x^2} and 1x\frac{1}{\sqrt{x}} both run up the yy-axis.

Common mistakes

  • Reading the integral as total area. Area below the axis counts as negative; for the total area integrate ∣f(x)∣|f(x)|.
  • Forgetting to subtract F(a)F(a). ∫132x dx=9−1\int_1^3 2x\,dx = 9 - 1, not 99.
  • Ignoring an asymptote. ∫−111x2 dx\int_{-1}^{1}\frac{1}{x^2}\,dx is not −2-2, though the formula [−1x]−11\left[-\frac{1}{x}\right]_{-1}^{1} suggests it; the area is infinite.
  • Mixing degrees and radians. ∫0πsin⁡x dx=2\int_0^{\pi}\sin x\,dx = 2 uses radians, which is what the calculator uses.