3.5 - Recognising a logarithmic integral

3.5 - Recognising a logarithmic integral

Some fractions hide a familiar derivative: the numerator is a multiple of the denominator's derivative. In this part of 3.5, you will recognise that structure, adjust constants or rearrange a numerator, and integrate trigonometric examples such as tangent. Absolute values and interval checks will keep the logarithmic answers valid.

A derivative over its function

Why does ∫2x/(x2+5) dx\int2x/(x^2+5)\,\mathrm dx have a logarithmic answer? The denominator is f(x)=x2+5f(x)=x^2+5, and its derivative is exactly the numerator f′(x)=2xf'(x)=2x. The chain rule already tells us that [ln⁡(x2+5)]′=2x/(x2+5)[\ln(x^2+5)]'=2x/(x^2+5), so integration reverses that step.

You already know

For a differentiable positive function ff, the chain rule gives [ln⁡f(x)]′=f′(x)/f(x)[\ln f(x)]'=f'(x)/f(x). For f(x)<0f(x)<0, ln⁡∣f(x)∣=ln⁡[−f(x)]\ln|f(x)|=\ln[-f(x)], whose derivative is [−f′(x)]/[−f(x)]=f′(x)/f(x)[-f'(x)]/[-f(x)]=f'(x)/f(x) too.

Thus the same ratio works on either side of a zero, but never at the zero. Restrict each antiderivative to an interval where the denominator is nonzero; its arbitrary constant may differ between disconnected intervals.

A logarithmic integral

For differentiable ff with f(x)≠0f(x)\ne0 throughout the interval, and a constant kk,

∫kf′(x)f(x) dx=kln⁡∣f(x)∣+C.\int k\frac{f'(x)}{f(x)}\,\mathrm dx=k\ln|f(x)|+C.

The case k=1k=1 is in the formula booklet, with the arbitrary constant omitted there. A constant multiple follows by linearity of integration.

The function inside the logarithm is the denominator, not its derivative. If the denominator is always positive, the absolute-value bars may be omitted.

Worked example 1: a positive quadratic

Question. Find ∫2xx2+5 dx\displaystyle\int\frac{2x}{x^2+5}\,\mathrm dx.

Plan. Identify the denominator and check that its derivative is the numerator.

Here f=x2+5f=x^2+5 and f′=2xf'=2x. Since x2+5>0x^2+5>0 for every real xx,

∫2xx2+5 dx=ln⁡(x2+5)+C.\int\frac{2x}{x^2+5}\,\mathrm dx=\ln(x^2+5)+C.

Answer. ln⁡(x2+5)+C\ln(x^2+5)+C, for real xx.

Check. Differentiating gives (x2+5)′/(x2+5)=2x/(x2+5)(x^2+5)'/(x^2+5)=2x/(x^2+5), exactly the original integrand.

Change only the sign of the constant in the denominator. The same recognition works, but the denominator can now be negative or zero.

Worked example 2: a denominator that changes sign

Question. Find ∫2xx2−5 dx\displaystyle\int\frac{2x}{x^2-5}\,\mathrm dx, stating the interval restriction.

Plan. Use the same derivative ratio, retain absolute values and exclude the denominator zeros.

The derivative of x2−5x^2-5 is 2x2x, hence

∫2xx2−5 dx=ln⁡∣x2−5∣+C.\int\frac{2x}{x^2-5}\,\mathrm dx=\ln|x^2-5|+C.

The denominator vanishes at x=±5x=\pm\sqrt5.

Answer. ln⁡∣x2−5∣+C\ln|x^2-5|+C on any interval wholly within x<−5x<-\sqrt5, −5<x<5-\sqrt5<x<\sqrt5, or x>5x>\sqrt5.

Check. On the middle interval, the answer is ln⁡(5−x2)+C\ln(5-x^2)+C. Its derivative is −2x/(5−x2)=2x/(x2−5)-2x/(5-x^2)=2x/(x^2-5). On the outside intervals, it is ln⁡(x2−5)+C\ln(x^2-5)+C, with the same derivative ratio.

Taking an absolute value does not make the logarithm exist when the denominator is zero: ln⁡0\ln0 is still undefined. In particular, a finite ordinary definite integral must not be evaluated across such a singularity by merely subtracting two endpoint values.

Watch out

Do not write ln⁡(x2−5)\ln(x^2-5) on −5<x<5-\sqrt5<x<\sqrt5. The original fraction is defined there, but that logarithm is not real. ln⁡∣x2−5∣\ln|x^2-5| supplies the valid real antiderivative.

Look for the derivative of a new quadratic denominator.

Finding the missing factor

The numerator need only be a constant multiple of the denominator's derivative. For 3x/(x2+4)3x/(x^2+4), the derivative of the denominator is 2x2x, so the missing constant is 3/23/2. You multiply the logarithm by that same constant.

Always compare the complete expressions, including coefficients. For example, (6x+3)/(x2+x+4)(6x+3)/(x^2+x+4) is three times the derivative ratio, because 6x+3=3(2x+1)6x+3=3(2x+1). It therefore integrates to 3ln⁡(x2+x+4)+C3\ln(x^2+x+4)+C; the denominator is positive since x2+x+4=(x+1/2)2+15/4x^2+x+4=(x+1/2)^2+15/4.

Worked example 3: a constant multiple

Question. Find ∫3xx2+4 dx\displaystyle\int\frac{3x}{x^2+4}\,\mathrm dx.

Plan. Compare the numerator with (x2+4)′=2x(x^2+4)'=2x, then factor out the ratio 3/23/2.

∫3xx2+4 dx=32∫2xx2+4 dx=32ln⁡(x2+4)+C\begin{aligned} \int\frac{3x}{x^2+4}\,\mathrm dx &=\frac32\int\frac{2x}{x^2+4}\,\mathrm dx\\ &=\frac32\ln(x^2+4)+C \end{aligned}

Answer. 32ln⁡(x2+4)+C\tfrac32\ln(x^2+4)+C.

Check. Differentiating gives (3/2)×2x/(x2+4)=3x/(x2+4)(3/2)\times2x/(x^2+4)=3x/(x^2+4), confirming the outside factor.

Now replace 3x3x by 3x33x^3, keeping the same denominator. The whole numerator is no longer a constant multiple of 2x2x. Rearrange it to leave a power term and a derivative ratio.

Worked example 4: exposing the ratio by rearrangement

Question. Find ∫3x3x2+4 dx\displaystyle\int\frac{3x^3}{x^2+4}\,\mathrm dx.

Plan. Write x2=(x2+4)−4x^2=(x^2+4)-4 in the numerator so that one term cancels the denominator.

3x3=3x(x2+4)−12x3x3x2+4=3x−12xx2+4∫3x3x2+4 dx=32x2−6ln⁡(x2+4)+C\begin{aligned} 3x^3&=3x(x^2+4)-12x\\ \frac{3x^3}{x^2+4}&=3x-\frac{12x}{x^2+4}\\ \int\frac{3x^3}{x^2+4}\,\mathrm dx &=\frac32x^2-6\ln(x^2+4)+C \end{aligned}

The first term uses the power rule; the second uses −12x=−6(2x)-12x=-6(2x).

Answer. 32x2−6ln⁡(x2+4)+C\tfrac32x^2-6\ln(x^2+4)+C.

Check. Differentiating and recombining gives

3x−12xx2+4=3x(x2+4)−12xx2+4=3x3x2+4.3x-\frac{12x}{x^2+4} =\frac{3x(x^2+4)-12x}{x^2+4} =\frac{3x^3}{x^2+4}.

This rearrangement is polynomial division expressed as an identity. It is useful when the numerator's degree is at least the denominator's. It does not make every fraction a logarithmic integral: for example, the numerator 11 in 1/(x2+4)1/(x^2+4) is not a constant multiple of 2x2x.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account