Differentiate the following functions with respect to x :
x5−cos xsin x
y = x5−cos xsin x
dydx=sin xddx(x5−cos x)−(x5−cos x)ddxsin x(sin x)2 [by quotient rule]
=sin x(5x4+sin x)−(x5−cos x)sin2x=5x4sin x+sin2x−x5cos x+cos2xsin2x
=5x4sin x−x5cos x+sin2x+cos2xsin2x=5x4sin x−x5cos x+1sin2x