Area Under a Curve Calculator

Type a function and two limits to find the area between the curve and the x-axis.

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

A number such as 0 or 1/2, pi, e, inf or -inf.

A number larger than the lower limit, pi, e, inf or -inf.

Try

Result

You entered∫−11∣x∣ dx\int_{-1}^{1} \left|x\right|\,dx

A=1\displaystyle A = 1

Net signed area

0\displaystyle 0
Show the work
  1. Area under a curve

    Area is never negative: a part of the curve below the x-axis would subtract from the integral, so the area is the integral of the absolute value, found by splitting where the curve crosses the axis.

    A=∫ab∣f(x)∣ dx=∫−11∣x∣ dx\begin{aligned} A &= \int_a^b \left|f(x)\right|\,dx \\ &= \int_{-1}^{1} \left|x\right|\,dx \end{aligned}
  2. Where the curve crosses the axis

    Solving x=0x = 0 inside the interval gives the points where the sign changes.

  3. Antiderivative

    An antiderivative of xx is found (see the integral calculator for the working of this step).

    F(x)=x22F(x) = \frac{x^{2}}{2}
  4. Evaluate each piece

    Evaluate the antiderivative at the ends of each piece. A piece that comes out negative lies below the axis, so its area is the positive value.

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

    ∫−10x dx=[x22]−10=−12 (below, so take −)∫01x dx=[x22]01=12\int_{-1}^{0} x\,dx = \left[\frac{x^{2}}{2}\right]_{-1}^{0} = -\frac{1}{2}\ (\text{below, so take } -)\\ \int_{0}^{1} x\,dx = \left[\frac{x^{2}}{2}\right]_{0}^{1} = \frac{1}{2}
  5. Result

    Add the areas of the pieces.

    A=∣−12∣+12=1\begin{aligned} A &= \left|-\frac{1}{2}\right| + \frac{1}{2} \\ &= 1 \end{aligned}
-11
The area between y = x and the x-axis from x = -1 to x = 1

Worked examples