Question
Question: Integration of the expression \(\int{(x-1)}{{e}^{-x}}dx\) is equal to (A) \(-x{{e}^{x}}+C\) (B) ...
Integration of the expression ∫(x−1)e−xdx is equal to
(A) −xex+C
(B) xex+C
(C) −xe−x+C
(D) xe−x+C
Solution
First expand the integral by multiplying through the bracket by e−x. Now integrate the two terms that is ∫xe−xdx and ∫−e−xdx so obtained separately. For integrating ∫xe−xdx , integrate using by parts method because xe−x is the product of two functions x and e−x. If uv is the product of two functions u and v then integral of uv is given by \int{(uv)}dx=[u.\int{vdx]-\int{\left\\{ \dfrac{du}{dx}.\int{vdx} \right\\}}}dx where u and v are functions of x.
Complete step by step answer:
In the given question we have to integrate the expression ∫(x−1)e−xdx . So, let us take that term as I, that is,
I=∫(x−1)e−xdx
Now we will expand the expression by multiplying e−x to the terms inside the bracket. Then the expression becomes,
I=∫(xe−x−e−x)dx........(1)
We know that ∫(f(x)+g(x))dx=∫f(x)dx+∫g(x)dx where f(x) and g(x) are functions of x. Then the above equation (1) can be written as
I=∫xe−xdx−∫e−xdx
We will integrate the two terms separately so let I1=∫xe−xdx and I2=∫e−xdx . The above integral becomes,
I=I1−I2........(2)
After solving I1and I2 we will substitute these values in equation (2). So first we have to solve I1,
I1=∫xe−xdx
Since x and e−x are two functions of x so we will integrate this whole expression using by parts method, which states that if integral is expressed as product of two functions then it is equal to
( 1st function) x (integral of 2nd function)-∫{( derivative of 1st function) x (integral of 2nd function)}dx which mathematically can be expressed as \int{(uv)}dx=[u.\int{vdx]-\int{\left\\{ \dfrac{du}{dx}.\int{vdx} \right\\}}}dx where u and v are functions of x. We will use ILATE (Inverse, Logarithmic, Algebraic, Trigonometric and Exponent) rule for choosing u and v. Herex is an algebraic term and e−x is an exponential term. According to ILATE rule preference is given to algebraic terms so here u=x and v=e−x .
So now after using by parts, expression becomes,
=x\int{{{e}^{-x}}}dx-\int{\left\\{ \dfrac{d(x)}{dx}\int{{{e}^{-x}}dx} \right\\}}dx
Integral of e−x is −e−x and derivative of x is 1 so the above expression becomes,
=-x{{e}^{-x}}-\int{\left\\{ (1)\int{{{e}^{-x}}}dx \right\\}}dx
=−xe−x−∫(−e−x)dx
=−xe−x+∫e−xdx
=−xe−x+(−1)e−x as integral of e−x is −e−x.
=−xe−x−e−x+C1........(3) where C1 is the integral constant
Now we have to integrate I2.
I2=∫e−xdx
We know that the integral of e−x is −e−x. So the above expression becomes,
=−e−x+C2.........(4) where C2is the integral constant
We will now put the values of equation (3) and (4) in (2), we get
I=(−xe−x−e−x+C1)−(−e−x+C2)=−xe−x−e−x+C1+e−x−C2=−xe−x+(C1−C2)
=−xe−x+C , where C=C1−C2
Therefore, the integral of ∫(x−1)e−xdx is −xe−x+C.
So, the correct answer is “Option C”.
Note: Care should be taken while evaluating the integral I1=∫xe−xdx using by parts, this integral should be evaluated as x\int{{{e}^{-x}}}dx-\int{\left\\{ \dfrac{d(x)}{dx}\int{{{e}^{-x}}dx} \right\\}}dx , there is a minus sign between the terms x∫e−xdx and \int{\left\\{ \dfrac{d(x)}{dx}\int{{{e}^{-x}}dx} \right\\}}dx, it should not be mistakenly written as plus sign. And in integral \int{\left\\{ \dfrac{d(x)}{dx}\int{{{e}^{-x}}dx} \right\\}}dx there are two integral signs so first integrate the term which is inside the bracket and then multiply this result to the derivative of x then again integrate the result so obtained.