Skip to main content

Section Logarithmic and Implicit Differentiation

We know how to take the derivative of \(f(x) = x^2\) and \(g(x) = 2^x.\) But what about functions like \(h(x) = x^{x}\) where the variable occurs in both the base and the exponent? Fortunately, the technique you used in Problem 2.83, called logarithmic differentiation, and can be applied to this function as well.

Example 2.86.

Compute the derivative of \(f(x) = x^{2x}\text{.}\)

Define \(f\text{.}\)

\begin{equation*} f(x)=x^{2x} \end{equation*}

Apply the natural logarithm to both sides.

\begin{equation*} \ln(f(x))=\ln(x^{2x}) \end{equation*}

Apply a property of logarithms to the right-hand side.

\begin{equation*} \ln(f(x))=2x\ln(x) \end{equation*}

Take the derivative of both sides.

\begin{equation*} \frac{f'(x)}{f(x)}=2\ln(x)+(2x)\frac{1}{x} = 2\ln(x) + 2 \end{equation*}

Multiply through by \(f(x).\)

\begin{equation*} f'(x)=f(x)\left( 2\ln(x)+2 \right) \end{equation*}

Substitute \(f(x) = x^{2x}\) and simplify.

\begin{equation*} f'(x)=x^{2x}\left( 2\ln(x)+2 \right) = 2x^{2x} \left( \ln(x) + 1 \right) \end{equation*}
Problem 2.87.

Compute the derivative of \(y(x) = (3x)^{x+1}.\)

Problem 2.88.

Compute \(\dsp H'(x)\) for \(\dsp H(x) = \left(\sin(x) \right)^{\cos(2x)}.\)

Example 2.89.

Computing derivatives of relations that are not functions.

Implicit Differentiation. Thus far we have only taken the derivatives of functions, and the derivatives of these functions were also functions. Implicit differentiation will allow us to find an equation that tells us the slopes of the lines tangent to an equation that does not represent a function, for example, a circle. For a single value of \(x\text{,}\) a circle may have two values for \(y\) and thus two tangent lines. Therefore, our “derivative” will not be a function because for a single value of \(x\) there may be two lines tangent to the circle.

Let's look at an example. The circle \(x^2 + y^2 = 9\) is a relation (a set of ordered pairs), but not a function since \((1, 2\sqrt{2})\) and \((1,-2\sqrt{2})\) are points that satisfy the equation but have the same \(x\)-coordinate and distinct \(y\)-coordinates. How can we determine the slope of any tangent line to this equation, recalling that the derivative was, thus far, defined only for functions? For this problem, we can do it in two ways, straight differentiation and implicit differentiation.

Straight Differentiation. First, rewrite the equation,

\begin{equation*} x^2 + y^2 = 9, \end{equation*}

as,

\begin{equation*} y = \pm \sqrt{9-x^2}. \end{equation*}

This may be written in what looks like functional notation as,

\begin{equation*} f(x) = \pm \sqrt{9-x^2}, \end{equation*}

but \(f\) is not a function since for each value of \(x \in (-3,3),\) we have two values for \(f(x).\) Still, taking the derivative of either

\begin{equation*} f(x) = + \sqrt{9-x^2} \;\;\;\; \mbox{or} \;\;\;\; f(x) = - \sqrt{9-x^2} \end{equation*}

is exactly the same except for the sign, so we do both simultaneously:

\begin{equation*} f'(x) = \pm \frac{1}{2} (9-x^2)^{-\frac{1}{2}} \cdot -2x = \pm \frac{x}{\sqrt{9-x^2}}. \end{equation*}

Implicit differentiation is an alternative way to differentiate such equations by first taking the derivative of both sides of the equation and then solving the resulting equation for the derivative instead of solving for \(y\) and then taking the derivative.

Implicit Differentiation. We again start with

\begin{equation*} x^2 + y^2 = 9. \end{equation*}

Replacing \(y\) with \(f(x)\) as we did in our first example yields,

\begin{equation*} x^2 + \left( f(x) \right)^2 = 9. \end{equation*}

Differentiating both sides using the Power, Chain, and Constant rules yields,

\begin{equation*} 2x + 2f(x)f'(x) = 0. \end{equation*}

Solving for \(f'(x)\) we have,

\begin{equation*} f'(x) = \frac{-2x}{2f(x)} = \frac{-x}{f(x)}. \end{equation*}

This does not look the same as the answer we computed using straight differentiation, but if we again solve

\begin{equation*} x^2 + \left( f(x) \right)^2 = 9 \end{equation*}

for \(f(x)\) to get

\begin{equation*} f(x) = \pm \sqrt{9-x^2}, \end{equation*}

and substitute this into our answer

\begin{equation*} f'(x) = \frac{-x}{f(x)} \end{equation*}

then we have

\begin{equation*} f'(x) = \frac{-x}{\pm \sqrt{9-x^2}} = \pm \frac{x}{\sqrt{9-x^2}}. \end{equation*}

This agrees with the result we obtained using straight differentiation.

Problem 2.90.

Find \(y'\) where \(x^3 + y^3 = 1\) in two ways. First, solve for \(y\) and differentiate. Second, differentiate and then solve for \(y'.\) Show that both answers are the same. Graph the set of points that satisfy \(x^3 + y^3 = 1.\) Is this a function?

Problem 2.91.

Find \(y'\) for \(x^3 + y^3 = 3xy\text{.}\)

This problem is based on a true story. Only the type of invertebrate, the name of the snack food, and student names have been changed in order to protect their identities.

Problem 2.92.

Nekisha sketches an x-y-coordinate plane on her notebook and then observes an ant walking around the page nibbling on her Flaming Hot Cheeto crumbs. The ant's position changes with time, so she defines a function \(p\) so that the position of the ant at time \(t\) is given by the function \(p(t)=(x(t),y(t))\text{.}\) After considerable observation, she observes that the position function satisfies \(2(x(t))^2 + 3(y(t))^2 = 100\) at each time t, the speed at \(t=5\) in the \(x\)-direction is 2 (i.e. \(x'(5)=2\)), and the \(x\)-position at time \(t=5\) is 6 (i.e. \(x(5)=6\)). Help Nekisha compute the ant's \(y\) position at time \(t=5\) (i.e. \(y(5)\)) and the ant's speed in the \(y\) direction at time \(t=5\) (i.e. \(y'(5)\)).

Problem 2.93.

Given the curve \(x^2 - 4x + y^2 - 2y = 4,\) find:

  1. the two points on the curve where there are horizontal tangent lines, and

  2. the points on the curve where the tangent lines are vertical.

If you feel lucky, try solving this problem without Calculus by completing the square.

Problem 2.94.

Find the equations for the two lines that pass through the origin and are tangent to the curve defined by \(x = y^2 + 1.\) Illustrate with a graph of the curve and tangent lines.

We proved the Power Rule only for functions of the form \(f(x) = x^n\) where \(n\) is an integer. However, we have been using it where \(n\) was any number, for example \(n=1/2\) in the case where \(f(x) = \sqrt{x}\text{.}\) We will now use the Chain Rule, Implicit and Logarithmic Differentiation to prove that the Power Rule is valid for rational exponents.

Problem 2.95.

Use implicit differentiation to find \(y'\) if \(y = x^{4/3}\text{.}\)

Problem 2.96.

Suppose \(\frac{p}{q}\) is a rational number. Show that the derivative of the function \(f(x) = x^{p/q}\) is \(f'(x) = \frac{p}{q}x^{\frac{p}{q}-1}\text{.}\)

Problem 2.97.

Find the second derivative, \(y''\text{,}\) for the curve \(x^3 + y^3 = 1.\)

Problem 2.98.

Use implicit differentiation to find the equation of the line tangent to the curve \(x^{2/3} - y^{2/3} - y = 4\) at the point \((8,0).\)