Area Between Curves Calculator

Type two functions to find the area enclosed between them.

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

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

Leave both limits empty to use the outermost points where the curves meet.

Leave both limits empty to use the outermost points where the curves meet.

Try

Result

You entered∫02∣2x−x2∣ dx\int_{0}^{2} \left|2x - x^{2}\right|\,dx

A=43\displaystyle A = \frac{4}{3}
Show the work
  1. Area between two curves

    The area between y=f(x)y = f(x) and y=g(x)y = g(x) is the integral of the gap between them, always the upper minus the lower, so where the curves cross the roles swap and the integral is split there.

    A=∫ab∣f(x)−g(x)∣ dx=∫02∣2x−x2∣ dx\begin{aligned} A &= \int_a^b \left|f(x) - g(x)\right|\,dx \\ &= \int_{0}^{2} \left|2x - x^{2}\right|\,dx \end{aligned}
  2. Where the curves meet

    With no interval given, the region is bounded by the outermost points where the curves meet. Setting 2x=x22x = x^{2} and solving (searching −50 to 50) gives these.

    x=0, x=2x = 0,\ x = 2
  3. Antiderivative

    An antiderivative of f(x)−g(x)=−x2+2xf(x) - g(x) = -x^{2} + 2x is found (see the integral calculator for the working of this step).

    F(x)=−x33+x2F(x) = -\frac{x^{3}}{3} + x^{2}
  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)

    ∫02(−x2+2x) dx=[−x33+x2]02=43\begin{aligned} \int_{0}^{2} \left(-x^{2} + 2x\right)\,dx &= \left[-\frac{x^{3}}{3} + x^{2}\right]_{0}^{2} \\ &= \frac{4}{3} \end{aligned}
  5. Result

    The area between the curves.

    A=43A = \frac{4}{3}
02
The region between y = 2x and y = x^2

Worked examples