Worked examples
The question
Question: find dy/dx for y = x^(x), using logarithms.
y = xΛ£
x is in the base and in the power.
The power rule needs a fixed power.
The bΛ£ rule needs a fixed base.
Neither works, so we take ln.
x is in the base AND the power
Careful!
The power rule is only for a fixed power.
Here the power changes with x.
Careful: not xΛ£ β xx^(x β 1) β
1 Take ln of both sides
Take ln of both sides.
Both sides stay equal.
ln y = ln(xΛ£)
2 Use the log rules
The log rule: a power inside ln comes down in front.
ln(a^b) = b ln a
So ln y is x times ln x.
No more power!
ln y = x ln x
3 The derivative of each side
The left side: y depends on x, so the chain rule gives 1/y, times dy/dx.
(ln y)β² = 1y Γ dydx
The right side is a product: use the product rule.
x gives 1, and ln x gives 1 over x.
1ydydx = 1 Γ ln x + x Γ 1x
4 Multiply by y
Multiply both sides by y, to get dy/dx alone.
dydx = y(1 Γ ln x + x Γ 1x)
5 Put y back
Put y = x^(x) back, and tidy the bracket: xΛ£(ln x + 1).
dydx = xΛ£(ln x + 1)
6 Check
Let's check: the derivative is the slope.
At x = 2, our answer gives 6.7726, with a calculator.
dy/dx at x = 2: 6.7726
Now the slope between two very close points: x = 2 and x = 2.001.
A calculator gives about 6.78.
Very close to 6.7726.
Right!
y(2.001) β y(2)0.001 β 6.78
Let's look back.
First: take ln of both sides.
Then: use the log rules.
Then: the derivative of each side.
Then: multiply by y.
Then: put y back.
Last: check.
Answer dydx = xΛ£(ln x + 1)
βΆ Watch it solved
The question
Question: find dy/dx for y = x^(sin x), using logarithms.
y = x^(sin x)
x is in the base and in the power.
The power rule needs a fixed power.
The bΛ£ rule needs a fixed base.
Neither works, so we take ln.
x is in the base AND the power
Careful!
The power rule is only for a fixed power.
Here the power changes with x.
Careful: not x^(sin x) β (sin x)x^(sin x β 1) β
1 Take ln of both sides
Take ln of both sides.
Both sides stay equal.
ln y = ln(x^(sin x))
2 Use the log rules
The log rule: a power inside ln comes down in front.
ln(a^b) = b ln a
So ln y is sin x, times ln x.
No more power!
ln y = (sin x) ln x
3 The derivative of each side
The left side: y depends on x, so the chain rule gives 1/y, times dy/dx.
(ln y)β² = 1y Γ dydx
The right side is a product: use the product rule.
sin x, gives cos x, and ln x gives 1 over x.
1ydydx = cos x Γ ln x + (sin x) Γ 1x
4 Multiply by y
Multiply both sides by y, to get dy/dx alone.
dydx = y(cos x Γ ln x + (sin x) Γ 1x)
5 Put y back
Put y = x^(sin x) back, and tidy the bracket: x^(sin x) (cos x ln x + sin x/x).
dydx = x^(sin x)(cos x ln x + sin xx)
6 Check
Let's check: the derivative is the slope.
At x = 2, our answer gives 0.3121, with a calculator in radians.
dy/dx at x = 2: 0.3121
Now the slope between two very close points: x = 2 and x = 2.001.
A calculator gives about 0.31.
Very close to 0.3121.
Right!
y(2.001) β y(2)0.001 β 0.31
Let's look back.
First: take ln of both sides.
Then: use the log rules.
Then: the derivative of each side.
Then: multiply by y.
Then: put y back.
Last: check.
Answer dydx = x^(sin x)(cos x ln x + sin xx)
βΆ Watch it solved
The question
Question: find dy/dx for y = (x + 1)Β³ over (x + 2)Β², using logarithms.
y = (x + 1)3(x + 2)2
The log rules turn a product into a sum, a fraction into a difference, and bring powers down.
ln(ab) = ln a + ln b
lnab = ln a β ln b
ln(a^n) = n ln a
Careful!
The ln of a product is a sum of lns, not a product.
Careful: not ln(ab) = ln a Γ ln b β
1 Take ln of both sides
Take ln of both sides.
ln y = ln(x + 1)3(x + 2)2
2 Use the log rules
Use the log rules: each power comes down, multiplying becomes adding, dividing becomes taking away.
ln y = 3 ln(x + 1) β 2 ln(x + 2)
3 The derivative of each side
The left side: 1/y, times dy/dx, by the chain rule.
Each ln(x + c) gives 1/x + c.
(ln y)β² = 1y Γ dydx
(ln(x + c))β² = 1x + c
Each power waits in front.
1ydydx = 3x + 1 β 2x + 2
4 Multiply by y
Multiply both sides by y.
dydx = y(3x + 1 β 2x + 2)
5 Put y back
Put y back.
dy/dx = (x + 1)Β³ over (x + 2)Β² Γ (3/(x + 1) β 2/(x + 2)).
Books leave it like this.
dydx = (x + 1)3(x + 2)2(3x + 1 β 2x + 2)
6 Check
Let's check: the derivative is the slope.
At x = 2, our answer gives 0.8438, with a calculator.
dy/dx at x = 2: 0.8438
Now the slope between two very close points: x = 2 and x = 2.001.
A calculator gives about 0.84.
Very close to 0.8438.
Right!
y(2.001) β y(2)0.001 β 0.84
Let's look back.
First: take ln of both sides.
Then: use the log rules.
Then: the derivative of each side.
Then: multiply by y.
Then: put y back.
Last: check.
Answer dydx = (x + 1)3(x + 2)2(3x + 1 β 2x + 2)
βΆ Watch it solved