Mister Exam

Other calculators

Derivative of cos(2x)/(cos(x)-sin(x))

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

The graph:

from to

Piecewise:

The solution

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

    and .

    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:

    To find :

    1. Differentiate term by term:

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

        1. The derivative of sine is cosine:

        So, the result is:

      2. The derivative of cosine is negative sine:

      The result is:

    Now plug in to the quotient rule:

  2. Now simplify:


The answer is:

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