A Lebesgue integral on a measure space (X,Σ,μ) assigns a value to a measurable function f:X→[−∞,∞] by reducing to the nonnegative case. Define the positive and negative parts
f+:=max(f,0),f−:=max(−f,0),
so that f=f+−f− and f+,f− are nonnegative measurable functions. If at least one of ∫Xf+dμ or ∫Xf−dμ is finite, define
∫Xfdμ:=∫Xf+dμ−∫Xf−dμ,
where the integrals on the right are understood via the nonnegative Lebesgue integral. If both ∫Xf+dμ and ∫Xf−dμ are +∞, the Lebesgue integral of f is left undefined.
When f is Lebesgue integrable, the integral is a finite real number. Moreover, if f and g satisfy a.e. equality, then (whenever defined) their Lebesgue integrals agree.