Power Series and Applications: Background You’ll Need 3

  • Recognize and apply derivative patterns for exponential, logarithmic and trigonometric functions

Derivatives of the Sine and Cosine Functions

Simple harmonic motion, a type of periodic motion where the restoring force is directly proportional to the displacement, is best described using trigonometric functions like sine and cosine. The behavior of these functions, particularly how they change over time, is crucial in understanding motion dynamics. The derivatives of sine and cosine functions help us compute velocity and acceleration at any point in the motion, linking theoretical physics closely with calculus.

We begin our exploration of the derivative for the sine function by using the limit definition to estimate its derivative.

For a function [latex]f(x),[/latex] the derivative [latex]f^{\prime}(x)[/latex] is defined as:

[latex]f^{\prime}(x)=\underset{h\to 0}{\lim}\dfrac{f(x+h)-f(x)}{h}[/latex]

This allows us to approximate [latex]f^{\prime}(x)[/latex] for small values of [latex]h[/latex] as:

[latex]f^{\prime}(x)\approx \frac{f(x+h)-f(x)}{h}[/latex].

Using [latex]h=0.01[/latex], we estimate the derivative of the sine function as follows:

[latex]\frac{d}{dx}(\sin x)\approx \dfrac{\sin(x+0.01)-\sin x}{0.01}[/latex]

By defining [latex]D(x)=\frac{\sin(x+0.01)-\sin x}{0.01}[/latex] and plotting this using a graphing tool, we observe an approximation to the derivative of [latex]\sin x[/latex].

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 resulting graph of [latex]D(x)[/latex] closely resembles the cosine curve, which supports the derivative relationship.

Upon examination, [latex]D(x)[/latex] appears to be a close match to the graph of the cosine function. This graphical analysis provides a practical demonstration of the derivative, confirming that the derivative of [latex]\sin x[/latex] is indeed [latex]\cos x[/latex].

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

[latex]\frac{d}{dx}(\cos x)=−\sin x[/latex]

derivatives of [latex]\sin x[/latex] and [latex]\cos x[/latex]

The derivative of the sine function [latex]\sin x[/latex] is the cosine function [latex]\cos x[/latex].

[latex]\frac{d}{dx}(\sin x)= \cos x[/latex]

The derivative of the cosine function [latex]\cos x[/latex] is the negative sine function [latex]−\sin x[/latex].

[latex]\frac{d}{dx}(\cos x)=−\sin x[/latex]

The figure below shows the relationship between the graph of [latex]f(x)= \sin x[/latex] and its derivative [latex]f^{\prime}(x)= \cos x[/latex]. Notice that at the points where [latex]f(x)= \sin x[/latex] has a horizontal tangent, its derivative [latex]f^{\prime}(x)= \cos x[/latex] takes on the value zero. We also see that where [latex]f(x)= \sin x[/latex] is increasing, [latex]f^{\prime}(x)= \cos x>0[/latex] and where [latex]f(x)= \sin x[/latex] is decreasing, [latex]f^{\prime}(x)= \cos x<0[/latex].

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 [latex]f(x)[/latex] has a maximum or a minimum, [latex]f^{\prime}(x)=0[/latex]. That is, [latex]f^{\prime}(x)=0[/latex] where [latex]f(x)[/latex] has a horizontal tangent. These points are noted with dots on the graphs.

Find the derivative of [latex]f(x)=5x^3 \sin x[/latex].

Find the derivative of [latex]g(x)=\dfrac{\cos x}{4x^2}[/latex].

Derivative of the Exponential Function

The differentiation of exponential functions [latex]B(x)=b^x,[/latex] begins by confirming that [latex]b^x[/latex] is defined for all real numbers and is inherently continuous. We assume [latex]B^{\prime}(0)[/latex] exists and is positive. In this context, we delve deeper into proving that [latex]B(x)[/latex] is differentiable across its entire domain by making one key assumption: there exists a unique value [latex]b > 0[/latex] for which [latex]B^{\prime}(0)=1[/latex].

The graph of [latex]E(x)=e^x[/latex] is shown alongside the line [latex]y=x+1[/latex] in Figure 2, demonstrating that the tangent to [latex]E(x)=e^x[/latex] at [latex]x=0[/latex] has a slope of [latex]1[/latex]. This observation supports the hypothesis that the value of [latex]e[/latex] optimizes the slope at [latex]x=0[/latex] to exactly [latex]1[/latex].

Graph of the function ex along with its tangent at (0, 1), x + 1.
Figure 2. The tangent line to [latex]E(x)=e^x[/latex] at [latex]x=0[/latex] has slope 1.

Now that we understand the underlying behavior at [latex]x=0[/latex], let’s derive the general derivative formula for [latex]B(x)=b^x, \, b>0[/latex]. We start by applying the limit definition of the derivative:

