Skip to main content
Logo image

Coordinated Calculus

Section 2.4 Derivatives of Other Trigonometric Functions

One of the powerful themes in trigonometry comes from a very simple idea: locating a point on the unit circle.
Figure 2.50. The unit circle and the definition of the sine and cosine functions.
Because each angle θ in standard position corresponds to one and only one point (x,y) on the unit circle, the x- and y-coordinates of this point are each functions of θ. In fact, this is the very definition of cos⁑(θ) and sin⁑(θ) i.e. cos⁑(θ) is the x-coordinate of the point on the unit circle corresponding to the angle θ, and sin⁑(θ) is the y-coordinate. From this simple definition, all of trigonometry is founded. For instance, the Pythagorean Identity,
sin2⁑(θ)+cos2⁑(θ)=1,
is a restatement of the Pythagorean Theorem, applied to the right triangle shown above in Figure 2.50.
There are four other trigonometric functions, each defined in terms of the sine and/or cosine functions.
  • The tangent function is defined by tan⁑(ΞΈ)=sin⁑(ΞΈ)cos⁑(ΞΈ);
  • the cotangent function is its reciprocal: cot⁑(ΞΈ)=cos⁑(ΞΈ)sin⁑(ΞΈ).
  • The secant function is the reciprocal of the cosine function, sec⁑(ΞΈ)=1cos⁑(ΞΈ);
  • and the cosecant function is the reciprocal of the sine function, csc⁑(ΞΈ)=1sin⁑(ΞΈ).
These six trigonometric functions together offer us a wide range of flexibility in problems involving right triangles.
Because we know the derivatives of the sine and cosine functions, we can now develop shortcut differentiation rules for the tangent, cotangent, secant, and cosecant functions. In Example 2.51 we will work through the steps to find the derivative of tan⁑(x).

Example 2.51.

Consider the function f(x)=tan⁑(x), and remember that tan⁑(x)=sin⁑(x)cos⁑(x).
  1. What is the domain of f?
  2. Use the quotient rule to show that one expression for fβ€²(x) is
    fβ€²(x)=cos⁑(x)cos⁑(x)+sin⁑(x)sin⁑(x)cos2⁑(x).
  3. What is the Pythagorean Identity? How can this identity be used to find a simpler form for fβ€²(x)?
  4. Recall that sec⁑(x)=1cos⁑(x). How can we express fβ€²(x) in terms of the secant function?
  5. For what values of x is fβ€²(x) defined? How does this set compare to the domain of f?
Hint.
  1. When is the denominator of f equal to 0?
  2. Remember that
    ddx[p(x)q(x)]=pβ€²(x)q(x)βˆ’p(x)qβ€²(x)[q(x)]2.
  3. The Pythagorean Identity comes from the right triangle shown earlier in Figure 2.50.
  4. Remember that cos2⁑(x)=[cos⁑(x)]2, and use the simpler form for fβ€²(x) that you found in part (c).
  5. When is the denominator of fβ€² equal to 0?
Answer.
  1. x≠nπ2 for any odd integer n.
  2. fβ€²(x)=(cos⁑(x))cos⁑(x)βˆ’sin⁑(x)(βˆ’sin⁑(x))(cos⁑(x))2.
  3. sin2⁑(θ)+cos2⁑(θ)=1.
  4. fβ€²(x)=sec2⁑(x).
  5. x≠nπ2 for any odd integer n.
