Solveeit Logo

Question

Question: \(\int {(1 + x - \dfrac{1}{x}){e^{x + \dfrac{1}{x}}}dx} \) is equal to A. \((x - 1){e^{x + \dfrac{...

(1+x1x)ex+1xdx\int {(1 + x - \dfrac{1}{x}){e^{x + \dfrac{1}{x}}}dx} is equal to
A. (x1)ex+1x+c(x - 1){e^{x + \dfrac{1}{x}}} + c
B. xex+1x+cx{e^{x + \dfrac{1}{x}}} + c
C. (x+1)ex+1x+c(x + 1){e^{x + \dfrac{1}{x}}} + c
D. xex+1x+c - x{e^{x + \dfrac{1}{x}}} + c

Explanation

Solution

In order to solve the question above, we will be using the formula of integration by parts. It is used when a product of two functions are given to be integrated. If the two functions are uu and vv, then the formula is stated as uvdx=uvdx(dudxvdx)dx\int {uvdx = u\int {vdx} - \int {(\dfrac{{du}}{{dx}}\int {vdx)dx} } } .

Complete step by step solution:
The given expression in the question is (1+x1x)ex+1xdx\int {(1 + x - \dfrac{1}{x}){e^{x + \dfrac{1}{x}}}dx} .
We will break the given expression into two expressions such that it becomes
(1+x1x)ex+1xdx=ex+1xdx+(x1x)ex+1xdx\Rightarrow \int {(1 + x - \dfrac{1}{x}){e^{x + \dfrac{1}{x}}}dx} = \int {{e^{x + \dfrac{1}{x}}}dx + \int {(x - \dfrac{1}{x})} } {e^{x + \dfrac{1}{x}}}dx {equation (1)}
Let the second term (x1x)ex+1xdx\int {(x - \dfrac{1}{x}){e^{x + \dfrac{1}{x}}}dx} on the right hand side of the given equation be named as AA such that
A=(x1x)ex+1xdxA = \int {(x - \dfrac{1}{x}){e^{x + \dfrac{1}{x}}}dx} {equation (2)}
On substituting equation (2) in equation (1), we will get
(1+x1x)ex+1xdx=ex+1xdx+A\Rightarrow \int {(1 + x - \dfrac{1}{x}){e^{x + \dfrac{1}{x}}}dx} = \int {{e^{x + \dfrac{1}{x}}}dx + A} {equation (3)
Moreover, the expression A can further be written as
A=(x1x)ex+1xdx\Rightarrow A = \int {(x - \dfrac{1}{x}){e^{x + \dfrac{1}{x}}}dx}
A=x(11x2)ex+1xdx\Rightarrow A = \int {x(1 - \dfrac{1}{{{x^2}}}){e^{x + \dfrac{1}{x}}}dx}
We will now apply the formula for integration by-parts which is given as uvdx=uvdx(dudxvdx)dx\int {uvdx = u\int {vdx} - \int {(\dfrac{{du}}{{dx}}\int {vdx)dx} } } .
Here let u=xu = x and v=(11x2)ex+1xv = (1 - \dfrac{1}{{{x^2}}}){e^{x + \dfrac{1}{x}}}.
On putting the respective values of uu and vv in the by-parts formula, we will get
uvdx=uvdx(dudxvdx)dx\Rightarrow \int {uvdx = u\int {vdx} - \int {(\dfrac{{du}}{{dx}}\int {vdx)dx} } }
x(11x2)ex+1xdx=x(11x2)ex+1xdx(dxdx(11x2)ex+1xdx)dx\Rightarrow \int {x(1 - \dfrac{1}{{{x^2}}}){e^{x + \dfrac{1}{x}}}dx = x\int {(1 - \dfrac{1}{{{x^2}}}){e^{x + \dfrac{1}{x}}}dx} - \int {(\dfrac{{dx}}{{dx}}\int {(1 - \dfrac{1}{{{x^2}}}){e^{x + \dfrac{1}{x}}}dx)dx} } }
In the above step, let the expression (11x2)ex+1xdx\int {(1 - \dfrac{1}{{{x^2}}}){e^{x + \dfrac{1}{x}}}dx} be BB, such that the above given equation becomes
A=xB(dxdxB)dx\Rightarrow A = xB - \int {(\dfrac{{dx}}{{dx}}B)dx} {equation (4)}
Now we will firstly solve BB. We have
B=(11x2)ex+1xdxB = \int {(1 - \dfrac{1}{{{x^2}}}){e^{x + \dfrac{1}{x}}}dx} {equation (5)}
In the above expression let x+1x=tx + \dfrac{1}{x} = t {equation (6)}
When we differentiate both the sides, we get
(11x2)dx=dt\Rightarrow (1 - \dfrac{1}{{{x^2}}})dx = dt {equation (7)}
On putting equation (6) and equation (7) in equation (5), we will get
B=etdt\Rightarrow B = \int {{e^t}dt}
We know that exdx=ex\int {{e^x}dx} = {e^x}. Hence on integrating above, we will get
B=et\Rightarrow B = {e^t}
On putting the value of tt from equation (6) in BB above, we will get
B=ex+1x\Rightarrow B = {e^{x + \dfrac{1}{x}}}
Now we will substitute this obtained value of BB in equation (4), such that it becomes
A=xex+1x(dxdxex+1x)dx\Rightarrow A = x{e^{x + \dfrac{1}{x}}} - \int {(\dfrac{{dx}}{{dx}}{e^{x + \dfrac{1}{x}}})dx}
We know that differentiation of xx with respect to xx is 11, i.e. dxdx=1\dfrac{{dx}}{{dx}} = 1. So putting this above, we get
A=xex+1xex+1xdx+c\Rightarrow A = x{e^{x + \dfrac{1}{x}}} - \int {{e^{x + \dfrac{1}{x}}}dx} + c
Now putting this value of AA in equation (3), we will get
(1+x1x)ex+1xdx=ex+1xdx+xex+1xex+1xdx+c\Rightarrow \int {(1 + x - \dfrac{1}{x}){e^{x + \dfrac{1}{x}}}dx} = \int {{e^{x + \dfrac{1}{x}}}dx + x{e^{x + \dfrac{1}{x}}} - \int {{e^{x + \dfrac{1}{x}}}dx} + c}
The term ex+1xdx\int {{e^{x + \dfrac{1}{x}}}dx} is present in the above equation with both the positive and negative signs. So they cancel each other and therefore we get
(1+x1x)ex+1xdx=xex+1x+c\Rightarrow \int {(1 + x - \dfrac{1}{x}){e^{x + \dfrac{1}{x}}}dx} = x{e^{x + \dfrac{1}{x}}} + c

Therefore the correct answer is option B.

Note:
It becomes sometimes confusing to choose which function as uu and which one as vv. For this, we can remember the acronym ILATE where I is for inverse functions, L is for logarithmic functions, A is for algebraic functions, T is for trigonometric functions and E is for exponential functions. Suppose if we are given with a logarithmic function and an exponential function, then we must choose the former as uu and the latter as vv.