Now DifferentiationProblem generates more complicated nested
functions(those that can be derivated using the chain rule)
using abs, sqrt and exponentiation.