Derivatives of Trigonometric Functionsm53578Derivatives of Trigonometric FunctionsFind 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.147ddf25-f9d0-479f-be13-eab353ffee90One 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 FunctionsWe 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)=limh→0f(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.01By 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 ().
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 thatddx(sinx)=cosx.If we were to follow the same steps to approximate the derivative of the cosine function, we would find thatddx(cosx)=−sinx.The Derivatives of sin x and cos xThe derivative of the sine function is the cosine and the derivative of the cosine function is the negative sine.ddx(sinx)=cosxddx(cosx)=−sinxProofBecause 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:limh→0sinhh=1andlimh→0cosh−1h=0.The graphs of y=(sinh)h and y=(cosh−1)h are shown in .
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=limh→0sin(x+h)−sinxhApply the definitionof the derivative.=limh→0sinxcosh+cosxsinh−sinxhUse trig identity for the sine of the sum of two angles.=limh→0(sinxcosh−sinxh+cosxsinhh)Regroup.=limh→0(sinx(cosh−1h)+cosx(sinhh))Factor outsinxandcosx.=sinx·0+cosx·1Apply trig limit formulas.=cosxSimplify.□ 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.
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 sin xFind the derivative of f(x)=5x3sinx.Using the product rule, we havef′(x)=ddx(5x3)·sinx+ddx(sinx)·5x3=15x2·sinx+cosx·5x3.After simplifying, we obtainf′(x)=15x2sinx+5x3cosx.Find the derivative of f(x)=sinxcosx.f′(x)=cos2x−sin2xHintDon’t forget to use the product rule.Finding the Derivative of a Function Containing cos xFind the derivative of g(x)=cosx4x2.By applying the quotient rule, we haveg′(x)=(−sinx)4x2−8x(cosx)(4x2)2.Simplifying, we obtaing′(x)=−4x2sinx−8xcosx16x4=−xsinx−2cosx4x3.Find the derivative of f(x)=xcosx.cosx+xsinxcos2xHintUse the quotient rule.An Application to VelocityA particle moves along a coordinate axis in such a way that its position at time t is given by s(t)=2sint−t for 0≤t≤2π. At what times is the particle at rest?To determine when the particle is at rest, set s′(t)=v(t)=0. Begin by finding s′(t). We obtains′(t)=2cost−1,so we must solve2cost−1=0for0≤t≤2π.The solutions to this equation are t=π3 and t=5π3. Thus the particle is at rest at times t=π3 and t=5π3.A particle moves along a coordinate axis. Its position at time t is given by s(t)=3t+2cost for 0≤t≤2π. At what times is the particle at rest?t=π3,t=2π3HintUse the previous example as a guide.Derivatives of Other Trigonometric FunctionsSince 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 FunctionFind the derivative of f(x)=tanx.Start by expressing tanx as the quotient of sinx and cosx:f(x)=tanx=sinxcosx.Now apply the quotient rule to obtainf′(x)=cosxcosx−(−sinx)sinx(cosx)2.Simplifying, we obtainf′(x)=cos2x+sin2xcos2x.Recognizing that cos2x+sin2x=1, by the Pythagorean theorem, we now havef′(x)=1cos2x.Finally, use the identity secx=1cosx to obtainf′(x)=sec2x.Find the derivative of f(x)=cotx.f′(x)=−csc2xHintRewrite 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 cscxThe derivatives of the remaining trigonometric functions are as follows:ddx(tanx)=sec2xddx(cotx)=−csc2xddx(secx)=secxtanxddx(cscx)=−cscxcotx.Finding the Equation of a Tangent LineFind the equation of a line tangent to the graph of f(x)=cotx at x=π4.To find an equation of the tangent line, we need a point and a slope at that point. To find the point, computef(π4)=cotπ4=1.Thus the tangent line passes through the point (π4,1). Next, find the slope by finding the derivative of f(x)=cotx and evaluating it at π4:f′(x)=−csc2xandf′(π4)=−csc2(π4)=−2.Using the point-slope equation of the line, we obtainy−1=−2(x−π4)or equivalently,y=−2x+1+π2.Finding the Derivative of Trigonometric FunctionsFind the derivative of f(x)=cscx+xtanx.To find this derivative, we must use both the sum rule and the product rule. Using the sum rule, we findf′(x)=ddx(cscx)+ddx(xtanx).In the first term, ddx(cscx)=−cscxcotx, and by applying the product rule to the second term we obtainddx(xtanx)=(1)(tanx)+(sec2x)(x).Therefore, we havef′(x)=−cscxcotx+tanx+xsec2x.Find the derivative of f(x)=2tanx−3cotx.f′(x)=2sec2x+3csc2xHintUse 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.43HintEvaluate the derivative at x=π6.Higher-Order DerivativesThe 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=sinxFind the first four derivatives of y=sinx.Each step in the chain is straightforward:y=sinxdydx=cosxd2ydx2=−sinxd3ydx3=−cosxd4ydx4=sinx.AnalysisOnce 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 sin x equals sin x, sod4dx4(sinx)=d8dx8(sinx)=d12dx12(sinx)=…=d4ndx4n(sinx)=sinxd5dx5(sinx)=d9dx9(sinx)=d13dx13(sinx)=…=d4n+1dx4n+1(sinx)=cosx.For y=cosx, find d4ydx4.cosxHintSee the previous example.Using the Pattern for Higher-Order Derivatives of y=sinxFind d74dx74(sinx).We can see right away that for the 74th derivative of sinx,74=4(18)+2, sod74dx74(sinx)=d72+2dx72+2(sinx)=d2dx2(sinx)=−sinx.For y=sinx, find d59dx59(sinx).−cosxHintd59dx59(sinx)=d4·14+3dx4·14+3(sinx)An Application to AccelerationA particle moves along a coordinate axis in such a way that its position at time t is given by s(t)=2−sint. Find v(π/4) and a(π/4). Compare these values and decide whether the particle is speeding up or slowing down.First find v(t)=s′(t):v(t)=s′(t)=−cost.Thus,v(π4)=−12.Next, find a(t)=v′(t). Thus, a(t)=v′(t)=sint and we havea(π4)=12.Since v(π4)=−12<0 and a(π4)=12>0, we see that velocity and acceleration are acting in opposite directions; that is, the object is being accelerated in the direction opposite to the direction in which it is travelling. Consequently, the particle is 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.v(5π6)=−3<0 and a(5π6)=−1<0. The block is speeding up.HintUse as a guide.Key ConceptsWe can find the derivatives of sin x and cos x by using the definition of derivative and the limit formulas found earlier. The results areddxsinx=cosxddxcosx=−sinx.With these two formulas, we can determine the derivatives of all six basic trigonometric functions.Key Equations
Derivative of sine functionddx(sinx)=cosxDerivative of cosine functionddx(cosx)=−sinxDerivative of tangent functionddx(tanx)=sec2xDerivative of cotangent functionddx(cotx)=−csc2xDerivative of secant functionddx(secx)=secxtanxDerivative of cosecant functionddx(cscx)=−cscxcotx
For the following exercises, find dydx for the given functions.y=x2−secx+1dydx=2x−secxtanxy=3cscx+5xy=x2cotxdydx=2xcotx−x2csc2xy=x−x3sinxy=secxxdydx=xsecxtanx−secxx2y=sinxtanxy=(x+cosx)(1−sinx)dydx=(1−sinx)(1−sinx)−cosx(x+cosx)y=tanx1−secxy=1−cotx1+cotxdydx=2csc2x(1+cotx)2y=cosx(1+cscx)For the following exercises, find an 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.[T]f(x)=−sinx,x=0y=−x[T]f(x)=cscx,x=π2[T]f(x)=1+cosx,x=3π2y=x+2−3π2[T]f(x)=secx,x=π4[T]f(x)=x2−tanx,x=0y=−x[T]f(x)=5cotx,x=π4For the following exercises, find d2ydx2 for the given functions.y=xsinx−cosx3cosx−xsinxy=sinxcosxy=x−12sinx12sinxy=1x+tanxy=2cscx2cscx(csc2x+cot2x)y=sec2xFind all x values on the graph of f(x)=−3sinxcosx where the tangent line is horizontal.(2n+1)π4,wherenis an integerFind all x values on the graph of f(x)=x−2cosx for 0<x<2π where the tangent line has slope 2.Let f(x)=cotx. Determine the points on the graph of f for 0<x<2π where the tangent line(s) is (are) parallel to the line y=−2x.(π4,1),(3π4,−1),(5π4,1),(7π4,-1)[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.Let the position of a swinging pendulum in simple harmonic motion be given by s(t)=acost+bsint where a and b are constants, t measures time in seconds, and s measures position in centimeters. If the position is 0 cm and the velocity is 3 cm/s when t=0, find the values of a and b.a=0,b=3After 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.Sketch one period of the position function for t≥0.Find the velocity function.Sketch one period of the velocity function for t≥0.Determine the times when the velocity is 0 over one period.Find the acceleration function.Sketch one period of the acceleration function for t≥0.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.y′=5cos(x), increasing on (0,π2),(3π2,5π2), and (7π2,12)[T] The amount of rainfall per month in Phoenix, Arizona, can be approximated by y(t)=0.5+0.3cost, where t is 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.ddx(cotx)=−csc2xddx(secx)=secxtanxddx(cscx)=−cscxcotxUse the definition of derivative and the identitycos(x+h)=cosxcosh−sinxsinh to prove that d(cosx)dx=−sinx.For the following exercises, find the requested higher-order derivative for the given functions.d3ydx3 of y=3cosx3sinxd2ydx2 of y=3sinx+x2cosxd4ydx4 of y=5cosx5cosxd2ydx2 of y=secx+cotxd3ydx3 of y=x10−secx720x7−5tan(x)sec3(x)−tan3(x)sec(x)