Type the interval in From a and To b. To find the area enclosed by the two curves, use the points where they meet as a and b; the calculator lists those points.
Type two functions and an interval. The calculator shades the region between the two curves from x=a to x=b, gives its area, and lists every point between a and b where the curves meet.
For the area enclosed by two curves, the interval runs from one meeting point to the next: for x+2 and x2 they meet at x=−1 and x=2, and the enclosed area is 4.5.
Reading the answer
DemoWhen the curves cross
Step 0 of 4
The Area box gives
∫ab∣f(x)−g(x)∣dx,
the size of the shaded region, always positive. Under it, The curves meet at lists the meeting points inside the interval, and How it was found explains the steps.
When the curves cross inside the interval, the upper curve changes. The calculator takes care of that: every piece of the region counts as positive area, whichever curve is on top.
The area between two curves
Where f lies above g, the vertical distance between them at x is f(x)−g(x). Adding up thin strips of that height across the interval gives the area between the curves:
A=∫ab(f(x)−g(x))dxwhen f(x)≥g(x) on [a,b].
For f(x)=x+2 and g(x)=x2 between their meeting points −1 and 2:
The region enclosed by y=x+2 and y=x2 has area 4.5.
Finding where the curves meet
The meeting points are the solutions of f(x)=g(x), or equally the roots of f(x)−g(x). For x+2=x2: x2−x−2=0, so (x−2)(x+1)=0 and x=−1 or x=2.
These points matter twice: they are the limits of the enclosed region, and they are where the upper curve can change. The calculator finds them numerically and lists those between a and b.
When the curves cross inside the interval
If the curves cross between a and b, the plain integral ∫ab(f−g)dx adds the piece where f is on top and subtracts the piece where g is on top. To get the true area, split the interval at each crossing and take each piece as positive — or integrate ∣f−g∣, which does the same in one step.
For x3 and x on [−1,1]: ∫−11(x3−x)dx=0, but the area is ∫−10(x3−x)dx+∫01(x−x3)dx=41+41=21.
x3 and x swap places at 0; both pieces count, total 21.
Curves that are easier sideways
Some regions are simpler to cut into horizontal strips. The region between x=y2 and the line y=x−2 has a different top curve on different stretches when sliced vertically, but sliced horizontally it is one piece: the line is always on the right. With x in terms of y,
A=∫−12((y+2)−y2)dy=4.5.
The calculator works with functions of x; for sideways regions, set up the integral in y by hand, or draw both curves in the Graphing Calculator to see the region.
The region between x=y2 and y=x−2, meeting at (1,−1) and (4,2).
Common mistakes
Subtracting in the wrong order.∫(g−f) where g is below gives a negative number; area is never negative.
Ignoring a crossing. If the curves cross inside [a,b], one integral of f−g lets the pieces cancel.
Using the wrong limits. For the enclosed area, the limits are the meeting points, not the edges of the picture.
Integrating each curve separately and adding. The area between is the difference of the two, not their sum.
Related tools
For the signed area between one curve and the x-axis, use the Definite Integral Calculator. To compare two functions in depth — where they meet and which is higher — use Compare in the Function Explorer.