Mastering a Tricky Integral: Solving Linear 1st Order ODEs with x, Log, and e

  • Context: Graduate 
  • Thread starter Thread starter uart
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary

Discussion Overview

The discussion revolves around a challenging integral encountered while solving a linear first-order ordinary differential equation (ODE). Participants explore various methods to tackle the integral, including substitution and integration by parts, while also addressing the existence of an antiderivative.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant presents the integral \(\int \frac{ x \log ( e^x + 1)}{e^x+1}\) and seeks a method to solve it.
  • Another suggests that a substitution and integration by parts might be effective, proposing \(u = e^x + 1\).
  • Some participants express skepticism about the feasibility of integration by parts, noting it could lead to more complex substitutions and tedious calculations.
  • One participant mentions that Mathematica does not have a formula for this integral, implying it may not have an antiderivative in terms of known special functions.
  • Another participant claims that the integral does have an antiderivative, providing a specific expression but expressing uncertainty about how it was derived.
  • A later reply questions the correctness of the proposed antiderivative and suggests verifying it through differentiation.
  • One participant admits to a mistake in their earlier approach, revealing that the actual problem involved a simpler integrating factor than initially thought.
  • Another participant clarifies that the correct integrating factor leads to a straightforward integral, contrasting with the earlier complex integral discussed.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach to the integral, with multiple competing views and methods proposed. There is also a recognition of mistakes made in earlier calculations, but no agreement on the correctness of the antiderivative provided.

Contextual Notes

Some participants acknowledge limitations in their understanding and the potential for errors in their calculations, particularly regarding the choice of integrating factor and the resulting integrals.

uart
Science Advisor
Messages
2,797
Reaction score
21
The following integral came up in as part of solving a linear 1st order ODE and it's stumped me.

[tex]\int \frac{ x \log ( e^x + 1)}{e^x+1}[/tex]

Does anyone know of a good approach to tackle this one?
 
Physics news on Phys.org
Maybe a u substituion and integration by parts would work.
Let u = ex + 1
 
d_leet said:
Maybe a u substituion and integration by parts would work.
Let u = ex + 1

I agree. e^x, x and log() don't belong together.
However integrating by parts will only lead to longer and more tedious work involving many more substitutions and multiple integration by parts.
But it seems to be the only way.Multiplying num and den by e^x might help.
 
There's no formula on this one found in Mathematica's library. Most likely there's no combination of known special functions which would provide you with an antiderivative.

Daniel.
 
dextercioby said:
There's no formula on this one found in Mathematica's library. Most likely there's no combination of known special functions which would provide you with an antiderivative.

Daniel.

Yes that's exactly what I previously thought Daniel. But it does have an anit-derivative, I'm just don't know how it was deduced.


The anti-derivative is

y = [tex](\frac{x^2}{2} + 2) \frac{ \log( e^x + 1)} {e^x + 1}}[/tex]
 
uart said:
Yes that's exactly what I previously thought Daniel. But it does have an anit-derivative, I'm just don't know how it was deduced.


The anti-derivative is

y = [tex](\frac{x^2}{2} + 2) \frac{ \log( e^x + 1)} {e^x + 1}}[/tex]

Well, it works if "log" is "ln" anyway.

-Dan
 
uart said:
y = [tex](\frac{x^2}{2} + 2) \frac{ \log( e^x + 1)} {e^x + 1}}[/tex]
Uhmm, just wonder, but have you tried to differentiate that monster to see if it returns:
[tex]\frac{x \ln(e ^ x + 1)}{e ^ x + 1}[/tex]?
I guess not... :rolleyes:
 
Hang on a minute, the above doesn't seem to be correct. Let me post the full problem.

The problem was to solve the following DE (where y' denotes dy/dx),

[tex]y^{\prime} + \left( \frac{e^x} {e^x + 1} \right) y = \frac{x}{e^x + 1}[/tex]

With the initial condition of [tex]y(0) = 1[/tex]
 
Last edited:
DOH! My appologies to everyone, I made a huge stuff up on this problem which lead me to the wrong integral. It's actually much easier than I thought, I'll post more details in one moment when I work it out.
 
Last edited:
  • #10
OK here's the full story. I was helping my niece with her maths (2nd year uni) and this was a problem she was stuck on. She had worked out the "integrating factor" for this question as [tex]u = \log(e^x + 1)[/tex] (which is wrong), but I checked her working (twice) and thought it was correct. Sorry my stuff up. It was a case of the old "you're checking someones work and follow their same mistakes" thing. As soon as I looked at the problem on my own just now I immediately saw the error.

The integrating factor was actually just [tex]u = (e^x+1)[/tex], which leads to a trivial integral instead of the monster I previously posted.
 
Last edited:
  • #11
The final integral needed to solve the above DE is,

[tex]u y = \int \frac{u x}{e^x + 1}[/tex]

When I put [tex]u = \log(e^x + 1)[/tex] I got the horrible integral that I originally posted.

Of course with [tex]u = (e^x + 1)[/tex], as it should have been, you get the truly simple integral of,
[tex]\int \, x dx[/tex]

DOH I feel stupid now. :o
 
Last edited:

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 19 ·
Replies
19
Views
5K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K