(D6) Proving Elementary Derivatives#

By the end of the lesson you will be able to:

  • prove the formulas for the trigonometric derivatives.

  • prove the formulas for the inverse trigonomentric derivatives.

  • prove the formulas for the logarithmic derivatives.

Review Videos#

These are the videos for the topics we covered during class time (in case you want to go back and review what we covered).


Elementary Form Derivatives#

Now that we have looked at all of our different derivative rules and techniques, we can actually prove many of the elementary form derivatives listed on the tables below.

Technically, all we need to know are the 3 derivatives for sine, cosine, and the natural exponential function.

\[ \dfrac{d}{dx}\big[ \sin x \big] = \cos x \qquad \quad \dfrac{d}{dx}\big[ \cos x \big] = \sin x \]
\[ \dfrac{d}{dx}\big[ e^x \big] = e^x \]

Everything else can be proved from these using either: product rule, quotient rule, chain rule, or implicit differentiation. Although it is still a very good idea to have all of these elementary form derivatives memorized.

(As usual, we use the convention that the angle for the trigonometric functions are given in radians.)


Derivative of Trigonometric and Inverse Trigonometric Functions
Derivative of Exponential and Logarithmic Functions

Example 1#

Use derivative rules to prove the following derivative formulas:

  1. \(\dfrac{d}{dx}\big[\tan x\big] = \sec^2 x\)

  2. \(\dfrac{d}{dx}\big[\sec x\big] = \sec x \tan x\)

Click through the tabs to see the steps of our solution.

The first thing we need to do is rewrite each of these in terms of the sine and cosine functions.

We start by rewriting the \(\tan(\cdot)\) function in terms of sine and cosine:

\[ \tan x = \dfrac{\sin x}{\cos x} \]

This is a quotient, with an \(x\) term in both the top and bottom of the fraction. So we can use quotient rule.

\[\begin{split} \begin{aligned} \dfrac{d}{dx}\big[\tan x\big] & = \dfrac{d}{dx}\left[\dfrac{\sin x}{\cos x}\right] \\ & \\ & = \dfrac{ \big[ \sin x\big]'\cos x - \sin x\big[ \cos x\big]' }{\big(\cos x \big)^2} \\ & \\ & = \dfrac{ \big( \cos x\big)\cos x - \sin x\big( -\sin x\big) }{\big(\cos x \big)^2} \\ & \\ & = \dfrac{ \cos^2 x + \sin^2 x }{\big(\cos x \big)^2} \\ \end{aligned} \end{split}\]

From here we can simplify using some of our trigonometric identities: \(\sin^2 \theta +\cos^2\theta = 1\) and \(\sec\theta = \tfrac{1}{\cos \theta}\).

\[\begin{split} \begin{aligned} & = \dfrac{ 1 }{\big(\cos x \big)^2} \\ & \\ & = \left(\dfrac{ 1 }{\cos x }\right)^2 \\ & \\ & = \left(\sec x \right)^2 \\ \end{aligned} \end{split}\]

Which is the result we wanted to show!

The work will be similar to what we showed for the tangent function \(\tan (\cdot )\).

Try this one for yourself using one or more of the following trigonometric identities:

\[\begin{split} \begin{aligned} \tan \theta & = \dfrac{\sin \theta }{\cos \theta} \\ & \\ \cot \theta & = \dfrac{\cos \theta }{\sin \theta} \\ & \\ \sec \theta & = \dfrac{1 }{\cos \theta} \\ & \\ \csc \theta & = \dfrac{1 }{\sin \theta} \\ & \\ \sin^2 \theta & + \cos^2 \theta = 1 \\ & \\ \sec^2 \theta & = 1+ \tan^2 \theta \\ \end{aligned} \end{split}\]

Inverse Functions#

Definition of an Inverse Function

The function \(f^{-1}\) is the inverse function of \(f\) provided:

\[ y = f^{-1}(x) \iff x=f(y) \]

for any \(x\) in the range of \(f\).

Note: The \(-1\) that we see here is purely part of the notation. It is not actually an exponent. There is a significant difference between the inverse of a function, and the reciprocal.

Cancellation Properties

  1. For all \(x\) in the domain of \(f\) we have \(f^{-1}\big( f(x) \big) = x\)

  2. For all \(x\) in the domain of \(f^{-1}\) we have \(f\big( f^{-1}(x) \big) = x\)


Example 2#

Use implicit differentiation to show:

\[ \dfrac{d}{dx}\big[\sin^{-1} x\big] = \dfrac{1}{\sqrt{1-x^2}} \]

Click through the tabs to see the steps of our solution.

The first step is to use the definition of the inverse function.

The first step is to apply the definition of the inverse function so that in some way we can rewrite our expression using the original \(\sin (\cdot )\) function instead of its inverse.

To simplify the notation, let’s rename the output of our function \(y\). That is, let:

\[ y = \sin^{-1} x \]

Apply the \(\sin (\cdot )\) function to both sides of this equation to get:

\[ \sin (y ) = \sin \big( \sin^{-1} x \big) \]

Using the cancellation property of inverse functions, the right side simplifies to just \(x\):

\[ \sin (y ) = x \]

Now we can use implicit differentiation to calculate \(y'\).

\[\begin{split} \begin{aligned} \big[\sin y \big]' & = \big[x\big]' & \qquad\text{Apply Derivative}\\ & & \\ \cos y \cdot y' & = 1 & \qquad\text{Differentiate}\\ \end{aligned} \end{split}\]

Next we need to convert all instances of \(y\) back to \(x\). For trigonometric functions, one way to do this is with a right triangle.

If we go back to our equation from earlier, \(\sin y = x\), we can use this to set up the sides of our right triangle:

\[ \dfrac{x}{1} = x = \sin y = \dfrac{\text{opp}}{\text{hyp}} \]

Comparing the fractions, we see that the length of the opposite side (\(\text{opp}\)) of the right triangle must be \(x\), and the length of the hypotenuse (\(\text{hyp}\)) must be \(1\).

Using the Pythagorean Theorem, we can then calculate the length of the adjacent side (\(\text{adj}\)) to be \(\sqrt{1-x^2}\).

Therefore, we can convert \(\cos y\) into \(x\)-terms using:

\[ \cos y = \dfrac{\text{adj}}{\text{hyp}} = \dfrac{\sqrt{1-x^2}}{1} \]

Finally, we are ready to solve for our derivative \(y'\):

\[\begin{split} \begin{aligned} \cos y \cdot y' & = 1 \\ & \\ \sqrt{1-x^2} \cdot y' & = 1 & \\ y' & = \dfrac{1}{\sqrt{1-x^2}} \end{aligned} \end{split}\]

Which is the result we wanted to show!


Example 3#

Use implicit differentiation to show:

\[ \dfrac{d}{dx}\big[\tan^{-1} x\big] = \dfrac{1}{1+x^2} \]

Click through the tabs to see the steps of our solution.

The first step is to use the definition of the inverse function.

The first step is to apply the definition of the inverse function so that in some way we can rewrite our expression using the original \(\tan (\cdot )\) function instead of its inverse.

To simplify the notation, let’s rename the output of our function \(y\). That is, let:

\[ y = \tan^{-1} x \]

Apply the \(\tan (\cdot )\) function to both sides of this equation to get:

\[ \tan (y ) = \tan \big( \tan^{-1} x \big) \]

Using the cancellation property of inverse functions, the right side simplifies to just \(x\):

\[ \tan (y ) = x \]

Now we can use implicit differentiation to calculate \(y'\).

\[\begin{split} \begin{aligned} \big[\tan y \big]' & = \big[x\big]' & \qquad\text{Apply Derivative}\\ & & \\ \sec^2 y \cdot y' & = 1 & \qquad\text{Differentiate}\\ \end{aligned} \end{split}\]

Next we need to convert all instances of \(y\) back to \(x\). For trigonometric functions, one way to do this is with a right triangle.

If we go back to our equation from earlier, \(\tan y = x\), we can use this to set up the sides of our right triangle:

\[ \dfrac{x}{1} = x = \tan y = \dfrac{\text{opp}}{\text{adj}} \]

Comparing the fractions, we see that the length of the opposite side (\(\text{opp}\)) of the right triangle must be \(x\), and the length of the adjacent side (\(\text{adj}\)) must be \(1\).

Using the Pythagorean Theorem, we can then calculate the length of the hypotenuse (\(\text{hyp}\)) to be \(\sqrt{1+x^2}\).

Therefore, we can convert \(\sec y\) into \(x\)-terms using:

\[ \sec y = \dfrac{1}{\cos y} = \dfrac{\text{hyp}}{\text{adj}} = \dfrac{\sqrt{1+x^2}}{1} \]

Finally, we are ready to solve for our derivative \(y'\):

\[\begin{split} \begin{aligned} \sec^2 y \cdot y' & = 1 \\ & \\ \big(\sec y\big)^2 \cdot y' & = 1 \\ & \\ \big(\sqrt{1+x^2}\big)^2 \cdot y' & = 1 \\ & \\ \big(1+x^2\big) \cdot y' & = 1 \\ & \\ y' & = \dfrac{1}{1+x^2} \\ \end{aligned} \end{split}\]

Which is the result we wanted to show!


Example 4#

Use Chain Rule to show:

\[ \dfrac{d}{dx}\big[b^{x}\big] = b^x \ln b \]

Click through the tabs to see the steps of our solution.

Hint: First rewrite the exponential function in terms of the natural exponential function, using:

\[ b^x = e^{x\ln b} \]

The first (and major step) in proving this derivative rule is to rewrite the general exponentila in terms of the natural exponential function, using:

\[ b^x = e^{x\ln b} \]

Why is this true though? A few reasons:

  • There is a log property that let’s us bring constant multiples inside the log function where they become an exponent: \(x\ln b= \ln b^x\)

  • Inverse functions \(e^{(\cdot)}\) and \(\ln(\cdot)\) have cancellation properties when they are directly next to each other in a composition.

Putting this together, we have:

\[ b^x = e^{x\ln b} = e^{\ln b^x} = \underbrace{\color{red}{e}^{\color{red}{\ln} b^x}}_{\text{Cancellation}} = b^x \]

With this different version of our funciton in mind, we’re able to calculate the derivative using the Chain Rule.

\[\begin{split} \begin{aligned} \dfrac{d}{dx}\big[b^{x}\big] = \dfrac{d}{dx}\bigg[e^{x\ln b}\bigg] & = \underbrace{e^{x\ln b}\cdot \big[ x\ln b \big]'}_{\text{Chain Rule}} \\ & \\ & = e^{x\ln b}\cdot \ln b \\ & \\ & = b^x \cdot \ln b \\ \end{aligned} \end{split}\]

Which is the result we wanted to show! (Note that in the last step, we used that property again to convert the exponential term back to just \(b^x\).)


Example 5#

Use implicit differentiation to show:

\[ \dfrac{d}{dx}\big[\log_{b} x\big] = \dfrac{1}{x\ln b} \]

Click through the tabs to see the steps of our solution.

The first step is to use the definition of the inverse function.

The first step is to apply the definition of the inverse function so that in some way we can rewrite our expression using the original \(b^{ (\cdot )}\) function instead of its inverse. (Remember that logarithmic functions are just inverse exponential functions.)

To simplify the notation, let’s rename the output of our function, \(y\). That is, let:

\[ y = \log_b x \]

Apply the \(b^{ (\cdot )}\) function to both sides of this equation to get:

\[ b^y = b^{\log_b x} \]

Using the cancellation property of inverse functions, the right side simplifies to just \(x\):

\[ b^y = x \]

Now we can use implicit differentiation to calculate \(y'\).

\[\begin{split} \begin{aligned} \big[ b^y \big]' & = \big[x\big]' & \qquad\text{Apply Derivative}\\ & & \\ b^y \ln b \cdot y' & = 1 & \qquad\text{Differentiate}\\ \end{aligned} \end{split}\]

Next we need to convert all instances of \(y\) back to \(x\). The only \(y\) term in our equation is the \(b^y\) term, and we know what this is after we used the cancellation property:

\[ b^y = x \]

Using this gives us:

\[\begin{split} \begin{aligned} b^y \ln b \cdot y' & = 1 \\ & \\ x \ln b \cdot y' & = 1 \\ \end{aligned} \end{split}\]

And then solving for \(y'\) we get:

\[ y' = \dfrac{1}{x\ln b} \]

Which is the result we wanted to show!

Example 6#

Use Chain Rule to show:

\[ \dfrac{d}{dx}\big[\ln |x| \big] = \dfrac{1}{x} \]

Click through the tabs to see the steps of our solution.

The first step is rewrite the absolute value function as a piecewise function.

We start by rewriting the absolute value function as a piecewsie function:

\[\begin{split} \ln |x| =\begin{cases} \ln (x) & \quad \text{if} \quad x > 0 \quad \text{positive}\\ \ln (-x) & \quad \text{if} \quad x < 0 \quad \text{negative}\\ \end{cases} \end{split}\]

Take a moment to convince yourself that this is correct. Essentially, the absolute value function:

  • if the input is positive, does nothing. \(|x|=x\) if \(x\) is positive.

  • if the input is negative, then the absolute value function introduces a double negative. \(|x|=-x\) if \(x\) is negative. Negating a negative number, gives you a positive.

If \(x\) is positive, we can calculate the derivative of \(\ln |x|\) using the the first piece of our piecewise function:

\[ \dfrac{d}{dx} \big[\ln |x| \big] = \dfrac{d}{dx} \big[\ln (x) \big] = \dfrac{1}{x} \]

This proves the result when \(x\) is positive.

If \(x\) is negative, we can calculate the derivative of \(\ln |x|\) using the the second piece of our piecewise function:

\[ \dfrac{d}{dx} \big[\ln |x| \big] = \dfrac{d}{dx} \big[\ln (-x) \big] = \underbrace{\dfrac{1}{-x} \cdot \big[ -x \big]'}_{\text{Chain Rule}} = \dfrac{1}{-x} \cdot (-1) = \dfrac{1}{x} \]

This proves the result when \(x\) is negative. And therefore, we have proved the result for all possible cases of \(x\). Note that \(\ln 0\) is undefined, so we do not need to actually consider the case when \(x=0\).