Initial example of a differentiable cost function for a typical inverse problem.