If you have combinations of product, chain or quotient rules, it helps to take things one step at a time.

So for the first...

Use the product rule

.

Now use the chain rule to work out these easier derivatives.

is easy, it's just .

If let so that .

.

.

So .

Therefore

.