I was wondering if it were possible to use the chain rule in the first step to differentiate the f.f.g function:
$$f(x) = (1 + \sin x)^{\cot x}$$
I know the obvious first step is to use the power rule but out of curiosity, could the chain rule be applied in the first step?
$\ln{f(x)}=cot(x)\ln(1+sin\,x)$ $$\frac{f'(x)}{f(x)}=-(1+cot^2x)\ln(1+sin\,x)+\frac{cos\,x}{1+sin\,x}cot\,x$$ then $$f'(x)=\left[-(1+cot^2x)\ln(1+sin\,x)+\frac{cos\,x}{1+sin\,x}cot\,x\right](1+sin\,x)^{cot\,x}$$