Practice Maths

The Natural Logarithm and Differentiating ln(x)

Key Terms

Natural logarithm
ln(x) = loge(x) where e ≈ 2.718; the inverse function of ex; domain: x > 0.
Derivative of ln(x)
d/dx[ln(x)] = 1/x for x > 0.
Chain rule form
d/dx[ln(f(x))] = f′(x) / f(x).
Log laws
ln(ab) = ln a + ln b; ln(a/b) = ln a − ln b; ln(an) = n ln a.
Using log laws before differentiating
Simplify ln of products or powers before differentiating to avoid the chain rule where possible.
Key integral
∫ (1/x) dx = ln|x| + c (absolute value needed since ln is only defined for x > 0).
The Natural Logarithm
ln(x) = loge(x)    Domain: x > 0
ln(1) = 0    ln(e) = 1

Derivatives:
d/dx[ln(x)] = 1/x    (x > 0)
d/dx[ln(f(x))] = f′(x) / f(x)   (chain rule)

Integral:
∫ 1/x dx = ln|x| + c

Log Laws:
ln(ab) = ln a + ln b    ln(a/b) = ln a − ln b
ln(an) = n ln a
Worked Example 1: Differentiate y = ln(3x).

Method 1 (chain rule): Let f(x) = 3x, so f′(x) = 3.
dy/dx = f′(x)/f(x) = 3/(3x) = 1/x

Method 2 (log law first): y = ln(3x) = ln 3 + ln x
dy/dx = 0 + 1/x = 1/x

Both methods agree. The constant ln 3 vanishes on differentiation.
Worked Example 2: Differentiate y = ln(x² + 1).

Let f(x) = x² + 1, so f′(x) = 2x.
dy/dx = f′(x)/f(x) = 2x/(x² + 1)

Note: x² + 1 > 0 for all x, so the domain is all real numbers.
Hot Tip: For ln(x), the domain requires x > 0. For ln(f(x)), you need f(x) > 0. Always state the domain restriction. In the derivative d/dx[ln(f(x))] = f′(x)/f(x), do NOT write f(x)/f′(x) — numerator and denominator are easily swapped.

The Natural Logarithm: What It Is and Where It Comes From

The natural logarithm ln(x) is defined as loge(x), where e ≈ 2.71828 is Euler’s number. While this might seem like an arbitrary base, ln(x) is in fact the most fundamental logarithm in calculus — not base 10. The reason becomes clear from its derivative.

Historically, the natural logarithm was discovered through the problem of finding the area under the hyperbola y = 1/t from t = 1 to t = x. This area turns out to equal ln(x). That is: ∫1x (1/t) dt = ln(x). This connection between 1/x and its antiderivative is precisely why the derivative of ln(x) is so clean.

The Derivative of ln(x)

The key result is: d/dx[ln(x)] = 1/x for x > 0. This is one of the most important derivatives you will use. It fills a crucial gap — the power rule ∫xn dx = xn+1/(n+1) + c fails when n = −1. The natural logarithm provides the antiderivative of 1/x: ∫ 1/x dx = ln|x| + c. The absolute value handles negative values of x.

Using the chain rule, if y = ln(f(x)), then dy/dx = f′(x)/f(x). This is sometimes described as “the derivative of what’s inside, divided by what’s inside.” For example, d/dx[ln(x² + 4)] = 2x/(x² + 4).

Using Log Laws Before Differentiating

The log laws are powerful simplification tools. When you see a product, quotient, or power inside a logarithm, it is often faster to expand using log laws before differentiating, rather than applying the chain rule directly.

For example, to differentiate y = ln(x3), you could use the chain rule directly (getting 3x²/x3 = 3/x), or you could first write y = 3 ln(x) using the power law, giving dy/dx = 3/x immediately — much simpler.

Similarly, ln(x²√(x+1)) = 2 ln x + ½ ln(x+1). Differentiating term by term: 2/x + 1/(2(x+1)). This avoids a messy chain rule calculation on the combined expression.

Domain and Graphical Features of ln(x)

The function y = ln(x) has domain x > 0 only. It passes through (1, 0) since ln(1) = 0, and through (e, 1) since ln(e) = 1. As x → 0+, ln(x) → −∞ (vertical asymptote at x = 0). As x → ∞, ln(x) → ∞ but very slowly — much slower than any power of x.

The gradient function 1/x is always positive for x > 0, confirming that ln(x) is always increasing. The second derivative is −1/x² < 0, confirming the curve is always concave down. There are no stationary points.

Finding Tangent Lines and Stationary Points

Tangent line problems follow the standard process: find the gradient dy/dx at the given x-value, then use y − y1 = m(x − x1). For the function y = x ln(x), we need the product rule: dy/dx = ln(x) + x × (1/x) = ln(x) + 1. Setting this to zero: ln(x) = −1 ⇒ x = e−1 = 1/e. At this point y = (1/e) ln(1/e) = (1/e)(−1) = −1/e. So the stationary point is (1/e, −1/e).

Exam technique: When finding the gradient of a log function at a specific point, substitute the x-value into the derivative expression, not into the original function. Common error: students substitute x into ln(x) rather than into 1/x or 2x/(x²+1).

Mastery Practice

  1. Find d/dx[ln(2x)].
  2. Find d/dx[ln(x3)].
  3. Find d/dx[ln(x² + 4)].
  4. Find d/dx[ln(sin x)].
  5. Find the gradient of y = ln(3x − 1) at x = 2.
  6. Find the equation of the tangent to y = ln(x) at x = e.
  7. State the domain of y = ln(2x − 1), and find dy/dx.
  8. Use log laws to simplify, then differentiate: y = ln(x²(x + 1)3).
  9. Find the stationary point of f(x) = x ln(x) and determine its nature.
  10. Sketch the graph of y = ln(2x − 1), showing all key features including the vertical asymptote, x-intercept, and gradient at a specific point.