Question
Question: \(\int {(1 + x - \dfrac{1}{x}){e^{x + \dfrac{1}{x}}}dx} \) is equal to A. \((x - 1){e^{x + \dfrac{...
∫(1+x−x1)ex+x1dx is equal to
A. (x−1)ex+x1+c
B. xex+x1+c
C. (x+1)ex+x1+c
D. −xex+x1+c
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 u and v, then the formula is stated as ∫uvdx=u∫vdx−∫(dxdu∫vdx)dx.
Complete step by step solution:
The given expression in the question is ∫(1+x−x1)ex+x1dx.
We will break the given expression into two expressions such that it becomes
⇒∫(1+x−x1)ex+x1dx=∫ex+x1dx+∫(x−x1)ex+x1dx {equation (1)}
Let the second term ∫(x−x1)ex+x1dx on the right hand side of the given equation be named as A such that
A=∫(x−x1)ex+x1dx {equation (2)}
On substituting equation (2) in equation (1), we will get
⇒∫(1+x−x1)ex+x1dx=∫ex+x1dx+A {equation (3)
Moreover, the expression A can further be written as
⇒A=∫(x−x1)ex+x1dx
⇒A=∫x(1−x21)ex+x1dx
We will now apply the formula for integration by-parts which is given as ∫uvdx=u∫vdx−∫(dxdu∫vdx)dx.
Here let u=x and v=(1−x21)ex+x1.
On putting the respective values of u and v in the by-parts formula, we will get
⇒∫uvdx=u∫vdx−∫(dxdu∫vdx)dx
⇒∫x(1−x21)ex+x1dx=x∫(1−x21)ex+x1dx−∫(dxdx∫(1−x21)ex+x1dx)dx
In the above step, let the expression ∫(1−x21)ex+x1dx be B, such that the above given equation becomes
⇒A=xB−∫(dxdxB)dx {equation (4)}
Now we will firstly solve B. We have
B=∫(1−x21)ex+x1dx {equation (5)}
In the above expression let x+x1=t {equation (6)}
When we differentiate both the sides, we get
⇒(1−x21)dx=dt {equation (7)}
On putting equation (6) and equation (7) in equation (5), we will get
⇒B=∫etdt
We know that ∫exdx=ex. Hence on integrating above, we will get
⇒B=et
On putting the value of t from equation (6) in B above, we will get
⇒B=ex+x1
Now we will substitute this obtained value of B in equation (4), such that it becomes
⇒A=xex+x1−∫(dxdxex+x1)dx
We know that differentiation of x with respect to x is 1, i.e. dxdx=1. So putting this above, we get
⇒A=xex+x1−∫ex+x1dx+c
Now putting this value of A in equation (3), we will get
⇒∫(1+x−x1)ex+x1dx=∫ex+x1dx+xex+x1−∫ex+x1dx+c
The term ∫ex+x1dx is present in the above equation with both the positive and negative signs. So they cancel each other and therefore we get
⇒∫(1+x−x1)ex+x1dx=xex+x1+c
Therefore the correct answer is option B.
Note:
It becomes sometimes confusing to choose which function as u and which one as v. 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 u and the latter as v.