Calculus3Differentiation Rules8 of 9
Differentiation Rules · 8

Logarithmic Differentiation

1

When both the base and the exponent change

We know how to differentiate a power when the exponent is a constant number, and an exponential when the base is a constant number.

Constant exponent
ddx x3\displaystyle \frac{d}{dx}\,\bs{x}^3 =3x2\displaystyle = 3x^2
Constant base
ddx 3x\displaystyle \frac{d}{dx}\,3^{\ex{x}} =3xln⁡3\displaystyle = 3^x\ln 3

But in xx\bs{x}^{\ex{x}}, xx is in both the base and the exponent, so neither one is constant. Does either rule still work?

Find the derivative of xxx^x
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
2\htmlClass{lc-mute}{2}
4\htmlClass{lc-mute}{4}
6\htmlClass{lc-mute}{6}
8\htmlClass{lc-mute}{8}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
y=xx\yy{y} = \bs{x}^{\ex{x}}
(2, 4)(2,\, 4)
Text solution
Take the natural log of both sidesThe log rule brings the exponent x\ex{x} down in front, so the right side becomes a product.
ln⁡(ab)\displaystyle \ln(\bs{a}^{\ex{b}}) =bln⁡a\displaystyle = \ex{b}\ln \bs{a}
ln⁡y\displaystyle \ln \yy{y} =xln⁡x\displaystyle = \ex{x}\ln \bs{x}
Differentiate both sidesOn the left, y\yy{y} is a function of xx, so the chain rule gives y′y\frac{y'}{\yy{y}}. On the right, we use the product rule.
y′y\displaystyle \frac{y'}{\yy{y}} =ln⁡x+x⋅1x\displaystyle = \ex{\ln x} + \bs{x\cdot\frac{1}{x}} =ln⁡x+1\displaystyle = \ex{\ln x} + \bs{1}
Multiply by y\yy{y}Then put xx\yy{x^x} back in for y\yy{y}. At x=2x = 2, the slope is 4(ln⁡2+1)=4ln⁡2+4\yy{4}(\ex{\ln 2} + \bs{1}) = \ex{4\ln 2} + \bs{4}.
y′\displaystyle y' =y (ln⁡x+1)\displaystyle = \yy{y}\,(\ex{\ln x} + \bs{1}) =xx(ln⁡x+1)\displaystyle = \yy{x^x}(\ex{\ln x} + \bs{1})

Taking the natural log of both sides before differentiating is called logarithmic differentiation. Notice what the answer looks like when we distribute. It's what the exponential rule and the power rule each gave on their own, added together.

y′\displaystyle y' =xx(ln⁡x+1)\displaystyle = \yy{x^x}(\ex{\ln x} + \bs{1}) =xxln⁡x+xx\displaystyle = \ex{x^x\ln x} + \bs{x^x}
Exponential rule guess
xxln⁡x\displaystyle \ex{x^x\ln x}
Power rule guess
x⋅xx−1\displaystyle \bs{x\cdot x^{x-1}} =xx\displaystyle = \bs{x^x}

The xxln⁡x\ex{x^x\ln x} part is the change through the exponent, with the base held fixed, and the xx\bs{x^x} part is the change through the base, with the exponent held fixed. Each rule gives only part of the slope. Hold the base or the exponent at 22 yourself, and see how the two parts add up to the slope of the tangent line.

We can also write xx\bs{x}^{\ex{x}} as eln⁡(xx)=exln⁡xe^{\ln(\bs{x}^{\ex{x}})} = e^{\ex{x\ln x}}. Differentiating exln⁡xe^{\ex{x\ln x}} uses the chain rule on the same product xln⁡x\ex{x}\ln \bs{x}, and gives the same derivative, xx(ln⁡x+1)\yy{x^x}(\ex{\ln x} + \bs{1}).

2

A function in the base

Now let's try a function where the base isn't just xx, like (x2+1)x(\bs{x^2 + 1})^{\ex{x}}, and find its slope at x=1x = 1.

ddx (x2+1)x\displaystyle \frac{d}{dx}\,(\bs{x^2+1})^{\ex{x}} =  ?\displaystyle = \;?

We have x\bs{x} in the base and x\ex{x} in the exponent, so we use the exact same strategy as xx\bs{x}^{\ex{x}}. Call it y\yy{y}, and take the natural log of both sides. That brings the exponent x\ex{x} down in front, and we get ln⁡y=xln⁡(x2+1)\ln \yy{y} = \ex{x}\ln(\bs{x^2 + 1}).

The only new piece is taking the derivative of ln⁡(x2+1)\ln(\bs{x^2 + 1}). We use the chain rule with u=x2+1\bs{u} = \bs{x^2 + 1}. Since the derivative of x2+1\bs{x^2 + 1} is 2x\bs{2x}, the derivative of ln⁡(x2+1)\ln(\bs{x^2 + 1}) is 2xx2+1\bs{\frac{2x}{x^2 + 1}}.

ddxln⁡(x2+1)\displaystyle \frac{d}{dx}\ln(\bs{x^2+1}) =2xx2+1\displaystyle = \bs{\frac{2x}{x^2+1}}
The chain rule for ln u
ddxln⁡u\displaystyle \frac{d}{dx}\ln \bs{u} =u′u\displaystyle = \frac{\bs{u'}}{\bs{u}}

Now we differentiate both sides, using the product rule on the right, and multiply by y\yy{y}.

ln⁡y=xln⁡(x2+1)y′y=ln⁡(x2+1)+x⋅2xx2+1=ln⁡(x2+1)+2x2x2+1y′=(x2+1)x[ln⁡(x2+1)+2x2x2+1]\displaystyle \begin{aligned}\ln \yy{y} &= \ex{x}\ln(\bs{x^2+1})\\ \frac{y'}{\yy{y}} &= \ln(\bs{x^2+1}) + \ex{x}\cdot\bs{\frac{2x}{x^2+1}} = \ln(\bs{x^2+1}) + \bs{\frac{2x^2}{x^2+1}}\\ y' &= \yy{(x^2+1)^x}\left[\ln(\bs{x^2+1}) + \bs{\frac{2x^2}{x^2+1}}\right]\end{aligned}
ln⁡y=xln⁡(x2+1)y′y=ln⁡(x2+1)+x⋅2xx2+1=ln⁡(x2+1)+2x2x2+1y′=(x2+1)x [ln⁡(x2+1)+2x2x2+1]\displaystyle \begin{aligned}\ln \yy{y} &= \ex{x}\ln(\bs{x^2+1})\\ \frac{y'}{\yy{y}} &= \ln(\bs{x^2+1})\\ &\qquad + \ex{x}\cdot\bs{\frac{2x}{x^2+1}}\\ &= \ln(\bs{x^2+1}) + \bs{\frac{2x^2}{x^2+1}}\\ y' &= \yy{(x^2+1)^x}\,\Big[\ln(\bs{x^2+1})\\ &\qquad + \bs{\frac{2x^2}{x^2+1}}\Big]\end{aligned}

To find the slope at x=1x = 1, plug in x=1x = 1. The base is 12+1=21^2 + 1 = 2, so y=21=2\yy{y} = 2^1 = \yy{2}, and the bracket gives ln⁡2+1\ln 2 + 1.

Slope at x = 1
x\displaystyle x =1 ⁣:y\displaystyle = 1\colon\quad \yy{y} =2\displaystyle = \yy{2}
ln⁡2+22=ln⁡2+1y′(1)=2(1+ln⁡2)=2+2ln⁡2\displaystyle \begin{aligned}\ln 2 + \frac{2}{2} &= \ln 2 + 1\\ y'(1) &= \yy{2}(1 + \ln 2) = 2 + 2\ln 2\end{aligned}

So the slope of the curve at x=1x = 1 is 2+2ln⁡22 + 2\ln 2.

3

Splitting products and quotients with logs

Taking logs also helps when there's nothing in an exponent. Take y=x3 x2+3(x+1)2\yy{y} = \frac{\fa{x^3}\,\rf{\sqrt{x^2+3}}}{\fd{(x+1)^2}}. The quotient rule works, but the numerator needs the product rule, and inside that, x2+3\rf{\sqrt{x^2+3}} needs the chain rule. That gets messy very fast.

y′\displaystyle y' =(x3x2+3)′ (x+1)2−x3x2+3⋅2(x+1)(x+1)4\displaystyle = \frac{\big(\fa{x^3}\rf{\sqrt{x^2+3}}\big)'\,\fd{(x+1)^2} - \fa{x^3}\rf{\sqrt{x^2+3}}\cdot \fd{2(x+1)}}{(x+1)^4}
y′=1(x+1)4[(x3x2+3)′ (x+1)2−x3x2+3⋅2(x+1)]\displaystyle \begin{aligned}&y' = \frac{1}{(x+1)^4}\Big[\\ &\quad\big(\fa{x^3}\rf{\sqrt{x^2+3}}\big)'\,\fd{(x+1)^2}\\ &\quad - \fa{x^3}\rf{\sqrt{x^2+3}}\cdot \fd{2(x+1)}\Big]\end{aligned}

Instead, we can take the natural log of both sides first. The log laws turn multiplication into addition, division into subtraction, and exponents into multipliers out front.

Log laws and fractional powers
ln⁡(ab)\displaystyle \ln(ab) =ln⁡a+ln⁡b\displaystyle = \ln a + \ln b
ln⁡ab\displaystyle \ln\frac{a}{b} =ln⁡a−ln⁡b\displaystyle = \ln a - \ln b
ln⁡(ak)\displaystyle \ln(a^k) =kln⁡a\displaystyle = k\ln a
u\displaystyle \sqrt{u} =u12\displaystyle = u^{\frac12}
Find y′y' and y′(1)y'(1) for y=x3x2+3(x+1)2y = \frac{x^3\sqrt{x^2+3}}{(x+1)^2}
y\displaystyle \yy{y} =x3 x2+3(x+1)2\displaystyle = \frac{\fa{x^3}\,\rf{\sqrt{x^2+3}}}{\fd{(x+1)^2}}
y′\displaystyle y' =  ?y′(1)\displaystyle = \;?\qquad y'(1) =  ?\displaystyle = \;?
Text solution
One log term for each factorFactors on top are added, the factor underneath is subtracted, and each exponent comes out front. ln⁡(x2+3)\ln(\rf{x^2+3}) is the log of a sum, so it stays whole.
ln⁡y\displaystyle \ln \yy{y} =3ln⁡x+12ln⁡(x2+3)−2ln⁡(x+1)\displaystyle = \fa{3\ln x} + \rf{\frac12\ln(x^2+3)} \mathbin{\fd{-}} \fd{2\ln(x+1)}
Differentiate each termEach log term gives the derivative of its inside over its inside. In the middle term, the 2x2x cancels with the 12\frac12 to leave xx.
y′y\displaystyle \frac{y'}{\yy{y}} =3x+xx2+3−2x+1\displaystyle = \fa{\frac{3}{x}} + \rf{\frac{x}{x^2+3}} \mathbin{\fd{-}} \fd{\frac{2}{x+1}}
Multiply by y\yy{y}, then plug in x=1x = 1At x=1x = 1, y=1⋅24=12\yy{y} = \frac{\fa{1}\cdot\rf{2}}{\fd{4}} = \yy{\frac12} and the bracket is 3+14−1=94\fa{3} + \rf{\frac14} \mathbin{\fd{-}} \fd{1} = \frac94.
y′\displaystyle y' =x3x2+3(x+1)2(3x+xx2+3−2x+1)\displaystyle = \yy{\frac{x^3\sqrt{x^2+3}}{(x+1)^2}}\left(\fa{\frac{3}{x}} + \rf{\frac{x}{x^2+3}} \mathbin{\fd{-}} \fd{\frac{2}{x+1}}\right)
y′(1)\displaystyle y'(1) =12⋅94\displaystyle = \yy{\frac12}\cdot\frac94 =98\displaystyle = \frac98

The pattern works for any number of factors. Each factor uku^k in the numerator adds ku′uk\frac{u'}{u} to y′y\frac{y'}{\yy{y}}, and each factor uku^k in the denominator subtracts ku′uk\frac{u'}{u}.

In the numerator
ln⁡(uk)\displaystyle \ln(u^k) =kln⁡u  →  k u′u\displaystyle = k\ln u \;\to\; k\,\frac{u'}{u}
In the denominator
ln⁡1uk\displaystyle \ln\frac{1}{u^k} =−kln⁡u  →  −k u′u\displaystyle = -k\ln u \;\to\; -k\,\frac{u'}{u}

For a single quotient like x+1x−1\frac{x+1}{x-1}, though, the quotient rule is quicker. Logs pay off when several factors, powers or roots are multiplied and divided together.

4

Differentiating a sum of terms

What if xx\bs{x}^{\ex{x}} is one term of a sum, like xx+x3+3x\bs{x}^{\ex{x}} + \bs{x}^3 + 3^{\ex{x}}? It's tempting to take the natural log of the whole thing. But there's no log rule for a sum, so the log can't split across the plus signs, the same reason ln⁡(x2+3)\ln(\rf{x^2 + 3}) stayed whole.

ln⁡(xx+x3+3x)≠ln⁡(xx)+ln⁡(x3)+ln⁡(3x)\displaystyle \ln{\big(\bs{x}^{\ex{x}} + \bs{x}^3 + 3^{\ex{x}}\big)} \ne \ln\big(\bs{x}^{\ex{x}}\big) + \ln\big(\bs{x}^3\big) + \ln\big(3^{\ex{x}}\big)
ln⁡(xx+x3+3x)≠ln⁡(xx)+ln⁡(x3)+ln⁡(3x)\displaystyle \begin{aligned}&\ln{\big(\bs{x}^{\ex{x}} + \bs{x}^3 + 3^{\ex{x}}\big)}\\ &\quad\ne \ln\big(\bs{x}^{\ex{x}}\big) + \ln\big(\bs{x}^3\big) + \ln\big(3^{\ex{x}}\big)\end{aligned}
Find the derivative of xx+x3+3xx^x + x^3 + 3^x
ddx(xx+x3+3x)\displaystyle \frac{d}{dx}{\big(\bs{x}^{\ex{x}} + \bs{x}^3 + 3^{\ex{x}}\big)} =  ?\displaystyle = \;?
Text solution
Differentiate term by termThe derivative of a sum is the sum of the derivatives, so each term is its own problem.
ddx(xx+x3+3x)\displaystyle \frac{d}{dx}{\big(\bs{x}^{\ex{x}} + \bs{x}^3 + 3^{\ex{x}}\big)} =ddx xx+ddx x3+ddx 3x\displaystyle = \frac{d}{dx}\,\bs{x}^{\ex{x}} + \frac{d}{dx}\,\bs{x}^3 + \frac{d}{dx}\,3^{\ex{x}}
Choose each rule by where xx isIn x3\bs{x}^3, x\bs{x} is only in the base, and in 3x3^{\ex{x}}, x\ex{x} is only in the exponent. Only xx\bs{x}^{\ex{x}} needs logs, and we found its derivative in section 1.

Side by side, the three rules and the sum they add up to:

Power rule
ddx x3\displaystyle \frac{d}{dx}\,\bs{x}^3 =3x2\displaystyle = 3x^2
Exponential rule
ddx 3x\displaystyle \frac{d}{dx}\,3^{\ex{x}} =3xln⁡3\displaystyle = 3^x\ln 3
Logarithmic differentiation
ddx xx\displaystyle \frac{d}{dx}\,\bs{x}^{\ex{x}} =xx(ln⁡x+1)\displaystyle = \yy{x^x}(\ex{\ln x} + \bs{1})
ddx(xx+x3+3x)\displaystyle \frac{d}{dx}{\big(\bs{x}^{\ex{x}} + \bs{x}^3 + 3^{\ex{x}}\big)} =xx(ln⁡x+1)+3x2+3xln⁡3\displaystyle = x^x(\ln x + 1) + 3x^2 + 3^x\ln 3

A term with no xx at all, like 333^3 or eee^e, is a constant, so its derivative is 00. And ee and π\pi are constant numbers just like 33. For xe\bs{x}^e, the power rule gives exe−1e x^{e-1}, and for exe^{\ex{x}}, the derivative is exe^x.

Summary

Which rule to use
Power rule
ddx x3\displaystyle \frac{d}{dx}\,\bs{x}^3 =3x2\displaystyle = 3x^2
Exponential rule
ddx 3x\displaystyle \frac{d}{dx}\,3^{\ex{x}} =3xln⁡3\displaystyle = 3^x\ln 3
Constant
ddx 33\displaystyle \frac{d}{dx}\,3^3 =0\displaystyle = 0
Logarithmic differentiation
xx ⁣:ln⁡y\displaystyle \bs{x}^{\ex{x}}\colon\quad \ln \yy{y} =xln⁡x\displaystyle = \ex{x}\ln \bs{x}
Power rule
ddx xe\displaystyle \frac{d}{dx}\,\bs{x}^e =e xe−1\displaystyle = e\,x^{e-1}

Where xx is in the term tells you which rule to use. When x\bs{x} is only in the base, use the power rule. When x\ex{x} is only in the exponent, use the exponential rule. If there's no xx at all, the derivative is 00. Letters like ee and π\pi are constant numbers, so xe\bs{x}^e uses the power rule.

When xx is in both the base and the exponent, neither rule works on its own, so take the natural log of both sides first.

Logarithmic differentiation for xxx^x
ln⁡y=xln⁡xy′y=ln⁡x+1y′=xx(ln⁡x+1)=xxln⁡x+xx\displaystyle \begin{aligned}\ln \yy{y} &= \ex{x}\ln \bs{x}\\ \frac{y'}{\yy{y}} &= \ex{\ln x} + \bs{1}\\ y' &= \yy{x^x}(\ex{\ln x} + \bs{1})\\ &= \ex{x^x\ln x} + \bs{x^x}\end{aligned}

Taking the natural log of both sides brings the exponent down as a factor. Differentiating both sides gives y′y\frac{y'}{\yy{y}} on the left from the chain rule, and the product rule gives ln⁡x+1\ex{\ln x} + \bs{1} on the right. Multiply both sides by y\yy{y}, then put xx\yy{x^x} back in place of y\yy{y}.

The derivative is the sum of the power rule's answer and the exponential rule's answer.

Products, quotients, and powers
Expanding with log rules
y=x3 x2+3(x+1)2ln⁡y=3ln⁡x+12ln⁡(x2+3)−2ln⁡(x+1)\displaystyle \begin{aligned}\yy{y} &= \frac{\fa{x^3}\,\rf{\sqrt{x^2+3}}}{\fd{(x+1)^2}}\\ \ln \yy{y} &= \fa{3\ln x} + \rf{\frac12\ln(x^2+3)} \mathbin{\fd{-}} \fd{2\ln(x+1)}\end{aligned}
y=x3 x2+3(x+1)2ln⁡y=3ln⁡x+12ln⁡(x2+3)−2ln⁡(x+1)\displaystyle \begin{aligned}\yy{y} &= \frac{\fa{x^3}\,\rf{\sqrt{x^2+3}}}{\fd{(x+1)^2}}\\ \ln \yy{y} &= \fa{3\ln x} + \rf{\frac12\ln(x^2+3)}\\ &\qquad \mathbin{\fd{-}} \fd{2\ln(x+1)}\end{aligned}
Differentiating each factor
uk  →  k u′u\displaystyle u^k \;\to\; k\,\frac{u'}{u}

When a function is built from several factors multiplied and divided together, taking the natural log turns products into sums, quotients into differences, and powers into multipliers out front.

Each factor uku^k in the numerator contributes +ku′u+k\frac{u'}{u} to y′y\frac{y'}{\yy{y}}, and each factor in the denominator contributes −ku′u-k\frac{u'}{u}. Then multiply the whole sum by y\yy{y} to get y′y'.

Logs don't split a sum
ln⁡(xx+x3)≠ln⁡(xx)+ln⁡(x3)\displaystyle \ln{\big(\bs{x}^{\ex{x}} + \bs{x}^3\big)} \ne \ln\big(\bs{x}^{\ex{x}}\big) + \ln\big(\bs{x}^3\big)
ln⁡(xx+x3)≠ln⁡(xx)+ln⁡(x3)\displaystyle \begin{aligned}&\ln{\big(\bs{x}^{\ex{x}} + \bs{x}^3\big)}\\ &\quad\ne \ln\big(\bs{x}^{\ex{x}}\big) + \ln\big(\bs{x}^3\big)\end{aligned}

The natural log can't split across a sum, so taking the log of a sum doesn't bring exponents down.

For a sum, differentiate term by term, using the rule that fits where xx is in each term. Use logarithmic differentiation only on the terms that have xx in both the base and the exponent.

5

Practice

Enter exact values. Leave ln⁡2\ln 2, ee and π\pi in your answers.

1
Let y=xsin⁡xy = x^{\sin x}. Find y′ ⁣(π2)y'\!\left(\frac{\pi}{2}\right).

We have y′y=cos⁡xln⁡x+sin⁡xx\frac{y'}{y} = \cos x\ln x + \frac{\sin x}{x}. To find y′y', what do we multiply it by?

xx appears in both the base and the exponent, so we take the natural log of both sides to bring sin⁡x\ex{\sin x} down to the front.
ln⁡y\displaystyle \ln \yy{y} =ln⁡(xsin⁡x)\displaystyle = \ln\big(\bs{x}^{\ex{\sin x}}\big) =sin⁡x ln⁡x\displaystyle = \ex{\sin x}\,\ln \bs{x}
Differentiate both sides with respect to xx, using the product rule on the right.
y′y\displaystyle \frac{y'}{\yy{y}} =cos⁡x ln⁡x+sin⁡x⋅1x\displaystyle = \ex{\cos x\,\ln x} + \bs{\sin x\cdot\frac{1}{x}}
At x=π2x = \frac{\pi}{2}, we have sin⁡π2=1\sin\frac{\pi}{2} = 1, so y=π2\yy{y} = \yy{\frac{\pi}{2}}. In y′y\frac{y'}{\yy{y}}, cos⁡π2=0\cos\frac{\pi}{2} = 0, so the first term goes away.
x\displaystyle x =π2 ⁣:y\displaystyle = \frac{\pi}{2}\colon\quad \yy{y} =(π2)1\displaystyle = \Big(\frac{\pi}{2}\Big)^{1} =π2\displaystyle = \yy{\frac{\pi}{2}}
y′y\displaystyle \frac{y'}{\yy{y}} =0⋅ln⁡π2+1⋅2π\displaystyle = \ex{0\cdot\ln\frac{\pi}{2}} + \bs{1\cdot\frac{2}{\pi}} =2π\displaystyle = \frac{2}{\pi}
Now multiply y′y\frac{y'}{\yy{y}} by y\yy{y} to get y′(π2)y'\big(\frac{\pi}{2}\big).
y′(π2)\displaystyle y'\Big(\frac{\pi}{2}\Big) =π2⋅2π\displaystyle = \yy{\frac{\pi}{2}}\cdot\frac{2}{\pi} =1\displaystyle = 1
2
Let y=(x+1)3x+3(x2+1)2y = \dfrac{(x+1)^3\sqrt{x+3}}{(x^2+1)^2}. Find y′(1)y'(1).

Taking the natural log gives ln⁡y=3ln⁡(x+1)+12ln⁡(x+3)−2ln⁡(x2+1)\ln y = 3\ln(x+1) + \frac12\ln(x+3) - 2\ln(x^2+1). What is the derivative of each term with respect to xx?

Take the natural logTaking the natural log turns products into sums and brings exponents down in front, and we subtract the logs of factors in the denominator.
ln⁡y\displaystyle \ln \yy{y} =3ln⁡(x+1)+12ln⁡(x+3)−2ln⁡(x2+1)\displaystyle = \fa{3\ln(x+1)} + \rf{\frac12\ln(x+3)} \mathbin{\fd{-}} \fd{2\ln(x^2+1)}
Differentiate each termDifferentiate both sides with respect to xx, using the chain rule on ln⁡(x2+1)\ln(\fd{x^2 + 1}).
y′y\displaystyle \frac{y'}{\yy{y}} =3x+1+12(x+3)−2⋅2xx2+1\displaystyle = \fa{\frac{3}{x+1}} + \rf{\frac{1}{2(x+3)}} \mathbin{\fd{-}} \fd{2\cdot\frac{2x}{x^2+1}}
y′y\displaystyle \frac{y'}{\yy{y}} =3x+1+12(x+3)−4xx2+1\displaystyle = \fa{\frac{3}{x+1}} + \rf{\frac{1}{2(x+3)}} \mathbin{\fd{-}} \fd{\frac{4x}{x^2+1}}
Evaluate at x=1x = 1Plug in x=1x = 1 to find y\yy{y} and y′y\frac{y'}{\yy{y}}.
x\displaystyle x =1 ⁣:y\displaystyle = 1\colon\quad \yy{y} =23⋅222\displaystyle = \frac{\fa{2^3}\cdot \rf{2}}{\fd{2^2}} =4\displaystyle = \yy{4}
y′y\displaystyle \frac{y'}{\yy{y}} =32+18−2\displaystyle = \fa{\frac32} + \rf{\frac18} \mathbin{\fd{-}} \fd{2} =−38\displaystyle = -\frac38
Multiply y′y\frac{y'}{\yy{y}} by y\yy{y} to get y′(1)y'(1).
y′(1)\displaystyle y'(1) =4⋅(−38)\displaystyle = \yy{4}\cdot\Big(-\frac38\Big) =−32\displaystyle = -\frac32
3
Find the slope of the tangent line to the curve xy=yxx^y = y^x at the point (2,4)(2, 4). (Challenge)

In yln⁡xy\ln x, both yy and ln⁡x\ln x depend on xx. What does the product rule give for ddx(yln⁡x)\frac{d}{dx}(y\ln x)?

First check that (2,4)(2, 4) lies on the curve.
24\displaystyle 2^4 =16\displaystyle = 16 =42\displaystyle = 4^2
Take the natural logTake the natural log of both sides to bring the exponents down.
ln⁡(xy)\displaystyle \ln\big(x^{\yy{y}}\big) =ln⁡(yx)  →  yln⁡x\displaystyle = \ln\big(\yy{y}^x\big) \;\to\; \yy{y}\ln x =xln⁡y\displaystyle = x\ln \yy{y}
Differentiate implicitlyDifferentiate both sides with respect to xx, using the product rule on each side and treating y\yy{y} as a function of xx.
y′ln⁡x+y⋅1x\displaystyle y'\ln x + \yy{y}\cdot\frac{1}{x} =1⋅ln⁡y+x⋅y′y\displaystyle = 1\cdot\ln \yy{y} + x\cdot\frac{y'}{\yy{y}}
Plug in x=2x = 2 and y=4\yy{y} = \yy{4} before solving for y′y', and rewrite ln⁡4\ln 4 as 2ln⁡22\ln 2.
(2,4) ⁣:y′ln⁡2+2\displaystyle (2, 4)\colon\quad y'\ln 2 + 2 =ln⁡4+y′2\displaystyle = \ln 4 + \frac{y'}{2} =2ln⁡2+y′2\displaystyle = 2\ln 2 + \frac{y'}{2}
Group the y′y' terms on one side and solve for y′y'.
y′(ln⁡2−12)\displaystyle y'\Big(\ln 2 - \frac12\Big) =2ln⁡2−2\displaystyle = 2\ln 2 - 2
y′\displaystyle y' =2ln⁡2−2ln⁡2−12\displaystyle = \frac{2\ln 2 - 2}{\ln 2 - \frac12} =4ln⁡2−42ln⁡2−1\displaystyle = \frac{4\ln 2 - 4}{2\ln 2 - 1}
Since ln⁡2\ln 2 is between 12\frac12 and 11, the numerator 4ln⁡2−44\ln 2 - 4 is negative and the denominator 2ln⁡2−12\ln 2 - 1 is positive, so the slope is negative.