Neat and yeah Neapolitan, I think I'd be able to do it if it came up in a question by considering both sides, but its just something that I hadn't come across though that probably has more to do with missing all the maths lectures this term .
Write it as |x| ≡ √(x²) and use the chain rule.
You can use this to get the second derivative too
I'll try it that way too , actually if the working isn't too convoluted (which from first impressions it doesn't look like it will be) then I'd probably prefer that method as it doesn't involve having to remember to use a substitution.