Integral of ln(1+tanx) from 0 to pi/4 | Homework Equations

  • Thread starter XtremePhysX
  • Start date
  • Tags
    Integration
In summary, the integral in question is equal to \int_{0}^{\pi/4}\log(1+\tan(\pi/4-x))dx and can be simplified using the identity \tan(\pi/4-x)=\frac{1-\tan(x)}{1+\tan(x)}. It can then be solved using the logarithmic integral function and Catalan's constant. The correct answer is approximately 0.27219826.
  • #1
XtremePhysX
92
0

Homework Statement



Evaluate the following integral:

Homework Equations



[tex]\int_{0}^{\frac{\pi }{4}}ln(1+tanx)dx[/tex]

The Attempt at a Solution



I tried to split is into ln(1) times ln(tanx) but didnt work.
 
Physics news on Phys.org
  • #2
Because you can't split it up like that perhaps?

Use this identity of integrals: Substituting x=a-t, dx=-dt:

[tex]\int_{0}^{a}f(a-t)\,dt=-\int_{a}^{0}f(x)\,dx=\int_{0}^{a}f(x)\,dx[/tex]
 
  • #3
can u please show me how to do it, i tried it this way but i messed it up.
 
  • #4
That is a pretty difficult integral. If you really wrote it down correctly, the best approach is likely to evaluate it numerically.
 
  • #5
I'll give you a headstart, but you should solve it yourself.
Applying the result I gave above to your problem, we get that your integral is equal to
[tex]\int_{0}^{\pi/4}\log(1+\tan(\pi/4-x))dx[/tex]
Now, note that [itex]\displaystyle \tan(x)=\frac{\sin(x)}{\cos(x)}[/itex] so that
[tex]\tan(\pi/4-x)=\frac{\sin(\pi/4-x)}{\cos(\pi/4-x)}=\frac{\sin(\pi/4)\cos(x)-\cos(\pi/4)\sin(x)}{\cos(\pi/4)\cos(x)+\sin(\pi/4)\sin(x)}=\frac{\cos(x)-\sin(x)}{\cos(x)+\sin(x)}[/tex]
This is easily seen to be equal to
[tex]\frac{1-\tan(x)}{1+\tan(x)}[/tex]
Now, please take it from there.
 
  • #6
clamtrox said:
That is a pretty difficult integral. If you really wrote it down correctly, the best approach is likely to evaluate it numerically.

The indefinite integral is in terms of the logarithmic integral function but the definite integral has a solution.
 
  • #7
Thank u a lot.

great forum.
 
  • #8
What does that mean? Do you have the answer??
 
  • #9
I don't have the answer but thanks to u, i solved it, the answer is pi/4 ln(2)
 
  • #10
guys, I am learning harder integration so can anyone give me an example of an extremely difficult integral?
 
Last edited:
  • #11
[tex]\int_{0}^{\infty}\frac{\cos(x)\,dx}{1+x^2}[/tex]
Good luck!
 
  • #12
wow that's a hard one
do you have so really big, difficult and intimidating integrals that looks almost impossible to solve
 
  • #13
Discussion here is not really appropriate, I shall send some to you via PM.
 
  • #14
thank you
im new here so excuse me please :)
 
  • #15
XtremePhysX said:
I don't have the answer but thanks to u, i solved it, the answer is pi/4 ln(2)

Is it? You might want to sketch the integrand and see if your result is reasonable for the area under the curve ;0).
 
  • #16
Your really close, you probably made a simple arithmetic mistake in your work. The graph of that is very close to a triangle and the area you found wouldn't fit in the bounds of a triangle. That was fun integral though!
 
  • #17
XtremePhysX said:
I don't have the answer but thanks to u, i solved it, the answer is pi/4 ln(2)

Wrong. If we let [itex] J = \int_0^{\pi/4} \, \ln(1 + \tan(x))\, dx,[/itex] your claim is that [itex]J = \pi/4\ln(2).[/itex] If you mean [itex]J = (\pi/4) \ln(2) \doteq 0.5443965,[/itex] that is wrong. If you mean [itex] J = \pi/(4 \ln(2)) \doteq 1.1330900,[/itex] that is also wrong. The correct answer is
[tex] J = \frac{i}{2}\text{dilog}\left(\frac{1+i}{2}\right) - \frac{i}{2}\text{dilog}\left(\frac{1-i}{2}\right) + \frac{\pi \ln(2)}{4} - C,[/tex]
where C is Catalan's constant
[tex] C = \sum_{i=0}^{\infty} \frac{(-1)^i}{(2i+1)^2} [/tex]
and
[tex] \text{dilog}(w) = \int_1^w \frac{\ln(t)}{1-t} \, dt[/tex]
and [itex]i = \sqrt{-1}.[/itex] The numerical value of the correct answer is
[itex]J \doteq 0.27219826.[/itex] (All this courtesy of Maple11).


RGV
 
  • #18
J≐0.27219826 looks like [tex] \frac{\pi}{8}\ln{2}[/tex] which is why I think it likely he made a simple arithmetic mistake.
 
  • #19
He probably made the same mistake I did when I worked it out and got the same answer as him :blushing: but I did eventually get[tex]\frac{\pi}{8}\ln2[/tex]
 

FAQ: Integral of ln(1+tanx) from 0 to pi/4 | Homework Equations

1. What is the formula for calculating the integral of ln(1+tanx) from 0 to pi/4?

The formula for calculating the integral of ln(1+tanx) from 0 to pi/4 is ln(2)-1.

2. How do I solve this integral using basic integration techniques?

To solve this integral, you can use the substitution method by setting u = 1+tanx and du = sec^2x dx. Then, the integral becomes ∫ln(u) du, which can be solved using the power rule of integration.

3. Is there a specific method or trick to solving this integral?

Yes, you can use the trigonometric identity tanx = sinx/cosx to rewrite the integral as ∫ln(1+sinx/cosx) sec^2x dx. This can then be solved using the u-substitution method.

4. Can I use a calculator to solve this integral?

Yes, you can use a calculator to solve this integral. However, make sure to use a calculator that can handle symbolic integration, as the result will involve the natural logarithm function.

5. What are the applications of this integral in real life?

This integral has various applications in fields such as physics, engineering, and economics. It can be used to solve problems involving growth and decay, optimization, and probability distributions.

Similar threads

Replies
22
Views
2K
Replies
8
Views
1K
Replies
14
Views
931
Replies
8
Views
1K
Replies
2
Views
1K
Replies
2
Views
2K
Replies
13
Views
2K
Back
Top