Area Between Curves Calculator
Test cases replayed : 4 of 4 match · Methodology · No outside source listed
Enter f(x) = a₁x² + b₁x + c₁ and g(x) = a₂x² + b₂x + c₂ (use a = 0 for a line) and the interval from a to b. The calculator integrates |f(x) − g(x)| exactly, splitting the interval where the curves cross.
Result
Area between the curves (square units)
Signed integral of f(x) − g(x) from a to b
- Curves cross inside the interval at x =
- Second crossing at x =
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- f(x): a₁, coefficient of x²: enter a number.
- f(x): b₁, coefficient of x: enter a number.
- f(x): c₁, constant: enter a number.
- g(x): a₂, coefficient of x²: enter a number.
- g(x): b₂, coefficient of x: enter a number.
- g(x): c₂, constant: enter a number.
- Interval start a: enter a number.
- Interval end b: enter a number.
- Read the result: Area between the curves (square units); the panel also shows Signed integral of f(x) − g(x) from a to b, Curves cross inside the interval at x = and Second crossing at x =.
How this calculator works
Area = ∫ from a to b of |f(x) − g(x)| dx. With d(x) = f(x) − g(x) = Ax² + Bx + C, an antiderivative is D(x) = Ax³/3 + Bx²/2 + Cx (fundamental theorem of calculus).
Where the curves cross inside the interval, d(x) = 0 (quadratic formula: x = (−B ± √(B² − 4AC)) ÷ 2A, or x = −C ÷ B when A = 0). The interval is cut at those points and the absolute values of D(right end) − D(left end) are added, so area below and above never cancel.
The signed integral lets parts where g is above f count as negative, and it changes sign when a is greater than b; it equals the area only when f ≥ g on the whole interval and a < b.
Worked example
| f(x): a₁, coefficient of x² | 0 |
|---|---|
| f(x): b₁, coefficient of x | 1 |
| f(x): c₁, constant | 0 |
| g(x): a₂, coefficient of x² | 1 |
| g(x): b₂, coefficient of x | 0 |
| g(x): c₂, constant | 0 |
| Interval start a | 0 |
| Interval end b | 1 |
| Area between the curves (square units) | 0.1667 |
|---|---|
| Signed integral of f(x) − g(x) from a to b | 0.1667 |
Frequently asked questions
What is the area between y = x and y = x² from 0 to 1?
∫₀¹ (x − x²) dx = 1/2 − 1/3 = 1/6 ≈ 0.1667. These are the default values.
Do I need to know which curve is on top?
No. The calculator integrates the absolute difference piece by piece, so the order of f and g does not change the area.
How do I find the area enclosed by two curves?
Set a and b to the x-values where the curves meet (solve f(x) = g(x)); between those points one curve stays above the other.