Now, taking each term in turn:

math formula (using math formula)

math formula (using math formula)

math formula(since -x = -(x1) and so the derivative will be -(x0) = -1)

math formula (since math formula)

So

math formula