Mister Exam

Other calculators

Integral of (x^2+x+2)/(x-1) dx

Limits of integration:

from to
v

The graph:

from to

Piecewise:

The solution

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

    Method #1

    1. Rewrite the integrand:

      (x2+x)+2x1=x+2+4x1\frac{\left(x^{2} + x\right) + 2}{x - 1} = x + 2 + \frac{4}{x - 1}

    2. Integrate term-by-term:

      1. The integral of xnx^{n} is xn+1n+1\frac{x^{n + 1}}{n + 1} when n1n \neq -1:

        xdx=x22\int x\, dx = \frac{x^{2}}{2}

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

        2dx=2x\int 2\, dx = 2 x

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

        4x1dx=41x1dx\int \frac{4}{x - 1}\, dx = 4 \int \frac{1}{x - 1}\, dx

        1. Let u=x1u = x - 1.

          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(x1)\log{\left(x - 1 \right)}

        So, the result is: 4log(x1)4 \log{\left(x - 1 \right)}

      The result is: x22+2x+4log(x1)\frac{x^{2}}{2} + 2 x + 4 \log{\left(x - 1 \right)}

    Method #2

    1. Rewrite the integrand:

      (x2+x)+2x1=x2x1+xx1+2x1\frac{\left(x^{2} + x\right) + 2}{x - 1} = \frac{x^{2}}{x - 1} + \frac{x}{x - 1} + \frac{2}{x - 1}

    2. Integrate term-by-term:

      1. Rewrite the integrand:

        x2x1=x+1+1x1\frac{x^{2}}{x - 1} = x + 1 + \frac{1}{x - 1}

      2. Integrate term-by-term:

        1. The integral of xnx^{n} is xn+1n+1\frac{x^{n + 1}}{n + 1} when n1n \neq -1:

          xdx=x22\int x\, dx = \frac{x^{2}}{2}

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

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

        1. Let u=x1u = x - 1.

          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(x1)\log{\left(x - 1 \right)}

        The result is: x22+x+log(x1)\frac{x^{2}}{2} + x + \log{\left(x - 1 \right)}

      1. Rewrite the integrand:

        xx1=1+1x1\frac{x}{x - 1} = 1 + \frac{1}{x - 1}

      2. 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. Let u=x1u = x - 1.

          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(x1)\log{\left(x - 1 \right)}

        The result is: x+log(x1)x + \log{\left(x - 1 \right)}

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

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

        1. Let u=x1u = x - 1.

          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(x1)\log{\left(x - 1 \right)}

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

      The result is: x22+2x+2log(x1)+2log(x1)\frac{x^{2}}{2} + 2 x + 2 \log{\left(x - 1 \right)} + 2 \log{\left(x - 1 \right)}

  2. Add the constant of integration:

    x22+2x+4log(x1)+constant\frac{x^{2}}{2} + 2 x + 4 \log{\left(x - 1 \right)}+ \mathrm{constant}


The answer is:

x22+2x+4log(x1)+constant\frac{x^{2}}{2} + 2 x + 4 \log{\left(x - 1 \right)}+ \mathrm{constant}

The answer (Indefinite) [src]
  /                                            
 |                                             
 |  2                   2                      
 | x  + x + 2          x                       
 | ---------- dx = C + -- + 2*x + 4*log(-1 + x)
 |   x - 1             2                       
 |                                             
/                                              
(x2+x)+2x1dx=C+x22+2x+4log(x1)\int \frac{\left(x^{2} + x\right) + 2}{x - 1}\, dx = C + \frac{x^{2}}{2} + 2 x + 4 \log{\left(x - 1 \right)}
The graph
-1.00-0.90-0.80-0.70-0.60-0.50-0.40-0.30-0.20-0.100.000-3
The answer [src]
3/2 - 4*log(2)
324log(2)\frac{3}{2} - 4 \log{\left(2 \right)}
=
=
3/2 - 4*log(2)
324log(2)\frac{3}{2} - 4 \log{\left(2 \right)}
3/2 - 4*log(2)
Numerical answer [src]
-1.27258872223978
-1.27258872223978

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