Differentiation of trigonometric functions
Trigonometry |
---|
Reference |
Laws and theorems |
Calculus |
Function | Derivative |
---|---|
[math]\displaystyle{ \sin(x) }[/math] | [math]\displaystyle{ \cos(x) }[/math] |
[math]\displaystyle{ \cos(x) }[/math] | [math]\displaystyle{ -\sin(x) }[/math] |
[math]\displaystyle{ \tan(x) }[/math] | [math]\displaystyle{ \sec^2(x) }[/math] |
[math]\displaystyle{ \cot(x) }[/math] | [math]\displaystyle{ -\csc^2(x) }[/math] |
[math]\displaystyle{ \sec(x) }[/math] | [math]\displaystyle{ \sec(x)\tan(x) }[/math] |
[math]\displaystyle{ \csc(x) }[/math] | [math]\displaystyle{ -\csc(x)\cot(x) }[/math] |
[math]\displaystyle{ \arcsin(x) }[/math] | [math]\displaystyle{ \frac{1}{\sqrt{1-x^2}} }[/math] |
[math]\displaystyle{ \arccos(x) }[/math] | [math]\displaystyle{ -\frac{1}{\sqrt{1-x^2}} }[/math] |
[math]\displaystyle{ \arctan(x) }[/math] | [math]\displaystyle{ \frac{1}{x^2+1} }[/math] |
[math]\displaystyle{ \arccot(x) }[/math] | [math]\displaystyle{ -\frac{1}{x^2+1} }[/math] |
[math]\displaystyle{ \arcsec(x) }[/math] | [math]\displaystyle{ \frac{1}{|x|\sqrt{x^2-1}} }[/math] |
[math]\displaystyle{ \arccsc(x) }[/math] | [math]\displaystyle{ -\frac{1}{|x|\sqrt{x^2-1}} }[/math] |
The differentiation of trigonometric functions is the mathematical process of finding the derivative of a trigonometric function, or its rate of change with respect to a variable. For example, the derivative of the sine function is written sin′(a) = cos(a), meaning that the rate of change of sin(x) at a particular angle x = a is given by the cosine of that angle.
All derivatives of circular trigonometric functions can be found from those of sin(x) and cos(x) by means of the quotient rule applied to functions such as tan(x) = sin(x)/cos(x). Knowing these derivatives, the derivatives of the inverse trigonometric functions are found using implicit differentiation.
Proofs of derivatives of trigonometric functions
Limit of sin(θ)/θ as θ tends to 0
The diagram at right shows a circle with centre O and radius r = 1. Let two radii OA and OB make an arc of θ radians. Since we are considering the limit as θ tends to zero, we may assume θ is a small positive number, say 0 < θ < ½ π in the first quadrant.
In the diagram, let R1 be the triangle OAB, R2 the circular sector OAB, and R3 the triangle OAC.
The area of triangle OAB is:
- [math]\displaystyle{ \mathrm{Area}(R_1 ) =\tfrac{1}{2} \ |OA| \ |OB| \sin\theta = \tfrac{1}{2}\sin\theta \, . }[/math]
The area of the circular sector OAB is:
- [math]\displaystyle{ \mathrm{Area}(R_2) =\tfrac{1}{2}\theta \, . }[/math]
The area of the triangle OAC is given by:
- [math]\displaystyle{ \mathrm{Area}(R_3 ) =\tfrac{1}{2} \ |OA| \ |AC| = \tfrac{1}{2} \tan\theta \, . }[/math]
Since each region is contained in the next, one has:
- [math]\displaystyle{ \text{Area}(R_1) \lt \text{Area}(R_2) \lt \text{Area}(R_3) \implies \tfrac{1}{2}\sin\theta \lt \tfrac{1}{2}\theta \lt \tfrac{1}{2}\tan\theta \, . }[/math]
Moreover, since sin θ > 0 in the first quadrant, we may divide through by ½ sin θ, giving:
- [math]\displaystyle{ 1 \lt \frac{\theta}{\sin\theta} \lt \frac{1}{\cos\theta} \implies 1 \gt \frac{\sin\theta}{\theta} \gt \cos\theta \, . }[/math]
In the last step we took the reciprocals of the three positive terms, reversing the inequities.
We conclude that for 0 < θ < ½ π, the quantity sin(θ)/θ is always less than 1 and always greater than cos(θ). Thus, as θ gets closer to 0, sin(θ)/θ is "squeezed" between a ceiling at height 1 and a floor at height cos θ, which rises towards 1; hence sin(θ)/θ must tend to 1 as θ tends to 0 from the positive side:
[math]\displaystyle{ \lim_{\theta \to 0^+} \frac{\sin\theta}{\theta} = 1 \, . }[/math]
For the case where θ is a small negative number –½ π < θ < 0, we use the fact that sine is an odd function:
- [math]\displaystyle{ \lim_{\theta \to 0^-}\! \frac{\sin\theta}{\theta} \ =\ \lim_{\theta\to 0^+}\!\frac{\sin(-\theta)}{-\theta} \ =\ \lim_{\theta \to 0^+}\!\frac{-\sin\theta}{-\theta} \ =\ \lim_{\theta\to 0^+}\!\frac{\sin\theta}{\theta} \ =\ 1 \, . }[/math]
Limit of (cos(θ)-1)/θ as θ tends to 0
The last section enables us to calculate this new limit relatively easily. This is done by employing a simple trick. In this calculation, the sign of θ is unimportant.
- [math]\displaystyle{ \lim_{\theta \to 0}\, \frac{\cos\theta - 1}{\theta} \ =\ \lim_{\theta \to 0} \left( \frac{\cos\theta - 1}{\theta} \right)\!\! \left( \frac{\cos\theta + 1}{\cos\theta + 1} \right) \ =\ \lim_{\theta \to 0}\, \frac{\cos^2\!\theta - 1}{\theta\,(\cos\theta + 1)} . }[/math]
Using cos2θ – 1 = –sin2θ, the fact that the limit of a product is the product of limits, and the limit result from the previous section, we find that:
- [math]\displaystyle{ \lim_{\theta \to 0}\,\frac{\cos\theta - 1}{\theta} \ =\ \lim_{\theta \to 0}\, \frac{-\sin^2\theta}{\theta(\cos\theta+1)} \ =\ \left( -\lim_{\theta \to 0} \frac{\sin\theta}{\theta}\right)\! \left( \lim_{\theta \to 0}\,\frac{\sin\theta}{\cos\theta + 1} \right) \ =\ (-1)\left(\frac{0}{2}\right) = 0 \, . }[/math]
Limit of tan(θ)/θ as θ tends to 0
Using the limit for the sine function, the fact that the tangent function is odd, and the fact that the limit of a product is the product of limits, we find:
- [math]\displaystyle{ \lim_{\theta\to 0} \frac{\tan\theta}{\theta} \ =\ \left(\lim_{\theta\to 0} \frac{\sin\theta}{\theta}\right)\! \left( \lim_{\theta\to 0} \frac{1}{\cos\theta}\right) \ =\ (1)(1) \ =\ 1 \, . }[/math]
Derivative of the sine function
We calculate the derivative of the sine function from the limit definition:
- [math]\displaystyle{ \frac{\operatorname{d}}{\operatorname{d}\!\theta}\,\sin\theta = \lim_{\delta \to 0} \frac{\sin(\theta + \delta) - \sin \theta}{\delta} . }[/math]
Using the angle addition formula sin(α+β) = sin α cos β + sin β cos α, we have:
- [math]\displaystyle{ \frac{\operatorname{d}}{\operatorname{d}\!\theta}\,\sin\theta = \lim_{\delta \to 0} \frac{\sin\theta\cos\delta + \sin\delta\cos\theta-\sin\theta}{\delta} = \lim_{\delta \to 0} \left( \frac{\sin\delta}{\delta} \cos\theta + \frac{\cos\delta -1}{\delta}\sin\theta \right) . }[/math]
Using the limits for the sine and cosine functions:
- [math]\displaystyle{ \frac{\operatorname{d}}{\operatorname{d}\!\theta}\,\sin\theta = (1)\cos\theta + (0)\sin\theta = \cos\theta \, . }[/math]
Derivative of the cosine function
From the definition of derivative
We again calculate the derivative of the cosine function from the limit definition:
- [math]\displaystyle{ \frac{\operatorname{d}}{\operatorname{d}\!\theta}\,\cos\theta = \lim_{\delta \to 0} \frac{\cos(\theta+\delta)-\cos\theta}{\delta} . }[/math]
Using the angle addition formula cos(α+β) = cos α cos β – sin α sin β, we have:
- [math]\displaystyle{ \frac{\operatorname{d}}{\operatorname{d}\!\theta}\,\cos\theta = \lim_{\delta \to 0} \frac{\cos\theta\cos\delta - \sin\theta\sin\delta-\cos\theta}{\delta} = \lim_{\delta \to 0} \left(\frac{\cos\delta -1}{\delta}\cos\theta \,-\, \frac{\sin\delta}{\delta} \sin\theta \right) . }[/math]
Using the limits for the sine and cosine functions:
- [math]\displaystyle{ \frac{\operatorname{d}}{\operatorname{d}\!\theta}\,\cos\theta = (0) \cos\theta - (1) \sin\theta = -\sin\theta \, . }[/math]
From the chain rule
To compute the derivative of the cosine function from the chain rule, first observe the following three facts:
- [math]\displaystyle{ \cos\theta = \sin\left(\tfrac{\pi}{2}-\theta\right) }[/math]
- [math]\displaystyle{ \sin\theta = \cos\left(\tfrac{\pi}{2}-\theta\right) }[/math]
- [math]\displaystyle{ \tfrac{\operatorname{d}}{\operatorname{d}\!\theta} \sin\theta = \cos\theta }[/math]
The first and the second are trigonometric identities, and the third is proven above. Using these three facts, we can write the following,
- [math]\displaystyle{ \tfrac{\operatorname{d}}{\operatorname{d}\!\theta} \cos\theta = \tfrac{\operatorname{d}}{\operatorname{d}\!\theta} \sin\left(\tfrac{\pi}{2}-\theta\right) }[/math]
We can differentiate this using the chain rule. Letting [math]\displaystyle{ f(x) = \sin x,\ \ g(\theta) =\tfrac{\pi}{2}-\theta }[/math], we have:
- [math]\displaystyle{ \tfrac{\operatorname{d}}{\operatorname{d}\!\theta} f\!\left(g\!\left(\theta\right)\right) = f^\prime\!\left(g\!\left(\theta\right)\right) \cdot g^\prime\!\left(\theta\right) = \cos\left(\tfrac{\pi}{2}-\theta\right) \cdot (0-1) = -\sin\theta }[/math].
Therefore, we have proven that
- [math]\displaystyle{ \tfrac{\operatorname{d}}{\operatorname{d}\!\theta} \cos\theta = -\sin\theta }[/math].
Derivative of the tangent function
From the definition of derivative
To calculate the derivative of the tangent function tan θ, we use first principles. By definition:
- [math]\displaystyle{ \frac{\operatorname{d}}{\operatorname{d}\!\theta}\,\tan\theta = \lim_{\delta \to 0} \left( \frac{\tan(\theta+\delta)-\tan\theta}{\delta} \right) . }[/math]
Using the well-known angle formula tan(α+β) = (tan α + tan β) / (1 - tan α tan β), we have:
- [math]\displaystyle{ \frac{\operatorname{d}}{\operatorname{d}\!\theta}\,\tan\theta = \lim_{\delta \to 0} \left[ \frac{\frac{\tan\theta + \tan\delta}{1 - \tan\theta\tan\delta} - \tan\theta}{\delta} \right] = \lim_{\delta \to 0} \left[ \frac{\tan\theta + \tan\delta - \tan\theta + \tan^2\theta\tan\delta}{\delta \left( 1 - \tan\theta\tan\delta \right)} \right] . }[/math]
Using the fact that the limit of a product is the product of the limits:
- [math]\displaystyle{ \frac{\operatorname{d}}{\operatorname{d}\!\theta}\,\tan\theta = \lim_{\delta \to 0} \frac{\tan\delta}{\delta} \times \lim_{\delta \to 0} \left( \frac{1 + \tan^2\theta}{1 - \tan\theta\tan\delta} \right) . }[/math]
Using the limit for the tangent function, and the fact that tan δ tends to 0 as δ tends to 0:
- [math]\displaystyle{ \frac{\operatorname{d}}{\operatorname{d}\!\theta}\,\tan\theta = 1 \times \frac{1 + \tan^2\theta}{1 - 0} = 1 + \tan^2\theta . }[/math]
We see immediately that:
- [math]\displaystyle{ \frac{\operatorname{d}}{\operatorname{d}\!\theta}\,\tan\theta = 1 + \frac{\sin^2\theta}{\cos^2\theta} = \frac{\cos^2\theta + \sin^2\theta}{\cos^2\theta} = \frac{1}{\cos^2\theta} = \sec^2\theta \, . }[/math]
From the quotient rule
One can also compute the derivative of the tangent function using the quotient rule.
- [math]\displaystyle{ \frac{\operatorname{d}}{\operatorname{d}\!\theta} \tan\theta = \frac{\operatorname{d}}{\operatorname{d}\!\theta} \frac{\sin\theta}{\cos\theta} = \frac{\left(\sin\theta\right)^\prime \cdot \cos\theta - \sin\theta \cdot \left(\cos\theta\right)^\prime}{ \cos^2 \theta } = \frac{\cos^2 \theta + \sin^2 \theta}{\cos^2 \theta} }[/math]
The numerator can be simplified to 1 by the Pythagorean identity, giving us,
- [math]\displaystyle{ \frac{1}{\cos^2 \theta} = \sec^2 \theta }[/math]
Therefore,
- [math]\displaystyle{ \frac{\operatorname{d}}{\operatorname{d}\!\theta} \tan\theta = \sec^2 \theta }[/math]
Proofs of derivatives of inverse trigonometric functions
The following derivatives are found by setting a variable y equal to the inverse trigonometric function that we wish to take the derivative of. Using implicit differentiation and then solving for dy/dx, the derivative of the inverse function is found in terms of y. To convert dy/dx back into being in terms of x, we can draw a reference triangle on the unit circle, letting θ be y. Using the Pythagorean theorem and the definition of the regular trigonometric functions, we can finally express dy/dx in terms of x.
Differentiating the inverse sine function
We let
- [math]\displaystyle{ y=\arcsin x\,\! }[/math]
Where
- [math]\displaystyle{ -\frac{\pi}{2}\le y \le \frac{\pi}{2} }[/math]
Then
- [math]\displaystyle{ \sin y=x\,\! }[/math]
Taking the derivative with respect to [math]\displaystyle{ x }[/math] on both sides and solving for dy/dx:
- [math]\displaystyle{ {d \over dx}\sin y={d \over dx}x }[/math]
- [math]\displaystyle{ \cos y \cdot {dy \over dx} = 1\,\! }[/math]
Substituting [math]\displaystyle{ \cos y = \sqrt{1-\sin^2 y} }[/math] in from above,
- [math]\displaystyle{ \sqrt{1-\sin^2 y} \cdot {dy \over dx} =1 }[/math]
Substituting [math]\displaystyle{ x=\sin y }[/math] in from above,
- [math]\displaystyle{ \sqrt{1-x^2} \cdot {dy \over dx} =1 }[/math]
- [math]\displaystyle{ {dy \over dx}=\frac{1}{\sqrt{1-x^2}} }[/math]
Differentiating the inverse cosine function
We let
- [math]\displaystyle{ y=\arccos x\,\! }[/math]
Where
- [math]\displaystyle{ 0 \le y \le \pi }[/math]
Then
- [math]\displaystyle{ \cos y=x\,\! }[/math]
Taking the derivative with respect to [math]\displaystyle{ x }[/math] on both sides and solving for dy/dx:
- [math]\displaystyle{ {d \over dx}\cos y={d \over dx}x }[/math]
- [math]\displaystyle{ -\sin y \cdot {dy \over dx} =1 }[/math]
Substituting [math]\displaystyle{ \sin y = \sqrt{1-\cos^2 y}\,\! }[/math] in from above, we get
- [math]\displaystyle{ -\sqrt{1-\cos^2 y} \cdot {dy \over dx} =1 }[/math]
Substituting [math]\displaystyle{ x=\cos y\,\! }[/math] in from above, we get
- [math]\displaystyle{ -\sqrt{1-x^2} \cdot {dy \over dx} =1 }[/math]
- [math]\displaystyle{ {dy \over dx} = -\frac{1}{\sqrt{1-x^2}} }[/math]
Alternatively, once the derivative of [math]\displaystyle{ \arcsin x }[/math] is established, the derivative of [math]\displaystyle{ \arccos x }[/math] follows immediately by differentiating the identity [math]\displaystyle{ \arcsin x+\arccos x=\pi/2 }[/math] so that [math]\displaystyle{ (\arccos x)'=-(\arcsin x)' }[/math].
Differentiating the inverse tangent function
We let
- [math]\displaystyle{ y=\arctan x\,\! }[/math]
Where
- [math]\displaystyle{ -\frac{\pi}{2} \lt y \lt \frac{\pi}{2} }[/math]
Then
- [math]\displaystyle{ \tan y=x\,\! }[/math]
Taking the derivative with respect to [math]\displaystyle{ x }[/math] on both sides and solving for dy/dx:
- [math]\displaystyle{ {d \over dx}\tan y={d \over dx}x }[/math]
Left side:
- [math]\displaystyle{ {d \over dx}\tan y = \sec^2 y \cdot {dy \over dx} = (1 + \tan^2 y) {dy \over dx} }[/math] using the Pythagorean identity
Right side:
- [math]\displaystyle{ {d \over dx}x = 1 }[/math]
Therefore,
- [math]\displaystyle{ (1+\tan^2 y){dy \over dx}=1 }[/math]
Substituting [math]\displaystyle{ x=\tan y\,\! }[/math] in from above, we get
- [math]\displaystyle{ (1+x^2){dy \over dx}=1 }[/math]
- [math]\displaystyle{ {dy \over dx}=\frac{1}{1+x^2} }[/math]
Differentiating the inverse cotangent function
We let
- [math]\displaystyle{ y=\arccot x }[/math]
where [math]\displaystyle{ 0\lt y\lt \pi }[/math]. Then
- [math]\displaystyle{ \cot y=x }[/math]
Taking the derivative with respect to [math]\displaystyle{ x }[/math] on both sides and solving for dy/dx:
- [math]\displaystyle{ \frac{d}{dx}\cot y=\frac{d}{dx}x }[/math]
Left side:
- [math]\displaystyle{ {d \over dx}\cot y = -\csc^2 y \cdot {dy \over dx} = -(1 + \cot^2 y) {dy \over dx} }[/math] using the Pythagorean identity
Right side:
- [math]\displaystyle{ {d \over dx}x = 1 }[/math]
Therefore,
- [math]\displaystyle{ -(1+\cot^2y)\frac{dy}{dx}=1 }[/math]
Substituting [math]\displaystyle{ x=\cot y }[/math],
- [math]\displaystyle{ -(1+x^2)\frac{dy}{dx}=1 }[/math]
- [math]\displaystyle{ \frac{dy}{dx}=-\frac{1}{1+x^2} }[/math]
Alternatively, as the derivative of [math]\displaystyle{ \arctan x }[/math] is derived as shown above, then using the identity [math]\displaystyle{ \arctan x+\arccot x=\dfrac{\pi}{2} }[/math] follows immediately that[math]\displaystyle{ \begin{align} \dfrac{d}{dx}\arccot x &=\dfrac{d}{dx}\left(\dfrac{\pi}{2}-\arctan x\right)\\ &=-\dfrac{1}{1+x^2} \end{align} }[/math]
Differentiating the inverse secant function
Using implicit differentiation
Let
- [math]\displaystyle{ y = \arcsec x\ \mid |x| \geq 1 }[/math]
Then
- [math]\displaystyle{ x = \sec y \mid \ y \in \left [0,\frac{\pi}{2} \right )\cup \left (\frac{\pi}{2},\pi \right] }[/math]
- [math]\displaystyle{ \frac{dx}{dy} = \sec y \tan y = |x|\sqrt{x^2-1} }[/math]
(The absolute value in the expression is necessary as the product of secant and tangent in the interval of y is always nonnegative, while the radical [math]\displaystyle{ \sqrt{x^2-1} }[/math] is always nonnegative by definition of the principal square root, so the remaining factor must also be nonnegative, which is achieved by using the absolute value of x.)
- [math]\displaystyle{ \frac{dy}{dx} = \frac{1}{|x|\sqrt{x^2-1}} }[/math]
Using the chain rule
Alternatively, the derivative of arcsecant may be derived from the derivative of arccosine using the chain rule.
Let
- [math]\displaystyle{ y = \arcsec x = \arccos \left(\frac{1}{x}\right) }[/math]
Where
- [math]\displaystyle{ |x| \geq 1 }[/math] and [math]\displaystyle{ y \in \left[0, \frac{\pi}{2}\right) \cup \left(\frac{\pi}{2}, \pi\right] }[/math]
Then, applying the chain rule to [math]\displaystyle{ \arccos \left(\frac{1}{x}\right) }[/math]:
- [math]\displaystyle{ \frac{dy}{dx} = -\frac{1}{\sqrt{1-(\frac{1}{x})^2}} \cdot \left(-\frac{1}{x^2}\right) = \frac{1}{x^2\sqrt{1-\frac{1}{x^2}}} = \frac{1}{x^2\frac{\sqrt{x^2-1}}{\sqrt{x^2}}} = \frac{1}{\sqrt{x^2}\sqrt{x^2-1}} = \frac{1}{|x|\sqrt{x^2-1}} }[/math]
Differentiating the inverse cosecant function
Using implicit differentiation
Let
- [math]\displaystyle{ y = \arccsc x\ \mid |x| \geq 1 }[/math]
Then
- [math]\displaystyle{ x = \csc y\ \mid \ y \in \left [-\frac{\pi}{2},0 \right )\cup \left (0,\frac{\pi}{2} \right] }[/math]
- [math]\displaystyle{ \frac{dx}{dy} = -\csc y \cot y = -|x|\sqrt{x^2-1} }[/math]
(The absolute value in the expression is necessary as the product of cosecant and cotangent in the interval of y is always nonnegative, while the radical [math]\displaystyle{ \sqrt{x^2-1} }[/math] is always nonnegative by definition of the principal square root, so the remaining factor must also be nonnegative, which is achieved by using the absolute value of x.)
- [math]\displaystyle{ \frac{dy}{dx} = \frac{-1}{|x|\sqrt{x^2-1}} }[/math]
Using the chain rule
Alternatively, the derivative of arccosecant may be derived from the derivative of arcsine using the chain rule.
Let
- [math]\displaystyle{ y = \arccsc x = \arcsin \left(\frac{1}{x}\right) }[/math]
Where
- [math]\displaystyle{ |x| \geq 1 }[/math] and [math]\displaystyle{ y \in \left[-\frac{\pi}{2}, 0\right) \cup \left(0, \frac{\pi}{2}\right] }[/math]
Then, applying the chain rule to [math]\displaystyle{ \arcsin \left(\frac{1}{x}\right) }[/math]:
- [math]\displaystyle{ \frac{dy}{dx} =\frac{1}{\sqrt{1-(\frac{1}{x})^2}} \cdot \left(-\frac{1}{x^2}\right) = -\frac{1}{x^2\sqrt{1-\frac{1}{x^2}}} = -\frac{1}{x^2\frac{\sqrt{x^2-1}}{\sqrt{x^2}}} = -\frac{1}{\sqrt{x^2}\sqrt{x^2-1}} = -\frac{1}{|x|\sqrt{x^2-1}} }[/math]
See also
- Calculus – Branch of mathematics
- Derivative – Instantaneous rate of change (mathematics)
- Differentiation rules – Rules for computing derivatives of functions
- General Leibniz rule – Generalization of the product rule in calculus
- Inverse functions and differentiation – Calculus identity
- Linearity of differentiation – Calculus property
- List of integrals of inverse trigonometric functions – Wikipedia list article
- List of trigonometric identities – Equalities that involve trigonometric functions
- Trigonometry – Area of geometry, about angles and lengths
References
Bibliography
- Handbook of Mathematical Functions, Edited by Abramowitz and Stegun, National Bureau of Standards, Applied Mathematics Series, 55 (1964)
Original source: https://en.wikipedia.org/wiki/Differentiation of trigonometric functions.
Read more |