Mister Exam

Derivative of (x+secx)(x-tanx)

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

The graph:

from to

Piecewise:

The solution

You have entered [src]
(x + sec(x))*(x - tan(x))
$$\left(x - \tan{\left(x \right)}\right) \left(x + \sec{\left(x \right)}\right)$$
(x + sec(x))*(x - tan(x))
Detail solution
  1. Apply the product rule:

    ; to find :

    1. Differentiate term by term:

      1. Apply the power rule: goes to

      2. Rewrite the function to be differentiated:

      3. Let .

      4. Apply the power rule: goes to

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

        1. The derivative of cosine is negative sine:

        The result of the chain rule is:

      The result is:

    ; to find :

    1. Differentiate term by term:

      1. Apply the power rule: goes to

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

        1. Rewrite the function to be differentiated:

        2. Apply the quotient rule, which is:

          and .

          To find :

          1. The derivative of sine is cosine:

          To find :

          1. The derivative of cosine is negative sine:

          Now plug in to the quotient rule:

        So, the result is:

      The result is:

    The result is:

  2. Now simplify:


The answer is:

The graph
The first derivative [src]
                                      2                
(1 + sec(x)*tan(x))*(x - tan(x)) - tan (x)*(x + sec(x))
$$\left(x - \tan{\left(x \right)}\right) \left(\tan{\left(x \right)} \sec{\left(x \right)} + 1\right) - \left(x + \sec{\left(x \right)}\right) \tan^{2}{\left(x \right)}$$
The second derivative [src]
       2                          /         2   \                         /       2   \                    
- 2*tan (x)*(1 + sec(x)*tan(x)) + \1 + 2*tan (x)/*(x - tan(x))*sec(x) - 2*\1 + tan (x)/*(x + sec(x))*tan(x)
$$\left(x - \tan{\left(x \right)}\right) \left(2 \tan^{2}{\left(x \right)} + 1\right) \sec{\left(x \right)} - 2 \left(x + \sec{\left(x \right)}\right) \left(\tan^{2}{\left(x \right)} + 1\right) \tan{\left(x \right)} - 2 \left(\tan{\left(x \right)} \sec{\left(x \right)} + 1\right) \tan^{2}{\left(x \right)}$$
The third derivative [src]
    /       2   \                                   2    /         2   \            /       2   \ /         2   \                /         2   \                           
- 6*\1 + tan (x)/*(1 + sec(x)*tan(x))*tan(x) - 3*tan (x)*\1 + 2*tan (x)/*sec(x) - 2*\1 + tan (x)/*\1 + 3*tan (x)/*(x + sec(x)) + \5 + 6*tan (x)/*(x - tan(x))*sec(x)*tan(x)
$$\left(x - \tan{\left(x \right)}\right) \left(6 \tan^{2}{\left(x \right)} + 5\right) \tan{\left(x \right)} \sec{\left(x \right)} - 2 \left(x + \sec{\left(x \right)}\right) \left(\tan^{2}{\left(x \right)} + 1\right) \left(3 \tan^{2}{\left(x \right)} + 1\right) - 6 \left(\tan{\left(x \right)} \sec{\left(x \right)} + 1\right) \left(\tan^{2}{\left(x \right)} + 1\right) \tan{\left(x \right)} - 3 \left(2 \tan^{2}{\left(x \right)} + 1\right) \tan^{2}{\left(x \right)} \sec{\left(x \right)}$$
The graph
Derivative of (x+secx)(x-tanx)