Tutorials › Calculus I › Recognizing Logarithmic Derivative Forms

Integral Evaluation Strategies · Tutorial 1179 of 1495

Recognizing Logarithmic Derivative Forms

Learn to identify logarithmic derivative forms, integrate them with the correct absolute values, and state where the resulting antiderivative is valid.

Advanced 9 min read

What You'll Learn

  • Identify integrands whose numerator is the derivative of the denominator.
  • Use substitution to derive the logarithmic antiderivative rule.
  • Explain why the absolute value is necessary when the inner function is negative.
  • State the intervals on which a logarithmic antiderivative is valid.
  • Apply the rule to a definite integral when the integrand is continuous throughout the interval.
  • Check a proposed antiderivative by differentiation.

Recognizing the Logarithmic Derivative

An integrand can sometimes be recognized as the derivative of a function divided by that same function. This pattern is useful because the quotient may look complicated, while its antiderivative follows from a short rule. The key is to compare the numerator with the derivative of the denominator—not merely to notice that the denominator is a function of \(x\).

Definition: A logarithmic derivative form is an integrand of the form \(f'(x)/f(x)\), where \(f\) is differentiable and \(f(x)\ne 0\) on the interval being considered. Its antiderivative on that interval is \(\ln|f(x)|+C\).

The absolute value matters whenever \(f\) can be negative. The real logarithm \(\ln y\) is defined only for \(y>0\), but \(\ln|f(x)|\) is defined whenever \(f(x)\ne 0\). The interval condition matters as well: the integrand is undefined at any point where \(f(x)=0\).

Why the Logarithm Rule Works

The rule comes from the chain rule and the derivative of the logarithm. If \(f(x)>0\), then differentiating \(\ln(f(x))\) gives \(f'(x)/f(x)\). If \(f(x)<0\), then \(|f(x)|=-f(x)>0\), so differentiating \(\ln|f(x)|=\ln(-f(x))\) gives the same quotient.

$$ \frac{d}{dx}\ln|f(x)| = \begin{cases} \dfrac{f'(x)}{f(x)}, & f(x)>0,\\[6pt] \dfrac{-f'(x)}{-f(x)}, & f(x)<0 \end{cases} = \frac{f'(x)}{f(x)}. $$

Thus, on any interval where \(f\) is differentiable and never zero, \(\ln|f(x)|\) is an antiderivative of \(f'(x)/f(x)\). In integration notation, the rule is

$$ \int \frac{f'(x)}{f(x)}\,dx = \ln|f(x)|+C. $$

The same reasoning can be expressed using substitution. Set \(u=f(x)\), so \(du=f'(x)\,dx\). The integral becomes \(\int du/u=\ln|u|+C\), and substituting \(f(x)\) back for \(u\) gives the stated rule. This substitution is valid on an interval where \(f(x)\ne0\).

Theorem: If \(f\) is differentiable and nonzero throughout an interval \(I\), then \(\ln|f(x)|+C\) is an antiderivative of \(f'(x)/f(x)\) on \(I\). If the domain under consideration has multiple separate intervals, the constant of integration may be different on each interval.

How to Recognize the Form

For an integrand written as a quotient, first call the denominator \(f(x)\). Then differentiate it and compare \(f'(x)\) with the numerator. If the numerator is exactly \(f'(x)\), the rule applies directly. If it is a constant multiple \(k f'(x)\), take that constant outside the logarithm-rule calculation:

$$ \int \frac{k f'(x)}{f(x)}\,dx = k\ln|f(x)|+C. $$

This rule requires a match up to a constant factor. A numerator that merely resembles the denominator’s derivative is not enough. Before integrating, also identify where the denominator is zero, since the formula cannot apply at those points.

1
Name the denominator.
Write it as \(f(x)\) and determine where \(f(x)=0\).
2
Differentiate it.
Calculate \(f'(x)\) and compare it with the numerator.
3
Integrate on an allowed interval.
Use \(\ln|f(x)|+C\), including any constant factor multiplying \(f'(x)\).
4
Check the result.
Differentiate the proposed antiderivative and confirm that it equals the original integrand.

Worked Examples

Worked Example: A Positive Denominator

Evaluate \(\int \frac{6x}{3x^2+5}\,dx\).

Let \(f(x)=3x^2+5\). Its derivative is \(f'(x)=6x\), exactly the numerator. Also, \(3x^2+5>0\) for every real \(x\), so the rule applies on all of \(\mathbb{R}\).

Equivalently, set \(u=3x^2+5\), so \(du=6x\,dx\). Then

$$ \int \frac{6x}{3x^2+5}\,dx = \int \frac{1}{u}\,du = \ln|u|+C = \ln(3x^2+5)+C. $$

Since the expression inside the logarithm is positive, its absolute value can be omitted. To check, differentiate:

$$ \frac{d}{dx}\ln(3x^2+5) = \frac{6x}{3x^2+5}, $$

which is the original integrand.

Worked Example: A Definite Integral on an Interval Without Zeros

Evaluate \(\int_1^2 \frac{3x^2-2}{x^3-2x+4}\,dx\).

Set \(f(x)=x^3-2x+4\), so \(f'(x)=3x^2-2\). To use the rule throughout \([1,2]\), check that the denominator does not vanish there. For \(1\le x\le2\), \(f'(x)=3x^2-2\ge1>0\), so \(f\) is increasing on this interval. Its minimum there is \(f(1)=1-2+4=3>0\). Hence \(f\) is positive throughout \([1,2]\), and the integrand is continuous there.

An antiderivative on the interval is \(\ln|x^3-2x+4|\). The Fundamental Theorem of Calculus therefore gives

$$ \begin{aligned} \int_1^2 \frac{3x^2-2}{x^3-2x+4}\,dx &=\left[\ln|x^3-2x+4|\right]_1^2\\ &=\ln|8-4+4|-\ln|1-2+4|\\ &=\ln 8-\ln 3\\ &=\ln\left(\frac{8}{3}\right). \end{aligned} $$

To check the antiderivative, differentiate it: the chain rule gives \((3x^2-2)/(x^3-2x+4)\). The endpoint values are \(f(2)=8\) and \(f(1)=3\), so the displayed evaluation follows.

Worked Example: A Negative Denominator and the Absolute Value

Find an antiderivative of \(\frac{2x}{x^2-4}\) on the interval \((-2,2)\).

Here \(f(x)=x^2-4\) and \(f'(x)=2x\). For \(-2<x<2\), \(x^2<4\), so \(f(x)<0\) throughout the interval. In particular, \(f\) has no zeros inside this interval, and the logarithmic derivative rule applies:

$$ \int \frac{2x}{x^2-4}\,dx = \ln|x^2-4|+C = \ln(4-x^2)+C, \qquad -2<x<2. $$

The final equality uses \(|x^2-4|=4-x^2\) on this interval. Check by differentiation:

$$ \frac{d}{dx}\ln(4-x^2) = \frac{-2x}{4-x^2} = \frac{2x}{x^2-4}. $$

The derivative agrees with the integrand throughout \((-2,2)\).

Zeros and Intervals of Validity

The points where \(f(x)=0\) divide the real line into intervals on which \(f\) is either positive or negative. On each such interval, the logarithmic derivative rule applies if \(f\) is differentiable there. The sign cannot change within one interval without \(f\) passing through zero, by the Intermediate Value Theorem.

For example, in the preceding example the denominator vanishes at \(x=-2\) and \(x=2\). The logarithmic antiderivative is valid on each of \((-\infty,-2)\), \((-2,2)\), and \((2,\infty)\), but the integrand is undefined at the two zeros. The constants of integration can be chosen independently on those separate intervals. A single constant is used when giving the antiderivative on one connected interval.

Important condition: The formula \(\ln|f(x)|+C\) applies on intervals where \(f(x)\ne0\). If a proposed definite integral includes a zero of \(f\) in its interval, the integrand is not continuous across that point, so the ordinary Fundamental Theorem evaluation across the whole interval does not apply.

Common Mistakes

A frequent error is to omit the absolute value when the inner function can be negative. On \((-2,2)\), writing \(\ln(x^2-4)\) is invalid as a real-valued expression because \(x^2-4<0\). The correction is \(\ln|x^2-4|\), which is well-defined there and equals \(\ln(4-x^2)\).

Another mistake is to use the rule when the numerator is not the derivative of the denominator, even up to a constant factor. For instance, the derivative of \(x^2+1\) is \(2x\), not \(2x+1\). The incorrect claim

$$ \int \frac{2x+1}{x^2+1}\,dx = \ln|x^2+1|+C $$

fails a direct check: the derivative of the proposed right-hand side is \(2x/(x^2+1)\), not \((2x+1)/(x^2+1)\). The logarithmic derivative rule does not apply to this integrand as written. Matching the derivative precisely is essential.

Why This Pattern Matters

Recognizing a logarithmic derivative turns a quotient into a direct antiderivative and can also simplify definite-integral evaluation when the denominator stays nonzero on the interval. More broadly, it provides a useful check: whenever a numerator appears beside a denominator, compare it with the denominator’s derivative before choosing an integration method.

The reliable procedure is to identify \(f\), compute \(f'\), check for a match up to a constant, and state an interval that avoids the zeros of \(f\). The absolute value then handles either sign of \(f\), and differentiation verifies the result.

Check Your Understanding

For each question, state the interval conditions that matter as well as the calculation.

  1. Evaluate \(\int \frac{4x}{2x^2+7}\,dx\), and verify your answer by differentiation.
  2. On which intervals can the rule be applied to \(\frac{1}{x}\), and what is an antiderivative on each interval?
  3. Explain why \(\ln|f(x)|\), rather than always \(\ln(f(x))\), is used in the logarithmic derivative rule.
  4. Does the logarithmic derivative rule apply directly to \(\frac{2x+3}{x^2+3x+5}\)? Compare the numerator with the derivative of the denominator.
  5. Why does a zero of \(f\) prevent using the rule across an interval containing that point?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon