Are you trying to find ?
1.
.
2nd method for the first one:
Hence
This method is known as logarithmic differentiation is MUCH easier to use in if you have complicated product on the right hand side.
P.S. this problem should have been posted in the Calculus section as it involves derivatives.