The following shows that the text’s solution for problem # 13 section 2.2 only occurs when 0 < x < 1. When x < 0 or x >1, the solution in class is obtained.
Note: this type of absolute value problem is too difficult to show up on a test.