Mister Exam

You entered:

tan(x-pi/4)

What you mean?

Derivative of tan(x-pi/4)

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

The graph:

from to

Piecewise:

The solution

You have entered [src]
   /    pi\
tan|x - --|
   \    4 /
tan(xπ4)\tan{\left(x - \frac{\pi}{4} \right)}
d /   /    pi\\
--|tan|x - --||
dx\   \    4 //
ddxtan(xπ4)\frac{d}{d x} \tan{\left(x - \frac{\pi}{4} \right)}
Detail solution
  1. Rewrite the function to be differentiated:

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

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

    1. Let u=xπ4u = x - \frac{\pi}{4}.

    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 ddx(xπ4)\frac{d}{d x} \left(x - \frac{\pi}{4}\right):

      1. Differentiate xπ4x - \frac{\pi}{4} term by term:

        1. Apply the power rule: xx goes to 11

        2. The derivative of the constant π4- \frac{\pi}{4} is zero.

        The result is: 11

      The result of the chain rule is:

      cos(xπ4)\cos{\left(x - \frac{\pi}{4} \right)}

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

    1. Let u=xπ4u = x - \frac{\pi}{4}.

    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 ddx(xπ4)\frac{d}{d x} \left(x - \frac{\pi}{4}\right):

      1. Differentiate xπ4x - \frac{\pi}{4} term by term:

        1. Apply the power rule: xx goes to 11

        2. The derivative of the constant π4- \frac{\pi}{4} is zero.

        The result is: 11

      The result of the chain rule is:

      sin(xπ4)- \sin{\left(x - \frac{\pi}{4} \right)}

    Now plug in to the quotient rule:

    sin2(xπ4)+cos2(xπ4)cos2(xπ4)\frac{\sin^{2}{\left(x - \frac{\pi}{4} \right)} + \cos^{2}{\left(x - \frac{\pi}{4} \right)}}{\cos^{2}{\left(x - \frac{\pi}{4} \right)}}

  3. Now simplify:

    2sin(2x)+1\frac{2}{\sin{\left(2 x \right)} + 1}


The answer is:

2sin(2x)+1\frac{2}{\sin{\left(2 x \right)} + 1}

The graph
02468-8-6-4-2-1010-500010000
The first derivative [src]
       2/    pi\
1 + tan |x - --|
        \    4 /
tan2(xπ4)+1\tan^{2}{\left(x - \frac{\pi}{4} \right)} + 1
The second derivative [src]
   /       2/    pi\\    /    pi\
-2*|1 + cot |x + --||*cot|x + --|
   \        \    4 //    \    4 /
2(cot2(x+π4)+1)cot(x+π4)- 2 \left(\cot^{2}{\left(x + \frac{\pi}{4} \right)} + 1\right) \cot{\left(x + \frac{\pi}{4} \right)}
The third derivative [src]
  /       2/    pi\\ /         2/    pi\\
2*|1 + cot |x + --||*|1 + 3*cot |x + --||
  \        \    4 // \          \    4 //
2(cot2(x+π4)+1)(3cot2(x+π4)+1)2 \left(\cot^{2}{\left(x + \frac{\pi}{4} \right)} + 1\right) \left(3 \cot^{2}{\left(x + \frac{\pi}{4} \right)} + 1\right)
The graph
Derivative of tan(x-pi/4)