An example of Lebesgue integration $X = [0,1], \mathfrak{M} - \sigma$-algebra of Lebesgue measurable subsets from $X$. Prove that $f(x) = e^x\cdot \chi_{[0,1] \setminus \mathbb{Q}} + \ln{(1+\sin{x})} \cdot \chi_{[0,1] \cap \mathbb{Q}}$ is Lebesgue integrable on $X$ and calculate $\int\limits_{X}fd\mu$
Can you please criticize my solution and indicate any mistakes or inaccuracies in reasoning. 
1) The value of the Lebesgue integral does not depend on values on zero measure sets, so we can only consider the exponential part. 
2) This function is equal to $f(x) = e^x$ on $[0,1]$ almost everywhere, and the latter function is Riemann integrable so the values of the integrals coincide. 
3) So the answer is $e - 1$
Here are the questions I would like to clarify:
1) Is the solution above correct and accurate?
2) Is it correct to say that we can always ignore the sets of zero measure?
3) As far as I understand, calculating the Lebesgue integral this way is only possible when considering non-negative functions?
4) The Lebesgue integral is usually first introduced for simple functions. In this case $f(x)$ is not simple function. How do we formally show that it is Lebesgue integrable without appealing to the fact that the function is equivalent to the Riemann integrable function $e^x$ on $[0,1]$? 
Thank you in advance! 
 A: Your solution is valid, but if you are raising these questions then perhaps you have not absorbed the basic theory of the Lebesgue integral, and for this you also need to understand the concepts of Lebesgue measurability of sets and functions.
(2) That we can ignore sets of measure zero follows from a basic proposition (usually stated and proved in standard textbooks).  If $f$ is Lebesgue integrable and $f = g$ almost everywhere then $\int_X f = \int_Xg$.  This follows from basic properties of additivity and the fact that integrals over zero measure sets are zero.  If $m(E) = 0$, e.g. $E=\{x : f(x) \neq g(x)\}$ in this case, then
$$\int_Xf = \int_{X \setminus E}f + \int_Ef = \int_{X \setminus E}f =  \int_{X \setminus E}g = \int_Xg$$
(3) & (4) Non-negativity is not needed here. For bounded functions on sets of finite measure we can say the function is Lebesgue integrable if 
$$\sup_{\phi \leqslant f} \int_X \phi = \inf_{\psi \geqslant f}\int_X \psi,$$
where $\phi, \psi$ denote simple functions. In this case the Lebesgue integral of $f$ is the common value of these lower and upper Lebesgue integrals, analogous to lower and upper Darboux integrals. 
We then have the key result that a bounded function $f$  on a finite measure set $X$  is Lebesgue integrable if and only $f$ is measureable. Presumably you should know that any continuous function is Lebesgue measureable. Any Riemann integrable function is also measureable and from this we can show that the Riemann integral over a compact interval coincides with the Lebesgue integral. Either of these results allows you to conclude that $x \mapsto e^x$ is Lebesgue integrable over $X = [0,1]$.
The next step in the development of the Lebesgue integral is to consider functions that may not be bounded and sets $X$ that may not have finite measure. Here is where the integral is first defined for non-negative functions and then later extended by taking integrals of the positive and negative parts.
Now it is typical of these exercises to ask you to compute the Lebesgue integral.  This can usually be accomplished by finding a sequence $f_n$ converging pointwise to $f$ where $\int_X f_n$ is known and then appealing to the monotone or dominated convergence theorem to get
$$\int_X f = \lim_{n \to \infty} \int_X f_n$$
When $X$ is a compact interval and $f$ Riemann is integrable, then, if you are averse to simply declaring that the Lebesgue integral is the Riemann integral, you can always take step functions $f_n$ that correspond to lower Darboux sums. Also any measurable function is the limit of a sequence of simple functions (increasing if $f$ is nonnegative).
