Mister Exam

Derivative of (-2)sin2x+5ctg6x

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

The graph:

from to

Piecewise:

The solution

You have entered [src]
-2*sin(2*x) + 5*cot(6*x)
2sin(2x)+5cot(6x)- 2 \sin{\left(2 x \right)} + 5 \cot{\left(6 x \right)}
-2*sin(2*x) + 5*cot(6*x)
Detail solution
  1. Differentiate 2sin(2x)+5cot(6x)- 2 \sin{\left(2 x \right)} + 5 \cot{\left(6 x \right)} term by term:

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

      1. Let u=2xu = 2 x.

      2. The derivative of sine is cosine:

        ddusin(u)=cos(u)\frac{d}{d u} \sin{\left(u \right)} = \cos{\left(u \right)}

      3. Then, apply the chain rule. Multiply by ddx2x\frac{d}{d x} 2 x:

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

          1. Apply the power rule: xx goes to 11

          So, the result is: 22

        The result of the chain rule is:

        2cos(2x)2 \cos{\left(2 x \right)}

      So, the result is: 4cos(2x)- 4 \cos{\left(2 x \right)}

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

      1. There are multiple ways to do this derivative.

        Method #1

        1. Rewrite the function to be differentiated:

          cot(6x)=1tan(6x)\cot{\left(6 x \right)} = \frac{1}{\tan{\left(6 x \right)}}

        2. Let u=tan(6x)u = \tan{\left(6 x \right)}.

        3. Apply the power rule: 1u\frac{1}{u} goes to 1u2- \frac{1}{u^{2}}

        4. Then, apply the chain rule. Multiply by ddxtan(6x)\frac{d}{d x} \tan{\left(6 x \right)}:

          1. Rewrite the function to be differentiated:

            tan(6x)=sin(6x)cos(6x)\tan{\left(6 x \right)} = \frac{\sin{\left(6 x \right)}}{\cos{\left(6 x \right)}}

          2. Apply the quotient rule, which is:

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

            f(x)=sin(6x)f{\left(x \right)} = \sin{\left(6 x \right)} and g(x)=cos(6x)g{\left(x \right)} = \cos{\left(6 x \right)}.

            To find ddxf(x)\frac{d}{d x} f{\left(x \right)}:

            1. Let u=6xu = 6 x.

            2. The derivative of sine is cosine:

              ddusin(u)=cos(u)\frac{d}{d u} \sin{\left(u \right)} = \cos{\left(u \right)}

            3. Then, apply the chain rule. Multiply by ddx6x\frac{d}{d x} 6 x:

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

                1. Apply the power rule: xx goes to 11

                So, the result is: 66

              The result of the chain rule is:

              6cos(6x)6 \cos{\left(6 x \right)}

            To find ddxg(x)\frac{d}{d x} g{\left(x \right)}:

            1. Let u=6xu = 6 x.

            2. The derivative of cosine is negative sine:

              dducos(u)=sin(u)\frac{d}{d u} \cos{\left(u \right)} = - \sin{\left(u \right)}

            3. Then, apply the chain rule. Multiply by ddx6x\frac{d}{d x} 6 x:

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

                1. Apply the power rule: xx goes to 11

                So, the result is: 66

              The result of the chain rule is:

              6sin(6x)- 6 \sin{\left(6 x \right)}

            Now plug in to the quotient rule:

            6sin2(6x)+6cos2(6x)cos2(6x)\frac{6 \sin^{2}{\left(6 x \right)} + 6 \cos^{2}{\left(6 x \right)}}{\cos^{2}{\left(6 x \right)}}

          The result of the chain rule is:

          6sin2(6x)+6cos2(6x)cos2(6x)tan2(6x)- \frac{6 \sin^{2}{\left(6 x \right)} + 6 \cos^{2}{\left(6 x \right)}}{\cos^{2}{\left(6 x \right)} \tan^{2}{\left(6 x \right)}}

        Method #2

        1. Rewrite the function to be differentiated:

          cot(6x)=cos(6x)sin(6x)\cot{\left(6 x \right)} = \frac{\cos{\left(6 x \right)}}{\sin{\left(6 x \right)}}

        2. Apply the quotient rule, which is:

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

          f(x)=cos(6x)f{\left(x \right)} = \cos{\left(6 x \right)} and g(x)=sin(6x)g{\left(x \right)} = \sin{\left(6 x \right)}.

          To find ddxf(x)\frac{d}{d x} f{\left(x \right)}:

          1. Let u=6xu = 6 x.

          2. The derivative of cosine is negative sine:

            dducos(u)=sin(u)\frac{d}{d u} \cos{\left(u \right)} = - \sin{\left(u \right)}

          3. Then, apply the chain rule. Multiply by ddx6x\frac{d}{d x} 6 x:

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

              1. Apply the power rule: xx goes to 11

              So, the result is: 66

            The result of the chain rule is:

            6sin(6x)- 6 \sin{\left(6 x \right)}

          To find ddxg(x)\frac{d}{d x} g{\left(x \right)}:

          1. Let u=6xu = 6 x.

          2. The derivative of sine is cosine:

            ddusin(u)=cos(u)\frac{d}{d u} \sin{\left(u \right)} = \cos{\left(u \right)}

          3. Then, apply the chain rule. Multiply by ddx6x\frac{d}{d x} 6 x:

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

              1. Apply the power rule: xx goes to 11

              So, the result is: 66

            The result of the chain rule is:

            6cos(6x)6 \cos{\left(6 x \right)}

          Now plug in to the quotient rule:

          6sin2(6x)6cos2(6x)sin2(6x)\frac{- 6 \sin^{2}{\left(6 x \right)} - 6 \cos^{2}{\left(6 x \right)}}{\sin^{2}{\left(6 x \right)}}

      So, the result is: 5(6sin2(6x)+6cos2(6x))cos2(6x)tan2(6x)- \frac{5 \left(6 \sin^{2}{\left(6 x \right)} + 6 \cos^{2}{\left(6 x \right)}\right)}{\cos^{2}{\left(6 x \right)} \tan^{2}{\left(6 x \right)}}

    The result is: 5(6sin2(6x)+6cos2(6x))cos2(6x)tan2(6x)4cos(2x)- \frac{5 \left(6 \sin^{2}{\left(6 x \right)} + 6 \cos^{2}{\left(6 x \right)}\right)}{\cos^{2}{\left(6 x \right)} \tan^{2}{\left(6 x \right)}} - 4 \cos{\left(2 x \right)}

  2. Now simplify:

    2(cos(12x)1)cos(2x)+30sin2(6x)+30cos2(6x)cos2(6x)tan2(6x)- \frac{- 2 \left(\cos{\left(12 x \right)} - 1\right) \cos{\left(2 x \right)} + 30 \sin^{2}{\left(6 x \right)} + 30 \cos^{2}{\left(6 x \right)}}{\cos^{2}{\left(6 x \right)} \tan^{2}{\left(6 x \right)}}


