I am trying to calculate the derivative of a rather complex function for my homework. I think I have found the solution, it just seems too bulky for my taste. See the bottom for specific questions I have regarding my solution.
$ f(x)=\frac{\overbrace{\sin x}^\text{u(x)}\cdot \overbrace{e^x+x^3}^\text{v(x)}}{\underbrace{x^3+2x+2}_\text{w(x)}} $
$ u'(x)=\cos x $, $ v'(x)=e^x+3x^2 $, $ w'(x)=3x^2+4x $
$ \begin{align*} u'v'(x)&=(\sin x\cdot e^x+3x^2)+(\cos x\cdot x^3)\\ &= e^x\cdot\sin x+3x\cdot\sin x+x^3\cdot\cos x \end{align*} $
$ \begin{align*} f'(x)&= \frac{u'v'(x)\cdot w(x)-w'(x)\cdot uv(x)}{w(x)^2}\\ &= \frac{(e^x\cdot\sin x+3x\cdot\sin x+x^3\cdot\cos x)\cdot (x^3+2x^2+2)-(3x^2+4x)(\sin x\cdot e^x+x^3)}{(x^3+2x^2+2)^2} \end{align*} $
The obvious question: Is this derivative correct?
Especially:
Is it really possible to calculate the derivative by splitting the function into part-functions and calculating them together following the differentiation rules, the way I did it?
Is it possible to reduce the summands by applying some rule I am not aware of? E.g. reducing $(e^x\cdot\sin x+3x\cdot\sin x+x^3\cdot\cos x)$ to something with just one $\sin$ or something?