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∫0π∣sin⁡x∣ dx\int_{0}^{\pi} \left|\sin x\right|\,dx

A=2\displaystyle A = 2

Net signed area

2\displaystyle 2
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=∫0π∣sin⁡x∣ dx\begin{aligned} A &= \int_a^b \left|f(x)\right|\,dx \\ &= \int_{0}^{\pi} \left|\sin x\right|\,dx \end{aligned}
  2. Sign of the curve

    f(x)f(x) does not change sign on the interval, so no splitting is needed.

  3. Antiderivative

    An antiderivative of sin⁡x\sin x is found (see the integral calculator for the working of this step).

    F(x)=−cos⁡xF(x) = -\cos x
  4. Evaluate each piece

    Evaluate the antiderivative at the two limits and subtract.

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

    ∫0πsin⁡x dx=[−cos⁡x]0π=2\begin{aligned} \int_{0}^{\pi} \sin x\,dx &= \left[-\cos x\right]_{0}^{\pi} \\ &= 2 \end{aligned}
  5. Result

    The area.

    A=2A = 2
03.141593
The area between y = sin(x) and the x-axis from x = 0 to x = 3.141593

Worked examples