Formulas used: cosA+cosB=2cos2A+Bcos2A−B and sinA+sinB=2sin2A+Bcos2A−B.
Group the 4x and 2x terms in both the numerator and the denominator.
LHS=(sin4x+sin2x)+sin3x(cos4x+cos2x)+cos3x
=2sin24x+2xcos24x−2x+sin3x2cos24x+2xcos24x−2x+cos3x
=2sin3xcosx+sin3x2cos3xcosx+cos3x
=sin3x(2cosx+1)cos3x(2cosx+1)
=sin3xcos3x
=cot3x=RHS
∴ LHS = RHS. Hence proved.