TITLE: Lebesgue Integral of Non-Measurable Function
QUESTION [23 upvotes]: In what follows I'm only considering positive real valued functions.
Everywhere I look about the definition of the Lebesgue integral it is required to consider a measurable function. Why do we not define the integral for non-measurable functions? From what I see we require measurablility of the simple functions that approximate f, not f itself. The definition I'm considering is given a measure space $X$ with measure $\mu$ and a measurable function $f$ we define
$$
\int_E f \, \mathrm{d}\mu = \sup_{s \in S} \int_X s \,\mathrm{d}\mu
$$
where $S = \{ s : X \to [0, \infty) \mid 0 \le s \le f, s \text{ is simple, measurable} \}$.
For example consider $\mathbb{R}$ with the sigma algebra $\varnothing, \mathbb{R}$ with measure $\mu$ given by $\mu(\varnothing) = 0, \mu(\mathbb{R}) = 1$ and consider $f = \chi_{[0,1]}$ then why can't we say that
$$
\int_{\mathbb{R}} f \,\mathrm{d} \mu = 0
$$
(since the only measurable simple function such that $0\le s \le f$ is $s = 0$) which would follow the definition above? Is this not well defined? In general I'm struggling to see why measurable functions (other than measurable simple functions) are used.

REPLY [20 votes]: In addition to the previous advice, note that the function you gave does not "approximate" $f$. An approximating sequence $\{s_n\}$ for $f$ (which $f$ would have iff $f$ were measurable provided the measure space for the domain of $f$ is complete) would need to be within a distance of $\epsilon$ from $f$ for any given $\epsilon >0$. However, the function $s$ you gave as an "approximation" cannot approximate $f$, in the sense that the sequence $\{s_n\}$ with $s_n=s$ $ \forall n \in \mathbb{N}$ gets no closer than $1$ from $\chi_{[0,1]}$. 
Again, it is important to note that a function $f$ on a complete measure space $X$ is measurable if and only if $f$ is the pointwise limit of some sequence of simple functions -or, trivially, is a simple function itself. Consequently, any sequence of "simple" functions approximating a nonmeasurable function must contain a "simple" function with the characteristic function of a nonmeasurable set as part of its construction. In a sense, this is why you must include the assumption that $f$ is measurable in your definition for the Lebesgue integral. 
To wit, recall that the integral of a characteristic function is the measure of the pullback set in your domain; in the case of your $f$, since $f$ is characteristic, the integral, were it to be defined, is the measure of the pullback, $$\int f d\mu = \mu\{f^{-1}\{1\}\}=\mu\{[0,1]\},$$ 
but you have not defined the measure for $[0,1]$, which is not even in your $\sigma$-algebra; nor can we infer the measure of $[0,1]$ from the definition you gave for your measure space, as your collection of measurable subsets is already a closed $\sigma$-algebra that is $\sigma$-finite under $\mu$ (hence, your measure space cannot even be extended, in the usual Caratheodory way, to include $[0,1]$ with an accompanying well-defined measurement). 
As a curiosity tangential to your question, it is possible for nonmeasurable functions to arise from limits of simple functions in a complete measure space, but such a collection of simple functions must be uncountable. For instance, with Lebesgue measure on $\mathbb{R}$, take $f=\chi_V$ to be the characteristic function of the (uncountable and nonmeasurable) Vitali set $V$ on $[0,1]$, and consider the (uncountable) collection of measurable functions $\{\chi_v\}, v\in V$. Then $\chi_V=\sup \{\chi_v\}_{v\in V}$. Were we to define an integral as you wish, then in this case, you may want to say that the integral $\int \chi_V = \sup \{ \int \chi_v \} = 0$. But, again, since $\chi_V$ is itself characteristic, we should then have $\mu(V)=0$, but $\mu(V)$ is not defined for $V$ under the Lebesgue measure. 
To address your request for a resource, see Royden's Real Analysis, 4th ed., chapters 17 and 18 (particularly pp. 362-363 were helpful as a reference to me for this post).