Detail solution
-
Apply the product rule:
; to find :
-
Differentiate term by term:
-
Apply the power rule: goes to
-
The derivative of the constant is zero.
The result is:
; to find :
-
The derivative of cosine is negative sine:
The result is:
-
Now simplify:
The answer is:
The first derivative
[src]
$$- \left(x - 3\right) \sin{\left(x \right)} + \cos{\left(x \right)}$$
The second derivative
[src]
-(2*sin(x) + (-3 + x)*cos(x))
$$- (\left(x - 3\right) \cos{\left(x \right)} + 2 \sin{\left(x \right)})$$
-3*cos(x) + (-3 + x)*sin(x)
$$\left(x - 3\right) \sin{\left(x \right)} - 3 \cos{\left(x \right)}$$
The third derivative
[src]
-3*cos(x) + (-3 + x)*sin(x)
$$\left(x - 3\right) \sin{\left(x \right)} - 3 \cos{\left(x \right)}$$