Compute the derivative of the function
First, we simplify the expression for ,
Now, we take the derivative. (Of course, you could take the derivative directly from the given form of , I just find this form somewhat easier, but it was not so obvious we could simplify this way.)