Need help writing $(e^{2x}+2e^{x}-e^{-x}-1)e^{e^{x}+e^{-x}}$ in the form $e^{u}(f(u)+f'(u))$

86 Views Asked by At

Problem: Evaluate $\int (e^{2x}+2e^{x}-e^{-x}-1)e^{e^{x}+e^{-x}} dx$

My teacher gave me this indefinite integration problem and this one was immediately after he taught us how to evaluate integrals such as the one mentioned below

$\int e^{x}(f(x)+f'(x))$ $dx$ = $e^{x}f(x)+c$

So there is a high chance he expected us to evaluate the integral in the title using this method.

But I am unable to resolve the integral into that form. I obviously doing $e^{x}+e^{-x}=u$ but did not succeed. Any help would be appreciated.

2

There are 2 best solutions below

2
On BEST ANSWER

Let $e^x=t$. Then $e^x dx = dt \Rightarrow dx = dt/t$. We have $$I=\int e^{t+\frac{1}{t}}\Big(t^2 + 2t -\frac{1}{t} -1 \Big) \frac{dt}{t} = \int e^{t+\frac{1}{t}}\Big(t + 2 -\frac{1}{t^2} -\frac{1}{t} \Big) dt$$ Notice if we are going to set $t+\frac{1}{t}=u$, then $\big(1-\frac{1}{t^2}\big)dt=du$ ; a factor of $\big(1-\frac{1}{t^2}\big)$ must appear. So rewrite $$I=\int e^{t+\frac{1}{t}}\Big\{t -\frac{1}{t} + 1 + 1 -\frac{1}{t^2} \Big\} dt$$ $$=\underbrace{\int e^{t+\frac{1}{t}}\Big\{t\Big(1 -\frac{1}{t^2} \Big) + 1\Big\}}_{I_1} +\underbrace{\int e^{t+\frac{1}{t}} \Big\{ 1 -\frac{1}{t^2} \Big\}}_{I_2} dt$$ $$=\underbrace{\int \Big\{ t \cdot e^{t+\frac{1}{t}}\Big(1 -\frac{1}{t^2} \Big) + e^{t+\frac{1}{t}}\Big\}}_{I_1} +\underbrace{\int e^{t+\frac{1}{t}} \Big\{ 1 -\frac{1}{t^2} \Big\}}_{I_2} dt$$ $I_2$ is straightforward. Recognize $I_1$ is of the form $\int \{ yf'(y)+f(y)\}\,dy$ with antiderivative $yf(y)+C$. Therefore $$I=te^{t+\frac{1}{t}} + e^{t+\frac{1}{t}}+ C=(t+1)e^{t+\frac{1}{t}}+ C$$ $$I=(e^x+1)e^{e^x+e^{-x}}+C$$

1
On

Let us assume that the primitive is of the form $g = f \exp(e^{x}+e^{-x})$. Substitute this expression and use the chain rule. We see that this works, but the function $f$ must satisfy:

$$e^{2x} + 2e^{x} - e^{-x}-1 = f' + f(e^{x}-e^{-x})$$

Because of the $e^{2x}$ term on the left let us try $f=e^{x}$. This leaves only a $(e^{x}-e^{-x})$ term on the LHS unaccounted for. This can easily be repaired by adding $1$ to $f$. It follows that $f = e^{x} +1$ is the correct answer. Therefore the primitive is $g(x) = (e^{x}+1)\exp(e^{x}+e^{-x})+C$.