bonfire09 said:
First show that ##f_1: [2,3]\rightarrow\mathbb{R}## where f(x)=x is R. integrable. We will let ##P_n## be a regular partition of ##[2,3]##. Then we have ##P_n=\{[2,2+\frac{1}{n}], [2+\frac{1}{n},2+\frac{2}{n}],...,[2+\frac{n-1}{n},3]##. Then it follows that
##x_i-x_{i-1}=\frac{1}{n}## and ##m_i=2+\frac{i-1}{n}## and ##M_i=2+\frac{i}{n}##. Then
##U(f,P)-L(f,P)= \sum_{i=1}^{n} M_i(x_i-x_{i-1}) -\sum_{i=1}^{n} m_i(x_i-x_{i-1})
=((2+\frac{1}{n})*\frac{1}{n})+((2+\frac{2}{n})*\frac{1}{n})+...+3( \frac{1}{n}) -((2*\frac{1}{n})-...
-((2-\frac{n-1}{n})*\frac{1}{n})=\frac{1}{n}<\epsilon##.
This mostly looks ok. If you are intending for this to be a full-blown proof, you should somewhere toward the beginning (a) say something along the lines of "fix ##\epsilon>0##" and (b) state the relationship between the chosen ##n## and fixed ##\epsilon##.
Also, while your computation regarding the difference between the upper and lower sums is perfectly correct, I would encourage you consider thinking about it as $$U(f,P)-L(f,P)= \sum_{i=1}^{n} [M_i(x_i-x_{i-1}) - m_i(x_i-x_{i-1})]= \sum_{i=1}^{n} [(M_i - m_i)(x_i-x_{i-1})]$$ rather than (or in addition to) $$U(f,P)-L(f,P)= \sum_{i=1}^{n} M_i(x_i-x_{i-1}) -\sum_{i=1}^{n} m_i(x_i-x_{i-1})$$ For one thing, it'll make for a slightly easier (and more readable) write-up. And it's just a slightly different way of thinking about the difference that might prove useful in more general or more difficult situations.
Again, though, what you wrote is fine.
And for showing that ##f_2:(3,4]\rightarrow\mathbb{R}## defined by ##f(x)=2## is integrable. Consider ##P=[3+\frac{\epsilon}{20},4]##. It also follows that ##m=M=2##. Thus ##U(f_2,P)-L(f_2,P)=2(4-\frac{\epsilon}{20})-2(4-\frac{\epsilon}{20})=0<\epsilon##.
Does your text/prof/class define definite integrals over (half-)open integrals as limits of integrals over closed intervals? Why ##\frac{\epsilon}{20}## specifically?
Regardless of how an integral/partition over ##(3,4]## is defined, is there any partition here that
wouldn't work? Would choosing a partition similar to the one you chose in the first part make your job here more difficult? Would it maybe make your job later on easier?
And as for my partition do I just consider ##P=P_n\cup [3+\frac{\epsilon}{20},4]##?,
##P=P_n\cup [3+\frac{\epsilon}{20},4]## does not include our "problem interval". If we were to add that interval to this collection, it would be ##[3,3+\frac{\epsilon}{20}]##. What is the max of ##f## on that interval? The min? What is the contribution to ##U(f,P)-L(f,P)## that comes from that sub interval (where the contribution of the ##i##th sub interval in the first case above was ##(M_i−m_i)(x_i−x_{i−1})##)?