Mister Exam

Derivative of x^2cosx

Function f() - derivative -N order at the point
v

The graph:

from to

Piecewise:

The solution

You have entered [src]
 2       
x *cos(x)
x2cos(x)x^{2} \cos{\left(x \right)}
Detail solution
  1. Apply the product rule:

    ddxf(x)g(x)=f(x)ddxg(x)+g(x)ddxf(x)\frac{d}{d x} f{\left(x \right)} g{\left(x \right)} = f{\left(x \right)} \frac{d}{d x} g{\left(x \right)} + g{\left(x \right)} \frac{d}{d x} f{\left(x \right)}

    f(x)=x2f{\left(x \right)} = x^{2}; to find ddxf(x)\frac{d}{d x} f{\left(x \right)}:

    1. Apply the power rule: x2x^{2} goes to 2x2 x

    g(x)=cos(x)g{\left(x \right)} = \cos{\left(x \right)}; to find ddxg(x)\frac{d}{d x} g{\left(x \right)}:

    1. The derivative of cosine is negative sine:

      ddxcos(x)=sin(x)\frac{d}{d x} \cos{\left(x \right)} = - \sin{\left(x \right)}

    The result is: x2sin(x)+2xcos(x)- x^{2} \sin{\left(x \right)} + 2 x \cos{\left(x \right)}

  2. Now simplify:

    x(xsin(x)+2cos(x))x \left(- x \sin{\left(x \right)} + 2 \cos{\left(x \right)}\right)


The answer is:

x(xsin(x)+2cos(x))x \left(- x \sin{\left(x \right)} + 2 \cos{\left(x \right)}\right)

The graph
02468-8-6-4-2-1010-200200
The first derivative [src]
   2                    
- x *sin(x) + 2*x*cos(x)
x2sin(x)+2xcos(x)- x^{2} \sin{\left(x \right)} + 2 x \cos{\left(x \right)}
The second derivative [src]
            2                    
2*cos(x) - x *cos(x) - 4*x*sin(x)
x2cos(x)4xsin(x)+2cos(x)- x^{2} \cos{\left(x \right)} - 4 x \sin{\left(x \right)} + 2 \cos{\left(x \right)}
The third derivative [src]
             2                    
-6*sin(x) + x *sin(x) - 6*x*cos(x)
x2sin(x)6xcos(x)6sin(x)x^{2} \sin{\left(x \right)} - 6 x \cos{\left(x \right)} - 6 \sin{\left(x \right)}
The graph
Derivative of x^2cosx