[latex]B^{\prime}(0)=\underset{h\to 0}{\lim}\dfrac{b^{0+h}-b^0}{h}=\underset{h\to 0}{\lim}\dfrac{b^h-1}{h}[/latex]

Turning to [latex]B^{\prime}(x)[/latex], we obtain the following.

[latex]\begin{array}{lllll} B^{\prime}(x) & =\underset{h\to 0}{\lim}\frac{b^{x+h}-b^x}{h} & & & \text{Apply the limit definition of the derivative.} \\ & =\underset{h\to 0}{\lim}\frac{b^xb^h-b^x}{h} & & & \text{Note that} \, b^{x+h}=b^x b^h. \\ & =\underset{h\to 0}{\lim}\frac{b^x(b^h-1)}{h} & & & \text{Factor out} \, b^x. \\ & =b^x\underset{h\to 0}{\lim}\frac{b^h-1}{h} & & & \text{Apply a property of limits.} \\ & =b^x B^{\prime}(0) & & & \text{Use} \, B^{\prime}(0)=\underset{h\to 0}{\lim}\frac{b^{0+h}-b^0}{h}=\underset{h\to 0}{\lim}\frac{b^h-1}{h}. \end{array}[/latex]

We see that on the basis of the assumption that [latex]B(x)=b^x[/latex] is differentiable at [latex]0, \, B(x)[/latex] is not only differentiable everywhere, but its derivative is

[latex]B^{\prime}(x)=b^x B^{\prime}(0)[/latex]

For [latex]E(x)=e^x, \, E^{\prime}(0)=1[/latex]. Thus, we have [latex]E^{\prime}(x)=e^x[/latex]. (The value of [latex]B^{\prime}(0)[/latex] for an arbitrary function of the form [latex]B(x)=b^x, \, b>0[/latex], will be derived later.)

derivative of the natural exponential function

Let [latex]E(x)=e^x[/latex] be the natural exponential function. Then

[latex]E^{\prime}(x)=e^x[/latex]

 

In general,

[latex]\frac{d}{dx}(e^{g(x)})=e^{g(x)} g^{\prime}(x)[/latex]

If it helps, think of the formula as the chain rule being applied to natural exponential functions. The derivative of [latex]{e}[/latex] raised to the power of a function will simply be [latex]{e}[/latex] raised to the power of the function multiplied by the derivative of that function.

Find the derivative of [latex]f(x)=e^{\tan (2x)}[/latex].

Find the derivative of [latex]y=\dfrac{e^{x^2}}{x}[/latex].

Derivative of the Logarithmic Function

Now that we have the derivative of the natural exponential function, we can use implicit differentiation to find the derivative of its inverse, the natural logarithmic function.

derivative of the natural logarithmic function

If [latex]x>0[/latex] and [latex]y=\ln x[/latex], then

[latex]\frac{dy}{dx}=\dfrac{1}{x}[/latex]

 

More generally, let [latex]g(x)[/latex] be a differentiable function. For all values of [latex]x[/latex] for which [latex]g^{\prime}(x)>0[/latex], the derivative of [latex]h(x)=\ln(g(x))[/latex] is given by

[latex]h^{\prime}(x)=\dfrac{1}{g(x)} g^{\prime}(x)[/latex]

Find the derivative of [latex]f(x)=\ln(x^3+3x-4)[/latex]

Find the derivative of [latex]f(x)=\ln\left(\dfrac{x^2 \sin x}{2x+1}\right)[/latex]

Now that we can differentiate the natural logarithmic function, we can use this result to find the derivatives of [latex]y=\log_b x[/latex] and [latex]y=b^x[/latex] for [latex]b>0, \, b\ne 1[/latex].

derivatives of general exponential and logarithmic functions

Let [latex]b>0, \, b\ne 1[/latex], and let [latex]g(x)[/latex] be a differentiable function.

  1. If [latex]y=\log_b x[/latex], then
    [latex]\frac{dy}{dx}=\dfrac{1}{x \ln b}[/latex]

    More generally, if [latex]h(x)=\log_b (g(x))[/latex], then for all values of [latex]x[/latex] for which [latex]g(x)>0[/latex],

    [latex]h^{\prime}(x)=\dfrac{g^{\prime}(x)}{g(x) \ln b}[/latex]

  2. If [latex]y=b^x[/latex], then
    [latex]\frac{dy}{dx}=b^x \ln b[/latex]

    More generally, if [latex]h(x)=b^{g(x)}[/latex], then

    [latex]h^{\prime}(x)=b^{g(x)} g^{\prime}(x) \ln b[/latex]

Find the derivative of [latex]h(x)= \dfrac{3^x}{3^x+2}[/latex]

Find the slope of the line tangent to the graph of [latex]y=\log_2 (3x+1)[/latex] at [latex]x=1[/latex].