9: There are two problems, one at each endpoint, so you have to split the integral into two. Since you have to get rid of the absolute value, the splitting can be used to accomplish this.

Next hint
Answer