A Lebesgue integral on a (X,Σ,μ)(X,\Sigma,\mu) assigns a value to a f:X→[−∞,∞]f:X\to[-\infty,\infty] by reducing to the nonnegative case. Define the positive and negative parts

f+:=max⁡(f,0),f−:=max⁡(−f,0),f^+ := \max(f,0), \qquad f^- := \max(-f,0),

so that f=f+−f−f=f^+-f^- and f+,f−f^+,f^- are nonnegative measurable functions. If at least one of ∫Xf+ dμ\int_X f^+\,d\mu or ∫Xf− dμ\int_X f^-\,d\mu is finite, define

∫Xf dμ:=∫Xf+ dμ−∫Xf− dμ,\int_X f\,d\mu := \int_X f^+\,d\mu - \int_X f^-\,d\mu,

where the integrals on the right are understood via . If both ∫Xf+ dμ\int_X f^+\,d\mu and ∫Xf− dμ\int_X f^-\,d\mu are +∞+\infty, the Lebesgue integral of ff is left undefined.

When ff is , the integral is a finite real number. Moreover, if ff and gg satisfy , then (whenever defined) their Lebesgue integrals agree.

Examples
  • On R\mathbb R with , the function f(x)=xf(x)=x for x∈[−1,1]x\in[-1,1] and f(x)=0f(x)=0 otherwise satisfies ∫Rf dx=0\int_{\mathbb R} f\,dx=0.
  • If EE is a with μ(E)<∞\mu(E)<\infty and c∈Rc\in\mathbb R, then ∫Xc 1E dμ=c μ(E)\int_X c\,\mathbf{1}_E\,d\mu=c\,\mu(E).