Differentiation of trigonometric functions

From HandWiki
Short description: Mathematical process of finding the derivative of a trigonometric function
Function Derivative
sin⁡(x) cos⁡(x)
cos⁡(x) −sin⁡(x)
tan⁡(x) sec2(x)
cot⁡(x) −csc2(x)
sec⁡(x) sec⁡(x)tan⁡(x)
csc⁡(x) −csc⁡(x)cot⁡(x)
arcsin⁡(x) 11−x2
arccos⁡(x) −11−x2
arctan⁡(x) 1x2+1
arccot⁡(x) −1x2+1
arcsec⁡(x) 1|x|x2−1
arccsc⁡(x) −1|x|x2−1

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

Circle, centre O, radius 1

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 < θ < ⁠1/2⁠ π 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:

Area(R1)=12 |OA| |OB|sin⁡θ=12sin⁡θ.

The area of the circular sector OAB is:

Area(R2)=12θ.

The area of the triangle OAC is given by:

Area(R3)=12 |OA| |AC|=12tan⁡θ.

Since each region is contained in the next, one has:

Area(R1)<Area(R2)<Area(R3)⟹12sin⁡θ<12θ<12tan⁡θ.

Moreover, since sin θ > 0 in the first quadrant, we may divide through by ⁠1/2⁠ sin θ, giving: 1<θsin⁡θ<1cos⁡θ⟹1>sin⁡θθ>cos⁡θ.

In the last step we took the reciprocals of the three positive terms, reversing the inequities.

Squeeze: The curves y = 1 and y = cos θ shown in red, the curve y = sin(θ)/θ shown in blue.

We conclude that for 0 < θ < ⁠1/2⁠ π, 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:

limθ→0+sin⁡θθ=1.

[1]

For the case where θ is a small negative number,

−π2<θ<0

, let

u=−θ

. Then, as

θ→0−

, we have

u→0+

. Using the fact that sine is an odd function,

limθ→0−sin⁡θθ=limu→0+sin⁡(−u)−u=limu→0+−sin⁡u−u=limu→0+sin⁡uu=1.

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.

limθ→0cos⁡θ−1θ = limθ→0(cos⁡θ−1θ)(cos⁡θ+1cos⁡θ+1) = limθ→0cos2θ−1θ(cos⁡θ+1).

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:

limθ→0cos⁡θ−1θ = limθ→0−sin2θθ(cos⁡θ+1) = (−limθ→0sin⁡θθ)(limθ→0sin⁡θcos⁡θ+1) = (−1)(02)=0.

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:

limθ→0tan⁡θθ = (limθ→0sin⁡θθ)(limθ→01cos⁡θ) = (1)(1) = 1.

Derivative of the sine function

We calculate the derivative of the sine function from the limit definition:

dd⁡θsin⁡θ=limδ→0sin⁡(θ+δ)−sin⁡θδ.

Using the angle addition formula sin(α+β) = sin α cos β + sin β cos α, we have:

dd⁡θsin⁡θ=limδ→0sin⁡θcos⁡δ+sin⁡δcos⁡θ−sin⁡θδ=limδ→0(sin⁡δδcos⁡θ+cos⁡δ−1δsin⁡θ).

Using the limits for the sine and for the cosine functions:

dd⁡θsin⁡θ=(1)cos⁡θ+(0)sin⁡θ=cos⁡θ.

Derivative of the cosine function

From the definition of derivative

We again calculate the derivative of the cosine function from the limit definition:

dd⁡θcos⁡θ=limδ→0cos⁡(θ+δ)−cos⁡θδ.

Using the angle addition formula cos(α+β) = cos α cos β – sin α sin β, we have:

dd⁡θcos⁡θ=limδ→0cos⁡θcos⁡δ−sin⁡θsin⁡δ−cos⁡θδ=limδ→0(cos⁡δ−1δcos⁡θ−sin⁡δδsin⁡θ).

Using the limits for the sine and cosine functions:

dd⁡θcos⁡θ=(0)cos⁡θ−(1)sin⁡θ=−sin⁡θ.

From the chain rule

To compute the derivative of the cosine function from the chain rule, first observe the following three facts:

  1. cos⁡θ=sin⁡(π2−θ)
  2. sin⁡θ=cos⁡(π2−θ)
  3. dd⁡θsin⁡θ=cos⁡θ

The first and the second are trigonometric identities, and the third is proven above. Using these three facts, we can write the following, dd⁡θcos⁡θ=dd⁡θsin⁡(π2−θ) We can differentiate this using the chain rule. Letting f(x)=sin⁡x,  g(θ)=π2−θ, we have: dd⁡θf(g(θ))=f′(g(θ))⋅g′(θ)=cos⁡(π2−θ)⋅(0−1)=−sin⁡θ. Therefore, we have proven that dd⁡θcos⁡θ=−sin⁡θ.

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:

dd⁡θtan⁡θ=limδ→0(tan⁡(θ+δ)−tan⁡θδ).

Using the well-known angle formula tan(α+β) = (tan α + tan β) / (1 - tan α tan β), we have:

dd⁡θtan⁡θ=limδ→0[tan⁡θ+tan⁡δ1−tan⁡θtan⁡δ−tan⁡θδ]=limδ→0[tan⁡θ+tan⁡δ−tan⁡θ+tan2θtan⁡δδ(1−tan⁡θtan⁡δ)].

