Skip to content
LoveToCalc

Theorem — what does that mean?

Integral of a difference

A definite integral of a difference is the difference of the integrals.

In Swedish: Integral av en differens

∫ab(f(x)−g(x))dx=∫abf(x)dx−∫abg(x)dx

x
The variable
a
The lower limit
b
The upper limit

The rule

∫ₐᵇ (f(x) − g(x)) dx = ∫ₐᵇ f(x) dx − ∫ₐᵇ g(x) dx

Holds when f and g are integrable on [a, b] and all three integrals have the same limits. It follows from the sum rule and the constant factor rule with the factor −1.

Worked examples

∫₁³ (x² − x) dx = 26/3 − 4 = 14/3 ≈ 4.667.

The area between two curves. The line y = x + 2 lies above the parabola y = x² from x = −1 to x = 2. The area between them is

∫₋₁² ((x + 2) − x²) dx = [x²/2 + 2x − x³/3]₋₁² = 10/3 − (−7/6) = 9/2

The upper curve comes first. Compare the area under a curve.

Common mistakes

Common questions

Can the answer be negative? Yes, if g lies above f on most of the interval. The integral counts that as negative, which is why area problems fix the order of the curves first.

Last reviewed October 13, 2026 ·How pages are reviewed

Calculate it in practice

CalculusAll formulas