We can differentiate the two terms separately, since we have
![[f(x)+g(x)]' = f'(x)+g'(x)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/1dvssohx0yasj254lpvg8xuuh036tz38lt.png)
The first term comes in the form
, where
and

So, we have
![[k\cdot f(x)]' = kf'(x)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/xk3ehfyh5yk23x04pvzsx880skqxybi1ud.png)
The derivative of sine is cosine, so we have
![[3\sin(x)]' = 3\cos(x)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/4tc0bppzmhmtb6z8z8syheqd8a4oorgcax.png)
And the first term is done. For the second term, we have to use the power rule
![[f^n(x)]' = nf^(n-1)(x)\cdot f'(x)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/rl5wewstcsgx519a6ozmha951yenw0npng.png)
Since the derivative of cosine is negative sine, we have
![[4\cos^3(x)]'= 4\cdot 3\cos^2(x)(-\sin(x)) = -12\cos^2(x)\sin(x)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/gtt771xfgkm98tpckduk4vydv6lok82bcy.png)
So, the whole derivative is the sum of the derivatives of the two terms, and we have
![[3\sin(x) + 4\cos^3(x)]'=3\cos(x)-12\cos^2(x)\sin(x)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/ecmkk8hgcelkbdyremohm5t4aojhzztlf7.png)