Indefinite Integral Question; e^x

Celadon
Messages
11
Reaction score
0

Homework Statement


Find the indefinite integral (preferably using u-substitution):
∫(ex-e-x)2 dx


Homework Equations


N/A


The Attempt at a Solution


To be honest, I'm slightly confused as to which path I'm supposed to take with this, especially since I'm not sure what I should be using u to substitute here. This is one of my attempts at solving the question:

∫[(ex-e-x)2 dx]
= ∫[e2x dx] - ∫[e-2x dx]
= (e2x / 2) + (1 / 2e2x) + C

Could someone please tell me if I have the right answer / I'm on the right track / I'm completely wrong? If the latter, I'd appreciate it if you could help get me on track!

Thanks in advance!
 
Physics news on Phys.org
You almost got it. But you've forgotten the cross-terms when you did the square.

There is a good substitution you could use instead. But your method is just as good.

Edit: p.s. welcome to physicsforums, your name is good. reminds me of the town in pokemon
 
If you need the u-substitution, try just putting u=ex.

(Remember that 1/a is the same as a-1)


EDIT: Also in your attempt you should also have


∫e2x dx + ∫e-2x dx +∫2 dx
 
Before I continue asking questions, thanks for all the help! I really do appreciate it and I'm sorry if I'm a bit slow, haha.

Now then...
@BruceW: Thanks for the help, the welcome, and the name compliment! I'm actually a fan of the colour itself and the city in Pokemon, heh.
@rock.freak667: Ugh, how could I forget 1/a = a-1? Thanks for the reminder. I have a question about the +∫2 dx, though. How exactly did it get there?

I think I'm actually a bit more confused than I initially thought I was. Let's say I went with this method:

u=ex
du=exdx ; dx=du/ex

...and then what? This is what I'm leaning towards:
=∫(u2 dx) - ∫(1/u2 dx)

Do I substitute dx for du/ex or am I over-complicating things? Oh man, my head's going to burst. @@
 
(ex-e-x)2 = (ex-e-x)(ex-e-x)

Multiply it out. (Use FOIL, if that's what you're used to.)
 
(e^x-e^(-x))^2=(e^x-e^(-x))*(e^x-e^(-x)). Multiply that out and you'll see where the '2' came from. rock.freak667 had the sign wrong on it.
 
Okay, do I tried expanding it and then went through this:

(ex-e-x)2 = (ex-e-x)(ex-e-x) = e2x + e-2x

∫(e2x + e-2x) dx
u = e2x
du = (e2x / 2) dx

Final solution:
(u2/e2x) + (2 / e2x)ln|e2x|
 
Last edited:
Celadon said:
Okay, do I tried expanding it and then went through this:

(ex-e-x)2 = (ex-e-x)(ex-e-x) = e2x + e-2x
No, this is incorrect, as Sammy and Dick pointed out. (a - b)2 ≠ a2 - b2, which is essentially what you are doing.
When you expand (ex - e-x)2 you should get three terms, not two.

Also, there is an error below - you shouldn't get any log terms.
Celadon said:
∫(e2x + e-2x) dx
u = e2x
du = (e2x / 2) dx

Final solution:
(u2/e2x) + (2 / e2x)ln|e2x|
 
Oh I see it now.
(ex - e-x)(ex - e-x) = e2x - 2 + e-2x

