Mister Exam

Other calculators

Derivative of y=sin^n*x*cosnx

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

The graph:

from to

Piecewise:

The solution

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

    ; to find :

    1. Let .

    2. Apply the power rule: goes to

    3. Then, apply the chain rule. Multiply by :

      1. The derivative of sine is cosine:

      The result of the chain rule is:

    ; to find :

    1. Let .

    2. The derivative of cosine is negative sine:

    3. Then, apply the chain rule. Multiply by :

      1. The derivative of a constant times a function is the constant times the derivative of the function.

        1. Apply the power rule: goes to

        So, the result is:

      The result of the chain rule is:

    The result is:

  2. Now simplify:


The answer is:

The first derivative [src]
                            n                   
       n               n*sin (x)*cos(x)*cos(n*x)
- n*sin (x)*sin(n*x) + -------------------------
                                 sin(x)         
$$- n \sin^{n}{\left(x \right)} \sin{\left(n x \right)} + \frac{n \sin^{n}{\left(x \right)} \cos{\left(x \right)} \cos{\left(n x \right)}}{\sin{\left(x \right)}}$$
The second derivative [src]
           /             /       2           2   \                               \
      n    |             |    cos (x)   n*cos (x)|            2*n*cos(x)*sin(n*x)|
-n*sin (x)*|n*cos(n*x) + |1 + ------- - ---------|*cos(n*x) + -------------------|
           |             |       2          2    |                   sin(x)      |
           \             \    sin (x)    sin (x) /                               /
$$- n \left(n \cos{\left(n x \right)} + \frac{2 n \sin{\left(n x \right)} \cos{\left(x \right)}}{\sin{\left(x \right)}} + \left(- \frac{n \cos^{2}{\left(x \right)}}{\sin^{2}{\left(x \right)}} + 1 + \frac{\cos^{2}{\left(x \right)}}{\sin^{2}{\left(x \right)}}\right) \cos{\left(n x \right)}\right) \sin^{n}{\left(x \right)}$$
The third derivative [src]
          /                                                       /               2       2    2             2   \                                       \
          |                                                       |          2*cos (x)   n *cos (x)   3*n*cos (x)|                                       |
          |                                                       |2 - 3*n + --------- + ---------- - -----------|*cos(x)*cos(n*x)                       |
          |                  /       2           2   \            |              2           2             2     |                      2                |
     n    | 2                |    cos (x)   n*cos (x)|            \           sin (x)     sin (x)       sin (x)  /                   3*n *cos(x)*cos(n*x)|
n*sin (x)*|n *sin(n*x) + 3*n*|1 + ------- - ---------|*sin(n*x) + ---------------------------------------------------------------- - --------------------|
          |                  |       2          2    |                                         sin(x)                                       sin(x)       |
          \                  \    sin (x)    sin (x) /                                                                                                   /
$$n \left(n^{2} \sin{\left(n x \right)} - \frac{3 n^{2} \cos{\left(x \right)} \cos{\left(n x \right)}}{\sin{\left(x \right)}} + 3 n \left(- \frac{n \cos^{2}{\left(x \right)}}{\sin^{2}{\left(x \right)}} + 1 + \frac{\cos^{2}{\left(x \right)}}{\sin^{2}{\left(x \right)}}\right) \sin{\left(n x \right)} + \frac{\left(\frac{n^{2} \cos^{2}{\left(x \right)}}{\sin^{2}{\left(x \right)}} - 3 n - \frac{3 n \cos^{2}{\left(x \right)}}{\sin^{2}{\left(x \right)}} + 2 + \frac{2 \cos^{2}{\left(x \right)}}{\sin^{2}{\left(x \right)}}\right) \cos{\left(x \right)} \cos{\left(n x \right)}}{\sin{\left(x \right)}}\right) \sin^{n}{\left(x \right)}$$