(x - 1)*2*sin(x)
((x - 1)*2)*sin(x)
Apply the product rule:
; to find :
The derivative of a constant times a function is the constant times the derivative of the function.
Differentiate term by term:
Apply the power rule: goes to
The derivative of the constant is zero.
The result is:
So, the result is:
; to find :
The derivative of sine is cosine:
The result is:
Now simplify:
The answer is:
2*sin(x) + 2*(x - 1)*cos(x)
2*(2*cos(x) - (-1 + x)*sin(x))