10.11 Derivatives of trigonometric functions

10.11.1 Derivative of sin(x)\sin(x)

What is the derivative of sin(x)\sin(x)? First, we can use the definition of the limit and a little algebra.

ddx[sin(x)]\displaystyle\frac{d}{dx}[\sin(x)] =limh0sin(x+h)sin(x)h\displaystyle=\lim_{h\to 0}\frac{\sin(x+h)-\sin(x)}{h} (10.93)
=limh0sin(x)cos(h)+sin(h)cos(x)sin(x)h\displaystyle=\lim_{h\to 0}\frac{\sin(x)\cos(h)+\sin(h)\cos(x)-\sin(x)}{h} (10.94)

We want to rewrite this in terms of the two limits we found in the previous section!

limh0sin(x)cos(h)+sin(h)cos(x)sin(x)h\displaystyle\lim_{h\to 0}\frac{\sin(x)\cos(h)+\sin(h)\cos(x)-\sin(x)}{h} =limh0[sin(x)(cos(h)1)h+sin(h)hcos(x)]\displaystyle=\lim_{h\to 0}\left[\frac{\sin(x)(\cos(h)-1)}{h}+\frac{\sin(h)}{h% }\cos(x)\right]
=limh0[sin(x)(1cos(h))h+sin(h)hcos(x)]\displaystyle=\lim_{h\to 0}\left[-\sin(x)\frac{(1-\cos(h))}{h}+\frac{\sin(h)}{% h}\cos(x)\right]
=limh0[0+1cos(x)]\displaystyle=\lim_{h\to 0}\left[0+1\cos(x)\right]
=cos(x)\displaystyle=\cos(x)

10.11.2 Derivative of inverse trig functions

10.11.3 Derivative of arctan(x)\arctan(x)

This requires a \saysmart idea here, which is to relate the derivative of arctan(x)\arctan(x), which we don’t know, to the derivative of tan(x)\tan(x), which we do know. We can start with this formula, which exploits the property that arctan\arctan is the inverse function of tan\tan (and vice versa),

arctan(tan(x))=x.\arctan(\tan(x))=x. (10.95)

Then, we can differentiate both sides (using the chain rule), from which we can deduce that

dd(tan(x))(arctan(tan(x)))ddx(tan(x))=1\displaystyle\frac{d}{d\left(\tan(x)\right)}\left(\arctan(\tan(x))\right)\frac% {d}{dx}\left(\tan(x)\right)=1 (10.96)
dd(tan(x))(arctan(tan(x)))(sec2(x))=1\displaystyle\implies\frac{d}{d\left(\tan(x)\right)}\left(\arctan(\tan(x))% \right)\left(\sec^{2}(x)\right)=1 (10.97)

Therefore,

dd(tan(x))(arctan(tan(x)))=1sec2(x)\frac{d}{d\left(\tan(x)\right)}\left(\arctan(\tan(x))\right)=\frac{1}{\sec^{2}% (x)} (10.98)

Then, we can use a substitution (another clever idea), in this case by setting u=tan(x)u=\tan(x) we then can deduce that

ddu(arctan(u))\displaystyle\frac{d}{du}(\arctan(u)) =11+tan2(x) by the Pythagorean identity\displaystyle=\frac{1}{1+\tan^{2}(x)}\text{ by the Pythagorean identity}
=11+u2\displaystyle=\frac{1}{1+u^{2}}

Or, equivalently (as renaming the variable uu has no effect on the equation),

ddx(arctan(x))=11+x2\frac{d}{dx}(\arctan(x))=\frac{1}{1+x^{2}} (10.99)

10.11.4 Derivative of arccos(x)\arccos(x)

The method for finding the derivative of arccos(x)\arccos(x) is pretty much the same as the method for finding the derivative of arctan(x)\arctan(x) (as in Section 10.11.3).

We start with the identity

arccos(cos(x))=x,\arccos(\cos(x))=x, (10.100)

which we then differentiate. The result of this is that

(dd(cos(x))arccos(cos(x)))ddx(cos(x))=ddx(x),\displaystyle\left(\frac{d}{d(\cos(x))}\arccos(\cos(x))\right)\frac{d}{dx}(% \cos(x))=\frac{d}{dx}(x), (10.101)

which we can simplify by computing the parts we know how to compute which allows us to establish the equation

(dd(cos(x))arccos(cos(x)))(sin(x))=1.\left(\frac{d}{d(\cos(x))}\arccos(\cos(x))\right)(-\sin(x))=1. (10.102)

Therefore, we know that

(dd(cos(x))arccos(cos(x)))=1sin(x).\left(\frac{d}{d(\cos(x))}\arccos(\cos(x))\right)=-\frac{1}{\sin(x)}. (10.103)

Now, as when differentiating arctan(x)\arctan(x), we can substitute. In this case we will use u=cos(x)u=\cos(x) rather than tan(x)\tan(x), and then write that

dduarccos(u)=11u2.\frac{d}{du}\arccos(u)=-\frac{1}{\sqrt{1-u^{2}}}. (10.104)

This gives us the answer, and if you prefer the variable name xx to uu, then we can just rename it, which means that

ddxarccos(x)=11x2.\frac{d}{dx}\arccos(x)=-\frac{1}{\sqrt{1-x^{2}}}. (10.105)

10.11.5 Derivative of arcsin(x)\arcsin(x)

This proof/derivation is included purely for completeness and is mechanistically almost entirely the same as the cases of arctan\arctan (Section 10.11.3) and arccos\arccos (Section 10.11.4).

We start with the definition of arcsin\arcsin, which is that

arcsin(sin(x))=x.\arcsin(\sin(x))=x. (10.106)

Differentiating this,

ddx(arcsin(sin(x)))=ddx(1)\displaystyle\frac{d}{dx}\left(\arcsin(\sin(x))\right)=\frac{d}{dx}(1) (10.107)
dd(sin(x))(arcsin(sin(x)))ddxsin(x)=1\displaystyle\iff\frac{d}{d(\sin(x))}(\arcsin(\sin(x)))\frac{d}{dx}\sin(x)=1 (10.108)
dd(sin(x))(arcsin(sin(x)))cos(x)=1\displaystyle\iff\frac{d}{d(\sin(x))}(\arcsin(\sin(x)))\cos(x)=1 (10.109)
dd(sin(x))(arcsin(sin(x)))=1cos(x)\displaystyle\iff\frac{d}{d(\sin(x))}(\arcsin(\sin(x)))=\frac{1}{\cos(x)} (10.110)

Then, we can substitute u=sin(x)u=\sin(x), using which

dduarcsin(u)=1cos(x).\frac{d}{du}\arcsin(u)=\frac{1}{\cos(x)}. (10.111)

This is almost what we would like, except that we have a random cos(x)\cos(x) floating around. This can be removed by noting that cos(x)=1sin2(x)\cos(x)=\sqrt{1-\sin^{2}(x)}, or cos(x)=1u2\cos(x)=\sqrt{1-u^{2}}, i.e.

dduarcsin(u)=11u2\frac{d}{du}\arcsin(u)=\frac{1}{\sqrt{1-u^{2}}} (10.112)