There are 2 questions involving derivatives that I have trouble getting to the answer for. The first one is

and the 2nd one is

The answers respectively are;

&

It would be very much appreciated if anyone could provide step-by-step solutions to both problems.