Mister Exam

Other calculators


(x^2-4)/x

Integral of (x^2-4)/x dx

Limits of integration:

from to
v

The graph:

from to

Piecewise:

The solution

You have entered [src]
  1          
  /          
 |           
 |   2       
 |  x  - 4   
 |  ------ dx
 |    x      
 |           
/            
0            
01x24xdx\int\limits_{0}^{1} \frac{x^{2} - 4}{x}\, dx
Integral((x^2 - 4)/x, (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=2xdxdu = 2 x dx and substitute du2\frac{du}{2}:

      u42udu\int \frac{u - 4}{2 u}\, du

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

        u4udu=u4udu2\int \frac{u - 4}{u}\, du = \frac{\int \frac{u - 4}{u}\, du}{2}

        1. Rewrite the integrand:

          u4u=14u\frac{u - 4}{u} = 1 - \frac{4}{u}

        2. Integrate term-by-term:

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

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

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

            (4u)du=41udu\int \left(- \frac{4}{u}\right)\, du = - 4 \int \frac{1}{u}\, du

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

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

          The result is: u4log(u)u - 4 \log{\left(u \right)}

        So, the result is: u22log(u)\frac{u}{2} - 2 \log{\left(u \right)}

      Now substitute uu back in:

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

    Method #2

    1. Rewrite the integrand:

      x24x=x4x\frac{x^{2} - 4}{x} = x - \frac{4}{x}

    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 times a function is the constant times the integral of the function:

        (4x)dx=41xdx\int \left(- \frac{4}{x}\right)\, dx = - 4 \int \frac{1}{x}\, dx

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

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

      The result is: x224log(x)\frac{x^{2}}{2} - 4 \log{\left(x \right)}

  2. Add the constant of integration:

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


The answer is:

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

The answer (Indefinite) [src]
  /                              
 |                               
 |  2               2            
 | x  - 4          x         / 2\
 | ------ dx = C + -- - 2*log\x /
 |   x             2             
 |                               
/                                
x24xdx=C+x222log(x2)\int \frac{x^{2} - 4}{x}\, dx = C + \frac{x^{2}}{2} - 2 \log{\left(x^{2} \right)}
The graph
0.001.000.100.200.300.400.500.600.700.800.90-5000050000
The answer [src]
-oo
-\infty
=
=
-oo
-\infty
-oo
Numerical answer [src]
-175.861784535972
-175.861784535972
The graph
Integral of (x^2-4)/x dx

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