Ekuation

purpose

Area Under Curve Calculator

Calculate the area under any curve between two x-values with a shaded visualization showing positive and negative regions.

Back to Integral Calculator

Enter a mathematical expression using x as the variable.

Number of subdivisions for the numerical calculation.

Number of rectangles shown in the visualization.

Integral Calculator Tips

Click to show tips

Try an Example

Pick a scenario to see how the calculator works, then adjust the values

Basic Polynomial

Integrate x^2 from 0 to 1 using Simpson's rule. Exact answer: 1/3.

Key values: x^2 · [0, 1] · Simpson's rule

Trigonometric Integral

Integrate sin(x) from 0 to pi. Exact answer: 2.

Key values: sin(x) · [0, pi] · Exact: 2

Area Under a Bell Curve

Approximate the Gaussian integral e^(-x^2) from -3 to 3.

Key values: e^(-x^2) · [-3, 3] · Gaussian

Documentation

Area Under a Curve

The area between a non-negative function and the x-axis from x=ax = a to x=bx = b is:

A=abf(x)dxA = \int_a^b f(x) \, dx

If the function dips below the x-axis, use f(x)|f(x)| for the geometric (unsigned) area.


Area Between Two Curves

The area between f(x)f(x) (upper) and g(x)g(x) (lower) from aa to bb:

A=ab[f(x)g(x)]dxA = \int_a^b [f(x) - g(x)] \, dx

Key step: Find intersection points by solving f(x)=g(x)f(x) = g(x) — these are the limits of integration. If the curves cross within the interval, split into separate integrals.


Worked Example

Find the area between y=x2y = x^2 and y=xy = x:

  1. Intersection: x2=x    x(x1)=0    x=0,1x^2 = x \implies x(x-1) = 0 \implies x = 0, 1
  2. On [0,1][0, 1], xx2x \geq x^2 (line is above parabola)
  3. A=01(xx2)dx=[x22x33]01=1213=16A = \int_0^1 (x - x^2) \, dx = \left[\frac{x^2}{2} - \frac{x^3}{3}\right]_0^1 = \frac{1}{2} - \frac{1}{3} = \frac{1}{6}

Horizontal Slicing

Sometimes integrating with respect to yy is easier. Express curves as x=f(y)x = f(y) and x=g(y)x = g(y):

A=cd[f(y)g(y)]dyA = \int_c^d [f(y) - g(y)] \, dy

This is especially useful for regions bounded by curves that aren't functions of xx (like a sideways parabola x=y2x = y^2).


Frequently Asked Questions

How do you calculate the area under a curve?

The area under a non-negative curve f(x)f(x) from x=ax = a to x=bx = b is computed by the definite integral abf(x),dx\int_a^b f(x)\\,dx. If the function dips below the x-axis, use f(x)|f(x)| for the geometric (unsigned) area.

What is the difference between area under a curve and a definite integral?

A definite integral gives the signed area, where regions below the x-axis count as negative. The geometric area under a curve treats all regions as positive by integrating the absolute value f(x)|f(x)|.

How do you find the area between two curves?

Find the intersection points by solving f(x)=g(x)f(x) = g(x) to get the limits. Then integrate the difference: ab[f(x)g(x)],dx\int_a^b [f(x) - g(x)]\\,dx, where f(x)f(x) is the upper curve and g(x)g(x) is the lower curve.

What if the curves cross within the integration interval?

If the curves cross, split the integral at each intersection point. On each sub-interval, determine which function is on top and integrate the appropriate difference. Then sum the absolute values of each piece.

When should I use horizontal slicing instead of vertical slicing?

Use horizontal slicing (integrating with respect to yy) when the region is bounded by curves that are more naturally expressed as x=f(y)x = f(y), such as a sideways parabola x=y2x = y^2. This can simplify the integral significantly.

Related purpose Variants

Explore more purpose options

More Math Calculators

Explore the category

Calculator Search

Search and find calculators