Mister Exam

Other calculators

Integral of log(x-2) dx

Limits of integration:

from to
v

The graph:

from to

Piecewise:

The solution

You have entered [src]
  1              
  /              
 |               
 |  log(x - 2) dx
 |               
/                
0                
01log(x2)dx\int\limits_{0}^{1} \log{\left(x - 2 \right)}\, dx
Integral(log(x - 2), (x, 0, 1))
Detail solution
  1. There are multiple ways to do this integral.

    Method #1

    1. Let u=x2u = x - 2.

      Then let du=dxdu = dx and substitute dudu:

      log(u)du\int \log{\left(u \right)}\, du

      1. Use integration by parts:

        udv=uvvdu\int \operatorname{u} \operatorname{dv} = \operatorname{u}\operatorname{v} - \int \operatorname{v} \operatorname{du}

        Let u(u)=log(u)u{\left(u \right)} = \log{\left(u \right)} and let dv(u)=1\operatorname{dv}{\left(u \right)} = 1.

        Then du(u)=1u\operatorname{du}{\left(u \right)} = \frac{1}{u}.

        To find v(u)v{\left(u \right)}:

        1. The integral of a constant is the constant times the variable of integration:

          1du=u\int 1\, du = u

        Now evaluate the sub-integral.

      2. The integral of a constant is the constant times the variable of integration:

        1du=u\int 1\, du = u

      Now substitute uu back in:

      x+(x2)log(x2)+2- x + \left(x - 2\right) \log{\left(x - 2 \right)} + 2

    Method #2

    1. Use integration by parts:

      udv=uvvdu\int \operatorname{u} \operatorname{dv} = \operatorname{u}\operatorname{v} - \int \operatorname{v} \operatorname{du}

      Let u(x)=log(x2)u{\left(x \right)} = \log{\left(x - 2 \right)} and let dv(x)=1\operatorname{dv}{\left(x \right)} = 1.

      Then du(x)=1x2\operatorname{du}{\left(x \right)} = \frac{1}{x - 2}.

      To find v(x)v{\left(x \right)}:

      1. The integral of a constant is the constant times the variable of integration:

        1dx=x\int 1\, dx = x

      Now evaluate the sub-integral.

    2. Rewrite the integrand:

      xx2=1+2x2\frac{x}{x - 2} = 1 + \frac{2}{x - 2}

    3. Integrate term-by-term:

      1. The integral of a constant is the constant times the variable of integration:

        1dx=x\int 1\, dx = x

      1. The integral of a constant times a function is the constant times the integral of the function:

        2x2dx=21x2dx\int \frac{2}{x - 2}\, dx = 2 \int \frac{1}{x - 2}\, dx

        1. Let u=x2u = x - 2.

          Then let du=dxdu = dx and substitute dudu:

          1udu\int \frac{1}{u}\, du

          1. The integral of 1u\frac{1}{u} is log(u)\log{\left(u \right)}.

          Now substitute uu back in:

          log(x2)\log{\left(x - 2 \right)}

        So, the result is: 2log(x2)2 \log{\left(x - 2 \right)}

      The result is: x+2log(x2)x + 2 \log{\left(x - 2 \right)}

  2. Now simplify:

    x+(x2)log(x2)+2- x + \left(x - 2\right) \log{\left(x - 2 \right)} + 2

  3. Add the constant of integration:

    x+(x2)log(x2)+2+constant- x + \left(x - 2\right) \log{\left(x - 2 \right)} + 2+ \mathrm{constant}


The answer is:

x+(x2)log(x2)+2+constant- x + \left(x - 2\right) \log{\left(x - 2 \right)} + 2+ \mathrm{constant}

The answer (Indefinite) [src]
  /                                              
 |                                               
 | log(x - 2) dx = 2 + C - x + (x - 2)*log(x - 2)
 |                                               
/                                                
log(x2)dx=Cx+(x2)log(x2)+2\int \log{\left(x - 2 \right)}\, dx = C - x + \left(x - 2\right) \log{\left(x - 2 \right)} + 2
The graph
-0.010-0.008-0.006-0.004-0.0020.0100.0000.0020.0040.0060.0080.00
The answer [src]
-1 + 2*log(2) + pi*I
1+2log(2)+iπ-1 + 2 \log{\left(2 \right)} + i \pi
=
=
-1 + 2*log(2) + pi*I
1+2log(2)+iπ-1 + 2 \log{\left(2 \right)} + i \pi
-1 + 2*log(2) + pi*i
Numerical answer [src]
(0.386294361119891 + 3.14159265358979j)
(0.386294361119891 + 3.14159265358979j)

    Use the examples entering the upper and lower limits of integration.