
Luke J. answered 02/05/22
Experienced High School through College STEM Tutor
I presume your results are something in line with:
ƒ'(x) = x cos( x ) + sin( x )
ƒ'(x) = x2 cos( x ) + 2x sin( x )
ƒ'(x) = x3 cos( x ) + 3x2 sin( x )
If so, then this is what you can do
You notice that due to the Product Rule of derivatives, xn seems to "survive" the differentiation and stick around on the first term, namely being cos( x ), the derivative of sin( x ).
Also, consequently from the Product Rule of derivatives, sin( x ) "survives" the differentiation and sticks to the secondary term. Following how Product Rule works,
( u(x) * v(x) )' = u(x) * v'(x) + u'(x) * v(x)
This means you will ALWAYS get the Power Rule derivative for the xn function for any value of n.
Being namely:
( xn )' = n xn-1
Thus, in general for any value of n:
ƒ'(x) = [ xn sin( x ) ]' = xn cos( x ) + n xn-1 sin( x )
I hope this helps! Message me in the comments with any questions, comments, or concerns about how I went about this problem!