This question was asked in Misc 15
Differentiate sin^2x with respect to e^cos x

Noel Dennis's image