Integrating Log[1+x] using Series Expansion

In summary, the conversation discussed a challenging integration problem involving the function Log[1+x]/(1+x^2). The attempts at solving it included using integration by parts and various substitutions, all of which were unsuccessful. The conversation also touched upon using partial derivatives within integrals and expressing the integrand in terms of partial fractions. However, it was concluded that the integral can only be solved by series expansion and the original source of the problem was a math class.
  • #1
ritwik06
580
0

Homework Statement



Integrate:
[tex]\frac{Log[1+x]}{1+x^{2}}[/tex]

Homework Equations


Integration by parts.


The Attempt at a Solution


This is what Mathematica shows on Integrating this function

0.5 I (Log[1 + x] (Log[(-(0.5) - I/2) (I + x)] - Log[1 - (0.5 - I/2) (1 + x)]) - PolyLog[2, (0.5 - I/2) (1 + x)] + PolyLog[2, (1/2 + I/2) (1 + x)])
Where I is the iota.

This question was given to me in my maths class. I wonder if I can first of all find such a lengthy expression on integrating that and after that converting it to a real valued function.


If the integration is easier than what I think. Please let me know how to get started.
I used integration by parts to get uptil here:

I=ln(1+x)ArcTan(x)- [tex]\int\frac{ArcTan(x)}{1+x}[/tex]
 
Physics news on Phys.org
  • #2


You haven't described your attempt at a solution. Anyway, here's some info on polylog: http://functions.wolfram.com/ZetaFunctionsandPolylogarithms/PolyLog/

A possible method for solving this problem did occur to me, but I'm trying to stitch together the details of the solution. (Simple integration by parts will yield nothing if you integrate the second integrand by parts once again.)

Consider

[tex]I(a) = \int \frac{log(1+ax)}{1+x^2}dx[/tex]

Then your integral is just I(a=1).

Differentiate under the integral wrt a:

[tex]\frac{\partial I(a)}{\partial a} = \int \frac{1}{(1+x^2)(1+ax)}dx[/tex]

Can you express the integrand in terms of partial fractions, and integrate term, thereby obtaining a function of x and a. Then you need to integrate it wrt a. Once again, this may be messy -- esp the integration wrt a...I am still figuring out the details. Offhand, one can express (x^2 + 1) = (x+i)(x-i) and do an expansion. (All this is assuming that you have to compute the indefinite integral.)

Let me see if it works...I'll think of some other way too. Meanwhile, post your solution...the one you must've tried on paper (before resorting to Mathematica.)
 
  • #3


maverick280857 said:
You haven't described your attempt at a solution. Anyway, here's some info on polylog: http://functions.wolfram.com/ZetaFunctionsandPolylogarithms/PolyLog/
Thanks a lot, I have already read that from Mathematica. Its a series. I have never done anything with PolyLog b4.
Well, In all my possible attempts to solve the question, I was unsuccessful, therefore I didnt mention them. Here is a list of all the things i did:
1. Tried Integration by parts. I did what I had shown in my last post. If I again apply integration by parts on the ArcTan thing, I again get the same integral I started with. It was of no use.
2. I tried a lot many substitutions there. Here is a list:
1+x= Exp[t]
x=Tan[t]
Log[1+x]=t
etc.
But with either of them, I reached no fruitful result. Then I had no other option but to resort to Mathematica, and I was kinda shocked to see the results. Do you want me to show the substitutions. I think it would be a waste of time.
A possible method for solving this problem did occur to me, but I'm trying to stitch together the details of the solution. (Simple integration by parts will yield nothing if you integrate the second integrand by parts once again.)

Consider

[tex]I(a) = \int \frac{log(1+ax)}{1+x^2}dx[/tex]

Then your integral is just I(a=1).

Differentiate under the integral wrt a:

[tex]\frac{\partial I(a)}{\partial a} = \int \frac{1}{(1+x^2)(1+ax)}dx[/tex]

Can you express the integrand in terms of partial fractions, and integrate term, thereby obtaining a function of x and a. Then you need to integrate it wrt a. Once again, this may be messy -- esp the integration wrt a...I am still figuring out the details.
I have knowledge of partial derivatives but I was never taught that I could do that within integrals. But after seeing this method, I have figured out how it was done. It was simply fascinating. Thanks. But the problem persists.
Using partial fractions, and standard formulae for integrating the 1/ Linear and Linear /Quadratic forms, I arrived at :
[tex]\frac{2ArcTan[x]+2*a*ln(1+ax)-a*ln(1+x^2)}{2(1+a^{2})}[/tex]

