(a)
\The function is
.
Apply derivative on each side with respect to
.

The Product rule of the derivative: 

\

\

\

\

The derivative of the function with respect to
is
.
(b)
\The function is 
Apply derivative on each side with respect to
.

The Product rule of the derivative: 

\

\

\
(a)
.
(b)
.