DGS Studio

Calculus

Area Between Curves

Integrate the absolute difference of two curves.

area_between(x,x^2,x,0,1) equals integrate(abs(x-x^2),x,0,1). On [0, 1] the line is above the parabola except at the endpoints, and the exact area is 1/6.

area_between(2*x,x^2,x,0,2) equals 4/3. The curves meet at x = 0 and x = 2, and 2*x stays above x^2 between them. area_between(x,x^3,x,-1,1) equals 1/2 because the curves cross at x = 0 and the two regions are added.

Equation

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

How the calculus steps are organized

Calculus in the equation workflow returns the symbolic result and the steps. A derivative applies the relevant rule. An integral looks for an antiderivative, and a definite integral evaluates it on the bounds. A limit simplifies before it substitutes the point when substitution would divide by zero.

Multivariable operations stay symbolic and, when the expression has two variables, DGS can also show the surface. A partial derivative treats the other variables as constants. A tangent plane uses both partials at the chosen point. The page states the command that produces each of those results.

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

Expected value 1/6.

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

Line above a parabola

Expected value 4/3.

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

Odd crossing

Expected value 1/2.

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

Try a change

Solve Equation opens the original input in the equation workspace and displays its symbolic results, conditions, and solution steps.

Edit and generate

Solve Equation 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