although the equation above is impressive and simple. I hate to learn yet another differentiation rule. your initial approach is correct.
(3xsinx) (cosx) = [(3x sinx) (-sin x)]+ [first ' * (cosx)]
the same old (first * second ') + (first ' * second) product rule.
now take derivative of...