S.O.S. Mathematics CyberBoard

Your Resource for mathematics help on the web!
It is currently Thu, 23 May 2013 22:04:20 UTC

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: A strange integral
PostPosted: Sat, 19 Jul 2003 17:07:20 UTC 
Offline
Member of the 'S.O.S. Math' Hall of Fame

Joined: Mon, 19 May 2003 19:55:19 UTC
Posts: 7949
Location: Lexington, MA
Hello, everyone!

Try this integral:
\displaystyle{\int \frac{dx}{1 + e^x}}\right

So far, I've found FOUR ways to integrate it.
And the four answers all look different.
(Proving them equivalent is the second phase of the problem.)

Give it a try.
I dare you to come up with a fifth method!


Top
 Profile  
 
 Post subject:
PostPosted: Sat, 19 Jul 2003 19:54:11 UTC 
Offline
S.O.S. Oldtimer
User avatar

Joined: Mon, 19 May 2003 18:41:04 UTC
Posts: 210
Location: Canada
Heres a method i got but considering you found FOUR and this one popped into my head first thing...you probably already found it:
(didnt learn latex code yet so bear with me..)

First notice:
d[ln(1+e^x)] / dx = e^x / (1 + e^x)
which can be conveniently broken into:

d[ln(1+e^x)] / dx = 1 - 1 / (1 + e^x)
Integrating both sides:

ln(1 + e^x) = int(1 - 1 / (1 + e^x)) dx
= int(dx) - int(dx / (1 + e^x))
= x - int(dx / (1 + e^x))
Rearranging:
int(dx / (1 + e^x)) = x - ln(1 + e^x) + C cant forget that constant ;)


Top
 Profile  
 
 Post subject: a strange integral
PostPosted: Sat, 19 Jul 2003 20:53:06 UTC 
Offline
Member of the 'S.O.S. Math' Hall of Fame

Joined: Mon, 19 May 2003 19:55:19 UTC
Posts: 7949
Location: Lexington, MA
Hello, radagast!

Wow! ----- Method number FIVE!

I love the deviousness of your approach: "We note that ..."
... and the fact that you never integrated it.

I thought my Method #4 was quite clever and bizarre.
But you win -- hands down!

Thank you!


Top
 Profile  
 
 Post subject: Don't look - Method #1
PostPosted: Sun, 20 Jul 2003 14:00:33 UTC 
Offline
Member of the 'S.O.S. Math' Hall of Fame

Joined: Mon, 19 May 2003 19:55:19 UTC
Posts: 7949
Location: Lexington, MA
I see that there many read this thread, but few reply.

Assuming that some are still working on a response
(and others couldn't possibly care less),
I'll post my four solutions one at a time.

If you're still trying, STOP! . . . don't read any further!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Let\ I = \displaystyle{\int\frac{dx}{1 + e^x}}


Method #1: "Long Division"


\displaystyle{\frac{1}{1 + e^x} = \frac{1 + {\bf e^x - e^x}}{1 + e^x} = \frac{1 + e^x}{1 + e^x} - \frac{1}{1 + e^x} = 1 - \frac{e^x}{1 + e^x}}


Then I = \displaystyle{\int(1 - \frac{e^x}{1 + e^x})dx} = {\bf x - ln(1 + e^x) + C} . . . Solution #1


Last edited by Soroban on Sun, 20 Jul 2003 15:28:53 UTC, edited 2 times in total.

Top
 Profile  
 
 Post subject: Don't look --- Method #2
PostPosted: Sun, 20 Jul 2003 14:17:47 UTC 
Offline
Member of the 'S.O.S. Math' Hall of Fame

Joined: Mon, 19 May 2003 19:55:19 UTC
Posts: 7949
Location: Lexington, MA
STOP!
If you don't want any hints, don't read further!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Method #2: \frac{du}{u}


Let \displaystyle{I = \int\frac{dx}{1 + e^x}}


Multiply numerator and denominator by e^{-x}


\displaystyle{\frac{1}{1 + e^x} = \frac{e^{-x}}{e^{-x}}\cdot \frac{1}{1 + e^{-x}} = \frac{e^{-x}}{e^{-x} + 1} = -\frac{-e^{-x}}{e^{-x} + 1}}


Then I = \displaystyle{-\int \frac{-e^{-x}}{e^{-x} + 1}dx} = {\bf -ln(e^{-x} + 1) + C} . . . Solution #2


Last edited by Soroban on Sun, 20 Jul 2003 15:27:18 UTC, edited 2 times in total.

Top
 Profile  
 
 Post subject: Don't look --- Method #3
PostPosted: Sun, 20 Jul 2003 15:18:11 UTC 
Offline
Member of the 'S.O.S. Math' Hall of Fame

Joined: Mon, 19 May 2003 19:55:19 UTC
Posts: 7949
Location: Lexington, MA
STOP!
If you don't want any hints, don't read further!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Method #3: Substitution


We have: I = \displaystyle\int\frac{dx}{1 + e^x}}


Let U = 1 + e^x

Then e^x = U - 1\ \ \rightarrow\ \ x = ln|U - 1|\ \ \rightarrow\ \ dx = \frac{dU}{U - 1}

Substituting: I = \displaystyle{\int\frac{dU}{U(U - 1)}}


Now, we have two choices for completing the integration . . .

(A) Partial Fractions

\displaystyle{\int\frac{dU}{U(U - 1)} = \int(\frac{1}{U - 1} - \frac{1}{U})dU} = ln|U - 1| - ln|U| + C

= \displaystyle{ln\left|\frac{U - 1}{U}\right| + C = {\bf ln\left(\frac{e^x}{1 + e^x}\right) + C}}


(B) Complete the Square

