# 2.2: The Sine and Cosine Function

$$\newcommand{\vecs}{\overset { \rightharpoonup} {\mathbf{#1}} }$$ $$\newcommand{\vecd}{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$$$\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 \|}$$ $$\newcommand{\inner}{\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 \|}$$ $$\newcommand{\inner}{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$$$\newcommand{\AA}{\unicode[.8,0]{x212B}}$$

Learning Objectives

In this section, we strive to understand the ideas generated by the following important questions:

• What is a graphical justification for why $$\frac { d } { d x } \left[ a ^ { x } \right] = a ^ { x } \ln ( a )$$?
• What do the graphs of $$y = \sin ( x )$$ and$$y = \cos ( x )$$ suggest as formulas for their respective derivatives?
• Once we know the derivatives of $$\sin(x)$$ and $$\cos(x)$$, how do previous derivative rules work when these functions are involved?

Throughout Chapter 2, we will be working to develop shortcut derivative rules that will help us to bypass the limit definition of the derivative in order to quickly determine the formula for $$f'(x)$$ when we are given a formula for $$f(x)$$. In Section 2.1, we learned the rule for power functions, that if $$f (x) = x ^n$$, then $$f'(x) = nx^{n−1}$$, and justified this in part due to results from different $$n$$-values when applying the limit definition of the derivative. We also stated the rule for exponential functions, that if $$a$$ is a positive real number and $$f (x) = a^x$$, then f'(x) = a x ln(a). Later in this present section, we are going to work to conjecture formulas for the sine and cosine functions, primarily through a graphical argument. To help set the stage for doing so, the following preview activity asks you to think about exponential functions and why it is reasonable to think that the derivative of an exponential function is a constant times the exponential function itself.

Preview Activity $$\PageIndex{1}$$

Consider the function $$g(x) = 2^ x$$, which is graphed in Figure $$\PageIndex{1}$$.

1. At each of $$x =$$ −2, −1, 0, 1, 2, use a straightedge to sketch an accurate tangent line to $$y = g(x)$$.
2. Use the provided grid to estimate the slope of the tangent line you drew at each point in (a).
3. Use the limit definition of the derivative to estimate $$g ' (0)$$ by using small values of $$h$$, and compare the result to your visual estimate for the slope of the tangent line to $$y = g(x)$$ at $$x = 0$$ in (b).
4. Based on your work in (a), (b), and (c), sketch an accurate graph of $$y = g ' (x)$$ on the axes adjacent to the graph of $$y = g(x)$$.
5. Write at least one sentence that explains why it is reasonable to think that $$g ' (x) = cg(x)$$, where $$c$$ is a constant. In addition, calculate $$ln(2)$$, and then discuss how this value, combined with your work above, reasonably suggests that $$g ' (x) = 2^{ x} ln(2)$$. Figure $$\PageIndex{1}$$: At left, the graph of y = g(x) = 2 x . At right, axes for plotting y = g 0 (x).

## The sine and cosine functions

The sine and cosine functions are among the most important functions in all of mathematics. Sometimes called the circular functions due to their genesis in the unit circle, these periodic functions play a key role in modeling repeating phenomena such as the location of a point on a bicycle tire, the behavior of an oscillating mass attached to a spring, tidal elevations, and more. Like polynomial and exponential functions, the sine and cosine functions are considered basic functions, ones that are often used in the building of more complicated functions. As such, we would like to know formulas for $$\frac { d } { d x } [ \sin ( x ) ]$$ and $$\frac { a } { d x } [ \cos ( x ) ]$$, and the next two activities lead us to that end.

Activity $$\PageIndex{1}$$

Consider the function $$f (x) = \sin(x)$$, which is graphed in Figure $$\PageIndex{2}$$ below. Note carefully that the grid in the diagram does not have boxes that are 1 × 1, but rather approximately 1.57 × 1, as the horizontal scale of the grid is $$π$$/2 units per box.

1. At each of $$x = −2π$$, $$- \frac { 3 \pi } { 2 }$$, $$−π$$, $$- \frac { \pi } { 2 }$$,$$0$$, (\frac { \pi } { 2 }) , (\pi), (\frac { 3 \pi } { 2 })\, $$2\pi)\, use a straightedge to sketch an accurate tangent line to \(y = f (x)$$.
2. Use the provided grid to estimate the slope of the tangent line you drew at each point. Pay careful attention to the scale of the grid.
3. Use the limit definition of the derivative to estimate $$f'(0)$$ by using small values of $$h$$, and compare the result to your visual estimate for the slope of the tangent line to $$y = f (x)$$ at $$x = 0$$ in (b). Using periodicity, what does this result suggest about $$f'(2π)$$? about $$f'(−2π)$$?
4. Based on your work in (a), (b), and (c), sketch an accurate graph of $$y = f'(x)$$ on the axes adjacent to the graph of $$y = f (x)$$.
5. What familiar function do you think is the derivative of $$f (x) = \sin(x)$$? Figure $$\PageIndex{2}$$: At left, the graph of y = f (x) = \sin(x).

Activity $$\PageIndex{2}$$

Consider the function $$g(x) = \cos(x)$$, which is graphed in Figure $$\PageIndex{3}$$ below. Note carefully that the grid in the diagram does not have boxes that are 1 × 1, but rather approximately 1.57 × 1, as the horizontal scale of the grid is $$π$$/2 units per box.

1. At each of $$x = −2π$$, $$- \frac { 3 \pi } { 2 }$$ , $$- \pi$$, $$0$$ , $$\frac { \pi } { 2 }$$, $$\pi$$ , $$\frac { 3 \pi } { 2 }$$, $$2 \pi$$ use a straightedge to sketch an accurate tangent line to y = g(x).
2. Use the provided grid to estimate the slope of the tangent line you drew at each point. Again, note the scale of the axes and grid.
3. Use the limit definition of the derivative to estimate $$g'( π ^2 )$$ by using small values of $$h$$, and compare the result to your visual estimate for the slope of the tangent line to $$y = g(x)$$ at $$x = \frac{\pi}{2}) in (b). Using periodicity, what does this result suggest about \(g ' (\frac{− 3π}{ 2} )? can symmetry on the graph help you estimate other slopes easily? 4. Based on your work in (a), (b), and (c), sketch an accurate graph of \(y = g ' (x)$$ on the axes adjacent to the graph of $$y = g(x)$$.
5. What familiar function do you think is the derivative of $$g(x) = \cos(x)$$? Figure $$\PageIndex{3}$$: At left, the graph of y = g(x) = \cos(x).

The results of the two preceding activities suggest that the sine and cosine functions not only have the beautiful interrelationships that are learned in a course in trigonometry – connections such as the identities

$\sin^2 (x) + \cos^2 (x) = 1$

and

$\cos \left(x − \dfrac{π}{2} \right) = \sin(x)$

– but that they are even further linked through calculus, as the derivative of each involves the other. The following rules summarize the results of the activities4 .

Sine and Cosine Functions

For all real numbers $$x$$,

$\dfrac{d}{dx} [\sin(x)] = \cos(x)$

and

$\dfrac{d}{dx} [\cos(x)] = − \sin(x)$

We have now added two additional functions to our library of basic functions whose derivatives we know: power functions, exponential functions, and the sine and cosine functions. The constant multiple and sum rules still hold, of course, and all of the inherent meaning of the derivative persists, regardless of the functions that are used to constitute a given choice of $$f (x)$$. The following activity puts our new knowledge of the derivatives of $$\sin(x)$$ and $$\cos(x)$$ to work.

Activity $$\PageIndex{3}$$

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. Determine the derivative of $$h(t) = 3 cos(t) − 4 sin(t)$$.
2. Find the exact slope of the tangent line to $$y = f (x) = 2x + \frac{\sin(x)}{ 2}$$ at the point where $$x = \frac{π}{ 6}$$.
3. Find the equation of the tangent line to $$y = g(x) = x^{ 2} + 2 \cos(x)$$ at the point where $$x = π ^2$$.
4. Determine the derivative of $$p(z) = z^{ 4} + 4 ^{z} + 4 cos(z) − sin(\frac{ π }{2})$$.
5. The function $$P(t) = 24 + 8 sin(t)$$ represents a population of a particular kind of animal that lives on a small island, where $$P$$ is measured in hundreds and t is measured in decades since January 1, 2010. What is the instantaneous rate of change of $$P$$ on January 1, 2030? What are the units of this quantity? Write a sentence in everyday language that explains how the population is behaving at this point in time.

## Summary

In this section, we encountered the following important ideas:

• If we consider the graph of an exponential function $$f (x) = a^ x$$ (where $$a$$ > 1), the graph of f'(x) behaves similarly, appearing exponential and as a possibly scaled version of the original function a x . For f (x) = 2 x , careful analysis of the graph and its slopes suggests that d dx [2 x ] = 2 x ln(2), which is a special case of the rule we stated in Section 2.1.
• By carefully analyzing the graphs of $$y = \sin(x)$$ and $$y = \cos(x)$$, plus using the limit definition of the derivative at select points, we found that $\dfrac{d}{ dx} [\sin(x)] = \cos(x)$ and $\dfrac{d}{dx} [\cos(x)] = − \sin(x).$
• We note that all previously encountered derivative rules still hold, but now may also be applied to functions involving the sine and cosine, plus all of the established meaning of the derivative applies to these trigonometric functions as well.

4These two rules may be formally proved using the limit definition of the derivative and the expansion identities for $$\sin(x + h)$$ and $$\cos(x + h)$$.