Solution.
  1. Since sin⁑(x) is defined for every real value of x and cos⁑(x) is only equal to zero at odd integer multiples of Ο€2, it follows that the quotient tan⁑(x)=sin⁑(x)cos⁑(x) is defined whenever x≠…,βˆ’3Ο€2,βˆ’Ο€2,Ο€2,3Ο€2,….
  2. Since f(x)=tan⁑(x) is the quotient of sin⁑(x) and cos⁑(x), then to differentiate f using the quotient rule we first need ddx[sin⁑(x)]=cos⁑(x) and ddx[cos⁑(x)]=βˆ’sin⁑(x). Then
    fβ€²(x)=(ddx[sin⁑(x)cos⁑(x)]=(ddx[sin⁑(x)]cos⁑(x)βˆ’sin⁑(x)ddx[cos⁑(x)](cos⁑(x))2=((cos⁑(x))cos⁑(x)βˆ’sin⁑(x)(βˆ’sin⁑(x))(cos⁑(x))2=(cos⁑(x)cos⁑(x)+sin⁑(x)sin⁑(x)cos2⁑(x)
  3. The Pythagorean Identity states that sin2⁑(ΞΈ)+cos2⁑(ΞΈ)=1 for any real number ΞΈ. We can rewrite the form of fβ€² found in part (b) as
    fβ€²(x)=cos2⁑(x)+sin2⁑(x)cos2⁑(x),
    and use the Pythagorean Identity to reduce the numerator to 1. Thus a simpler expression for fβ€²(x) is
    fβ€²(x)=1cos2⁑(x).
  4. Since sec⁑(x)=1cos⁑(x), then
    fβ€²(x)=1cos2⁑(x)=sec2⁑(x).
  5. Just like the original function f, this derivative function fβ€² can be expressed as a quotient, so its domain will be the values of x at which the numerator is defined and the denominator is nonzero. Since fβ€²(x)=1cos2⁑(x), the numerator is always defined and the denominator is zero exactly when cos⁑(x)=0, which occurs at odd integer multiples of Ο€2. Thus the domain of fβ€² consists of the values xβ‰ nΟ€2, where n is an odd integer (positive or negative). This is the same as the domain of f.

Subsection 2.4.1 Derivatives of the Cotangent, Secant, and Cosecant functions

In Example 2.51 we found that the derivative of the tangent function can be expressed in several ways, with its simplest form written in terms of the secant function. Next, we develop the derivative of the cotangent function.
Let g(x)=cot⁑(x). To find gβ€²(x), we observe that g(x)=cos⁑(x)sin⁑(x) and apply the quotient rule. Hence
gβ€²(x)=((βˆ’sin⁑(x))sin⁑(x)βˆ’cos⁑(x)cos⁑(x)sin2⁑(x)=(βˆ’sin2⁑(x)+cos2⁑(x)sin2⁑(x)
Applying the Pythagorean Identity, we see that gβ€²(x)=βˆ’1sin2⁑(x). Now recall that csc⁑(x)=1sin⁑(x); it follows that we can express gβ€² by the rule
gβ€²(x)=βˆ’csc2⁑(x).
Note that neither g nor gβ€² is defined when sin⁑(x)=0, which occurs at every integer multiple of Ο€. Hence we have the following rule.

Derivative of the Cotangent Function.

For all real numbers x such that xβ‰ kΟ€, where k=0,Β±1,Β±2,…,
ddx[cot⁑(x)]=βˆ’csc2⁑(x).
Notice that the derivative of the cotangent function is very similar to the derivative of the tangent function we discovered in Example 2.51.

Derivative of the Tangent Function.

For all real numbers x such that xβ‰ (2k+1)Ο€2, where k=0,Β±1,Β±2,…,
ddx[tan⁑(x)]=sec2⁑(x).
In the next two examples, we develop the rules for differentiating the secant and cosecant functions.

Example 2.52.

Let h(x)=sec⁑(x) and recall that sec⁑(x)=1cos⁑(x).
  1. What is the domain of h?
  2. Use the quotient rule to develop a formula for hβ€²(x) that is expressed completely in terms of sin⁑(x) and cos⁑(x).
  3. How can you use other relationships among trigonometric functions to write hβ€²(x) only in terms of tan⁑(x) and sec⁑(x)?
  4. What is the domain of hβ€²? How does this compare to the domain of h?
Hint.
  1. For what values of x is cos⁑(x)=0?
  2. Don’t forget that ddx[1]=0.
  3. Consider rewriting sin⁑(x)cos2⁑(x) as 1cos⁑(x)β‹…sin⁑(x)cos⁑(x).
  4. Observe that cos⁑(x) is still present in the denominator of hβ€²(x).
Answer.
  1. All real numbers x such that xβ‰ (2k+1)Ο€2, where k=0,Β±1,Β±2,….
  2. hβ€²(x)=sin⁑(x)cos2⁑(x).
  3. hβ€²(x)=sec⁑(x)tan⁑(x).
  4. h and hβ€² have the same domain: all real numbers x such that xβ‰ (2k+1)Ο€2, where k=0,Β±1,Β±2,….
Solution.
  1. h(x)=sec⁑(x) is defined for all x for which cos⁑(x)β‰ 0. Hence the domain of h is all real numbers x such that xβ‰ (2k+1)Ο€2, where k=0,Β±1,Β±2,….
  2. By the quotient rule,
    hβ€²(x)=0βˆ’1(βˆ’sin⁑(x))cos2⁑(x)=sin⁑(x)cos2⁑(x).
  3. Observe that hβ€²(x)=sin⁑(x)cos2⁑(x)=1cos⁑(x)β‹…sin⁑(x)cos⁑(x), so
    hβ€²(x)=sec⁑(x)tan⁑(x).
  4. The derivative hβ€²(x) is, like h(x), defined for all values of x for which cos⁑(x)β‰ 0. Therefore, h and hβ€² have the same domain: all real numbers x such that xβ‰ (2k+1)Ο€2, where k=0,Β±1,Β±2,….

Example 2.53.

Let p(x)=csc⁑(x) and recall that csc⁑(x)=1sin⁑(x).
  1. What is the domain of p?
  2. Use the quotient rule to develop a formula for pβ€²(x) that is expressed completely in terms of sin⁑(x) and cos⁑(x).
  3. How can you use other relationships among trigonometric functions to write pβ€²(x) only in terms of cot⁑(x) and csc⁑(x)?
  4. What is the domain of pβ€²? How does this compare to the domain of p?
Hint.
  1. For what values of x is sin⁑(x)=0?
  2. Don’t forget that ddx[1]=0.
  3. Consider rewriting cos⁑(x)sin2⁑(x) as 1sin⁑(x)β‹…cos⁑(x)sin⁑(x).
  4. Observe that sin⁑(x) is still present in the denominator of hβ€²(x).
Answer.
  1. All real numbers x such that xβ‰ kΟ€, where k=0,Β±1,Β±2,….
  2. hβ€²(x)=βˆ’cos⁑(x)sin2⁑(x).
  3. hβ€²(x)=βˆ’csc⁑(x)cot⁑(x).
  4. p and pβ€² have the same domain: all real numbers x such that xβ‰ kΟ€, where k=0,Β±1,Β±2,….
Solution.
  1. p(x)=csc⁑(x) is defined for all x for which sin⁑(x)β‰ 0. Hence the domain of h is all real numbers x such that xβ‰ kΟ€, where k=0,Β±1,Β±2,….
  2. By the quotient rule,
    hβ€²(x)=0βˆ’1β‹…(cos⁑(x))sin2⁑(x)=βˆ’cos⁑(x)sin2⁑(x).
  3. Observe that hβ€²(x)=βˆ’cos⁑(x)sin2⁑(x)=βˆ’1sin⁑(x)β‹…cos⁑(x)sin⁑(x), so
    hβ€²(x)=βˆ’csc⁑(x)cot⁑(x).
  4. The derivative pβ€²(x) is, like p(x), defined for all values of x for which sin⁑(x)β‰ 0. Therefore, p and pβ€² have the same domain: all real numbers x such that xβ‰ kΟ€, where k=0,Β±1,Β±2,….
Using the quotient rule we have determined the derivatives of the tangent, cotangent, secant, and cosecant functions, expanding our overall library of functions we can differentiate. Observe that just as the derivative of any polynomial function is a polynomial, and the derivative of any exponential function is another exponential function, so it is that the derivative of any basic trigonometric function is another function that consists of basic trigonometric functions. This makes sense because all trigonometric functions are periodic, and hence their derivatives will be periodic, too.
As always, the derivative retains all of its fundamental meaning, both as an instantaneous rate of change of the function under consideration and as the slope of the tangent line to the graph of that same function.

Example 2.54.

Answer each of the following questions. Where a derivative is requested, be sure to label the derivative function with its name using proper notation.
  1. Let f(x)=5sec⁑(x)βˆ’2csc⁑(x). Find the slope of the tangent line to f at the point where x=Ο€3.
  2. Let p(z)=z2sec⁑(z)βˆ’zcot⁑(z). Find the instantaneous rate of change of p at the point where z=Ο€4.
  3. Let h(t)=tan⁑(t)t2+1βˆ’2etcos⁑(t). Find hβ€²(t).
  4. Let g(r)=rsec⁑(r)5r. Find gβ€²(r).
  5. When a mass hangs from a spring and is set in motion, the object’s position oscillates in such a way that the size of the oscillations decreases. This is usually called a damped oscillation. Suppose that for a particular object, its displacement from equilibrium (where the object sits at rest) is modeled by the function
    s(t)=15sin⁑(t)et.
    Assume that s is measured in inches and t in seconds. Sketch a graph of this function for tβ‰₯0 to see how it represents the situation described. Then compute dsdt, state the units of this function, and explain what it tells you about the object’s motion. Finally, compute and interpret sβ€²(2).
Hint.
  1. What rule(s) can help you determine fβ€²(x)?
  2. Note that p is a sum of two functions. What rule is needed to differentiate each term in the sum?
  3. Observe that h is a sum of two functions; the first term in the sum is a quotient, while the second is a product.
  4. What is the overall structure of g? What is the algebraic structure of the numerator of g?
  5. Keep in mind that the derivative of position tells us the instantaneous velocity.
Answer.
  1. 103+43.
  2. pβ€²(Ο€4)=Ο€22+Ο€2162βˆ’1+Ο€2.
  3. hβ€²(t)=(t2+1)sec2⁑(t)βˆ’2ttan⁑(t)(t2+1)2βˆ’2etcos⁑(t)+2etsin⁑(t).
  4. gβ€²(r)=sec⁑(r)+rsec⁑(r)tan⁑(r)βˆ’rsec⁑(r)ln⁑(5)5r.
  5. sβ€²(2)=15cos⁑(2)βˆ’15sin⁑(2)e2β‰ˆβˆ’2.69 inches per second.
Solution.
  1. Using the sum and constant multiple rules along with the formulas for the derivatives of sec⁑(x) and csc⁑(x), we find that
    fβ€²(x)=5sec⁑(x)tan⁑(x)+2csc⁑(x)cot⁑(x).
    Therefore, the slope of the tangent line to f at the point where x=Ο€3 is given by
    fβ€²(Ο€3)=(5sec⁑(Ο€3)tan⁑(Ο€3)+2csc⁑(Ο€3)cot⁑(Ο€3)=(5β‹…2β‹…3+2β‹…23β‹…13=103+43.
  2. By the sum rule and two applications of the product rule, we have
    pβ€²(z)=(ddz[z2sec⁑(z)]βˆ’ddz[zcot⁑(z)]=([2zsec⁑(z)+z2sec⁑(z)tan⁑(z)]βˆ’[cot⁑(z)+z(βˆ’csc2⁑(z))]=(2zsec⁑(z)+z2sec⁑(z)tan⁑(z)βˆ’cot⁑(z)+zcsc2⁑(z).
    Thus, the instantaneous rate of change of p at the point where z=Ο€4 is
    pβ€²(Ο€4)=(2β‹…Ο€4sec⁑(Ο€4)+(Ο€4)2sec⁑(Ο€4)tan⁑(Ο€4)βˆ’cot⁑(Ο€4)+Ο€4csc2⁑(Ο€4)=(2β‹…Ο€4β‹…2+Ο€216β‹…2βˆ’1+Ο€4β‹…2=(Ο€22+Ο€2162βˆ’1+Ο€2.
  3. Using the sum and constant multiple rules, followed by the quotient rule on the first term and the product rule on the second, we find that
    hβ€²(t)=(ddt[tan⁑(t)t2+1]βˆ’2ddt[etcos⁑(t)]=(sec2⁑(t)(t2+1)βˆ’tan⁑(t)(2t)(t2+1)2βˆ’2(etcos⁑(t)+et(βˆ’sin⁑(t)))=((t2+1)sec2⁑(t)βˆ’2ttan⁑(t)(t2+1)2βˆ’2etcos⁑(t)+2etsin⁑(t).
  4. Note that g is fundamentally a quotient, so we need to use the quotient rule. But the numerator of g is a product, so the product rule will be required to compute the derivative of the top function. Executing the quotient rule and proceeding, we find that
    gβ€²(r)=(ddr[rsec⁑(r)]5rβˆ’rsec⁑(r)ddr[5r](5r)2=([sec⁑(r)+rsec⁑(r)tan⁑(r)]5rβˆ’rsec⁑(r)β‹…5rln⁑(5)(5r)2=(sec⁑(r)+rsec⁑(r)tan⁑(r)βˆ’rsec⁑(r)ln⁑(5)5r.
  5. Figure 2.55. The graph of y=s(t), where s(t)=15sin⁑(t)et models the motion of a mass on a spring.
    By the quotient rule,
    dsdt=15cos⁑(t)β‹…etβˆ’15sin⁑(t)β‹…et(et)2=15cos⁑(t)βˆ’15sin⁑(t)et.
    The function dsdt=sβ€²(t) measures the instantaneous vertical velocity, in inches per second, of the mass that is attached to the spring. In particular, sβ€²(2)=15cos⁑(2)βˆ’15sin⁑(2)e2β‰ˆβˆ’2.69 inches per second. This tells us that when precisely 2 seconds have passed, the mass is moving downward at an instantaneous rate of 2.69 inches per second.

Subsection 2.4.2 Summary

  • The derivatives of the other four trigonometric functions are
    ddx[tan⁑(x)]=sec2⁑(x),  ddx[cot⁑(x)]=βˆ’csc2⁑(x),
    ddx[sec⁑(x)]=sec⁑(x)tan⁑(x), and ddx[csc⁑(x)]=βˆ’csc⁑(x)cot⁑(x).
    Each derivative exists and is defined on the same domain as the original function. For example, both the tangent function and its derivative are defined for all real numbers x such that xβ‰ (2k+1)Ο€2, where k=0,Β±1,Β±2,….
  • The four rules for the derivatives of the tangent, cotangent, secant, and cosecant can be used along with the rules for power functions, exponential functions, and the sine and cosine, as well as the sum, constant multiple, product, and quotient rules, to quickly differentiate a wide range of different functions.

Exercises 2.4.3 Exercises

1. A sum and product involving tan⁑x.

Find the derivative of h(t)=ttan⁑t+cos⁑t
hβ€²(t)=

2. A quotient involving tan⁑t.

Let f(x)=5tan(x)x. Find the following:
1. fβ€²(x) =
2. fβ€²(2) =

3. A quotient of trigonometric functions.

Let f(x)=tan(x)βˆ’2sec(x). Find the following:
1. fβ€²(x) =
2. fβ€²(4) =

4. A quotient that involves a product.

Let f(x)=2x2tan(x)sec(x). Find the following:
1. fβ€²(x) =
2. fβ€²(1) =

5. Finding a tangent line equation.

Find the equation of the tangent line to the curve y=3tan⁑x at the point (Ο€/4,3). The equation of this tangent line can be written in the form y=mx+b where m is:
and where b is:

6. Oscillatory Motion.

An object moving vertically has its height at time t (measured in feet, with time in seconds) given by the function h(t)=3+2cos⁑(t)1.2t.
  1. What is the object’s instantaneous velocity when t=2?
  2. What is the object’s acceleration at the instant t=2?
  3. Describe in everyday language the behavior of the object at the instant t=2.

7. A product of trigonometric functions.

Let f(x)=sin⁑(x)cot⁑(x).
  1. Use the product rule to find fβ€²(x).
  2. True or false: for all real numbers x, f(x)=cos⁑(x).
  3. Explain why the function that you found in (a) is almost the opposite of the sine function, but not quite. Hint: convert all of the trigonometric functions in (a) to sines and cosines, and work to simplify. Think carefully about the domain of f and the domain of fβ€².

8. Combining Differentiation Rules.

Let p(z) be given by the rule
p(z)=ztan⁑(z)z2sec⁑(z)+1+3ez+1.
  1. Determine pβ€²(z).
  2. Find an equation for the tangent line to p at the point where z=0.
  3. At z=0, is p increasing, decreasing, or neither? Why?