3.5 Derivatives of Trigonometric Functions

Learning Objectives

  • Find the derivatives of the sine and cosine function.
  • Find the derivatives of the standard trigonometric functions.
  • Calculate the higher-order derivatives of the sine and cosine.

One of the most important types of motion in physics is simple harmonic motion, which is associated with such systems as an object with mass oscillating on a spring. Simple harmonic motion can be described by using either sine or cosine functions. In this section we expand our knowledge of derivative formulas to include derivatives of these and other trigonometric functions. We begin with the derivatives of the sine and cosine functions and then use them to obtain formulas for the derivatives of the remaining four trigonometric functions. Being able to calculate the derivatives of the sine and cosine functions will enable us to find the velocity and acceleration of simple harmonic motion.

Derivatives of the Sine and Cosine Functions

We begin our exploration of the derivative for the sine function by using the formula to make a reasonable guess at its derivative. Recall that for a function f(x),f(x),

f(x)=limh0f(x+h)f(x)h.

Consequently, for values of h very close to 0, f(x)f(x+h)f(x)h. We see that by using h=0.01,

ddx(sinx)sin(x+0.01)sinx0.01

By setting D(x)=sin(x+0.01)sinx0.01 and using a graphing utility, we can get a graph of an approximation to the derivative of sinx ((Figure)).

The function D(x) = (sin(x + 0.01) − sin x)/0.01 is graphed. It looks a lot like a cosine curve.

Figure 1. The graph of the function D(x) looks a lot like a cosine curve.

Upon inspection, the graph of D(x) appears to be very close to the graph of the cosine function. Indeed, we will show that

ddx(sinx)=cosx.

If we were to follow the same steps to approximate the derivative of the cosine function, we would find that

ddx(cosx)=sinx.

The Derivatives of sinx and cosx

The derivative of the sine function is the cosine and the derivative of the cosine function is the negative sine.

ddx(sinx)=cosx
ddx(cosx)=sinx

Proof

Because the proofs for ddx(sinx)=cosx and ddx(cosx)=sinx use similar techniques, we provide only the proof for ddx(sinx)=cosx. Before beginning, recall two important trigonometric limits we learned in Introduction to Limits:

limh0sinhh=1 and limh0cosh1h=0.

The graphs of y=sinhh and y=(cosh1)h are shown in (Figure).

The function y = (sin h)/h and y = (cos h – 1)/h are graphed. They both have discontinuities on the y-axis.

Figure 2. These graphs show two important limits needed to establish the derivative formulas for the sine and cosine functions.

We also recall the following trigonometric identity for the sine of the sum of two angles:

sin(x+h)=sinxcosh+cosxsinh.

Now that we have gathered all the necessary equations and identities, we proceed with the proof.

ddxsinx=limh0sin(x+h)sinxhApply the definition of the derivative.=limh0sinxcosh+cosxsinhsinxhUse trig identity for the sine of the sum of two angles.=limh0(sinxcoshsinxh+cosxsinhh)Regroup.=limh0(sinx(cosh1h)+cosx(sinhh))Factor outsinxandcosx.=sinx(0)+cosx(1)Apply trig limit formulas.=cosxSimplify.◼

(Figure) shows the relationship between the graph of f(x)=sinx and its derivative f(x)=cosx. Notice that at the points where f(x)=sinx has a horizontal tangent, its derivative f(x)=cosx takes on the value zero. We also see that where f(x)=sinx is increasing, f(x)=cosx>0 and where f(x)=sinx is decreasing, f(x)=cosx<0.

The functions f(x) = sin x and f’(x) = cos x are graphed. It is apparent that when f(x) has a maximum or a minimum that f’(x) = 0.

Figure 3. Where f(x) has a maximum or a minimum, f(x)=0. That is, f(x)=0 where f(x) has a horizontal tangent. These points are noted with dots on the graphs.

Differentiating a Function Containing sinx

Find the derivative of f(x)=5x3sinx.

Find the derivative of f(x)=sinxcosx.

Hint

Don’t forget to use the product rule.

Finding the Derivative of a Function Containing cosx

Find the derivative of g(x)=cosx4x2.

Find the derivative of f(x)=xcosx.

Hint

Use the quotient rule.

An Application to Velocity

A particle moves along a coordinate axis in such a way that its position at time t is given by s(t)=2sintt for 0t2π. At what times is the particle at rest?

A particle moves along a coordinate axis. Its position at time t is given by s(t)=3t+2cost for 0t2π. At what times is the particle at rest?

Hint

Use the previous example as a guide.

Derivatives of Other Trigonometric Functions

Since the remaining four trigonometric functions may be expressed as quotients involving sine, cosine, or both, we can use the quotient rule to find formulas for their derivatives.

The Derivative of the Tangent Function

Find the derivative of f(x)=tanx.

Find the derivative of f(x)=cotx.

Hint

Rewrite cotx as cosxsinx and use the quotient rule.

The derivatives of the remaining trigonometric functions may be obtained by using similar techniques. We provide these formulas in the following theorem.

Derivatives of tanx,cotx,secx, and cscx

The derivatives of the remaining trigonometric functions are as follows:

ddx(tanx)=sec2x
ddx(cotx)=csc2x
ddx(secx)=secxtanx
ddx(cscx)=cscxcotx

Finding the Equation of a Tangent Line

Find the equation of a line tangent to the graph of f(x)=cotx at x=π4.

Finding the Derivative of Trigonometric Functions

Find the derivative of f(x)=cscx+xtanx.

Find the derivative of f(x)=2tanx3cotx.

