tan(x-pi/4)
/ pi\ tan|x - --| \ 4 /
d / / pi\\ --|tan|x - --|| dx\ \ 4 //
Rewrite the function to be differentiated:
Apply the quotient rule, which is:
and .
To find :
Let .
The derivative of sine is cosine:
Then, apply the chain rule. Multiply by :
Differentiate term by term:
Apply the power rule: goes to
The derivative of the constant is zero.
The result is:
The result of the chain rule is:
To find :
Let .
The derivative of cosine is negative sine:
Then, apply the chain rule. Multiply by :
Differentiate term by term:
Apply the power rule: goes to
The derivative of the constant is zero.
The result is:
The result of the chain rule is:
Now plug in to the quotient rule:
Now simplify:
The answer is:
2/ pi\ 1 + tan |x - --| \ 4 /
/ 2/ pi\\ / pi\ -2*|1 + cot |x + --||*cot|x + --| \ \ 4 // \ 4 /
/ 2/ pi\\ / 2/ pi\\ 2*|1 + cot |x + --||*|1 + 3*cot |x + --|| \ \ 4 // \ \ 4 //