We begin with the integral
∫(1+x−x1)ex+x1dx.
A very common strategy for such problems is to look for a function whose derivative reproduces the given integrand. Because the exponential factor ex+x1 is present everywhere, we suspect a product of this exponential with some elementary function of x. Let us therefore examine the derivative of the product xex+x1.
First we recall the product rule of differentiation:
dxd[u(x)v(x)]=u′(x)v(x)+u(x)v′(x).
Here we choose
u(x)=x,v(x)=ex+x1.
We compute each derivative separately.
Clearly,
u′(x)=dxd(x)=1.
Next, to differentiate v(x)=ex+x1, we first note the chain rule:
dxdef(x)=ef(x)f′(x).
In our case f(x)=x+x1. Therefore
f′(x)=dxd(x+x1)=1−x21.
Applying the chain rule gives
v′(x)=ex+x1(1−x21).
Now we use the product rule:
dxd[xex+x1]=u′(x)v(x)+u(x)v′(x).
Substituting the values we have just obtained,
dxd[xex+x1]=1⋅ex+x1+xex+x1(1−x21).
We now factor out the common exponential:
dxd[xex+x1]=ex+x1[1+x(1−x21)].
Inside the square brackets we simplify the expression:
x(1−x21)=x⋅1−x⋅x21=x−x1.
Hence
dxd[xex+x1]=ex+x1(1+x−x1).
Observe that the factor in parentheses is exactly the same as the factor in the integrand. Therefore,
(1+x−x1)ex+x1=dxd[xex+x1].
When an integrand is recognized as a total derivative, the integration becomes immediate:
∫(1+x−x1)ex+x1dx=xex+x1+C,
where C is the constant of integration.
On comparing with the given options, this result corresponds to
xex+x1+c,
which is Option D.
Hence, the correct answer is Option D.