`int_0^2 |2x - 1| dx` Evaluate the integral
We have to be careful because of the absolute value. We need to know where the function under absolute values is positive and when it is negative in the given interval. It is also a good idea to sketch the function.
Obviously, the point where the function changes sign is `x=1/2.` Therefore, we have