But If you please consider the second term there ->
[tex]\frac{a*ln(1+ax)}{(1+a^{2})}[/tex]
Had I known how to integrate that wrt a, I would have done the original integral myself. I also got that term in one of my substitutions.
Offhand, one can express (x^2 + 1) = (x+i)(x-i) and do an expansion. (All this is assuming that you have to compute the indefinite integral.)

Let me see if it works...I'll think of some other way too. Meanwhile, post your solution...the one you must've tried on paper (before resorting to Mathematica.)
Yup! I have to compute the indefinite integral.
I have already told you about hat all I did. If you still wish to see the calculations part, I will upload some pages from my notebook where I attempted the question.
Thanks for the help!
Ritwik
 
  • #4


well, A, B and C do not come independent of a in there. For eg. B= 1/(2(i-a)) there.
But I can express [tex]\frac{1}{(x+i)(x-i)(1+ax)} [/tex] as [tex]\frac {-i}{(2 (1 + ax) (-i + x))} +\frac{i}{(2 (1 + ax) (i + x))}[/tex]
 
  • #5


Scratch that..its getting messy. I don't think it'll work because you can't write the last integral in closed form anyway.

But I get the feeling the original integral too can only be series-expanded. I am somewhat out of touch here, but I do remember having encountered this integral in school...and if I remember correctly, I had to series expand the logarithm function. Maybe I am confusing it with another similar looking integrand.

Where did you encounter this problem? Can you tell me the exact source?
 
  • #6


maverick280857 said:
Scratch that..its getting messy. I don't think it'll work because you can't write the last integral in closed form anyway.

But I get the feeling the original integral too can only be series-expanded. I am somewhat out of touch here, but I do remember having encountered this integral in school...and if I remember correctly, I had to series expand the logarithm function. Maybe I am confusing it with another similar looking integrand.

Where did you encounter this problem? Can you tell me the exact source?

Never mind. Take your time. I am in no hurry.
Well, I got this in my class for maths. And my teacher said it was a challenging problem. But I don't think this integral can be done while remaining within the limits of our course. as a matter of fact, we will be told about the solution tomorrow. If at all it makes sense to me, I will surely post it tomorrow.
regards,
Ritwik
PS. Thanks again for the help.
 
  • #7


Well, I found closely related integrals in my tables which have only series expansions.

Maybe your instructor wants you to expand log(1+x) and integrate each term which is of the form

[tex]a_{n}\int \frac{x^n}{x^2 + 1} dx[/tex]

(which is integrable by the way)

and write the result as an infinite series (where I've written [itex]\log(1+x) = \sum_{n=0}^{\infty}a_{n}x^{n}[/itex]). The other way out could be to integrate by parts once and use a series expansion for [itex]\tan^{-1}x[/itex] to express the second integral,

[tex]\int \frac{\tan^{-1}x}{1+x}dx[/tex]

as a power series in x.

Try the first route. All you need is the power series expansion for log(1+x). This is given here: http://en.wikipedia.org/wiki/Natural_logarithm#Derivative.2C_Taylor_series. Note that the power series converges for |x| < 1. (No need to worry about the technicalities for now, just keep in mind that the final "series" or "function" you get will be valid only for x lying in this interval.)
 

Related to Integrating Log[1+x] using Series Expansion

What is Mathematica?

Mathematica is a computational software program used for mathematical and scientific calculations, data analysis, and visualization. It is often used by scientists, engineers, and mathematicians to solve complex equations and perform advanced mathematical operations.

How do I integrate in Mathematica?

To integrate in Mathematica, you can use the built-in function "Integrate" or the shorthand symbol "/.". Simply input the function you want to integrate and specify the variables and limits of integration.

What types of integrals can Mathematica solve?

Mathematica can solve a wide range of integrals, including definite and indefinite integrals, multiple integrals, improper integrals, and symbolic integrals. It also has special functions for solving specific types of integrals, such as trigonometric, exponential, and logarithmic integrals.

Can Mathematica perform numerical integration?

Yes, Mathematica has a powerful numerical integration function called "NIntegrate" that can handle a variety of numerical integration problems. It uses advanced algorithms and adaptive sampling to provide accurate numerical results.

Is Mathematica only for advanced users?

No, Mathematica has a user-friendly interface and can be used by anyone with basic knowledge of mathematics. It also has a vast library of built-in functions and resources to help users with various levels of expertise. Additionally, there are many online tutorials and resources available to help new users get started with Mathematica.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
359
Replies
23
Views
1K
  • Calculus and Beyond Homework Help
Replies
10
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
14
Views
302
  • Calculus and Beyond Homework Help
Replies
6
Views
565
  • Calculus and Beyond Homework Help
Replies
7
Views
726
  • Calculus and Beyond Homework Help
Replies
9
Views
788
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
Back
Top