What is the derivative of this function:

This is the shot I took:

and

so and would be the derivative of those functions respectively

But I really don't understand the fundamentals of this problem - the absolute value is really throwing me and I don't know how to properly deal with it. Thanks so much if you can help!