Hint

Use the rule for differentiating a constant multiple and the rule for differentiating a difference of two functions.

Find the slope of the line tangent to the graph of f(x)=tanx at x=π6.

Hint

Evaluate the derivative at x=π6.

Higher-Order Derivatives

The higher-order derivatives of sinx and cosx follow a repeating pattern. By following the pattern, we can find any higher-order derivative of sinx and cosx.

Finding Higher-Order Derivatives of y=sinx

Find the first four derivatives of y=sinx.

Analysis

Once we recognize the pattern of derivatives, we can find any higher-order derivative by determining the step in the pattern to which it corresponds. For example, every fourth derivative of sinx equals sinx, so

d4dx4(sinx)=d8dx8(sinx)=d12dx12(sinx)==d4ndx4n(sinx)=sinxd5dx5(sinx)=d9dx9(sinx)=d13dx13(sinx)==d4n+1dx4n+1(sinx)=cosx

For y=cosx, find d4ydx4.

Hint

See the previous example.

Using the Pattern for Higher-Order Derivatives of y=sinx

Find d74dx74(sinx).

For y=sinx, find d59dx59(sinx).

Hint

d59dx59(sinx)=d4(14)+3dx4(14)+3(sinx)

An Application to Acceleration

A particle moves along a coordinate axis in such a way that its position at time t is given by s(t)=2sint. Find v(π/4) and a(π/4). Compare these values and decide whether the particle is speeding up or slowing down.

A block attached to a spring is moving vertically. Its position at time t is given by s(t)=2sint. Find v(5π6) and a(5π6). Compare these values and decide whether the block is speeding up or slowing down.

Hint

Use (Figure) as a guide.

Key Concepts

  • We can find the derivatives of sinx and cosx by using the definition of derivative and the limit formulas found earlier. The results are
    ddxsinx=cosx and ddxcosx=sinx.
  • With these two formulas, we can determine the derivatives of all six basic trigonometric functions.

Key Equations

  • Derivative of sine function
    ddx(sinx)=cosx
  • Derivative of cosine function
    ddx(cosx)=sinx
  • Derivative of tangent function
    ddx(tanx)=sec2x
  • Derivative of cotangent function
    ddx(cotx)=csc2x
  • Derivative of secant function
    ddx(secx)=secxtanx
  • Derivative of cosecant function
    ddx(cscx)=cscxcotx

For the following exercises, find dydx for the given functions.

1. y=x2secx+1

2. y=3cscx+5x

3. y=x2cotx

4. y=xx3sinx

5. y=secxx

6. y=sinxtanx

7. y=(x+cosx)(1sinx)

8. y=tanx1secx

9. y=1cotx1+cotx

10. y=cosx(1+cscx)

For the following exercises, find the equation of the tangent line to each of the given functions at the indicated values of x. Then use a calculator to graph both the function and the tangent line to ensure the equation for the tangent line is correct.

11. [T] f(x)=sinx,x=0

12. [T] f(x)=cscx,x=π2

13. [T] f(x)=1+cosx,x=3π2

14. [T] f(x)=secx,x=π4

15. [T] f(x)=x2tanx,x=0

 

16. [T] f(x)=5cotx,x=π4

For the following exercises, find d2ydx2 for the given functions.

17. y=xsinxcosx

18. y=sinxcosx

19. y=x12sinx

20. y=1x+tanx

21. y=2cscx

22. y=sec2x

23. Find all x values on the graph of f(x)=3sinxcosx where the tangent line is horizontal.

24. Find all x values on the graph of f(x)=x2cosx for [latex]0

25. Let f(x)=cotx. Determine the point(s) on the graph of f for [latex]0

26. [T] A mass on a spring bounces up and down in simple harmonic motion, modeled by the function s(t)=6cost where s is measured in inches and t is measured in seconds. Find the rate at which the spring is oscillating at t=5 s.

27. Let the position of a swinging pendulum in simple harmonic motion be given by s(t)=acost+bsint. Find the constants a and b such that when the velocity is 3 cm/s, s=0 and t=0.

28. After a diver jumps off a diving board, the edge of the board oscillates with position given by s(t)=5cost cm at t seconds after the jump.

  1. Sketch one period of the position function for t0.
  2. Find the velocity function.
  3. Sketch one period of the velocity function for t0.
  4. Determine the times when the velocity is 0 over one period.
  5. Find the acceleration function.
  6. Sketch one period of the acceleration function for t0.

29. The number of hamburgers sold at a fast-food restaurant in Pasadena, California, is given by y=10+5sinx where y is the number of hamburgers sold and x represents the number of hours after the restaurant opened at 11 a.m. until 11 p.m., when the store closes. Find y and determine the intervals where the number of burgers being sold is increasing.

30. [T] The amount of rainfall per month in Phoenix, Arizona, can be approximated by y(t)=0.5+0.3cost, where t is the number of months since January. Find y and use a calculator to determine the intervals where the amount of rain falling is decreasing.

For the following exercises, use the quotient rule to derive the given equations.

31. ddx(cotx)=csc2x

32. ddx(secx)=secxtanx

33. ddx(cscx)=cscxcotx

34. Use the definition of derivative and the identity

cos(x+h)=cosxcoshsinxsinh to prove that ddx(cosx)=sinx.

For the following exercises, find the requested higher-order derivative for the given functions.

35. d3ydx3 of y=3cosx

36. d2ydx2 of y=3sinx+x2cosx

37. d4ydx4 of y=5cosx

38. d2ydx2 of y=secx+cotx

39. d3ydx3 of y=x10secx