Toolvito

Processed online by Toolvito

Area Under Curve Calculator

Type a function and an interval to get the exact area between the curve and the x-axis, split where the curve crosses the axis, with a shaded graph. Areas between two curves, polar and parametric areas, Riemann sums and the area under measured data points are here too.

Choose what to do

Task
Area

y = f(x); x = f(y) for an area with respect to y; r(θ) for polar; x(t) for parametric.

Between two curves: g; polar: an inner curve r₂(θ); parametric: y(t). Leave empty otherwise.

Optional (x, y, theta or t by the kind).

Optional between curves (their meeting points are used) and for polar (0).

Optional between curves and for polar (2pi).

More options

Significant digits of decimal values, 2 to 30.

When you run a task here, Toolvito receives the information you submit for processing. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to find an area

  1. Choose Area and what kind: under one curve, between two curves, with respect to y, polar or parametric.
  2. Type the function, such as x^2 - 4, and the interval, such as 0 to 3. For two curves type both; leave the interval empty to use the points where they meet.
  3. Select Find the area. The answer gives the total area and the net (signed) integral; the steps show the crossing points and each piece.

Total area and the integral

  • The definite integral ∫f dx counts area below the x-axis as negative, so it is the net signed area. The total area counts every part as positive: the interval is split where f = 0 and the pieces are added as absolute values.
  • Between two curves the area is ∫|f − g| dx: on each piece the curve on top is named and (top − bottom) is integrated. Without an interval the region between the first and the last meeting point is used.
  • With respect to y: give x = f(y) and x = g(y) (the area of a region bounded on the left and right). Polar: A = ½∫ r(θ)² dθ, from 0 to 2π if no range is given; a second curve gives the area between them. Parametric: A = ∫ y(t)·x′(t) dt.
  • When a crossing point has no exact form it is found numerically (Brent’s method) and the area is given as a decimal.

Riemann sums and data

  • Left, right and midpoint sums, the trapezoidal rule, Simpson’s rule (n even) and upper and lower sums with n subintervals, with the table of points and the rectangles or trapezoids drawn; the exact integral and the error are shown beside them.
  • For measured data (for example concentration over time) paste x, y pairs: the trapezoidal rule works for unevenly spaced x; Simpson’s rule needs even spacing.

How the answers are checked

Every area is compared with a numerical quadrature of |f − g| split at the crossings (mpmath) and a midpoint sum with 200,000 strips, and each crossing point is put back into f − g. Polar areas are also checked with the shoelace formula on 20,000 points of the curve; Riemann sums with exact fractions and with NumPy or SciPy on the same points.

Related tools