topic badge

9.02 Integration involving logarithmic functions

Lesson

The integral of the reciprocal function $y=\frac{1}{x}$y=1x

Recall one of the first general rules of integration that we encountered:

$\int x^ndx=\frac{x^{n+1}}{n+1},n\ne-1$xndx=xn+1n+1,n1

In particular, notice that this rule does not apply for $n=-1$n=1. Why is this?

Well, for $n=-1$n=1, if we try to find $\int\frac{1}{x}dx$1xdx using that rule we get the undefined solution $\frac{x^0}{0}$x00

On the other hand, the graph of $y=\frac{1}{x}$y=1x most certainly has area between the curve and the $x$x-axis. So there should be a solution to definite integrals involving $\frac{1}{x}$1x, as long as the interval does not cross $x=0$x=0 (where the function $y=\frac{1}{x}$y=1x is undefined).

So what can we do about this apparent gap in the rule for integrating powers?

Recall that for the function $y=\ln x$y=lnx, we have established that the derivative is given by $\frac{dy}{dx}=\frac{1}{x}$dydx=1x. Using this, we can see that:

$\int\ \frac{1}{x}dx=\ln x+C$ 1xdx=lnx+C

In fact it is actually more correct to say that $\int\ \frac{1}{x}\ dx=\ln\left|x\right|+C$ 1x dx=ln|x|+C, since the logarithmic function is only defined for positive arguments while the reciprocal function is defined for all non-zero values of $x$x.

For the purposes of this discussion, however, we will omit the absolute value signs as is the regular practice of most school textbooks on this topic.

Thus we find that $\int_1^a\frac{1}{x}dx=\left[\ln x\right]_1^a=\ln a$a11xdx=[lnx]a1=lna as shown here:

Standard form for integrating $\frac{1}{x}$1x

$\int\frac{1}{x}dx=\ln\left|x\right|+C$1xdx=ln|x|+C, for some constant $C$C

 

Use the following applet to explore the relationship between the integral involving $\frac{1}{x}$1x and the area of the curve bound by $\frac{1}{x}$1x and the $x$x-axis with limits of $1$1 and $a$a.

 

Practice questions

Question 1

The derivative of $f\left(x\right)$f(x) is $\frac{1}{x}$1x.

Which of the following could be the function? Select all the correct options.

  1. $f\left(x\right)=k\ln x$f(x)=klnx

    A

    $f\left(x\right)=\ln\left(\left|kx\right|\right)$f(x)=ln(|kx|)

    B

    $f\left(x\right)=\ln kx$f(x)=lnkx for $k<0$k<0, $x>0$x>0

    C

    $f\left(x\right)=\ln x$f(x)=lnx

    D

    $f\left(x\right)=\ln kx$f(x)=lnkx for $k>0$k>0, $x<0$x<0

    E

Question 2

Determine $\int\frac{3}{4x}dx$34xdx.

Use $C$C as the constant of integration.

The integral of $y=\frac{f'(x)}{f(x)}$y=f(x)f(x)

Recall that we found in lesson 6.03 that for $y=\ln\left(f\left(x\right)\right)$y=ln(f(x)), the chain rule gives us a derivative of the form $\frac{dy}{dx}=\frac{f'\left(x\right)}{f\left(x\right)}$dydx=f(x)f(x).

Reversing this result, it follows that:

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

That is, an expression of the form $\frac{f'\left(x\right)}{f\left(x\right)}$f(x)f(x) (where the numerator is the derivative of the denominator) is the derivative of a logarithmic function.

$f\left(x\right)$f(x) can be any expression involving $x$x, so we can use this general result to find and/or evaluate many integrals. Let's look at a few examples.

Worked examples

Example 1

Evaluate $\int\frac{12}{x+1}dx$12x+1dx

Think: The strategy here is to shift the factor $12$12 through the integrand symbol.

Do:

$\int\frac{12}{x+1}dx$12x+1dx $=$= $12\int\frac{1}{x+1}dx$121x+1dx
  $=$= $12\ln\left(x+1\right)+c$12ln(x+1)+c

Note that since $\frac{\mathrm{d}}{\mathrm{d}x}\ln(x+1)=\frac{1}{x+1}$ddxln(x+1)=1x+1, then $\int\frac{dx}{x+1}=\ln(x+1)+c$dxx+1=ln(x+1)+c.

Example 2

Evaluate $\int\frac{3x^2}{x^3+7}dx$3x2x3+7dx

Think: Here, if we imagine that $f(x)$f(x)$=x^3+7$=x3+7, then $f'(x)=3x^2$f(x)=3x2, and so the integral is precisely in the form that is required. We can simply write down, without adjustment, the solution.

Do:

$\int\frac{3x^2}{x^3+7}dx$3x2x3+7dx $=$= $\ln(x^3+7)+c$ln(x3+7)+c

 

Practice questions

Question 3

Find the exact value of $\int_4^6\frac{1}{x-2}dx$641x2dx.

Express your answer in simplest form.

Question 4

Determine $\int\frac{1}{2x+3}dx$12x+3dx.

You may use $C$C as the constant of integration.

When the derivative isn't quite in the form $\frac{f'\left(x\right)}{f\left(x\right)}$f(x)f(x)

Consider $\int\frac{1}{2x-3}dx$12x3dx.

In this case, the derivative of the denominator is $2$2. So if the expression were $\int\frac{2}{2x-3}dx$22x3dx, we could immediately recognise it as the derivative of $\ln\left(2x-3\right)+C$ln(2x3)+C.

With a bit of manipulation, we can rewrite the integrand in the form we want:

$\int\frac{1}{2x-3}dx$12x3dx $=$= $\int\frac{1}{2}\times\frac{2}{2x-3}dx$12×22x3dx
  $=$= $\frac{1}{2}\int\frac{2}{2x-3}dx$1222x3dx

By rewriting the expression in this slightly modified form, we get the integral $\frac{f'\left(x\right)}{f\left(x\right)}$f(x)f(x), which we then know integrates to give $\frac{1}{2}\ln\left(2x-3\right)+C$12ln(2x3)+C.

So if the integrand is not immediately in the form we want, we can see if multiplying and dividing by constants will help rewrite it in the form of the derivative of a log function.

Things to consider

In deciding whether or not logarithms are involved in the evaluation of an integral, we should first look to see if the integrand (the function being integrated) is given as an algebraic fraction. If so, we should check the following:

  • Is the derivative of the 'denominator function' some multiple of the the 'numerator function' (as in worked examples $1$1, $2$2, $4$4, $5$5, and $6$6)?
  • Can the integrand be split up into multiple fractions, where one or more of these are in the form $\frac{f'\left(x\right)}{f\left(x\right)}$f(x)f(x) (as in worked example $3$3 below)?

Worked examples

Example 3

Evaluate $\int_1^3\frac{12x^2+4x+1}{2x}dx$3112x2+4x+12xdx

Think: The strategy is to split the integrand up into three parts and integrate term by term.

Do:

$\int_1^3\frac{12x^2+4x+1}{2x}dx$3112x2+4x+12xdx $=$= $\int_1^36x+2+\frac{1}{2x}dx$316x+2+12xdx
  $=$= $\left[\frac{6x^2}{2}+2x+\frac{1}{2}\ln x\right]_1^3$[6x22+2x+12lnx]31
  $=$= $\left[\left(27+6+\frac{1}{2}\ln3\right)-\left(3+2+0\right)\right]$[(27+6+12ln3)(3+2+0)]
  $=$= $28+\frac{1}{2}\ln3$28+12ln3
Example 4

Evaluate $\int\frac{6x^2-1}{4x^3-2x+1}dx$6x214x32x+1dx

Think: The derivative of the denominator function is a factor of $2$2 more than the numerator function. The strategy is then to increase the numerator by a factor of $2$2, but then reduce the integral by a factor of a half to restore the original question.

Do:

$\int\frac{6x^2-1}{4x^3-2x+1}dx$6x214x32x+1dx $=$= $\frac{1}{2}\int\frac{12x^2-2}{4x^3-2x+1}dx$1212x224x32x+1dx
  $=$= $\frac{1}{2}\ln\left(4x^3-2x+1\right)+C$12ln(4x32x+1)+C
 
Standard form for integrating reciprocal functions

$\int\frac{f'\left(x\right)}{f\left(x\right)}dx=\ln\left|f\left(x\right)\right|+C$f(x)f(x)dx=ln|f(x)|+C, for some constant $C$C

Practice questions

Question 5

Determine $\int\frac{4x-4}{x^2-2x}dx$4x4x22xdx.

You may use $C$C as the constant of integration.

Question 6

The gradient of a curve at any point is given by $f'\left(x\right)=\frac{5}{5x-4}$f(x)=55x4, and the curve passes through the point $\left(3,\ln11\right)$(3,ln11).

Define $f\left(x\right)$f(x). You may use $C$C to represent the constant of integration if needed.

Area examples

Consider the following examples carefully. The areas shown in each graph involves evaluating integrals of functions that lead directly to log functions.

Worked examples

Example 5

Find the area under the curve $y=\frac{16}{x-1}$y=16x1 between $x=3$x=3 and $x=9$x=9 .

Think: Sketching the function and area to be calculated assists with determining the best strategy for solving the problem.

Do: The sketch is quite straight forward - a hyperbola translated $1$1 unit to the right with a dilation factor of $16$16. We could find some points on the curve by thinking about certain values of $x$x - for example, at $x=5$x=5 we have $y=\frac{16}{5-1}=4$y=1651=4, and at $x=9$x=9, $y=\frac{16}{9-1}=2$y=1691=2. The vertical asymptote is given by $x=1$x=1.

The area is then given by:

$A$A $=$= $\int_3^9\frac{16}{x-1}dx$9316x1dx
  $=$= $16\left[\ln\left(x-1\right)\right]_3^9$16[ln(x1)]93
  $=$= $16\left(\ln8-\ln2\right)$16(ln8ln2)
  $=$= $16\left(3\ln2-\ln2\right)$16(3ln2ln2)
  $=$= $32\ln2$32ln2
  $\approx$ $22.18$22.18

 

Hence the area is approximately $22.18$22.18 units2.

Example 6

Find the area under the curve $y=\frac{3}{6-4x}$y=364x between $x=0$x=0 and $x=1$x=1

Think: A sketch will help us visualise the area to be calculated.

Do: The inverted hyperbola shown below has its vertical asymptote at $x=1.5$x=1.5 and a dilation factor of $3$3.


The area is then found as follows:

$A$A $=$= $\int_0^1\frac{3}{6-4x}dx$10364xdx
  $=$= $-\frac{3}{4}\int_0^1\frac{-4}{6-4x}dx$3410464xdx
  $=$= $-\frac{3}{4}\left[\ln\left(6-4x\right)\right]_0^1$34[ln(64x)]10
  $=$= $-\frac{3}{4}\left(\ln2-\ln6\right)$34(ln2ln6)
  $=$= $\frac{3}{4}\left(\ln6-\ln2\right)$34(ln6ln2)
  $\approx$ $0.824$0.824
 

Practice questions

Question 7

Consider the function $y=\frac{2}{3x+5}$y=23x+5.

  1. Sketch a graph of the function.

    Loading Graph...

  2. Find the exact area enclosed by the curve, the coordinate axes and the line $x=4$x=4.

Question 8

Find the area enclosed by the function $f\left(x\right)=\frac{x}{x^2+2}$f(x)=xx2+2, the $x$x-axis and the lines $x=2$x=2 and $x=4$x=4.

Outcomes

MA12-3

applies calculus techniques to model and solve problems

MA12-7

applies the concepts and techniques of indefinite and definite integrals in the solution of problems

What is Mathspace

About Mathspace