I need help with finding the derivative of z, with respect to t, in the following questions:

a) , with and

b) , with and

I believe the method for doing both questions is:

Is this correct? Because no matter how many times I try to do the above questions using that method, I get answers that don't match the ones in the text book.

My answer for a) is and my answer for b) is