Area Between Two Curves Calculator
Enter two quadratic, linear or constant functions and a shared x interval. Resolve exact intersections including radical values, integrate the difference over each region, and compare the geometric total with the signed integral.
Find the area between two curves
See where a quadratic or line sits above the other, then add the exact bounded regions.
3 regions between the curves.
Geometric area
−8/3 + (16/3)√2
Approximately 4.8758057
Signed integral f − g
−8/3
Approximately -2.6666667
Edit the two curves and bounds
Use decimals or fractions such as −3/4. Set the x² coefficient to zero for a line.
Curves and shaded regions
- Curve f(x)
- Curve g(x)
Check exact intersections and region areas
Intersections
Exact interval −2 to 2.
- x = −√2 (≈ -1.4142136)Crossing · Inside the interval
- x = √2 (≈ 1.4142136)Crossing · Inside the interval
Antiderivative of f − g
Evaluate H(x) = (A/3)x³ + (B/2)x² + Cx with the exact difference coefficients.
- A =
- 1
- B =
- 0
- C =
- −2
Region 1 · f(x) above
−2 to −√2
- Signed f − g
- −4/3 + (4/3)√2
- Geometric area
- −4/3 + (4/3)√2
Region 2 · g(x) above
−√2 to √2
- Signed f − g
- −(8/3)√2
- Geometric area
- (8/3)√2
Region 3 · f(x) above
√2 to 2
- Signed f − g
- −4/3 + (4/3)√2
- Geometric area
- −4/3 + (4/3)√2
Show curve-area CSV text
How to use this calculator
- Enter the x², x and constant coefficients for f and g. Enter zero for any unused term.
- Enter the left and right x bounds. Include negative bounds when the region extends left of the origin.
- Check crossings and tangencies. Use the shaded graph and exact ledger to see which function is on top in each region.
- Compare geometric area with the signed f − g integral. Download both totals and the regions as a CSV.
The Formula
The mathematical logic powering this calculation is:
Write f(x) and g(x) as ax² + bx + c. Subtract coefficients to obtain the difference A x² + B x + C. A linear difference has one crossing when its slope is nonzero. An identically zero difference means the curves coincide.
For a nonzero A, complete the square or solve A x² + B x + C = 0. The center is h = −B/(2A) and the squared radius is h² − C/A. A negative squared radius means no real intersections. Zero gives a tangent. A positive value gives h ± its square root. Compare each exact result with the entered bounds and split the interval at distinct interior intersections. A crossing at the boundary does not create a zero-width region.
On each resulting interval f−g has a constant sign. Evaluate H(x) = A x³/3 + B x²/2 + C x at its right and left endpoints. A positive difference gives f as the upper function. A negative difference gives g as the upper function. The signed integral sums those differences. The geometric area sums their magnitudes. A tangent can divide the ledger without changing the upper curve. Equal bounds give zero area.
Rational inputs, comparisons and integrals remain exact. Irrational roots and totals are represented by a rational term and a rational multiple of one exact square root. A radical may retain the original rational radicand. Decimal values and the chart are approximations. Enter coefficients and bounds from −1,000 to 1,000, with up to six decimal places or as p/q with a positive denominator at most 1,000,000. Set a coefficient to 0 to use a line or constant. Keep the left bound at or before the right bound.Worked Example
If you input:
- f(x): x²
- g(x): 2
- Bounds: −2 to 2
Result:
The roots are −√2 and √2. The two outer regions have f above g and the middle has g above f. The signed integral is −8/3, while the geometric area is −8/3 + (16/3)√2, approximately 4.8758057.
Frequently Asked Questions
When will the signed integral be negative?
It can be negative when g is above f over enough of the interval. Geometric area counts each region as positive.
What is the difference between a crossing and a tangent?
At a crossing the upper curve changes. At a tangent the curves meet without changing their order on either side.
How do I enter a line or horizontal curve?
Set the x² coefficient to zero for a line. Set the x coefficient to zero as well for a horizontal constant.
Does a boundary intersection add another region?
Only a distinct interior intersection adds a partition. A root exactly at the left or right bound remains listed for reference.
Why does the graph show no fill if the curves coincide?
Their vertical difference is zero at every x, so there is no positive area between them.
Can I enter cubic or trigonometric functions?
This calculator accepts quadratics, lines and constants to keep the intersections and areas exact within its supported model.
Similar Calculators
Riemann Sum & Integral Approximation Calculator
Compare left, right, midpoint and trapezoid estimates for a cubic or lower-degree polynomial. See the signed rectangles and how the error converges.
Quadratic Formula Calculator
Solve any quadratic equation ax² + bx + c = 0 and find its real or complex roots instantly.
Inverse Function Calculator & Branch Graph
Find inverse rules and exact preimages for quadratic branches and shifted reciprocal functions. See the graphs reflected across y = x.
Simplest Radical Form & Surd Arithmetic Calculator
Simplify square roots and perform exact surd arithmetic. See square-factor extraction, combine matching radicals, and rationalize a two-term denominator with its conjugate.
