Mister Exam

Derivative of tan(21x)+tan(3x)

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

The graph:

from to

Piecewise:

The solution

You have entered [src]
tan(21*x) + tan(3*x)
tan(3x)+tan(21x)\tan{\left(3 x \right)} + \tan{\left(21 x \right)}
Detail solution
  1. Differentiate tan(3x)+tan(21x)\tan{\left(3 x \right)} + \tan{\left(21 x \right)} term by term:

    1. Rewrite the function to be differentiated:

      tan(21x)=sin(21x)cos(21x)\tan{\left(21 x \right)} = \frac{\sin{\left(21 x \right)}}{\cos{\left(21 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(21x)f{\left(x \right)} = \sin{\left(21 x \right)} and g(x)=cos(21x)g{\left(x \right)} = \cos{\left(21 x \right)}.

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

      1. Let u=21xu = 21 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 ddx21x\frac{d}{d x} 21 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: 2121

        The result of the chain rule is:

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

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

      1. Let u=21xu = 21 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 ddx21x\frac{d}{d x} 21 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: 2121

        The result of the chain rule is:

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

      Now plug in to the quotient rule:

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

    3. Let u=3xu = 3 x.

    4. ddutan(u)=1cos2(u)\frac{d}{d u} \tan{\left(u \right)} = \frac{1}{\cos^{2}{\left(u \right)}}

    5. Then, apply the chain rule. Multiply by ddx3x\frac{d}{d x} 3 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: 33

      The result of the chain rule is:

      3cos2(3x)\frac{3}{\cos^{2}{\left(3 x \right)}}

    The result is: 3sin2(3x)+3cos2(3x)cos2(3x)+21sin2(21x)+21cos2(21x)cos2(21x)\frac{3 \sin^{2}{\left(3 x \right)} + 3 \cos^{2}{\left(3 x \right)}}{\cos^{2}{\left(3 x \right)}} + \frac{21 \sin^{2}{\left(21 x \right)} + 21 \cos^{2}{\left(21 x \right)}}{\cos^{2}{\left(21 x \right)}}

  2. Now simplify:

    21cos2(21x)+3cos2(3x)\frac{21}{\cos^{2}{\left(21 x \right)}} + \frac{3}{\cos^{2}{\left(3 x \right)}}


The answer is:

21cos2(21x)+3cos2(3x)\frac{21}{\cos^{2}{\left(21 x \right)}} + \frac{3}{\cos^{2}{\left(3 x \right)}}

The graph
02468-8-6-4-2-1010-100000100000
The first derivative [src]
          2              2      
24 + 3*tan (3*x) + 21*tan (21*x)
3tan2(3x)+21tan2(21x)+243 \tan^{2}{\left(3 x \right)} + 21 \tan^{2}{\left(21 x \right)} + 24
The second derivative [src]
   //       2     \               /       2      \          \
18*\\1 + tan (3*x)/*tan(3*x) + 49*\1 + tan (21*x)/*tan(21*x)/
18((tan2(3x)+1)tan(3x)+49(tan2(21x)+1)tan(21x))18 \left(\left(\tan^{2}{\left(3 x \right)} + 1\right) \tan{\left(3 x \right)} + 49 \left(\tan^{2}{\left(21 x \right)} + 1\right) \tan{\left(21 x \right)}\right)
The third derivative [src]
   /               2                       2                                                                \
   |/       2     \        /       2      \         2      /       2     \          2       /       2      \|
54*\\1 + tan (3*x)/  + 343*\1 + tan (21*x)/  + 2*tan (3*x)*\1 + tan (3*x)/ + 686*tan (21*x)*\1 + tan (21*x)//
54((tan2(3x)+1)2+2(tan2(3x)+1)tan2(3x)+343(tan2(21x)+1)2+686(tan2(21x)+1)tan2(21x))54 \left(\left(\tan^{2}{\left(3 x \right)} + 1\right)^{2} + 2 \left(\tan^{2}{\left(3 x \right)} + 1\right) \tan^{2}{\left(3 x \right)} + 343 \left(\tan^{2}{\left(21 x \right)} + 1\right)^{2} + 686 \left(\tan^{2}{\left(21 x \right)} + 1\right) \tan^{2}{\left(21 x \right)}\right)
The graph
Derivative of tan(21x)+tan(3x)