I somehow wrote "+ e0 - e0" at some point, oops. Thanks!
Time to try again. (:
 
  • #10
For you last error, I think this is what you did:

∫dx/e2x = ln|e2x|

That is incorrect. Don't write the integrand as a fraction - use the negative exponents.
 
  • #11
Okay, another attempt. Hope I fixed more than I broke, this time. :/
Thanks again everyone, I'm sorry for bothering you all. D:

∫(ex-e-x)2dx = ∫(e2x-2+e-2x)dx
= ∫e2xdx + ∫e-2xdx - ∫2dx

Let u = ex
du = exdx

∫e2xdx + ∫e-2xdx - ∫2dx = (1/ex)(u3/3)+(1/ex)(u-1/-1)-2x+C
= (1/ex)[(u3/3)+(u-1/-1)]-2x+C
= (1/ex)[(e3x/3) - (1/ex)]-2x+C
= (1/ex)[(e4x-3)/(3ex)]-2x+C
= [(e4x-3)/(3e2x)]-2x+C
 
Last edited:
  • #12
Celadon said:
Okay, another attempt. Hope I fixed more than I broke, this time. :/
Thanks again everyone, I'm sorry for bothering you all. D:

∫(ex-e-x)2dx = ∫(e2x-2+e-2x)dx
= ∫e2xdx + ∫e-2xdx - ∫2dx

Let u = ex
du = exdx

∫e2xdx + ∫e-2xdx - ∫2dx = (1/ex)(u3/3)+(1/ex)(u-1/-1)-2x+C
= (1/ex)[(u3/3)+(u-1/-1)]-2x+C
= (1/ex)[(e3x/3) - (1/ex)]-2x+C
= (1/ex)[(e4x-3)/(3ex)]-2x+C
= [(e4x-3)/(3e2x)]-2x+C
What is \displaystyle\int du \,?
 
  • #13
SammyS said:
What is \displaystyle\int du \,?

ex+C?
 
  • #14
Celadon said:
ex+C?
Ignore my last post.

If u = ex and du = exdx,

then \displaystyle\int e^{2x}dx becomes what integral in terms of u ?
 
  • #15
SammyS said:
Ignore my last post.

If u = ex and du = exdx,

then \displaystyle\int e^{2x}dx becomes what integral in terms of u ?

∫u2dx? :x

[EDIT] Another attempt:
2e2x-2x-2e-2x+C

x_x
 
Last edited:
  • #16
Celadon said:
∫u2dx? :x

I think I'm confused as to what happens with du. ._.

If du = exdx, then dx = du(1/ex), so:
(1/ex)∫u2du?
Yes. You appear to be confused.

You can't take 1/ex out of the integral. In fact you should leave it inside the integral as 1/u .

What is u2/u ?
 
  • #17
SammyS said:
Yes. You appear to be confused.

You can't take 1/ex out of the integral. In fact you should leave it inside the integral as 1/u .

What is u2/u ?

u1 or just u? xD

(also, I edited my previous post with another answer in case you missed it.)
 
  • #18
Celadon said:
u1 or just u? xD

(also, I edited my previous post with another answer in case you missed it.)

OK, so what is \displaystyle\int u \,du \,?
 
  • #19
(u2)/2? :x
 
  • #20
Celadon said:
(u2)/2? :x

What does the ":x" mean ?
 
  • #21
SammyS said:
What does the ":x" mean ?

Just an emoticon; I add them to a lot of my sentences out of habit, haha... Sorry.
Okay so, I tried it again like this:

u=ex
du=exdx
dx=du(1/ex)

∫u2dx-2x+∫u-2dx = ∫u2(1/u)du-2x+∫u-2(1/u)du
=∫udu - 2x + ∫u-3du
=u2/2 - 2x + (u-2/-2) + C
=u2/2 - 2x - 1/(2u2) + C
=e2x/2 - 2x - 1/(2e2x) + C
 
  • #22
Celadon said:
Just an emoticon; I add them to a lot of my sentences out of habit, haha... Sorry.
Okay so, I tried it again like this:

u=ex
du=exdx
dx=du(1/ex)

∫u2dx-2x+∫u-2dx = ∫u2(1/u)du-2x+∫u-2(1/u)du
=∫udu - 2x + ∫u-3du
=u2/2 - 2x + (u-2/-2) + C
=u2/2 - 2x - 1/(2u2) + C
=e2x/2 - 2x - 1/(2e2x) + C
Correct.

It would likely be expressed in a manner closer to the given problem.

e2x/2 - 2x - e-2x/2 + C

or

(e2x - e-2x)/2 - 2x + C
 
  • #23
SammyS said:
Correct.

It would likely be expressed in a manner closer to the given problem.

e2x/2 - 2x - e-2x/2 + C

or

(e2x - e-2x)/2 - 2x + C

Thank you very much for all your help! I can finally move on and not worry about this one question anymore. The sense of relief from when you solve a math problem.. words can't describe it.

I really do appreciate your help. :D
 
  • #24
just to add one last thing: I think the substitution that was hinted was the hyperbolic function, because that makes the integral nice and simple. But your way is good as well.

Edit: actually, its not much more simple. It just depends if you are more comfortable with sinusoids or exponentials.
 
Last edited:
  • #25
Celadon said:
(u2)/2? :x

SammyS said:
What does the ":x" mean ?

Celadon said:
Just an emoticon; I add them to a lot of my sentences out of habit, haha... Sorry.
Celadon, that's not a good idea in a mathematics context, especially when x already has a meaning. You don't want to put anything in that prevents someone from understanding what you're trying to say.
 
Back
Top