1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Big mean integral.

  1. Jul 25, 2009 #1
    1. The problem statement, all variables and given/known data

    [tex]\int_0^1 \frac{ln(x+1)}{x^2+1}[/tex]

    3. The attempt at a solution

    Alright so I've come across this integral as the last question in the whole exercise set, and... I've gotten nothing...
    All previous questions have involved some sort of substitution.. but I can't find any suitable subs for this one.
    By parts hasn't gotten anything for me; you get a tan inverse and that becomes another wall.
    An answer has been provided; [tex]\frac{1}{8} \pi ln2[/tex]... but I have no idea how you get there.
  2. jcsd
  3. Jul 25, 2009 #2
    Try substituting x = tan(t) and further manipulate the numerator.
    Last edited: Jul 25, 2009
  4. Jul 25, 2009 #3
    Let's go...
    [tex]x = tan\,u[/tex]
    [tex]dx = sec^2\,u\,du[/tex]

    so it becomes
    [tex]\int_0^\frac{\pi}{4} ln[tan(u)+1]\,du[/tex]

    and now I'm stuck again...
    Last edited: Jul 25, 2009
  5. Jul 25, 2009 #4
    [tex]\int_0^\frac{\pi}{4} ln[tan(u)+1]\,du [/tex]
    Since you've got here, try substitute [tex]t=\frac{\pi}{4}-u[/tex]
  6. Jul 25, 2009 #5
    After a bit of fiddling:

    [tex]\int_0^\frac{\pi}{4} ln[tan(\frac{\pi}{4}-t)+1)\,dt[/tex]

    I'm still not picking up anything... by parts from here doesn't look to friendly
  7. Jul 25, 2009 #6


    User Avatar
    Science Advisor
    Homework Helper

    If it's any help, and it's not, I don't see it either. I usually can and I don't. I'm just posting to get an alert if someone knows the secret trick. Don't feel bad for not getting it.
  8. Jul 25, 2009 #7
    Yes, well that's the general idea: don't use integration by parts. The first substitution was natural, and simplified the integral quite a bit. As for the resulting integral, the log function alone suggests that we are not going to do the integral by parts. But more importantly, the nice limits of integration and the appearance of the trig function suggest that we exploit the symmetry of trig functions. Thus, at this point, you should realize that clearly, there is justification in kof9595995's suggested substitution. In fact, try to prove why that [tex]\int_{a}^{b}f(a + b - x) \,dx = \int_{a}^{b}f(x) \,dx[/tex]. This is a useful trick.

    Expand tan(a-b), and that should lead you to the solution. Also, when doing definite integration, it's almost always a good idea to denote the integral trying to determine by I or some other letter from the beginning. You could also do this integral without using kof9595995's substitution. The more straightforward way is to simply write tan(x) + 1 as [sin(x) + cos(x)] / cos(x). The expression sin(x) + cos(x) can be rewritten as A*sin(x + B), for suitable A and B. A few more substitutions will lead to the answer.
  9. Jul 26, 2009 #8
    Thanks for all the replies + Dick's input (lol)

    Okay so I'm just gonna spell out everything I've tried doing so far:

    Using kof's substitution ->
    Expanding [tex]tan\,(\frac{\pi}{4}-t)[/tex]
    I get [tex]\frac{1-tan\,t}{1+tan\,t}[/tex]
    The integral of that, I recognised is ln (cos+sin) if that's of any use later on..?

    Not sure how to deal with this if there's a natural log in front of it to integrate... and I don't see it as very useful, as nice as it looks... or maybe I'm just braindead and forgetting something really obvious?

    Going back to snipez90's suggestion of tan u + 1 = that sin, cos combo;
    i get down to [tex]\int_0^\frac{\pi}{4} ln\,(sin\,u+cos\,u)-ln\,(cos\,u)\,du[/tex]

    I sort of understand the "suitable A, B to get A*sin(x+B)," for example,
    [tex]\sqrt{2}sin(u+\frac{\pi}{4})[/tex] gives sin u + cos u, although I still don't get how to incorporate this because of that natural log.... argh!
  10. Jul 26, 2009 #9
    This is probably rather unhelpful (only had a quick glance so far) but if you complete the square on the bottom you get an x+1 squared term (and a -2x term which is bad) but perhaps that would help in the by parts method? I don't know =(
  11. Jul 26, 2009 #10
    For the first approach, you are forgetting something obvious, namely a 1. Then see if you can write the original integral (give it a variable to keep track of it if you haven't) as a difference of two integrals (like you did in the second approach).

    Well for the second approach, the log actually helps, since sqrt(2) is just a constant after all. Note that you actually get the answer you want once you split off the ln(sqrt(2)) by the linearity property of integrals. This should tell you how to finish the solution, since you have 2 other integrals that are "left over".
  12. Jul 26, 2009 #11
    Haha I love the result Maple gave me. What's a dilog?

    EDIT: Nvm the dilog. One of those non-elementary functions.
  13. Jul 26, 2009 #12
    Ah yes, snipez, silly me, wrote it down and forgot to post it up here
    it becomes 2/(1+tan (t));

    so we get integral ln 2 - ln (1+tan t) but i still don't like the integral ln (1+tan t) bit... how would I go about doing that...

    with the second approach:
    If you're saying what I think you're saying:
    integral ln(sqrt2)+ ln(sin(u+pi/4) -ln(cos u) [or + ln(sin(u-pi/2)??] du

    Again I'm stuck with doing integral natural logs of trig..
    Or am I just going in the wrong direction?
  14. Jul 26, 2009 #13
    Since you've got
    \int_0^\frac{\pi}{4} ln[tan(u)+1]\,du=\int_0^\frac{\pi}{4} ln2-ln[tan(t)+1]\,dt
    Isn't it obvious that
    2\int_0^\frac{\pi}{4} ln[tan(u)+1]\,du=\int_0^\frac{\pi}{4} ln2\,dt
    Then you know what to do next.
  15. Jul 26, 2009 #14
    dummy variables, solves having to integrate log trigs ^^;
    And it becomes so simple after all that work, with an easy integration to end.
    Hahaha I'm so slow...

    Thanks kof + everyone else who contributed
  16. Jul 26, 2009 #15
    Yeah, that is why it is a good idea to label your integrals throughout.

    Jungy, your algebraic manipulations are fine, but I think you are still having trouble with the concepts (which is fine, since this is a hard integral). The solutions outlined here do not attempt to actually evaluate any integrals of log functions composed with trig functions directly. Instead, the trick is to manipulate the limits of integration to break down the original integral and simplify. The best thing about definite integrals involving trig functions is that we can exploit symmetry, often by making simple substitutions. For instance, if we are integrating an expression involving a trig function with respect to x over the interval [0, pi/4], we might simply try to substitute u = pi/4 - x to see if the "new" integral preserves any nice properties of the original integral. Moreover, various trig identities, such as sin(pi/2 - x) = cos(x) for real x may serve as suggestions for which substitutions we make.

    In the end, definite integrals of this type involve some general principles (such as the integral identity I mentioned above), but keeping the basic idea in mind is more important. Having said that, you really shouldn't let integrals of logarithms of trig functions intimidate you. You can actually draw out the graphs of sin(pi/4 + x) and cos(x) and see that taking their integrals over the interval 0 to pi/4 give you the same answer. You should prove this by making the appropriate substitution (or noticing that you could write sin(x) + cos(x) can be rewritten in terms of cos as well).

    But really, if you have a definite integral and obvious substitutions don't work and integrating by parts looks ugly, it's pretty much given that the limits of integration play a huge role. Ordinarily, all you have to do is remember to change the limits of integration. You can actually evaluate this integral using direct methods, but these approaches are more advanced. Differentiating under the integral sign works. Applying series expansion works (ugly). Contour integration probably works, but someone who knows complex analysis will help you out there.
  17. Jul 26, 2009 #16
    Yeah I have 'I=' in front of my work all the time, just didn't put it here... although you rightly pose an important point..
    I'm not 100% confident about freely fiddling with the limits, although I know those 'properties of definite integrals' or whatnot, and are obviously relevant, especially in cases like this..
    I have definitely learned from this... thanks again to you all

    Now to the next chapter: resisted motion :D
  18. Feb 9, 2010 #17
    Sorry to bring up this old post, but I was wondering how you decided to use this substitution?

  19. Feb 10, 2010 #18

    Gib Z

    User Avatar
    Homework Helper

    Either by having seen the beautiful solution before and having remembered it, or by trying his luck with the integral identity [tex]\int^a_0 f(x) dx = \int^a_0 f(a-x) dx[/tex] because the lower bound was zero, or just perhaps having the foresight to realise the nice manipulation that can come about from the substitution.
  20. Feb 10, 2010 #19
    I'm sorry but I can't find this integral identity anywhere, not in my book or online. Is this the standard form for the identity or has this a manipulation of one?

    Thanks so much
  21. Feb 12, 2010 #20

    Gib Z

    User Avatar
    Homework Helper

    That is the standard form of that identity. You can show it by letting x= a-u in the Left Integral and by recognising that x and u are just dummy variables in the definite integral and change back to x at the end.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook