topic badge
Standard Level

13.06 Integrals resulting in logarithms

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?

 

In a previous lesson we established that the function $y=\ln x$y=lnx has the derivative is given by $\frac{dy}{dx}=\frac{1}{x}$dydx=1x. This suggests that:

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

However, consider the following derivatives:

 

Original function $f\left(x\right)=\ln\left(x\right)$f(x)=ln(x)   $f\left(x\right)=\ln\left(-x\right)$f(x)=ln(x)   $f\left(x\right)=\ln\left(kx\right),k>0$f(x)=ln(kx),k>0
Derivative
$f'\left(x\right)$f(x) $=$= $\frac{1}{x}$1x

 

 
$f'\left(x\right)$f(x) $=$= $\frac{-1}{-x}$1x
  $=$= $\frac{1}{x}$1x
 
$f'\left(x\right)$f(x) $=$= $\frac{k}{kx}$kkx
  $=$= $\frac{1}{x}$1x
Derivative defined for $x>0$x>0   $x<0$x<0   $x>0$x>0

So, when finding the anti-derivative of $y=\frac{1}{x}$y=1x how do we know which function to select as a primitive? The case where $f\left(x\right)=\ln\left(kx\right)$f(x)=ln(kx) (for $k>0$k>0), is in fact covered by $\int\ \frac{1}{x}dx=\ln x+C$ 1xdx=lnx+C since $\ln(kx)$ln(kx) can be written as $\ln x+\ln k$lnx+lnk using our logarithm laws. However, without additional information restricting the domain of the function $y=\frac{1}{x}$y=1x, the actual integral would be:

$\int\ \frac{1}{x}dx$ 1xdx $\ln x$lnx, $x>0$x>0
   
$\ln\left(-x\right)$ln(x) $x<0$x<0

 

Which can be stated as a single function by using the absolute value function:

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

For this course and exercise we will restrict to only considering cases for $x>0$x>0, even when not explicitly stated, so we will omit the absolute value signs.

The integral $\frac{1}{x}$1x

$\int\frac{1}{x}dx=\ln x+C$1xdx=lnx+C, for some constant $C$C and $x>0$x>0.

 

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{1}{ax+b}$y=1ax+b

For $y=\ln\left(ax+b\right)$y=ln(ax+b), the chain rule gives us a derivative of the form:

$\frac{dy}{dx}=\frac{a}{ax+b}$dydx=aax+b

Reversing this result, it follows that:

$\int\frac{1}{ax+b}dx=\frac{1}{a}\ln\left(\left|ax+b\right|\right)+C$1ax+bdx=1aln(|ax+b|)+C

Again, for this course we will only consider cases where the argument of the resulting logarithmic function is positive.

The integral $\frac{1}{ax+b}$1ax+b

$\int\frac{1}{ax+b}dx=\frac{1}{a}\ln\left(ax+b\right)+C$1ax+bdx=1aln(ax+b)+C, for some constant $C$C and $ax+b>0$ax+b>0.

 

Worked example

Example 1

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

Think: The strategy here is to shift the factor $12$12 outside the integrand symbol and use $\int\frac{1}{ax+b}dx=\frac{1}{a}\ln\left(ax+b\right)+C$1ax+bdx=1aln(ax+b)+C, where $a=5$a=5.

Do:

$\int\frac{12}{x+1}dx$12x+1dx $=$= $12\int\frac{1}{5x+1}dx$1215x+1dx
  $=$= $\frac{12}{5}\ln\left(5x+1\right)+C$125ln(5x+1)+C, where $C$C is a constant.

 

Practice questions

Question 3

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

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

Question 4

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

Express your answer in simplest form.

 

Further integrals resulting in logarithms

Beyond integrals of the forms examined above, we will approach further cases by differentiating a related function and looking to manipulate the integral into a form that uses the property that differentiation and integration are reverse operations. That is, if we have a function $y=f\left(x\right)$y=f(x), then:

$\int\frac{dy}{dx}dx=f\left(x\right)+C$dydxdx=f(x)+C, where $C$C is a constant

Let's look at an example using this approach.

 

Worked example

Example 2

Consider the function $y=\ln\left(x^3+7\right)$y=ln(x3+7).

(a) Find $\frac{dy}{dx}$dydx.

Think: Use the fact if $y=\ln f\left(x\right)$y=lnf(x), then $\frac{dy}{dx}=\frac{f'\left(x\right)}{f\left(x\right)}$dydx=f(x)f(x). Which is an application of the chain rule.

Do:

$\frac{dy}{dx}$dydx $=$= $\frac{3x^2}{x^3+7}$3x2x3+7

 

(b) Hence, find the integral of $f(x)=\frac{12x^2}{x^3+7}$f(x)=12x2x3+7, for $x^3+7>0$x3+7>0.

Think: Notice we have a multiple of the derivative found in part (a). Place the multiplier out the front and use $\int\frac{dy}{dx}dx=f\left(x\right)+C$dydxdx=f(x)+C.

Do:

$\int\frac{12x^2}{x^3+7}\ dx$12x2x3+7 dx $=$= $4\int\frac{3x^2}{x^3+7}\ dx$43x2x3+7 dx
  $=$= $4\ln\left(x^3+7\right)+C$4ln(x3+7)+C, where $C$C is a constant.

 

Practice questions

Question 5

Consider the function $f\left(x\right)=\ln\left(x^2-4\right)$f(x)=ln(x24).

  1. Differentiate $f\left(x\right)$f(x).

  2. Hence, find $\int\frac{6x}{x^2-4}dx$6xx24dx.

    Use $C$C as the constant of integration.

Question 6

Consider the function $f\left(x\right)=x\ln x$f(x)=xlnx.

  1. Differentiate $f\left(x\right)=x\ln x$f(x)=xlnx.

  2. Hence, find $\int\ln xdx$lnxdx.

    Use $C$C as the constant of integration.

 

Area examples

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

 

Worked examples

Example 3

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. This can be done by hand or using technology.

The given function is a transformation of the basic hyperbola $y=\frac{1}{x}$y=1x, by a translation $1$1 unit to the right and with a vertical dilation factor of $16$16. The vertical asymptote is given by $x=1$x=1 and the horizontal asymptote is given by $y=0$y=0. We could plot some points to obtain an accurate shape of the curve.

Do: 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

Hence, the area is $32\ln2$32ln2 units2, which is approximately $22.18$22.18 units2.

Example 4

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. The hyperbola shown below has its vertical asymptote at $x=1.5$x=1.5 and a horizontal asymptote of $y=0$y=0. The graph has also been reflected and dilated.


Do: 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)
  $=$= $\frac{3}{4}\ln3$34ln3

Hence, the area is $\frac{3}{4}\ln3$34ln3 units2, which is approximately $0.824$0.824 units2.

 

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

Consider the function $f\left(x\right)=\frac{6x^5-4x^2+x}{2x^2}$f(x)=6x54x2+x2x2, for $x>0$x>0.

  1. Find $\int f\left(x\right)dx$f(x)dx.

  2. Find the area bounded by $f\left(x\right)$f(x), the $x$x-axis and the lines $x=1$x=1 and $x=2$x=2.

What is Mathspace

About Mathspace