DGS Studio

Interactive Calculus

Area Between Curves

Shade the region between two curves and mark where they meet.

area_between(x,x^2,x,0,1) draws y = x and y = x^2, shades the region between them, and marks the intersections at x = 0 and x = 1. The enclosed area is integrate(abs(x-x^2),x,0,1), which equals 1/6.

area_between(x,x^3,x,-1,1) meets at x = -1, x = 0, and x = 1, so the picture has two bounded regions. The curves trade places at x = 0 and the total area is 1/2. area_between(2*x,x^2,x,0,2) stays one region with area 4/3. Zoom, pan, and export stay on the calculus board.

Equation

area_between(x,x^2,x,0,1)

What the calculus picture shows

Calculus examples in the graph workflow draw a process, not only a final number. A derivative can appear as a tangent, a secant sliding toward that tangent, or a transformed parent function. A Riemann sum draws rectangles whose areas approach a definite integral.

The exact symbolic result and the picture answer different questions. The picture shows how the approximation moves. The value, when the integral exists, is the limit of those approximations. Generate Graph keeps the original sentence in the input so you can edit the function or the bounds.

Reading the input

Other versions of this example

These stay on this page so each version keeps the same explanation. Choose Try example to run a version in its Studio workflow, or copy it into the editable field below.

Line and parabola

The enclosed area is 1/6.

area_between(x,x^2,x,0,1)

Two regions

The curves cross at 0. The total area is 1/2.

area_between(x,x^3,x,-1,1)

Line above a parabola

The enclosed area is 4/3.

area_between(2*x,x^2,x,0,2)

Try a change

Generate Graph posts the expression to the studio graph engine and draws the result on the homepage. The editable field is the entire input, including every line.

Edit and generate

Generate Graph opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples