Lecture: Section 3.6 Derivatives of Logarithmic and Inverse Trigonometric Functions

So far, we've built a strong toolkit for finding derivatives of polynomials, exponential functions, and trigonometric functions. Today, we add the final key pieces to our collection: logarithmic and inverse trigonometric functions.

Along the way, we'll discover a powerful new technique called logarithmic differentiation. This method can transform a messy problem involving products, quotients, and powers into a much simpler one. It also allows us to tackle a new type of function we couldn't differentiate before.


Topic 1: Derivatives of Logarithmic Functions

Our first goal is to find the derivative of the natural logarithmic function, $f(x) = \ln(x)$. We can find this by cleverly using its inverse relationship with the exponential function, $e^x$, and applying implicit differentiation.

Let $y = \ln(x)$. To solve for $x$, we can exponentiate both sides using base $e$:

$$e^y = e^{\ln(x)}$$

Recall that the exponential function $g(x)=e^x$ and the natural log function $f(x)=\ln(x)$ are inverses. By definition, this means that $g(f(x)) = e^{\ln(x)} = x$. Applying this property, our equation simplifies to:

$$e^y = x$$

Now, we can differentiate this implicit relation with respect to $x$:

$$\frac{d}{dx}(e^y) = \frac{d}{dx}(x)$$

Remembering the chain rule for the left side, we get:

$$e^y \cdot \frac{dy}{dx} = 1$$

Now, we solve for $\frac{dy}{dx}$:

$$\frac{dy}{dx} = \frac{1}{e^y}$$

This is the derivative, but it's in terms of $y$. We want it in terms of $x$. Since we established that $e^y = x$, we can substitute $x$ back into the expression:

$$\frac{dy}{dx} = \frac{1}{x}$$

This gives us our fundamental rule for the derivative of the natural logarithm.

Derivative of the Natural Logarithm

$$\frac{d}{dx}(\ln x) = \frac{1}{x}$$

Graph: Visualizing the Derivative of ln(x)

The graph below shows the function $f(x) = \ln(x)$ and its tangent line at a movable point $(a, \ln a)$. Notice how the slope of the tangent line, $m$, is always equal to the value of $1/a$. This provides a strong visual confirmation that $\frac{d}{dx}(\ln x) = \frac{1}{x}$.

When we combine this with the chain rule, we get the more general and useful form. If $u$ is a differentiable function of $x$:

$$\frac{d}{dx}(\ln u) = \frac{1}{u} \cdot \frac{du}{dx} = \frac{u'}{u}$$

To find the derivative for a logarithm with a different base, like $\log_a(x)$, we can use the change of base formula: $\log_a(x) = \frac{\ln(x)}{\ln(a)}$. Since $\ln(a)$ is just a constant, the derivative is:

$$\frac{d}{dx}(\log_a x) = \frac{d}{dx}\left(\frac{\ln x}{\ln a}\right) = \frac{1}{\ln a} \cdot \frac{d}{dx}(\ln x) = \frac{1}{x \ln a}$$

Check Your Understanding #1

Find the derivative of $f(x) = \ln(x^3 + \cos x)$.


Topic 2: The Technique of Logarithmic Differentiation

Logarithmic differentiation is not a formula to memorize, but rather a powerful method to use in two specific situations where normal differentiation rules are either extremely cumbersome or impossible to apply.

Case 1: Complicated Products, Quotients, and Powers

When faced with a function made of many pieces being multiplied, divided, or raised to powers, using the Product, Quotient, and Chain rules can be a nightmare. Logarithmic differentiation simplifies this by using properties of logarithms to break the function apart first.

Example 1: Taming a Complex Function

Differentiate $y = \frac{\sqrt{x+1} \cdot (x-2)^3}{(x+5)^4}$.

Solution using Logarithmic Differentiation:

Step 1: Take the natural logarithm of both sides.

$$\ln y = \ln\left(\frac{(x+1)^{1/2} (x-2)^3}{(x+5)^4}\right)$$

Before moving to Step 2, let's recall the key properties of logarithms. The quotient rule states $\ln(a/b) = \ln(a) - \ln(b)$, and the product rule states $\ln(a \cdot b) = \ln(a) + \ln(b)$. Combining these, an expression like $\ln(\frac{a \cdot b}{c})$ becomes $\ln(a \cdot b) - \ln(c)$, which then expands to $\ln(a) + \ln(b) - \ln(c)$. We will apply this logic to our function.

Step 2: Use log properties to expand the right side.

$$\ln y = \ln((x+1)^{1/2} \cdot (x-2)^3) - \ln((x+5)^4)$$
$$\ln y = \ln((x+1)^{1/2}) + \ln((x-2)^3) - \ln((x+5)^4)$$
$$\ln y = \frac{1}{2}\ln(x+1) + 3\ln(x-2) - 4\ln(x+5)$$

Step 3: Differentiate both sides implicitly with respect to $x$.

$$\frac{1}{y}\frac{dy}{dx} = \frac{1}{2} \cdot \frac{1}{x+1} + 3 \cdot \frac{1}{x-2} - 4 \cdot \frac{1}{x+5}$$

Step 4: Solve for $\frac{dy}{dx}$ by multiplying both sides by $y$.

$$\frac{dy}{dx} = y \left[ \frac{1}{2(x+1)} + \frac{3}{x-2} - \frac{4}{x+5} \right]$$

Finally, substitute the original expression for $y$ back in.

$$\frac{dy}{dx} = \frac{\sqrt{x+1} \cdot (x-2)^3}{(x+5)^4} \left[ \frac{1}{2(x+1)} + \frac{3}{x-2} - \frac{4}{x+5} \right]$$

Case 2: Functions of the form $y = [f(x)]^{g(x)}$

This is a critical case. When both the base and the exponent are variable functions, neither the Power Rule nor the Exponential Rule applies. For example, for $y=x^{\sin x}$, we can't use the power rule (that's for $x^n$) or the exponential rule (that's for $a^x$). Logarithmic differentiation is the essential tool here.

Example 2: Variable Base and Exponent

Differentiate $y = x^{\sin x}$.

Solution:

Step 1: Take the natural log of both sides.

$$\ln y = \ln(x^{\sin x})$$

Step 2: Use the log property to bring the exponent down.

$$\ln y = (\sin x)(\ln x)$$

Step 3: Differentiate both sides implicitly. The right side now requires the Product Rule.

$$\frac{1}{y}\frac{dy}{dx} = (\cos x)(\ln x) + (\sin x)\left(\frac{1}{x}\right)$$

Step 4: Solve for $\frac{dy}{dx}$.

$$\frac{dy}{dx} = y \left[ \cos x \ln x + \frac{\sin x}{x} \right]$$
$$\frac{dy}{dx} = x^{\sin x} \left[ \cos x \ln x + \frac{\sin x}{x} \right]$$

Check Your Understanding #2

Find the derivative of $y = (\sin x)^{\ln x}$.


Topic 3: Derivatives of Inverse Trigonometric Functions

Lastly, we will find the derivatives for the inverse trigonometric functions. The process is similar to how we found the derivative of $\ln x$: we use implicit differentiation.

Derivation of arcsin(x)

Let $y = \arcsin(x)$. To have an inverse, a function must be one-to-one. Since $f(x)=\sin(x)$ is not one-to-one over its full domain, we restrict its domain to $[-\frac{\pi}{2}, \frac{\pi}{2}]$ to define its inverse, the arcsin function. So, by definition, $y = \arcsin(x)$ is the value $y$ in $[-\frac{\pi}{2}, \frac{\pi}{2}]$ such that $\sin(y) = x$.

We can see this by taking the sine of both sides of our starting equation:

$$\sin(y) = \sin(\arcsin(x))$$

Because the functions are defined as inverses, this simplifies to:

$$\sin(y) = x$$

Differentiating this implicitly with respect to $x$ gives:

$$\cos(y) \cdot \frac{dy}{dx} = 1 \implies \frac{dy}{dx} = \frac{1}{\cos(y)}$$

To express $\cos(y)$ in terms of $x$, we can use the identity $\sin^2(y) + \cos^2(y) = 1$, which gives $\cos(y) = \sqrt{1 - \sin^2(y)}$. Because of the range restriction on $y$, $\cos(y)$ is non-negative, so we take the positive root. Since $\sin(y) = x$, we have:

$$\cos(y) = \sqrt{1-x^2}$$

Substituting this back gives our final rule:

$$\frac{d}{dx}(\arcsin x) = \frac{1}{\sqrt{1-x^2}}$$

Derivation of arctan(x)

Similarly, for $y = \arctan(x)$, we have $\tan(y) = x$. Differentiating gives:

$$\sec^2(y) \cdot \frac{dy}{dx} = 1 \implies \frac{dy}{dx} = \frac{1}{\sec^2(y)}$$

Using the identity $\sec^2(y) = 1 + \tan^2(y)$, and knowing $\tan(y) = x$, we get:

$$\frac{d}{dx}(\arctan x) = \frac{1}{1+x^2}$$

Graph: Visualizing the Derivative of arctan(x)

This graph shows the function $f(x) = \arctan(x)$ and its tangent line. As you move the point, observe the slope $m$. The slope is steepest at $x=0$ (where $m=1$) and flattens out as $x$ moves towards $\pm\infty$. This perfectly matches our derivative formula, $\frac{d}{dx}(\arctan x) = \frac{1}{1+x^2}$, which is maximized at $x=0$.

The derivatives for all six inverse trig functions can be found this way. Notice the helpful pattern: the derivative of a "co-" function is the negative of its counterpart.

Function Derivative
$f(x) = \arcsin(x)$ $f'(x) = \frac{1}{\sqrt{1-x^2}}$
$f(x) = \arccos(x)$ $f'(x) = -\frac{1}{\sqrt{1-x^2}}$
$f(x) = \arctan(x)$ $f'(x) = \frac{1}{1+x^2}$
$f(x) = \operatorname{arccot}(x)$ $f'(x) = -\frac{1}{1+x^2}$
$f(x) = \operatorname{arcsec}(x)$ $f'(x) = \frac{1}{x\sqrt{x^2-1}}$
$f(x) = \operatorname{arccsc}(x)$ $f'(x) = -\frac{1}{x\sqrt{x^2-1}}$

Example: Chain Rule with Inverse Trig Functions

Find the derivative of $y = \arcsin(e^{2x})$.

Solution:

Here, the inside function is $u = e^{2x}$, and its derivative is $u' = 2e^{2x}$.

Using the formula for the derivative of $\arcsin u$, we get:

$$\frac{dy}{dx} = \frac{1}{\sqrt{1 - (e^{2x})^2}} \cdot (2e^{2x}) = \frac{2e^{2x}}{\sqrt{1 - e^{4x}}}$$

Check Your Understanding #3

Find the derivative of $f(x) = x^2 \arctan(3x)$.


Final Practice Problems

Final Practice Problem #1 (from Topic 1)

Find the derivative of $y = \ln(x^2 - e^x)$.

Final Practice Problem #2 (from Topic 2)

Find the derivative of $y = (\cos x)^{x^2}$.

Final Practice Problem #3 (from Topic 3)

Find the derivative of $g(t) = t \cdot \operatorname{arcsec}(t^2)$.

Final Practice Problem #4 (from Topic 2)

Find the derivative of $y = x^x$.


Summary of Lecture

In this section, we completed our set of basic differentiation rules by deriving the formulas for logarithmic and inverse trigonometric functions. We showed that $\frac{d}{dx}(\ln x) = \frac{1}{x}$ and derived all six inverse trig derivatives using implicit differentiation. More importantly, we introduced the powerful logarithmic differentiation technique, which simplifies complex product/quotient problems and is essential for differentiating functions of the form $[f(x)]^{g(x)}$.

Learning Objectives

After this lecture, you should be able to:

  • Find the derivative of any logarithmic function using the rules $\frac{d}{dx}(\ln u) = u'/u$ and $\frac{d}{dx}(\log_a u) = u'/(u \ln a)$.
  • Recognize when to apply logarithmic differentiation.
  • Use the 4-step process of logarithmic differentiation to find derivatives of complex functions and functions of the form $[f(x)]^{g(x)}$.
  • Recall and apply the derivative rules for all six inverse trigonometric functions, especially in combination with the chain rule.