Mister Exam

Other calculators

Derivative of 2xcosx/cos^2x

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

The graph:

from to

Piecewise:

The solution

You have entered [src]
2*x*cos(x)
----------
    2     
 cos (x)  
$$\frac{2 x \cos{\left(x \right)}}{\cos^{2}{\left(x \right)}}$$
((2*x)*cos(x))/cos(x)^2
Detail solution
  1. Apply the quotient rule, which is:

    and .

    To find :

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

      1. Apply the product rule:

        ; to find :

        1. Apply the power rule: goes to

        ; to find :

        1. The derivative of cosine is negative sine:

        The result is:

      So, the result is:

    To find :

    1. Let .

    2. Apply the power rule: goes to

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

      1. The derivative of cosine is negative sine:

      The result of the chain rule is:

    Now plug in to the quotient rule:

  2. Now simplify:


The answer is:

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