Lably
Skip to content

Differentiation of trigonometric functions

Mathematical process of finding the derivative of a trigonometric function

  • 5 min read
  • 2 chapters

Learn it on Lably

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 < θ < ⁠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.

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.

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⁡θ

Sign in to keep reading

One more chapter is free with a Lably account.

More in Calculus and analysis