\displaystyle{\int\frac{dU}{U^2 - U} = \int\frac{dU}{(U - \frac{1}{2})^2 - (\frac{1}{2})^2} = ln\left|\frac{(U - \frac{1}{2}) - \frac{1}{2}}{(U - \frac{1}{2}) + \frac{1}{2}}\right| + C}


= \displaystyle{ln \left|\frac{U - 1}{U}\right| + C = {\bf ln\left(\frac{e^x}{1 + e^x}\right) + C}} . . . Solution #3

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Note: the substitution u = e^x leads to the same ntegral.


Last edited by Soroban on Sun, 20 Jul 2003 16:49:44 UTC, edited 1 time in total.

Top
 Profile  
 
 Post subject: Don't look --- Method #4
PostPosted: Sun, 20 Jul 2003 16:45:36 UTC 
Offline
Member of the 'S.O.S. Math' Hall of Fame

Joined: Mon, 19 May 2003 19:55:19 UTC
Posts: 7949
Location: Lexington, MA
STOP!
If you don't want any hints, don't read any further!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Method #4: Trig Substitution

We have: I = \displaystyle{\int\frac{dx}{1 + e^x}}


Let e^x = \tan^2\theta

Then the denominator is: 1 + e^x = 1 + \tan^2\theta = \sec^2\theta

Also, e^\frac{x}{2}} = \tan\theta\ \ \rightarrow\ \ \frac{x}{2} = ln(\tan\theta)\ \ \rightarrow\ \ dx = 2\cdot\frac{\sec^2\theta}{\tan\theta}d\theta


Substituting, we get:

I = \displaystyle{\int \frac{1}{\sec^2\theta}\cdot 2\cdot \frac{\sec^2\theta}{\tan\theta}d\theta} = 2\int \cot\theta\ d\theta = 2\cdot ln|\sin\theta| + C


Since \tan\theta = e^{\frac{x}{2}}, then angle \theta is in a right triangle with "opp" = e^{\frac{x}{2}}, "adj" = 1,
and "hyp" = \sqrt{1 + e^x}. Hence, \sin\theta = \frac{e^{\frac{x}{2}}}{\sqrt{1 + e^x}}


Therefore: I = {\bf \displaystyle{2\cdot ln\left(\frac{e^{\frac{x}{2}}}{\sqrt{1 + e^x}}\right) + C}} . . . Solution #4

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I had exhausted my imagination at this point.
(Amazing what the brain can do when it has way too much free time!)

Then Radagast surprised me with a stunning fifth method.

Is there a sixth . . . or more?'

[And don't forget to verify that solutions #1, 2, 3, 4 are equivalent!]


Top
 Profile  
 
 Post subject:
PostPosted: Sun, 20 Jul 2003 21:48:02 UTC 
Offline
Member of the 'S.O.S. Math' Hall of Fame
User avatar

Joined: Sun, 22 Jun 2003 18:00:06 UTC
Posts: 3461
Location: North TX
let u^2 = e^x
2u*du = e^x*dx
2u*du = u^2*dx
2/u*du = dx

INT[1/(1+e^x)dx] =
INT[1/(1+u^2)*2/u*du]
INT[2/[u(1+u^2)*du] =
INT[2/u*du] - INT[2u/(1+u^2)*du] =
2ln|u| - ln|1+u^2| + C =
ln[u^2/(1+u^2)] + C =
ln[e^x/(1+e^x)] + C


Top
 Profile  
 
 Post subject: Meethod #6
PostPosted: Mon, 21 Jul 2003 00:42:33 UTC 
Offline
Member of the 'S.O.S. Math' Hall of Fame

Joined: Mon, 19 May 2003 19:55:19 UTC
Posts: 7949
Location: Lexington, MA
Well done, skeeter!
And thank you!


Top
 Profile  
 
 Post subject:
PostPosted: Mon, 21 Jul 2003 10:22:21 UTC 
Offline
S.O.S. Oldtimer
User avatar

Joined: Fri, 23 May 2003 11:09:48 UTC
Posts: 206
heheh gw :)
Soroban, you sound pretty bored man... Maybe you wanna solve a quartic for using the quartic formula Mother Goose posted?

here's one of the top of my head.

2x^4 - 3x^3 + x^2 - 8x - 14 :)
have a shot, showing all working :)

mwhahahahahar.

j/k........or am I?

_________________
Mother Goose wrote:
When you die and go to heaven, someone asks you: "Hey dcl, you spent all those years learning about them pretty numbers, did you find a use for them eventually?"

"yeah, sure I did, I used calculus to cut out a mousepad out of a teflon baking pan"


Top
 Profile  
 
 Post subject:
PostPosted: Wed, 23 Jul 2003 02:49:24 UTC 
Offline
Member of the 'S.O.S. Math' Hall of Fame
User avatar

Joined: Fri, 2 May 2003 14:09:58 UTC
Posts: 2482
Location: In the pub, teaching Corneo how to pick up chicks...
dcl wrote:
heheh gw :)
Soroban, you sound pretty bored man... Maybe you wanna solve a quartic for using the quartic formula Mother Goose posted?

here's one of the top of my head.

2x^4 - 3x^3 + x^2 - 8x - 14 :)
have a shot, showing all working :)

mwhahahahahar.

j/k........or am I?


I don't htink he's that bored. But it would be pretty neat to solve a quartic using the formula using a grease pencil on his windows :roll: :roll: His neighbours would think he'd be going nuts


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Contact Us | S.O.S. Mathematics Homepage
Privacy Statement | Search the "old" CyberBoard

users online during the last hour
Powered by phpBB © 2001, 2005-2011 phpBB Group.
Copyright © 1999-2013 MathMedics, LLC. All rights reserved.
Math Medics, LLC. - P.O. Box 12395 - El Paso TX 79913 - USA