AP Calculus AB and BC

Derivative of x/ln x: Answer, Proof, Mistakes

The derivative of x/ln x with respect to x is (ln x - 1)/(ln x)^2. The quotient rule gives ln x times 1 minus x times 1/x, all over (ln x)^2, and the term x times 1/x simplifies to 1. The formula holds for x greater than 0 with x not equal to 1, since ln 1 = 0 makes the quotient undefined.

ddx[xln⁡x]=ln⁡x−1(ln⁡x)2\frac{d}{dx}\left[\frac{x}{\ln x}\right] = \frac{\ln x-1}{(\ln x)^2}

The proof: quotient rule on x/ln x

The quotient rule multiplies the derivative of the top by the bottom, subtracts the top times the derivative of the bottom, and divides the whole thing by the bottom squared.

ddx[f(x)g(x)]=f′(x)g(x)−f(x)g′(x)[g(x)]2\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] = \frac{f'(x)g(x) - f(x)g'(x)}{\left[g(x)\right]^2}

Here f(x)=xf(x) = x and g(x)=ln⁡xg(x) = \ln x, so f′(x)=1f'(x) = 1 and g′(x)=1xg'(x) = \frac{1}{x}.

ddx(xln⁡x)=1⋅ln⁡x−x⋅1x(ln⁡x)2=ln⁡x−1(ln⁡x)2\frac{d}{dx}\left(\frac{x}{\ln x}\right) = \frac{1\cdot\ln x - x\cdot\frac{1}{x}}{(\ln x)^2} = \frac{\ln x - 1}{(\ln x)^2}

The subtracted term collapses because x⋅1x=1x\cdot\frac{1}{x} = 1, so the numerator is exactly ln⁡x−1\ln x - 1. Keep the denominator written as (ln⁡x)2(\ln x)^2, the square of the logarithm, which is a different object from ln⁡(x2)\ln(x^2).

Domain, the asymptote at x = 1, and the minimum at e

Two conditions restrict the domain. The logarithm needs x>0x > 0, and the denominator needs ln⁡x≠0\ln x \neq 0, which throws out x=1x = 1. So the function lives on 0<x<10 < x < 1 and on x>1x > 1, with a vertical asymptote separating the two pieces.

Setting the numerator to zero gives ln⁡x=1\ln x = 1, so x=ex = e. Just left of ee the numerator is negative and just right of it the numerator is positive, so the First Derivative Test marks x=ex = e as a minimum of the branch x>1x > 1.

eln⁡e=e1=e\frac{e}{\ln e} = \frac{e}{1} = e

On 0<x<10 < x < 1 the numerator ln⁡x−1\ln x - 1 is negative while (ln⁡x)2(\ln x)^2 is positive, so the function decreases across that entire piece. The differentiation itself is Topic 2.9 (The Quotient Rule); the sign analysis is Unit 5 work.

Common mistakes

  • Differentiating top and bottom separately to get 11x=x\frac{1}{\frac{1}{x}} = x. That is the shape of L'Hopital's Rule, which applies to limits of indeterminate forms, not to derivatives of quotients.
  • Reversing the numerator to 1−ln⁡x(ln⁡x)2\frac{1 - \ln x}{(\ln x)^2}, which is the negative of the correct answer. Derivative of the top times the bottom comes first.
  • Writing the denominator as ln⁡(x2)\ln(x^2). That equals 2ln⁡x2\ln x, not (ln⁡x)2(\ln x)^2.
  • Forgetting that x=1x = 1 is excluded. The derivative formula fails there too, since (ln⁡1)2=0(\ln 1)^2 = 0.

Check yourself, not just the answer

Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.

Frequently asked questions

What is the derivative of x/ln x?

It is ln⁡x−1(ln⁡x)2\frac{\ln x - 1}{(\ln x)^2}, from the quotient rule with f(x)=xf(x) = x and g(x)=ln⁡xg(x) = \ln x.

Where is x/ln x increasing?

Only for x>ex > e. The derivative is positive exactly when ln⁡x>1\ln x > 1, and it is negative on 0<x<10 < x < 1 and on 1<x<e1 < x < e.

Why is x = 1 not in the domain?

Because ln⁡1=0\ln 1 = 0, so the quotient divides by zero. The graph has a vertical asymptote at x=1x = 1, and the derivative is undefined there as well.