5C

Sketching logarithmic curves

Tangents and normals to logarithmic curves, and finding stationary points and sketching curves involving ln x, paying attention to the domain.

Curves involving $\ln x$ have one feature that polynomials and exponentials don't: a restricted domain. Get the domain first, and most of the sketch falls into place.

Tangents and normals

Example 1●●

Find the tangent to $y = \ln x$ at $x = e$, and the normal at $x = 1$.

Tangent: $y - 1 = \dfrac1e(x - e)$, which simplifies to $y = \dfrac{x}{e}$. It passes through the origin.
At x = e, y = ln e = 1 and the gradient is 1/e.
Normal: $y - 0 = -(x - 1)$, so $y = 1 - x$.
At x = 1, y = 0 and the tangent gradient is 1, so the normal gradient is −1.

Domain and limits

  • $\ln x$ needs $x \gt 0$. So $\ln(x - 3)$ needs $x \gt 3$, and $\ln(x^2)$ needs only $x \ne 0$.
  • Powers beat logs. As $x \to 0^+$, $x\ln x \to 0$, because $x$ shrinks to $0$ faster than $\ln x$ heads to $-\infty$. As $x \to \infty$, $\dfrac{\ln x}{x} \to 0$, because $x$ grows much faster than $\ln x$. You may quote these two limits.

Curve sketching

Example 2●●●

Sketch $y = x\ln x$.

Domain $x \gt 0$. The only zero is at $x = 1$ (since $x \ne 0$). $y \lt 0$ for $0 \lt x \lt 1$, and $y \gt 0$ for $x \gt 1$.
$y' = \ln x + 1 = 0$ when $\ln x = -1$, so $x = \dfrac1e$.
Product rule from 5B.
$y'' = \dfrac1x \gt 0$. Minimum at $\left(\dfrac1e, -\dfrac1e\right) \approx (0.37, -0.37)$.
y″ is positive throughout the domain, so the curve is concave up everywhere and the stationary point is a minimum.
As $x \to 0^+$, $y \to 0$. As $x \to \infty$, $y \to \infty$.
Quote the limit. The curve starts at the origin, but the origin itself is not included.
y = x ln x

Drag P along the curve towards the origin and out to the right.

Try this

Drag P as close to the $y$-axis as you can. What does the height approach? What does the gradient do? Then find the minimum and check it against Example 2.

Example 3●●●

Find the turning point and point of inflection of $y = \dfrac{\ln x}{x}$.

$y' = \dfrac{1 - \ln x}{x^2}$, zero at $x = e$. The sign of $y'$ is the sign of $1 - \ln x$: positive then negative. Maximum at $\left(e, \dfrac1e\right)$.
From 5B.
$y'' = \dfrac{-\frac1x \cdot x^2 - (1 - \ln x)2x}{x^4} = \dfrac{2\ln x - 3}{x^3}$
Quotient rule again: u = 1 − ln x, v = x², so u′ = −1/x and v′ = 2x.
Point of inflection at $\left(e^{\frac32}, \dfrac{3}{2e^{3/2}}\right) \approx (4.48, 0.33)$.
x³ > 0 in the domain, so the sign of y″ is the sign of 2 ln x − 3, which changes where ln x = 3/2.

Your turn

Find the minimum value of $y = x - \ln x$. Hence show that $\ln x \le x - 1$ for all $x \gt 0$.

Show the working

$y' = 1 - \dfrac1x = 0$ at $x = 1$, and $y'' = \dfrac{1}{x^2} \gt 0$, so the minimum is $y = 1 - 0 = 1$. So $x - \ln x \ge 1$, which rearranges to $\ln x \le x - 1$. (The line $y = x - 1$ is the tangent at $(1, 0)$, and a concave down curve lies below its tangents.)

Practice
  1. The domain of $y = \ln(x - 3)$ is:

  2. Find the gradient of the tangent to $y = \ln x$ at $x = 1$.

  3. The tangent to $y = \ln x$ at $x = e$ meets the $y$-axis at $y = c$. Find $c$.

  4. The normal to $y = \ln x$ at $(1, 0)$ meets the $y$-axis at $y = c$. Find $c$.

  5. Find the $x$-value of the minimum of $y = x\ln x$, to two decimal places.

  6. Find the minimum value of $y = x\ln x$, to two decimal places.

  7. The curve $y = x\ln x$ is:

  8. The domain of $y = \ln x^2$ is:

  9. Exam style: $y = \dfrac{\ln x}{x}$ has $y'' = \dfrac{2\ln x - 3}{x^3}$. Find the $x$-value of the point of inflection, to two decimal places.

  10. Exam style: find the minimum value of $y = x - 2\ln x$, to two decimal places.

Formula sheet