Skip to main content
Mathematics LibreTexts

2.3: Derivatives of Trigonometric Functions

  • Page ID
    116566
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    Section Preview
    Note to the Instructor (click to expand)
    This section introduces the student to the derivatives of all the trigonometric functions (and you should prove the derivative of either the sine or the cosine). This is a great opportunity to use the Product and Quotient Rules with new functions. Moreover, this is a wonderful opportunity to solve some trig equations when working with tangent lines.

    Operational Prerequisites (i.e., "Completing the Homework"): The following prerequisite topics (which have not already been listed as prerequisites in previous sections of this text) are needed to complete the homework.

    (click to expand)

    The following is a list of learning objectives for this section.

    Learning Objectives (click to expand)
    • Compute 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. Calculating 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^{\prime}(x)=\lim_{h \to 0}\dfrac{f(x+h)-f(x)}{h}.\nonumber\]Consequently, for values of \(h\) very close to \(0\),\[f^{\prime}(x) \approx \dfrac{f(x+h)-f(x)}{h}.\nonumber\]We see that by using \(h=0.01\),\[\dfrac{d}{dx}(\sin x) \approx \dfrac{\sin (x+0.01)-\sin x}{0.01}\nonumber\]By setting\[D(x)=\dfrac{\sin (x+0.01)-\sin x}{0.01}\nonumber\]and using a graphing utility, we can get a graph of an approximation to the derivative of \(\sin x\) (Figure \(\PageIndex{1}\)).

    The function D(x) = (sin(x + 0.01) - sin x)/0.01 is graphed. It looks a lot like a cosine curve.
    Figure \(\PageIndex{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\[\dfrac{d}{dx}(\sin x)=\cos x.\nonumber\]If we were to follow the same steps to approximate the derivative of the cosine function, we would find that\[\dfrac{d}{dx}(\cos x)=-\sin x.\nonumber\]

    Theorem: The Derivatives of \(\sin{(x)}\) and \(\cos{(x)}\)

    The derivative of the sine function is the cosine, and the derivative of the cosine function is the negative sine.\[\dfrac{d}{dx}(\sin{(x)})=\cos{( x)}\nonumber\]\[\dfrac{d}{dx}(\cos{(x)})=-\sin{( x)}\nonumber\]

    Proof

    Because the proofs for \(\frac{d}{dx}(\sin x)=\cos x\) and \(\frac{d}{dx}(\cos x)=-\sin x\) use similar techniques, we provide only the proof for \(\frac{d}{dx}(\sin x)=\cos x\). Before beginning, recall two important trigonometric limits:\[\displaystyle \lim_{h \to 0}\dfrac{\sin h}{h}=1 \quad \text{and} \quad \displaystyle \lim_{h \to 0}\dfrac{\cos h-1}{h}=0.\nonumber\]Before we get too far in the proof, it is important to remind ourselves that these limits were only proved using radian measure. As such, the remainder of this proof assumes radian measure! If we wish to work in degrees, we must adjust a lot of our work (as such, we will not work in degrees). The graphs of \(y=\frac{\sin h}{h}\) and \(y=\frac{\cos h-1}{h}\) are shown in Figure \(\PageIndex{2}\).

    The function y = (sin h)/h and y = (cos h – 1)/h are graphed. They both have discontinuities on the y-axis.
    Figure \(\PageIndex{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)=\sin x\cos h+\cos x\sin h.\nonumber\]Now that we have gathered all the necessary equations and identities, we proceed with the proof.\[\begin{array}{rclcl} \dfrac{d}{dx}(\sin x) & = & \displaystyle \lim_{h \to 0}\dfrac{\sin(x+h)-\sin x}{h} & \quad & \left( \text{definition of the derivative} \right) \\[16pt] & = & \displaystyle \lim_{h \to 0}\dfrac{\sin x\cos h+\cos x\sin h-\sin x}{h} & \quad & \left( \text{Sum of Angles Identity} \right) \\[16pt] & = & \displaystyle \lim_{h \to 0}\left(\dfrac{\sin x\cos h-\sin x}{h}+\dfrac{\cos x\sin h}{h}\right) & \quad & \left( \text{regrouping} \right) \\[16pt] & = & \displaystyle \lim_{h \to 0}\left(\sin x\left(\dfrac{\cos h-1}{h}\right)+(\cos x)\left(\dfrac{\sin h}{h}\right)\right) & \quad & \left( \text{factoring} \right) \\[16pt] & = & \displaystyle (\sin x)\lim_{h \to 0}\left(\dfrac{\cos h-1}{h}\right)+(\cos x)\lim_{h \to 0}\left(\dfrac{\sin h}{h}\right) & \quad & \left( \text{factoring} \right) \\[16pt] & = & (\sin x)(0)+(\cos x)(1) & & \\[16pt] & = & \cos x & \\[16pt] \end{array}\nonumber\]

    Q.E.D.

    Figure \(\PageIndex{3}\) shows the relationship between the graph of \(f(x)=\sin x\) and its derivative \(f^{\prime}(x)=\cos x\). Notice that at the points where \(f(x)=\sin x\) has a horizontal tangent, its derivative \(f^{\prime}(x)=\cos x\) takes on the value zero. We also see that where f\((x)=\sin x\) is increasing, \(f^{\prime}(x)=\cos x>0\) and where \(f(x)=\sin x\) is decreasing, \(f^{\prime}(x)=\cos x<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 \(\PageIndex{3}\): Where \(f(x)\) has a maximum or a minimum, \(f^{\prime}(x)=0\). That is, \(f^{\prime}(x)=0\) where \(f(x)\) has a horizontal tangent. These points are noted with dots on the graphs.
    Example \(\PageIndex{1}\): Differentiating a Function Containing \(\sin x\)

    Find the derivative of \(f(x)=5x^3\sin x\).

    Solution

    Using the Product Rule, we have\[\begin{array}{rcl} f^{\prime}(x) & = & \dfrac{d}{dx}(5x^3) \cdot \sin x+\dfrac{d}{dx}(\sin x) \cdot 5x^3 \\[16pt] & = & 15x^2 \cdot \sin x+\cos x \cdot 5x^3. \\[16pt] \end{array}\nonumber\]After simplifying, we obtain\[f^{\prime}(x)=15x^2\sin x+5x^3\cos x.\nonumber\]

    Checkpoint \(\PageIndex{1}\)

    Find the derivative of \(f(x)=\sin x\cos x\).

    Answer

    \[f^{\prime}(x)=\cos^2x-\sin^2x\nonumber\]

    Example \(\PageIndex{2}\): Finding the Derivative of a Function Containing cos x

    Find the derivative of \(g(x)=\frac{\cos x}{4x^2}\).

    Solution

    By applying the Quotient Rule, we have\[g^{\prime}(x)=\dfrac{(-\sin x)4x^2-8x(\cos x)}{(4x^2)^2}.\nonumber\]Simplifying, we obtain\[g^{\prime}(x)=\dfrac{-4x^2\sin x-8x\cos x}{16x^4}=\dfrac{-x\sin x-2\cos x}{4x^3}.\nonumber\]

    Checkpoint \(\PageIndex{2}\)

    Find the derivative of \(f(x)=\frac{x}{\cos x}\).

    Answer

    \(f^{\prime}(x) = \frac{\cos x+x\sin x}{\cos^2x}\)

    Example \(\PageIndex{3}\): 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)=2\sin t-t\) for \(0 \leq t \leq 2 \pi \). At what times is the particle at rest?

    Solution

    To determine when the particle is at rest, set \(s^{\prime}(t)=v(t)=0\). Begin by finding \(s^{\prime}(t)\). We obtain\[s^{\prime}(t)=2 \cos t-1,\nonumber\]so we must solve\[2 \cos t-1=0\text{ for }0 \leq t \leq 2 \pi .\nonumber\]The solutions to this equation are \(t=\frac{\pi}{3}\) and \(t=\frac{5 \pi}{3}\). Thus the particle is at rest at times \(t=\frac{\pi}{3}\) and \(t=\frac{5 \pi}{3}\).

    Checkpoint \(\PageIndex{3}\)

    A particle moves along a coordinate axis. Its position at time \(t\) is given by \(s(t)=\sqrt{3}t+2\cos t\) for \(0 \leq t \leq 2 \pi \). At what times is the particle at rest?

    Answer

    \(t=\frac{\pi}{3},\quad t=\frac{2 \pi}{3}\)

    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.

    Example \(\PageIndex{4}\): The Derivative of the Tangent Function

    Find the derivative of \(f(x)=\tan x\).

    Solution

    Start by expressing \(\tan x\) as the quotient of \(\sin x\) and \(\cos x\):\[f(x)=\tan x =\dfrac{\sin x}{\cos x}.\nonumber\]Now apply the Quotient Rule to obtain\[f^{\prime}(x)=\dfrac{\cos x\cos x-(-\sin x)\sin x}{(\cos x)^2}.\nonumber\]Simplifying, we obtain\[f^{\prime}(x)=\dfrac{\cos^2x+\sin^2 x}{\cos^2x}.\nonumber\]Recognizing that \(\cos^2x+\sin^2x=1\), by the Pythagorean Identity, we now have\[f^{\prime}(x)=\dfrac{1}{\cos^2x}.\nonumber\]Finally, use the identity \(\sec x=\frac{1}{\cos x}\) to obtain\[f^{\prime}(x)=\text{sec}^2 x.\nonumber\]

    Checkpoint \(\PageIndex{4}\)

    Find the derivative of \(f(x)=\cot x \).

    Answer

    \(f^{\prime}(x)=-\csc^2 x\)

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

    Theorem: Derivatives of \(\tan{(x)}\), \(\cot{(x)}\), \(\sec{(x)}\), and \(\csc{(x)}\)

    The derivatives of the remaining trigonometric functions (along with the sine and cosine) are as follows:\[\begin{array}{rclcrcl} \dfrac{d}{dx}(\sin{(x)}) & = & \cos{(x)} & \quad & \dfrac{d}{dx}(\csc{(x)}) & = & -\csc{(x)} \cot{(x)} \\[16pt] \dfrac{d}{dx}(\cos{(x)}) & = & -\sin{(x)} & \quad & \dfrac{d}{dx}(\sec{(x)}) & = & \sec{(x)} \tan{(x)} \\[16pt] \dfrac{d}{dx}(\tan{(x)}) & = & \sec^2{(x)} & \quad & \dfrac{d}{dx}(\cot{(x)}) & = & -\csc^2{(x)} \\[16pt] \end{array}\nonumber\]

    Getting these formulas cemented in your memory as quickly and efficiently as possible is critical. The following might help a little:

    A Trick to Remember

    The derivatives of the cosine, cosecant, and cotangent have a negative sign in their formulas (not to be construed as "they are always negative," which is not true).

    Example \(\PageIndex{5}\): Finding the Equation of a Tangent Line

    Find the equation of a line tangent to the graph of \(f(x)=\cot x\) at \(x=\frac{\pi}{4}\).

    Solution

    To find the equation of the tangent line, we need a point and a slope at that point. To find the point, compute\[f\left(\dfrac{\pi}{4}\right)=\cot\dfrac{\pi}{4}=1.\nonumber\]Thus the tangent line passes through the point \(\left(\frac{\pi}{4},1\right)\). Next, find the slope by finding the derivative of \(f(x)=\cot x\) and evaluating it at \(\frac{\pi}{4}\):\[f^{\prime}(x)=-\csc^2 x \quad \text{and} \quad f^{\prime}\left(\dfrac{\pi}{4}\right)=-\csc^2\left(\dfrac{\pi}{4}\right)=-2.\nonumber\]Using the point-slope equation of the line, we obtain\[y-1=-2\left(x-\dfrac{\pi}{4}\right)\nonumber\]or equivalently,\[y=-2x+1+\dfrac{\pi}{2}.\nonumber\]

    Example \(\PageIndex{6}\): Finding the Derivative of Trigonometric Functions

    Find the derivative of \(f(x)=\csc x+x\tan x \).

    Solution

    To find this derivative, we must use both the Sum Rule and the Product Rule. Using the Sum Rule, we find\[f^{\prime}(x)=\dfrac{d}{dx}(\csc x)+\dfrac{d}{dx}(x\tan x ).\nonumber\]In the first term, \(\frac{d}{dx}(\csc x)=-\csc x\cot x \), and by applying the Product Rule to the second term we obtain\[\dfrac{d}{dx}(x\tan x )=(1)(\tan x )+(\sec^2 x)(x).\nonumber\]Therefore, we have\[f^{\prime}(x)=-\csc x\cot x +\tan x +x\sec^2 x.\nonumber\]

    Checkpoint \(\PageIndex{6}\)

    Find the derivative of \(f(x)=2\tan x -3\cot x \).

    Answer

    \(f^{\prime}(x)=2\sec^2 x+3\csc^2 x\)

    Example \(\PageIndex{7}\)

    Evaluate.\[\dfrac{d}{dx} \left( \dfrac{\tan{(x)}}{1 + \cos{(x)}} \right)\nonumber\]

    Solution

    \[\begin{array}{rclcl} \dfrac{d}{dx} \left( \dfrac{\tan{(x)}}{1 + \cos{(x)}} \right) & = & \dfrac{\frac{d}{dx}\left( \tan{(x)} \right) \left[1 + \cos{(x)}\right] - \tan{(x)} \dfrac{d}{dx} \left( 1 + \cos{(x)} \right)}{\left[ 1 + \cos{(x)} \right]^2} & \quad & \left(\text{Quotient Rule}\right) \\[16pt] & = & \dfrac{\sec^2{(x)} \left[1 + \cos{(x)}\right] - \tan{(x)}\left[ -\sin{(x)} \right]}{\left[ 1 + \cos{(x)} \right]^2} & & \\[16pt] & = & \dfrac{\sec^2{(x)} \left[1 + \cos{(x)}\right] + \sin{(x)} \tan{(x)}}{\left[ 1 + \cos{(x)} \right]^2} & & \\[16pt] \end{array}\nonumber\]The tricky thing about trigonometric functions is the number of identities and the ultimate desire to simplify answers. It's often best to perform a few extra steps to see if any algebra or Trigonometry could simplify this result further.\[\begin{array}{rclcl} \dfrac{\sec^2{(x)} \left[1 + \cos{(x)}\right] + \sin{(x)} \tan{(x)}}{\left[ 1 + \cos{(x)} \right]^2} & = & \dfrac{\left[1 + \cos{(x)}\right] + \cos{(x)} \sin^2{(x)}}{\cos^2{(x)} \left[ 1 + \cos{(x)} \right]^2} & \quad & \left(\text{multiplying by }\dfrac{\cos^2{(x)}}{\cos^2{(x)}}\right) \\[16pt] & = & \dfrac{\left[1 + \cos{(x)}\right] + \cos{(x)} \left[1 - \cos^2{(x)}\right]}{\cos^2{(x)} \left[ 1 + \cos{(x)} \right]^2} & \quad & \left(\text{Pythagorean Identity}\right) \\[16pt] & = & \dfrac{\left[1 + \cos{(x)}\right] + \cos{(x)} \left[1 - \cos{(x)}\right]\left[1 + \cos{(x)}\right]}{\cos^2{(x)} \left[ 1 + \cos{(x)} \right]^2} & \quad & \left(\text{Difference of Squares}\right) \\[16pt] & = & \dfrac{\left[1 + \cos{(x)}\right]\left(1 + \cos{(x)} \left[1 - \cos{(x)}\right]\right)}{\cos^2{(x)} \left[ 1 + \cos{(x)} \right]^2} & \quad & \left(\text{factoring}\right) \\[16pt] & = & \dfrac{\cancel{\left[1 + \cos{(x)}\right]}\left(1 + \cos{(x)} \left[1 - \cos{(x)}\right]\right)}{\cos^2{(x)} \left[ 1 + \cos{(x)} \right]^{\cancelto{1}{2}}} & \quad & \left(\text{canceling}\right) \\[16pt] & = & \dfrac{1 + \cos{(x)} - \cos^2{(x)}}{\cos^2{(x)} \left[ 1 + \cos{(x)} \right]} & \quad & \left(\text{distributing}\right) \\[16pt] \end{array}\nonumber\]As you can see, our efforts to arrive at a more "simplified" form have not paid off. Any of these answers are equivalent, and none are really "simpler" than others; however, it is always advisable to perform a few extra steps like this to see if your results simplify (they often will).

    Checkpoint \(\PageIndex{7}\)

    Find the slope of the line tangent to the graph of \(f(x)=\tan x\) at \(x=\frac{\pi}{6}\).

    Answer

    \(\frac{4}{3}\)

    Higher-Order Derivatives

    The higher-order derivatives of \(\sin x\) and \(\cos x\) follow a repeating pattern. By following the pattern, we can find any higher-order derivative of \(\sin x\) and \(\cos x\).

    Example \(\PageIndex{8}\): Finding Higher-Order Derivatives of \(y=\sin x\)

    Find the first four derivatives of \(y=\sin x\).

    Solution

    Each step in the chain is straightforward:\[\begin{array}{rcl} y & = & \sin x \\[16pt] \dfrac{dy}{dx} & = & \cos x \\[16pt] \dfrac{d^2y}{dx^2} & = & -\sin x \\[16pt] \dfrac{d^3y}{dx^3} & = & -\cos x \\[16pt] \dfrac{d^4y}{dx^4} & = & \sin x \\[16pt] \end{array}\nonumber\]

    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 \(\sin x\) equals \(\sin x\), so\[\dfrac{d^4}{dx^4}(\sin x)=\dfrac{d^8}{dx^8}(\sin x)=\dfrac{d^{12}}{dx^{12}}(\sin x)= \ldots =\dfrac{d^{4n}}{dx^{4n}}(\sin x)=\sin x\nonumber\]\[\dfrac{d^5}{dx^5}(\sin x)=\dfrac{d^9}{dx^9}(\sin x)=\dfrac{d^{13}}{dx^{13}}(\sin x)= \ldots =\dfrac{d^{4n+1}}{dx^{4n+1}}(\sin x)=\cos x.\nonumber\]

    Checkpoint \(\PageIndex{8}\)

    For \(y=\cos x\), find \(\frac{d^4y}{dx^4}\).

    Answer

    \(\cos x\)

    Example \(\PageIndex{9}\): Using the Pattern for Higher-Order Derivatives of \(y=\sin x\)

    Find \(\frac{d^{74}}{dx^{74}}(\sin x)\).

    Solution

    We can see right away that for the 74th derivative of \(\sin x\), \(74=4(18)+2\), so\[\dfrac{d^{74}}{dx^{74}}(\sin x)=\dfrac{d^{72+2}}{dx^{72+2}}(\sin x)=\dfrac{d^2}{dx^2}(\sin x)=-\sin x.\nonumber\]

    Checkpoint \(\PageIndex{9}\)

    For \(y=\sin x\), find \(\frac{d^{59}}{dx^{59}}(\sin x)\).

    Answer

    \(-\cos x\)

    Example \(\PageIndex{10}\): 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)=2-\sin t\). Find \(v( \pi /4)\) and \(a( \pi /4)\). Compare these values and decide whether the particle is speeding up or slowing down.

    Solution

    First find \(v(t)=s^{\prime}(t)\).\[v(t)=s^{\prime}(t)=-\cos t .\nonumber\]Thus,\[v\left(\dfrac{\pi}{4}\right)=-\dfrac{1}{\sqrt{2}}=-\dfrac{\sqrt{2}}{2}.\nonumber\]Next, find \(a(t)=v^{\prime}(t)\). Thus, \(a(t)=v^{\prime}(t)=\sin t\) and we have\[a\left(\dfrac{\pi}{4}\right)=\dfrac{1}{\sqrt{2}}=\dfrac{\sqrt{2}}{2}.\nonumber\]Since \(v\left(\frac{\pi}{4}\right)=-\frac{\sqrt{2}}{2}<0\) and \(a\left(\frac{\pi}{4}\right)=\frac{\sqrt{2}}{2}>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 traveling. Consequently, the particle is slowing down.

    Checkpoint \(\PageIndex{10}\)

    A block attached to a spring is moving vertically. Its position at time t is given by \(s(t)=2\sin t\). Find \(v\left(\frac{5 \pi}{6}\right)\) and \(a\left(\frac{5 \pi}{6}\right)\). Compare these values and decide whether the block is speeding up or slowing down.

    Answer

    \(v\left(\frac{5 \pi}{6}\right)=-\sqrt{3}<0\) and \(a\left(\frac{5 \pi}{6}\right)=-1<0\). The block is speeding up.


    This page titled 2.3: Derivatives of Trigonometric Functions is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Gilbert Strang & Edwin “Jed” Herman via source content that was edited to the style and standards of the LibreTexts platform.