How do you differentiate g(x) = x^2-xsin3x ?
1 Answer
Explanation:
You must use three rules for differentiation:
-
The derivative of sum (or difference) of two or more functions is the sum (or difference) of each single derivative. So, in this case, we have
d/dx (x^2-xsin(3x)) = d/dx x^2 - d/dx xsin(3x)
At this point, we can easily derive the first term, since the derivative ofx^2 is2x . Now let's work on the rest: -
The derivative of a product
f*g follows this rule:
d/dx(f(x) * g(x)) = (d/dx f(x)) * g(x) + f(x) * (d/dx g(x))
In your case, we have
(d/dx x) * sin(3x) + x * (d/dx sin(3x))
Again, the derivative ofx is1 , so the first term is simplysin(3x) for the second term, we need the last rule: -
The derivative of a composite function
f(g(x)) follows this rule:
d/dx f(g(x)) = (d/dx f)(g(x)) * d/dx g(x)
In your case, we have that
d/dx f = d/dx sin = cos , and so(d/dx f)(g(x)) = cos(3x)
whiled/dx g(x)=3
Put everything back together, and the result is