Using the fact that the limit of a product is the product of the limits:

dd⁡θtan⁡θ=limδ→0tan⁡δδ×limδ→0(1+tan2θ1−tan⁡θtan⁡δ).

Using the limit for the tangent function, and the fact that tan δ tends to 0 as δ tends to 0:

dd⁡θtan⁡θ=1×1+tan2θ1−0=1+tan2θ.

We see immediately that:

dd⁡θtan⁡θ=1+sin2θcos2θ=cos2θ+sin2θcos2θ=1cos2θ=sec2θ.

From the quotient rule

One can also compute the derivative of the tangent function using the quotient rule.

dd⁡θtan⁡θ=dd⁡θsin⁡θcos⁡θ=(sin⁡θ)′⋅cos⁡θ−sin⁡θ⋅(cos⁡θ)′cos2θ=cos2θ+sin2θcos2θ

The numerator can be simplified to 1 by the Pythagorean identity, giving us,

1cos2θ=sec2θ

Therefore,

dd⁡θtan⁡θ=sec2θ

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

y=arcsin⁡x

Where

−π2≤y≤π2

Then

sin⁡y=x

Taking the derivative with respect to x on both sides and solving for dy/dx:

ddxsin⁡y=ddxx
cos⁡y⋅dydx=1

Substituting cos⁡y=1−sin2y in from above,

1−sin2y⋅dydx=1

Substituting x=sin⁡y in from above,

1−x2⋅dydx=1
dydx=11−x2

Differentiating the inverse cosine function

We let

y=arccos⁡x

Where

0≤y≤π

Then

cos⁡y=x

Taking the derivative with respect to x on both sides and solving for dy/dx:

ddxcos⁡y=ddxx
−sin⁡y⋅dydx=1

Substituting sin⁡y=1−cos2y in from above, we get

−1−cos2y⋅dydx=1

Substituting x=cos⁡y in from above, we get

−1−x2⋅dydx=1
dydx=−11−x2

Alternatively, once the derivative of arcsin⁡x is established, the derivative of arccos⁡x follows immediately by differentiating the identity arcsin⁡x+arccos⁡x=π/2 so that (arccos⁡x)′=−(arcsin⁡x)′.

Differentiating the inverse tangent function

We let

y=arctan⁡x

Where

−π2<y<π2

Then

tan⁡y=x

Taking the derivative with respect to x on both sides and solving for dy/dx:

ddxtan⁡y=ddxx

Left side:

ddxtan⁡y=sec2y⋅dydx=(1+tan2y)dydx using the Pythagorean identity

Right side:

ddxx=1

Therefore,

(1+tan2y)dydx=1

Substituting x=tan⁡y in from above, we get

(1+x2)dydx=1
dydx=11+x2

Differentiating the inverse cotangent function

We let

y=arccot⁡x

where 0<y<π. Then

cot⁡y=x

Taking the derivative with respect to x on both sides and solving for dy/dx:

ddxcot⁡y=ddxx

Left side:

ddxcot⁡y=−csc2y⋅dydx=−(1+cot2y)dydx using the Pythagorean identity

Right side:

ddxx=1

Therefore,

−(1+cot2y)dydx=1

Substituting x=cot⁡y,

−(1+x2)dydx=1
dydx=−11+x2

Alternatively, as the derivative of arctan⁡x is derived as shown above, then using the identity arctan⁡x+arccot⁡x=π2 follows immediately thatddxarccot⁡x=ddx(π2−arctan⁡x)=−11+x2

Differentiating the inverse secant function

Using implicit differentiation

Let

y=arcsec⁡x ∣|x|≥1

Then

x=sec⁡y∣ y∈[0,π2)∪(π2,π]
dxdy=sec⁡ytan⁡y=|x|x2−1

(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 x2−1 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.)

dydx=1|x|x2−1

Using the chain rule

Alternatively, the derivative of arcsecant may be derived from the derivative of arccosine using the chain rule.

Let

y=arcsec⁡x=arccos⁡(1x)

Where

|x|≥1 and y∈[0,π2)∪(π2,π]

Then, applying the chain rule to arccos⁡(1x):

dydx=−11−(1x)2⋅(−1x2)=1x21−1x2=1x2x2−1x2=1x2x2−1=1|x|x2−1

Differentiating the inverse cosecant function

Using implicit differentiation

Let

y=arccsc⁡x ∣|x|≥1

Then

x=csc⁡y ∣ y∈[−π2,0)∪(0,π2]
dxdy=−csc⁡ycot⁡y=−|x|x2−1

(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 x2−1 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.)

dydx=−1|x|x2−1

Using the chain rule

Alternatively, the derivative of arccosecant may be derived from the derivative of arcsine using the chain rule.

Let

y=arccsc⁡x=arcsin⁡(1x)

Where

|x|≥1 and y∈[−π2,0)∪(0,π2]

Then, applying the chain rule to arcsin⁡(1x):

dydx=11−(1x)2⋅(−1x2)=−1x21−1x2=−1x2x2−1x2=−1x2x2−1=−1|x|x2−1

See also

References

Bibliography