Integrating Logarithmic Functions with Binomial Terms

In summary: I think I misunderstood what he read - now that I see what he means, I will try and integrate it into my...
  • #1
Mayhem
307
196
Homework Statement
Evaluate ##\int{\ln{(e^x+1)}}##
Relevant Equations
##\ln{x} = \sum_{n=1}^{\infty} \frac{(-1)^{n-1}x^n}{n}##

##(x+y)^n = \sum_{k=0}^{n} \binom{n}{k} x^{n-k}y^k##
Given the integral $$\int \ln{(e^x+1)} dx$$ we can rewrite this as the integral of the Taylor expansion of ##\ln{(e^x+1)}##. $$\int \sum_{n=1}^{\infty} \frac{(-1)^{n-1}(e^x+1)^n}{n} dx$$ Which can then be rewritten using the binomial theorem: $$\int \sum_{n=1}^{\infty} \left [ \frac{(-1)^{n-1}}{n} \sum_{k=0}^{n} \binom{n}{k} e^{x(n-k)} \right] dx $$ What I want: a way to rewrite this such that I can directly integrate the binomial term, as this is simply a linear combination of ##e^{x(n-k)}## which is trivial to integrate.

Any help?
 
  • Informative
Likes Delta2
Physics news on Phys.org
  • #2
First you must to see if it is possible to change the integral with the infinite sum ...
Ssnow
 
  • #3
It can't be a homework in exactly the same form as you posted it (as an indefinite integral), because special functions such as dilogarithms are not standard high-school or university curriculum.
 
  • Like
Likes George Jones
  • #4
dextercioby said:
It can't be a homework in exactly the same form as you posted it (as an indefinite integral), because special functions such as dilogarithms are not standard high-school or university curriculum.
It's not exactly homework, just self study that is phrased as homework.
 
  • #5
Ssnow said:
First you must to see if it is possible to change the integral with the infinite sum ...
Ssnow
Any help? I can't exactly see how it can be done here since the sum is nested.
 
  • #6
Mayhem said:
Homework Statement:: Evaluate ##\int{\ln{(e^x+1)}}##
Relevant Equations:: ##\ln{x} = \sum_{n=1}^{\infty} \frac{(-1)^{n-1}x^n}{n}##

I think you mean [tex]
\ln(1 + x) = \sum_{n=1}^\infty \frac{(-1)^{n+1} x^n}{n} \qquad (|x| < 1).[/tex] So provided [itex]e^x < 1[/itex] you can have [tex]\ln(1 + e^x) = \sum_{n=1}^\infty \frac{(-1)^{n+1}e^{nx}}{n}[/tex] which is easily integrated term by term provided [itex]e^x < 1[/itex] throughout the domain of integration. Otherwise the sum doesn't converge and you can't integrate it term by term.
 
  • Like
Likes Mayhem, Delta2 and vela
  • #7
If I want to integrate term-by-term, can I just enterchange the infinite sum with the integral sign, factor out the ##(-1)^{n-1}/n## term and integrate from there?
 
  • #8
Then I obtain the final expression $$\sum_{n=1}^{\infty}\left[ \frac{(-1)^{n-1}}{n}\sum_{k=0}^{n} \frac{e^{x(n-k)}}{n-k} \right] + C$$ Which might be wrong. But if it isn't, then I've found a way to find a good approximation if we let the Taylor sum's limit be finite.
 
  • #9
Mayhem said:
Then I obtain the final expression $$\sum_{n=1}^{\infty}\left[ \frac{(-1)^{n-1}}{n}\sum_{k=0}^{n} \frac{e^{x(n-k)}}{n-k} \right] + C$$ Which might be wrong. But if it isn't, then I've found a way to find a good approximation if we let the Taylor sum's limit be finite.
Are you integrating the expression you gave in your original post, or the one @pasmith gave in post #6? Either way, your answer doesn't look correct.
 
  • #10
