Suppose $f$ is a real function on $(0, 1]$ and $f \in \mathscr{R}$ on $[c,1]$ for every $c>0$. Define $\int_0^1 f(x)dx=\lim_{c\to 0} \int_c^1 f(x)dx$ if this limit exists (and is finite).
(a) If $f \in \mathscr{R}$ on $[0,1]$, show that this definition of the integral agrees with the old one.
(b) Construct a function $f$ such that the above limit exists, although it fails to exist with $|f|$ in place of $f$.
This is Problem 7 of Chapter 6 in Principles of Mathematical Analysis by Rudin. For (a), I can prove the equation is correct but I am not sure what does 'definition agrees' mean? For (b), I have no idea.
Thank you in advance.