Math-Linux.com

Knowledge base dedicated to Linux and applied mathematics.

Home > Mathematics > Derivative of a function > Derivative of tan x

Derivative of tan x

All the versions of this article: <English> <Español> <français>

Derivative f’ of the function f(x)=tan x is: f’(x) = 1 + tan²x for any value x different of π/2 + kπ avec k ∈Z

Derivative of tan x

Derivative $f’$ of the function $f(x)=\tan x$ is:

$$ \forall x \neq \frac{\pi}{2}+k\pi, k \in \mathbb{Z}, f’(x) = 1+\tan ^{2} x $$

Proof

First we have:

$$ (\tan x)’ =\lim _{h \rightarrow 0} \frac{\tan (x+h) - \tan x }{h} $$

Now, let’s simplify the quotient:

$$ \frac{\tan (x+h) - \tan x }{h} $$

Since $\tan (x+h)=\displaystyle\frac{\tan x+\tan h}{1-\tan x \tan h}$, we have:

$$ \begin{aligned} \frac{\tan (x+h) - \tan x }{h} &=\frac{\displaystyle\frac{\tan x+\tan h}{1-\tan x \tan h}-\tan x}{h} \\ &=\frac{\tan x+\tan h-\tan x(1-\tan x \tan h)}{h(1-\tan x \tan h)} \\ &=\frac{\tan x+\tan h-\tan x+\tan^{2} x \tan h}{h(1-\tan x \tan h)} \\ &=\frac{\tan h\left(1+\tan ^{2} x\right)}{h(1-\tan x \tan h)}\\ &=\frac{\displaystyle\frac{\sin h}{\cos h}\left(1+\tan ^{2} x\right)}{h(1-\tan x \tan h)}\\ &=\frac{\sin h \left(1+\tan ^{2} x\right)}{h \cos h(1-\tan x \tan h)} \\ &=\frac{\sin h}{h} \cdot \frac{1}{\cos h} \cdot \frac{1+\tan ^{2} x}{1-\tan x \tan h} \end{aligned} $$

Thus:

$$ \begin{aligned} (\tan x)’ &=\lim _{h \rightarrow 0} \frac{\tan (x+h) - \tan x }{h}\\ &=\lim _{h \rightarrow 0} \frac{\sin h}{h} \cdot \frac{1}{\cos h} \cdot \frac{1+\tan ^{2} x}{1-\tan x \tan h}\\ &=\left(\lim _{h \rightarrow 0} \frac{\sin h}{h} \right) \cdot \left(\lim _{h \rightarrow 0} \frac{1}{\cos h} \right) \cdot \left(\lim _{h \rightarrow 0} \frac{1+\tan ^{2} x}{1-\tan x \tan h}\right)\\ &=\lim _{h \rightarrow 0} \frac{\sin h}{h} \cdot \frac{1}{\cos 0} \cdot \frac{1+\tan ^{2} x}{1-\tan x \tan 0}\\ &=1 \cdot 1 \cdot (1+\tan ^{2} x) \end{aligned} $$

because

$$ \lim _{h \rightarrow 0} \frac{\sin h}{h}=1 $$

This equality has been proved in https://www.math-linux.com/mathematics/limits/article/proof-of-limit-of-sin-x-x-1-as-x-approaches-0

We conclude:

$$ (\tan x)’ =\lim _{h \rightarrow 0} \frac{\tan (x+h) - \tan x }{h}=1+\tan ^{2} x $$

Also in this section

  1. Chain rule proof - derivative of a composite function
  2. Derivative of 1/x
  3. Derivative of arccos x
  4. Derivative of arcsin x
  5. Derivative of arctan x
  6. Derivative of cos x
  7. Derivative of exp x, e^x
  8. Derivative of exp(u) , exp(u(x))
  9. Derivative of inverse functions
  10. Derivative of ln u
  11. Derivative of ln x
  12. Derivative of sin x
  13. Derivative of square root of x
  14. Derivative of tan x
  15. Derivative of u*v , u times v
  16. Derivative of u/v
  17. Derivative of x power n
  18. Derviative of 1/u