I think its worth to note that for large x (large ##e^x##) it is ##e^x+1\approx e^x##, so the integral approximates to ##\frac{x^2}{2}##.
 
  • #11
vela said:
Are you integrating the expression you gave in your original post, or the one @pasmith gave in post #6? Either way, your answer doesn't look correct.
Using the final expression in the OP, this is my work: $$\begin{align*} \int \sum_{n=1}^{\infty} \left [ \frac{(-1)^{n-1}}{n} \sum_{k=0}^{n} \binom{n}{k} e^{x(n-k)} \right] dx
&=\sum_{n=1}^{\infty}\left[\frac{(-1)^{n-1}}{n}\int \sum_{k=0}^{n} \binom{n}{k}e^{x(n-k)} dx \right] \\
&= \sum_{n=1}^{\infty}\left[\frac{(-1)^{n-1}}{n} \sum_{k=0}^{n} \binom{n}{k} \int e^{x(n-k)} dx \right ] \\
&=\sum_{n=1}^{\infty}\left[\frac{(-1)^{n-1}}{n} \sum_{k=0}^{n} \binom{n}{k} \frac{e^{x(n-k)}}{n-k} \right] + C \end{align*}$$
 
  • #12
I think that doing it that way would be a fairly complex expression to evaluate, the most effective thing would be to arrive at the expression of a dilogarithm.

Of course unless you want to continue down that route.
 
  • #13
Mayhem said:
Using the final expression in the OP, this is my work: $$\begin{align*} \int \sum_{n=1}^{\infty} \left [ \frac{(-1)^{n-1}}{n} \sum_{k=0}^{n} \binom{n}{k} e^{x(n-k)} \right] dx
&=\sum_{n=1}^{\infty}\left[\frac{(-1)^{n-1}}{n}\int \sum_{k=0}^{n} \binom{n}{k}e^{x(n-k)} dx \right] \\
&= \sum_{n=1}^{\infty}\left[\frac{(-1)^{n-1}}{n} \sum_{k=0}^{n} \binom{n}{k} \int e^{x(n-k)} dx \right ] \\
&=\sum_{n=1}^{\infty}\left[\frac{(-1)^{n-1}}{n} \sum_{k=0}^{n} \binom{n}{k} \frac{e^{x(n-k)}}{n-k} \right] + C \end{align*}$$
Did you understand @pasmith's post? He was pointing out an error you made deriving the series.
 
  • #14
vela said:
Did you understand @pasmith's post? He was pointing out an error you made deriving the series.
I think I misunderstood what he read - now that I see what he means, I will try and integrate it into my problem.
 
  • #15
For [itex]x > 0[/itex] ([itex]e^x > 1[/itex]) you can use [tex]
\ln(1 + e^x) = \ln(e^x(1 + e^{-x})) = x + \ln(1 + e^{-x})[/tex] which can be integrated term-by-term as in my pervious post.
 

1. What is the purpose of integrating ##\ln{(e^x+1)}##?

The purpose of integrating ##\ln{(e^x+1)}## is to find the area under the curve of the natural logarithm function with a base of ##e##, where the upper limit is ##e^x+1## and the lower limit is 0. This can be useful in various applications, such as calculating probabilities and solving differential equations.

2. How do I integrate ##\ln{(e^x+1)}##?

To integrate ##\ln{(e^x+1)}##, you can use the substitution method by letting ##u=e^x+1##. This will transform the integral into ##\int{\frac{1}{u}du}##, which can be easily solved using the power rule for integration.

3. Can I simplify ##\ln{(e^x+1)}## before integrating?

Yes, you can simplify ##\ln{(e^x+1)}## to just ##x+1## before integrating. This is because the natural logarithm and the exponential function with a base of ##e## are inverse functions, so they cancel each other out.

4. What is the result of integrating ##\ln{(e^x+1)}##?

The result of integrating ##\ln{(e^x+1)}## is ##x\ln{(e^x+1)}-(e^x+1)+C##, where ##C## is the constant of integration. This can be verified by taking the derivative of the result, which will give you the original function.

5. Can I use a calculator to integrate ##\ln{(e^x+1)}##?

Yes, you can use a calculator to integrate ##\ln{(e^x+1)}##. Many scientific calculators have built-in integration functions that can handle various types of integrals, including natural logarithms. However, it is always recommended to understand the process of integration and use a calculator as a tool to check your work.

Similar threads

  • Calculus and Beyond Homework Help
Replies
6
Views
476
  • Calculus and Beyond Homework Help
Replies
3
Views
416
  • Calculus and Beyond Homework Help
Replies
14
Views
247
  • Calculus and Beyond Homework Help
Replies
13
Views
690
  • Calculus and Beyond Homework Help
Replies
8
Views
665
Replies
12
Views
882
  • Calculus and Beyond Homework Help
Replies
4
Views
653
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
158
  • Calculus and Beyond Homework Help
Replies
3
Views
276
Back
Top