The answer is:

2(cos(12x)1)cos(2x)+30sin2(6x)+30cos2(6x)cos2(6x)tan2(6x)- \frac{- 2 \left(\cos{\left(12 x \right)} - 1\right) \cos{\left(2 x \right)} + 30 \sin^{2}{\left(6 x \right)} + 30 \cos^{2}{\left(6 x \right)}}{\cos^{2}{\left(6 x \right)} \tan^{2}{\left(6 x \right)}}

The graph
02468-8-6-4-2-1010-250000250000
The first derivative [src]
            2                  
-30 - 30*cot (6*x) - 4*cos(2*x)
4cos(2x)30cot2(6x)30- 4 \cos{\left(2 x \right)} - 30 \cot^{2}{\left(6 x \right)} - 30
The second derivative [src]
  /   /       2     \                    \
8*\45*\1 + cot (6*x)/*cot(6*x) + sin(2*x)/
8(45(cot2(6x)+1)cot(6x)+sin(2x))8 \left(45 \left(\cot^{2}{\left(6 x \right)} + 1\right) \cot{\left(6 x \right)} + \sin{\left(2 x \right)}\right)
The third derivative [src]
   /                     2                                           \
   |      /       2     \           2      /       2     \           |
16*\- 135*\1 + cot (6*x)/  - 270*cot (6*x)*\1 + cot (6*x)/ + cos(2*x)/
16(135(cot2(6x)+1)2270(cot2(6x)+1)cot2(6x)+cos(2x))16 \left(- 135 \left(\cot^{2}{\left(6 x \right)} + 1\right)^{2} - 270 \left(\cot^{2}{\left(6 x \right)} + 1\right) \cot^{2}{\left(6 x \right)} + \cos{\left(2 x \right)}\right)