Seeking methods to solve $ int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx $
up vote
3
down vote
favorite
As part of going through a set of definite integrals that are solvable using the Feynman Trick, I am now solving the following:
$$ int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx $$
I'm seeking methods using the Feynman Trick (or any method for that matter) that can be used to solve this definite integral.
integration definite-integrals
add a comment |
up vote
3
down vote
favorite
As part of going through a set of definite integrals that are solvable using the Feynman Trick, I am now solving the following:
$$ int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx $$
I'm seeking methods using the Feynman Trick (or any method for that matter) that can be used to solve this definite integral.
integration definite-integrals
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
As part of going through a set of definite integrals that are solvable using the Feynman Trick, I am now solving the following:
$$ int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx $$
I'm seeking methods using the Feynman Trick (or any method for that matter) that can be used to solve this definite integral.
integration definite-integrals
As part of going through a set of definite integrals that are solvable using the Feynman Trick, I am now solving the following:
$$ int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx $$
I'm seeking methods using the Feynman Trick (or any method for that matter) that can be used to solve this definite integral.
integration definite-integrals
integration definite-integrals
asked Nov 21 at 3:47
DavidG
813513
813513
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
up vote
5
down vote
accepted
If one wishes to use "Feynman's Trick," then begin by defining a function $I(a)$, $a>1$ as given by
$$I(a)=int_0^{pi/2}log(a+tan^2(x)),dx tag1$$
Differentiation of $(1)$ reveals
$$begin{align}
I'(a)&=int_0^{pi/2} frac{1}{a+tan^2(x)},dx\\
&=frac{pi/2}{a-1}-frac{pi/2}{sqrt a (a-1)}tag2
end{align}$$
Integration of $(2)$ yields
$$begin{align}
I(a)&=fracpi2left(log(a-1)+logleft(frac{sqrt a+1}{sqrt{a}-1}right) right)\\
&=pi log(sqrt a+1)tag3
end{align}$$
Finally, setting $a=2$ in $(3)$, we obtain the coveted result
$$int_0^{pi/2}log(2+tan^2(x)),dx=pi log(sqrt 2+1)$$
How did you resolve the constant of Integration in Step (3)?
– DavidG
Nov 21 at 4:38
1
@davidg Apology for the sign error. Note $I(0)=0$.
– Mark Viola
Nov 21 at 5:08
Hi Mark ! Long time no speak. Nice solution $to +1$. Cheers.
– Claude Leibovici
Nov 21 at 6:22
@MarkViola do you know of any other ‘tricks that would work?
– DavidG
Nov 21 at 6:51
1
Hi David. You could try writing the logarithm as $log(1+cos^2(x))-log(sin^2(x))$ and expanding the first term as $sum_{n=1}^infty frac{(-1)^{n-1}cos^{2n}(x)}{n}$ and proceeding. I haven't tried this, but it might be worth pursuing.
– Mark Viola
Nov 21 at 15:47
add a comment |
up vote
2
down vote
My approach
Let
begin{align}
int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx &= int_{0}^{frac{pi}{2}} lnleft|1 + left(1 + tan^2(x)right) right| :dx \
&= int_{0}^{frac{pi}{2}} lnleft|1 + sec^2(x) right| :dx \
&= int_{0}^{frac{pi}{2}} lnleft|frac{cos^2(x) + 1}{cos^2(x)} right| :dx \
&= int_{0}^{frac{pi}{2}} left[ lnleft|cos^2(x) + 1 right| - lnleft|cos^2(x)right| right]:dx \
&= int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx - int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx
end{align}
Now
$$ int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx = 2int_{0}^{frac{pi}{2}} lnleft|cos(x)right|:dx = 2cdot-frac{pi}{2}ln(2) = -pi ln(2)$$
For detail on this definite integral, see guidance here
We now need to solve
$$ int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx $$
Here, Let
$$ I(t) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + t right|:dx $$
Thus,
$$
frac{dI}{dt} = int_{0}^{frac{pi}{2}} frac{1}{cos^2(x) + t}:dx
= int_{0}^{frac{pi}{2}} frac{1}{frac{cos(2x) + 1}{2} + t}:dx = 2int_{0}^{frac{pi}{2}} frac{1}{cos(2x) + 2t + 1}:dx
$$
Employ a change of variable $u = 2x$:
$$frac{dI}{dt} = int_{0}^{pi} frac{1}{cos(u) + 2t + 1}:du $$
Employ the Weierstrass substitution $omega = tanleft(frac{u}{2} right)$:
begin{align}
frac{dI}{dt} &= int_{0}^{infty} frac{1}{frac{1 - omega^2}{1 + omega^2} + 2t + 1}:frac{2}{1 + omega^2}cdot domega \
&= int_{0}^{infty} frac{1}{tomega^2 + t + 1} :domega \
&= frac{1}{t}int_{0}^{infty} frac{1}{omega^2 + frac{t + 1}{t}} :domega \
&= frac{1}{t}left[frac{1}{sqrt{frac{t+1}{t}}}arctanleft( frac{omega}{sqrt{frac{t+1}{t}}}right)right]_{0}^{infty} \
&= frac{1}{t}frac{1}{sqrt{frac{t+1}{t}}}frac{pi}{2} \
&= frac{1}{sqrt{t}sqrt{t + 1}}frac{pi}{2}
end{align}
And so,
$$I(t) = int frac{1}{sqrt{t}sqrt{t + 1}}frac{pi}{2}:dt = pilnleft| sqrt{t} + sqrt{t + 1}right| + C$$
Now
$$I(0) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 0 right|:dx = -pi ln(2) = pilnleft|sqrt{0} + sqrt{0 + 1} right| + C rightarrow C = -pi ln(2)$$
And so,
$$I(t) = pilnleft| sqrt{t} + sqrt{t + 1}right| -pi ln(2) = pilnleft|frac{sqrt{t} + sqrt{t + 1}}{2} right|$$
Thus,
$$I = I(1) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx = pilnleft|frac{sqrt{1} + sqrt{1 + 1}}{2} right| = pilnleft|frac{1 + sqrt{2}}{2} right| $$
And Finally
begin{align}
int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx &= int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx - int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx \
&= pilnleft|frac{1 + sqrt{2}}{2} right| - left(-pi ln(2)right) \
&= pilnleft|1 + sqrt{2} right|
end{align}
Your question and your answer have a gap of just 1 minute. If you did solve the question earlier then you must've included your approach in the question itself. What is the need to post it as an answer?
– Digamma
Nov 21 at 3:56
@Digamma - Sorry, although I've been a member of Math StackExchange for 4 years, I've only become regularly active recently. When I asked a friend who is a member as to what is the best way of presenting a solution whilst asking for other solutions I was told this is the approach taken within the community. If this violate any of the rules, please advise and I will reposition accordingly. Also, I never assign my solution as 'the solution' to any post of this nature.
– DavidG
Nov 21 at 4:00
@Digamma The site encourages people to share the questions with answers.
– Tianlalu
Nov 21 at 4:03
@Tianlalu - Sorry, just to be clear - Have I employed the correct process here?
– DavidG
Nov 21 at 4:10
Looks good to me.
– Tianlalu
Nov 21 at 6:01
|
show 1 more comment
up vote
1
down vote
Good answers have already been posted. Maybe one will like this way too: $$I=int_0^frac{pi}{2}ln(2+tan^2x)dxoverset{tan x=t}=int_0^infty frac{ln(2+t^2)}{1+t^2}dt$$
We now consider the following integral: $$I(a)= int_0^infty frac{ln(1+a(1+x^2))}{1+x^2}dxrightarrow I'(a)=int_0^infty frac{1+x^2}{(1+a(1+x^2))(1+x^2)}dx$$
$$=int_0^infty frac{dx}{1+a+ax^2}= frac{1}{sqrt{a+a^2}} arctanleft(sqrt{frac{ a} {a+1}}xright)bigg|_0^infty=frac{pi}{2}frac{1}{sqrt{a+a^2}}$$
Since $I(0)=0$ We have that $I=I(1)-I(0)= int_0^1 I'(a)da $
$$I=frac{pi}{2} int_0^1 frac{da}{sqrt{a}sqrt{1+a}} overset{sqrt a=t}=piint_0^1 frac{dt}{sqrt{1+t^2}}=piln(1+sqrt 2)$$
1
Much more compact way of approaching it. Thanks for posting @Zacky.
– DavidG
Nov 22 at 23:54
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
accepted
If one wishes to use "Feynman's Trick," then begin by defining a function $I(a)$, $a>1$ as given by
$$I(a)=int_0^{pi/2}log(a+tan^2(x)),dx tag1$$
Differentiation of $(1)$ reveals
$$begin{align}
I'(a)&=int_0^{pi/2} frac{1}{a+tan^2(x)},dx\\
&=frac{pi/2}{a-1}-frac{pi/2}{sqrt a (a-1)}tag2
end{align}$$
Integration of $(2)$ yields
$$begin{align}
I(a)&=fracpi2left(log(a-1)+logleft(frac{sqrt a+1}{sqrt{a}-1}right) right)\\
&=pi log(sqrt a+1)tag3
end{align}$$
Finally, setting $a=2$ in $(3)$, we obtain the coveted result
$$int_0^{pi/2}log(2+tan^2(x)),dx=pi log(sqrt 2+1)$$
How did you resolve the constant of Integration in Step (3)?
– DavidG
Nov 21 at 4:38
1
@davidg Apology for the sign error. Note $I(0)=0$.
– Mark Viola
Nov 21 at 5:08
Hi Mark ! Long time no speak. Nice solution $to +1$. Cheers.
– Claude Leibovici
Nov 21 at 6:22
@MarkViola do you know of any other ‘tricks that would work?
– DavidG
Nov 21 at 6:51
1
Hi David. You could try writing the logarithm as $log(1+cos^2(x))-log(sin^2(x))$ and expanding the first term as $sum_{n=1}^infty frac{(-1)^{n-1}cos^{2n}(x)}{n}$ and proceeding. I haven't tried this, but it might be worth pursuing.
– Mark Viola
Nov 21 at 15:47
add a comment |
up vote
5
down vote
accepted
If one wishes to use "Feynman's Trick," then begin by defining a function $I(a)$, $a>1$ as given by
$$I(a)=int_0^{pi/2}log(a+tan^2(x)),dx tag1$$
Differentiation of $(1)$ reveals
$$begin{align}
I'(a)&=int_0^{pi/2} frac{1}{a+tan^2(x)},dx\\
&=frac{pi/2}{a-1}-frac{pi/2}{sqrt a (a-1)}tag2
end{align}$$
Integration of $(2)$ yields
$$begin{align}
I(a)&=fracpi2left(log(a-1)+logleft(frac{sqrt a+1}{sqrt{a}-1}right) right)\\
&=pi log(sqrt a+1)tag3
end{align}$$
Finally, setting $a=2$ in $(3)$, we obtain the coveted result
$$int_0^{pi/2}log(2+tan^2(x)),dx=pi log(sqrt 2+1)$$
How did you resolve the constant of Integration in Step (3)?
– DavidG
Nov 21 at 4:38
1
@davidg Apology for the sign error. Note $I(0)=0$.
– Mark Viola
Nov 21 at 5:08
Hi Mark ! Long time no speak. Nice solution $to +1$. Cheers.
– Claude Leibovici
Nov 21 at 6:22
@MarkViola do you know of any other ‘tricks that would work?
– DavidG
Nov 21 at 6:51
1
Hi David. You could try writing the logarithm as $log(1+cos^2(x))-log(sin^2(x))$ and expanding the first term as $sum_{n=1}^infty frac{(-1)^{n-1}cos^{2n}(x)}{n}$ and proceeding. I haven't tried this, but it might be worth pursuing.
– Mark Viola
Nov 21 at 15:47
add a comment |
up vote
5
down vote
accepted
up vote
5
down vote
accepted
If one wishes to use "Feynman's Trick," then begin by defining a function $I(a)$, $a>1$ as given by
$$I(a)=int_0^{pi/2}log(a+tan^2(x)),dx tag1$$
Differentiation of $(1)$ reveals
$$begin{align}
I'(a)&=int_0^{pi/2} frac{1}{a+tan^2(x)},dx\\
&=frac{pi/2}{a-1}-frac{pi/2}{sqrt a (a-1)}tag2
end{align}$$
Integration of $(2)$ yields
$$begin{align}
I(a)&=fracpi2left(log(a-1)+logleft(frac{sqrt a+1}{sqrt{a}-1}right) right)\\
&=pi log(sqrt a+1)tag3
end{align}$$
Finally, setting $a=2$ in $(3)$, we obtain the coveted result
$$int_0^{pi/2}log(2+tan^2(x)),dx=pi log(sqrt 2+1)$$
If one wishes to use "Feynman's Trick," then begin by defining a function $I(a)$, $a>1$ as given by
$$I(a)=int_0^{pi/2}log(a+tan^2(x)),dx tag1$$
Differentiation of $(1)$ reveals
$$begin{align}
I'(a)&=int_0^{pi/2} frac{1}{a+tan^2(x)},dx\\
&=frac{pi/2}{a-1}-frac{pi/2}{sqrt a (a-1)}tag2
end{align}$$
Integration of $(2)$ yields
$$begin{align}
I(a)&=fracpi2left(log(a-1)+logleft(frac{sqrt a+1}{sqrt{a}-1}right) right)\\
&=pi log(sqrt a+1)tag3
end{align}$$
Finally, setting $a=2$ in $(3)$, we obtain the coveted result
$$int_0^{pi/2}log(2+tan^2(x)),dx=pi log(sqrt 2+1)$$
edited Nov 21 at 5:07
answered Nov 21 at 4:33
Mark Viola
129k1273170
129k1273170
How did you resolve the constant of Integration in Step (3)?
– DavidG
Nov 21 at 4:38
1
@davidg Apology for the sign error. Note $I(0)=0$.
– Mark Viola
Nov 21 at 5:08
Hi Mark ! Long time no speak. Nice solution $to +1$. Cheers.
– Claude Leibovici
Nov 21 at 6:22
@MarkViola do you know of any other ‘tricks that would work?
– DavidG
Nov 21 at 6:51
1
Hi David. You could try writing the logarithm as $log(1+cos^2(x))-log(sin^2(x))$ and expanding the first term as $sum_{n=1}^infty frac{(-1)^{n-1}cos^{2n}(x)}{n}$ and proceeding. I haven't tried this, but it might be worth pursuing.
– Mark Viola
Nov 21 at 15:47
add a comment |
How did you resolve the constant of Integration in Step (3)?
– DavidG
Nov 21 at 4:38
1
@davidg Apology for the sign error. Note $I(0)=0$.
– Mark Viola
Nov 21 at 5:08
Hi Mark ! Long time no speak. Nice solution $to +1$. Cheers.
– Claude Leibovici
Nov 21 at 6:22
@MarkViola do you know of any other ‘tricks that would work?
– DavidG
Nov 21 at 6:51
1
Hi David. You could try writing the logarithm as $log(1+cos^2(x))-log(sin^2(x))$ and expanding the first term as $sum_{n=1}^infty frac{(-1)^{n-1}cos^{2n}(x)}{n}$ and proceeding. I haven't tried this, but it might be worth pursuing.
– Mark Viola
Nov 21 at 15:47
How did you resolve the constant of Integration in Step (3)?
– DavidG
Nov 21 at 4:38
How did you resolve the constant of Integration in Step (3)?
– DavidG
Nov 21 at 4:38
1
1
@davidg Apology for the sign error. Note $I(0)=0$.
– Mark Viola
Nov 21 at 5:08
@davidg Apology for the sign error. Note $I(0)=0$.
– Mark Viola
Nov 21 at 5:08
Hi Mark ! Long time no speak. Nice solution $to +1$. Cheers.
– Claude Leibovici
Nov 21 at 6:22
Hi Mark ! Long time no speak. Nice solution $to +1$. Cheers.
– Claude Leibovici
Nov 21 at 6:22
@MarkViola do you know of any other ‘tricks that would work?
– DavidG
Nov 21 at 6:51
@MarkViola do you know of any other ‘tricks that would work?
– DavidG
Nov 21 at 6:51
1
1
Hi David. You could try writing the logarithm as $log(1+cos^2(x))-log(sin^2(x))$ and expanding the first term as $sum_{n=1}^infty frac{(-1)^{n-1}cos^{2n}(x)}{n}$ and proceeding. I haven't tried this, but it might be worth pursuing.
– Mark Viola
Nov 21 at 15:47
Hi David. You could try writing the logarithm as $log(1+cos^2(x))-log(sin^2(x))$ and expanding the first term as $sum_{n=1}^infty frac{(-1)^{n-1}cos^{2n}(x)}{n}$ and proceeding. I haven't tried this, but it might be worth pursuing.
– Mark Viola
Nov 21 at 15:47
add a comment |
up vote
2
down vote
My approach
Let
begin{align}
int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx &= int_{0}^{frac{pi}{2}} lnleft|1 + left(1 + tan^2(x)right) right| :dx \
&= int_{0}^{frac{pi}{2}} lnleft|1 + sec^2(x) right| :dx \
&= int_{0}^{frac{pi}{2}} lnleft|frac{cos^2(x) + 1}{cos^2(x)} right| :dx \
&= int_{0}^{frac{pi}{2}} left[ lnleft|cos^2(x) + 1 right| - lnleft|cos^2(x)right| right]:dx \
&= int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx - int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx
end{align}
Now
$$ int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx = 2int_{0}^{frac{pi}{2}} lnleft|cos(x)right|:dx = 2cdot-frac{pi}{2}ln(2) = -pi ln(2)$$
For detail on this definite integral, see guidance here
We now need to solve
$$ int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx $$
Here, Let
$$ I(t) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + t right|:dx $$
Thus,
$$
frac{dI}{dt} = int_{0}^{frac{pi}{2}} frac{1}{cos^2(x) + t}:dx
= int_{0}^{frac{pi}{2}} frac{1}{frac{cos(2x) + 1}{2} + t}:dx = 2int_{0}^{frac{pi}{2}} frac{1}{cos(2x) + 2t + 1}:dx
$$
Employ a change of variable $u = 2x$:
$$frac{dI}{dt} = int_{0}^{pi} frac{1}{cos(u) + 2t + 1}:du $$
Employ the Weierstrass substitution $omega = tanleft(frac{u}{2} right)$:
begin{align}
frac{dI}{dt} &= int_{0}^{infty} frac{1}{frac{1 - omega^2}{1 + omega^2} + 2t + 1}:frac{2}{1 + omega^2}cdot domega \
&= int_{0}^{infty} frac{1}{tomega^2 + t + 1} :domega \
&= frac{1}{t}int_{0}^{infty} frac{1}{omega^2 + frac{t + 1}{t}} :domega \
&= frac{1}{t}left[frac{1}{sqrt{frac{t+1}{t}}}arctanleft( frac{omega}{sqrt{frac{t+1}{t}}}right)right]_{0}^{infty} \
&= frac{1}{t}frac{1}{sqrt{frac{t+1}{t}}}frac{pi}{2} \
&= frac{1}{sqrt{t}sqrt{t + 1}}frac{pi}{2}
end{align}
And so,
$$I(t) = int frac{1}{sqrt{t}sqrt{t + 1}}frac{pi}{2}:dt = pilnleft| sqrt{t} + sqrt{t + 1}right| + C$$
Now
$$I(0) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 0 right|:dx = -pi ln(2) = pilnleft|sqrt{0} + sqrt{0 + 1} right| + C rightarrow C = -pi ln(2)$$
And so,
$$I(t) = pilnleft| sqrt{t} + sqrt{t + 1}right| -pi ln(2) = pilnleft|frac{sqrt{t} + sqrt{t + 1}}{2} right|$$
Thus,
$$I = I(1) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx = pilnleft|frac{sqrt{1} + sqrt{1 + 1}}{2} right| = pilnleft|frac{1 + sqrt{2}}{2} right| $$
And Finally
begin{align}
int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx &= int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx - int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx \
&= pilnleft|frac{1 + sqrt{2}}{2} right| - left(-pi ln(2)right) \
&= pilnleft|1 + sqrt{2} right|
end{align}
Your question and your answer have a gap of just 1 minute. If you did solve the question earlier then you must've included your approach in the question itself. What is the need to post it as an answer?
– Digamma
Nov 21 at 3:56
@Digamma - Sorry, although I've been a member of Math StackExchange for 4 years, I've only become regularly active recently. When I asked a friend who is a member as to what is the best way of presenting a solution whilst asking for other solutions I was told this is the approach taken within the community. If this violate any of the rules, please advise and I will reposition accordingly. Also, I never assign my solution as 'the solution' to any post of this nature.
– DavidG
Nov 21 at 4:00
@Digamma The site encourages people to share the questions with answers.
– Tianlalu
Nov 21 at 4:03
@Tianlalu - Sorry, just to be clear - Have I employed the correct process here?
– DavidG
Nov 21 at 4:10
Looks good to me.
– Tianlalu
Nov 21 at 6:01
|
show 1 more comment
up vote
2
down vote
My approach
Let
begin{align}
int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx &= int_{0}^{frac{pi}{2}} lnleft|1 + left(1 + tan^2(x)right) right| :dx \
&= int_{0}^{frac{pi}{2}} lnleft|1 + sec^2(x) right| :dx \
&= int_{0}^{frac{pi}{2}} lnleft|frac{cos^2(x) + 1}{cos^2(x)} right| :dx \
&= int_{0}^{frac{pi}{2}} left[ lnleft|cos^2(x) + 1 right| - lnleft|cos^2(x)right| right]:dx \
&= int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx - int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx
end{align}
Now
$$ int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx = 2int_{0}^{frac{pi}{2}} lnleft|cos(x)right|:dx = 2cdot-frac{pi}{2}ln(2) = -pi ln(2)$$
For detail on this definite integral, see guidance here
We now need to solve
$$ int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx $$
Here, Let
$$ I(t) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + t right|:dx $$
Thus,
$$
frac{dI}{dt} = int_{0}^{frac{pi}{2}} frac{1}{cos^2(x) + t}:dx
= int_{0}^{frac{pi}{2}} frac{1}{frac{cos(2x) + 1}{2} + t}:dx = 2int_{0}^{frac{pi}{2}} frac{1}{cos(2x) + 2t + 1}:dx
$$
Employ a change of variable $u = 2x$:
$$frac{dI}{dt} = int_{0}^{pi} frac{1}{cos(u) + 2t + 1}:du $$
Employ the Weierstrass substitution $omega = tanleft(frac{u}{2} right)$:
begin{align}
frac{dI}{dt} &= int_{0}^{infty} frac{1}{frac{1 - omega^2}{1 + omega^2} + 2t + 1}:frac{2}{1 + omega^2}cdot domega \
&= int_{0}^{infty} frac{1}{tomega^2 + t + 1} :domega \
&= frac{1}{t}int_{0}^{infty} frac{1}{omega^2 + frac{t + 1}{t}} :domega \
&= frac{1}{t}left[frac{1}{sqrt{frac{t+1}{t}}}arctanleft( frac{omega}{sqrt{frac{t+1}{t}}}right)right]_{0}^{infty} \
&= frac{1}{t}frac{1}{sqrt{frac{t+1}{t}}}frac{pi}{2} \
&= frac{1}{sqrt{t}sqrt{t + 1}}frac{pi}{2}
end{align}
And so,
$$I(t) = int frac{1}{sqrt{t}sqrt{t + 1}}frac{pi}{2}:dt = pilnleft| sqrt{t} + sqrt{t + 1}right| + C$$
Now
$$I(0) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 0 right|:dx = -pi ln(2) = pilnleft|sqrt{0} + sqrt{0 + 1} right| + C rightarrow C = -pi ln(2)$$
And so,
$$I(t) = pilnleft| sqrt{t} + sqrt{t + 1}right| -pi ln(2) = pilnleft|frac{sqrt{t} + sqrt{t + 1}}{2} right|$$
Thus,
$$I = I(1) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx = pilnleft|frac{sqrt{1} + sqrt{1 + 1}}{2} right| = pilnleft|frac{1 + sqrt{2}}{2} right| $$
And Finally
begin{align}
int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx &= int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx - int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx \
&= pilnleft|frac{1 + sqrt{2}}{2} right| - left(-pi ln(2)right) \
&= pilnleft|1 + sqrt{2} right|
end{align}
Your question and your answer have a gap of just 1 minute. If you did solve the question earlier then you must've included your approach in the question itself. What is the need to post it as an answer?
– Digamma
Nov 21 at 3:56
@Digamma - Sorry, although I've been a member of Math StackExchange for 4 years, I've only become regularly active recently. When I asked a friend who is a member as to what is the best way of presenting a solution whilst asking for other solutions I was told this is the approach taken within the community. If this violate any of the rules, please advise and I will reposition accordingly. Also, I never assign my solution as 'the solution' to any post of this nature.
– DavidG
Nov 21 at 4:00
@Digamma The site encourages people to share the questions with answers.
– Tianlalu
Nov 21 at 4:03
@Tianlalu - Sorry, just to be clear - Have I employed the correct process here?
– DavidG
Nov 21 at 4:10
Looks good to me.
– Tianlalu
Nov 21 at 6:01
|
show 1 more comment
up vote
2
down vote
up vote
2
down vote
My approach
Let
begin{align}
int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx &= int_{0}^{frac{pi}{2}} lnleft|1 + left(1 + tan^2(x)right) right| :dx \
&= int_{0}^{frac{pi}{2}} lnleft|1 + sec^2(x) right| :dx \
&= int_{0}^{frac{pi}{2}} lnleft|frac{cos^2(x) + 1}{cos^2(x)} right| :dx \
&= int_{0}^{frac{pi}{2}} left[ lnleft|cos^2(x) + 1 right| - lnleft|cos^2(x)right| right]:dx \
&= int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx - int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx
end{align}
Now
$$ int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx = 2int_{0}^{frac{pi}{2}} lnleft|cos(x)right|:dx = 2cdot-frac{pi}{2}ln(2) = -pi ln(2)$$
For detail on this definite integral, see guidance here
We now need to solve
$$ int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx $$
Here, Let
$$ I(t) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + t right|:dx $$
Thus,
$$
frac{dI}{dt} = int_{0}^{frac{pi}{2}} frac{1}{cos^2(x) + t}:dx
= int_{0}^{frac{pi}{2}} frac{1}{frac{cos(2x) + 1}{2} + t}:dx = 2int_{0}^{frac{pi}{2}} frac{1}{cos(2x) + 2t + 1}:dx
$$
Employ a change of variable $u = 2x$:
$$frac{dI}{dt} = int_{0}^{pi} frac{1}{cos(u) + 2t + 1}:du $$
Employ the Weierstrass substitution $omega = tanleft(frac{u}{2} right)$:
begin{align}
frac{dI}{dt} &= int_{0}^{infty} frac{1}{frac{1 - omega^2}{1 + omega^2} + 2t + 1}:frac{2}{1 + omega^2}cdot domega \
&= int_{0}^{infty} frac{1}{tomega^2 + t + 1} :domega \
&= frac{1}{t}int_{0}^{infty} frac{1}{omega^2 + frac{t + 1}{t}} :domega \
&= frac{1}{t}left[frac{1}{sqrt{frac{t+1}{t}}}arctanleft( frac{omega}{sqrt{frac{t+1}{t}}}right)right]_{0}^{infty} \
&= frac{1}{t}frac{1}{sqrt{frac{t+1}{t}}}frac{pi}{2} \
&= frac{1}{sqrt{t}sqrt{t + 1}}frac{pi}{2}
end{align}
And so,
$$I(t) = int frac{1}{sqrt{t}sqrt{t + 1}}frac{pi}{2}:dt = pilnleft| sqrt{t} + sqrt{t + 1}right| + C$$
Now
$$I(0) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 0 right|:dx = -pi ln(2) = pilnleft|sqrt{0} + sqrt{0 + 1} right| + C rightarrow C = -pi ln(2)$$
And so,
$$I(t) = pilnleft| sqrt{t} + sqrt{t + 1}right| -pi ln(2) = pilnleft|frac{sqrt{t} + sqrt{t + 1}}{2} right|$$
Thus,
$$I = I(1) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx = pilnleft|frac{sqrt{1} + sqrt{1 + 1}}{2} right| = pilnleft|frac{1 + sqrt{2}}{2} right| $$
And Finally
begin{align}
int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx &= int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx - int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx \
&= pilnleft|frac{1 + sqrt{2}}{2} right| - left(-pi ln(2)right) \
&= pilnleft|1 + sqrt{2} right|
end{align}
My approach
Let
begin{align}
int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx &= int_{0}^{frac{pi}{2}} lnleft|1 + left(1 + tan^2(x)right) right| :dx \
&= int_{0}^{frac{pi}{2}} lnleft|1 + sec^2(x) right| :dx \
&= int_{0}^{frac{pi}{2}} lnleft|frac{cos^2(x) + 1}{cos^2(x)} right| :dx \
&= int_{0}^{frac{pi}{2}} left[ lnleft|cos^2(x) + 1 right| - lnleft|cos^2(x)right| right]:dx \
&= int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx - int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx
end{align}
Now
$$ int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx = 2int_{0}^{frac{pi}{2}} lnleft|cos(x)right|:dx = 2cdot-frac{pi}{2}ln(2) = -pi ln(2)$$
For detail on this definite integral, see guidance here
We now need to solve
$$ int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx $$
Here, Let
$$ I(t) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + t right|:dx $$
Thus,
$$
frac{dI}{dt} = int_{0}^{frac{pi}{2}} frac{1}{cos^2(x) + t}:dx
= int_{0}^{frac{pi}{2}} frac{1}{frac{cos(2x) + 1}{2} + t}:dx = 2int_{0}^{frac{pi}{2}} frac{1}{cos(2x) + 2t + 1}:dx
$$
Employ a change of variable $u = 2x$:
$$frac{dI}{dt} = int_{0}^{pi} frac{1}{cos(u) + 2t + 1}:du $$
Employ the Weierstrass substitution $omega = tanleft(frac{u}{2} right)$:
begin{align}
frac{dI}{dt} &= int_{0}^{infty} frac{1}{frac{1 - omega^2}{1 + omega^2} + 2t + 1}:frac{2}{1 + omega^2}cdot domega \
&= int_{0}^{infty} frac{1}{tomega^2 + t + 1} :domega \
&= frac{1}{t}int_{0}^{infty} frac{1}{omega^2 + frac{t + 1}{t}} :domega \
&= frac{1}{t}left[frac{1}{sqrt{frac{t+1}{t}}}arctanleft( frac{omega}{sqrt{frac{t+1}{t}}}right)right]_{0}^{infty} \
&= frac{1}{t}frac{1}{sqrt{frac{t+1}{t}}}frac{pi}{2} \
&= frac{1}{sqrt{t}sqrt{t + 1}}frac{pi}{2}
end{align}
And so,
$$I(t) = int frac{1}{sqrt{t}sqrt{t + 1}}frac{pi}{2}:dt = pilnleft| sqrt{t} + sqrt{t + 1}right| + C$$
Now
$$I(0) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 0 right|:dx = -pi ln(2) = pilnleft|sqrt{0} + sqrt{0 + 1} right| + C rightarrow C = -pi ln(2)$$
And so,
$$I(t) = pilnleft| sqrt{t} + sqrt{t + 1}right| -pi ln(2) = pilnleft|frac{sqrt{t} + sqrt{t + 1}}{2} right|$$
Thus,
$$I = I(1) = int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx = pilnleft|frac{sqrt{1} + sqrt{1 + 1}}{2} right| = pilnleft|frac{1 + sqrt{2}}{2} right| $$
And Finally
begin{align}
int_{0}^{frac{pi}{2}} lnleft|2 + tan^2(x) right| :dx &= int_{0}^{frac{pi}{2}} lnleft|cos^2(x) + 1 right|:dx - int_{0}^{frac{pi}{2}} lnleft|cos^2(x)right|:dx \
&= pilnleft|frac{1 + sqrt{2}}{2} right| - left(-pi ln(2)right) \
&= pilnleft|1 + sqrt{2} right|
end{align}
edited Nov 21 at 10:31
answered Nov 21 at 3:48
DavidG
813513
813513
Your question and your answer have a gap of just 1 minute. If you did solve the question earlier then you must've included your approach in the question itself. What is the need to post it as an answer?
– Digamma
Nov 21 at 3:56
@Digamma - Sorry, although I've been a member of Math StackExchange for 4 years, I've only become regularly active recently. When I asked a friend who is a member as to what is the best way of presenting a solution whilst asking for other solutions I was told this is the approach taken within the community. If this violate any of the rules, please advise and I will reposition accordingly. Also, I never assign my solution as 'the solution' to any post of this nature.
– DavidG
Nov 21 at 4:00
@Digamma The site encourages people to share the questions with answers.
– Tianlalu
Nov 21 at 4:03
@Tianlalu - Sorry, just to be clear - Have I employed the correct process here?
– DavidG
Nov 21 at 4:10
Looks good to me.
– Tianlalu
Nov 21 at 6:01
|
show 1 more comment
Your question and your answer have a gap of just 1 minute. If you did solve the question earlier then you must've included your approach in the question itself. What is the need to post it as an answer?
– Digamma
Nov 21 at 3:56
@Digamma - Sorry, although I've been a member of Math StackExchange for 4 years, I've only become regularly active recently. When I asked a friend who is a member as to what is the best way of presenting a solution whilst asking for other solutions I was told this is the approach taken within the community. If this violate any of the rules, please advise and I will reposition accordingly. Also, I never assign my solution as 'the solution' to any post of this nature.
– DavidG
Nov 21 at 4:00
@Digamma The site encourages people to share the questions with answers.
– Tianlalu
Nov 21 at 4:03
@Tianlalu - Sorry, just to be clear - Have I employed the correct process here?
– DavidG
Nov 21 at 4:10
Looks good to me.
– Tianlalu
Nov 21 at 6:01
Your question and your answer have a gap of just 1 minute. If you did solve the question earlier then you must've included your approach in the question itself. What is the need to post it as an answer?
– Digamma
Nov 21 at 3:56
Your question and your answer have a gap of just 1 minute. If you did solve the question earlier then you must've included your approach in the question itself. What is the need to post it as an answer?
– Digamma
Nov 21 at 3:56
@Digamma - Sorry, although I've been a member of Math StackExchange for 4 years, I've only become regularly active recently. When I asked a friend who is a member as to what is the best way of presenting a solution whilst asking for other solutions I was told this is the approach taken within the community. If this violate any of the rules, please advise and I will reposition accordingly. Also, I never assign my solution as 'the solution' to any post of this nature.
– DavidG
Nov 21 at 4:00
@Digamma - Sorry, although I've been a member of Math StackExchange for 4 years, I've only become regularly active recently. When I asked a friend who is a member as to what is the best way of presenting a solution whilst asking for other solutions I was told this is the approach taken within the community. If this violate any of the rules, please advise and I will reposition accordingly. Also, I never assign my solution as 'the solution' to any post of this nature.
– DavidG
Nov 21 at 4:00
@Digamma The site encourages people to share the questions with answers.
– Tianlalu
Nov 21 at 4:03
@Digamma The site encourages people to share the questions with answers.
– Tianlalu
Nov 21 at 4:03
@Tianlalu - Sorry, just to be clear - Have I employed the correct process here?
– DavidG
Nov 21 at 4:10
@Tianlalu - Sorry, just to be clear - Have I employed the correct process here?
– DavidG
Nov 21 at 4:10
Looks good to me.
– Tianlalu
Nov 21 at 6:01
Looks good to me.
– Tianlalu
Nov 21 at 6:01
|
show 1 more comment
up vote
1
down vote
Good answers have already been posted. Maybe one will like this way too: $$I=int_0^frac{pi}{2}ln(2+tan^2x)dxoverset{tan x=t}=int_0^infty frac{ln(2+t^2)}{1+t^2}dt$$
We now consider the following integral: $$I(a)= int_0^infty frac{ln(1+a(1+x^2))}{1+x^2}dxrightarrow I'(a)=int_0^infty frac{1+x^2}{(1+a(1+x^2))(1+x^2)}dx$$
$$=int_0^infty frac{dx}{1+a+ax^2}= frac{1}{sqrt{a+a^2}} arctanleft(sqrt{frac{ a} {a+1}}xright)bigg|_0^infty=frac{pi}{2}frac{1}{sqrt{a+a^2}}$$
Since $I(0)=0$ We have that $I=I(1)-I(0)= int_0^1 I'(a)da $
$$I=frac{pi}{2} int_0^1 frac{da}{sqrt{a}sqrt{1+a}} overset{sqrt a=t}=piint_0^1 frac{dt}{sqrt{1+t^2}}=piln(1+sqrt 2)$$
1
Much more compact way of approaching it. Thanks for posting @Zacky.
– DavidG
Nov 22 at 23:54
add a comment |
up vote
1
down vote
Good answers have already been posted. Maybe one will like this way too: $$I=int_0^frac{pi}{2}ln(2+tan^2x)dxoverset{tan x=t}=int_0^infty frac{ln(2+t^2)}{1+t^2}dt$$
We now consider the following integral: $$I(a)= int_0^infty frac{ln(1+a(1+x^2))}{1+x^2}dxrightarrow I'(a)=int_0^infty frac{1+x^2}{(1+a(1+x^2))(1+x^2)}dx$$
$$=int_0^infty frac{dx}{1+a+ax^2}= frac{1}{sqrt{a+a^2}} arctanleft(sqrt{frac{ a} {a+1}}xright)bigg|_0^infty=frac{pi}{2}frac{1}{sqrt{a+a^2}}$$
Since $I(0)=0$ We have that $I=I(1)-I(0)= int_0^1 I'(a)da $
$$I=frac{pi}{2} int_0^1 frac{da}{sqrt{a}sqrt{1+a}} overset{sqrt a=t}=piint_0^1 frac{dt}{sqrt{1+t^2}}=piln(1+sqrt 2)$$
1
Much more compact way of approaching it. Thanks for posting @Zacky.
– DavidG
Nov 22 at 23:54
add a comment |
up vote
1
down vote
up vote
1
down vote
Good answers have already been posted. Maybe one will like this way too: $$I=int_0^frac{pi}{2}ln(2+tan^2x)dxoverset{tan x=t}=int_0^infty frac{ln(2+t^2)}{1+t^2}dt$$
We now consider the following integral: $$I(a)= int_0^infty frac{ln(1+a(1+x^2))}{1+x^2}dxrightarrow I'(a)=int_0^infty frac{1+x^2}{(1+a(1+x^2))(1+x^2)}dx$$
$$=int_0^infty frac{dx}{1+a+ax^2}= frac{1}{sqrt{a+a^2}} arctanleft(sqrt{frac{ a} {a+1}}xright)bigg|_0^infty=frac{pi}{2}frac{1}{sqrt{a+a^2}}$$
Since $I(0)=0$ We have that $I=I(1)-I(0)= int_0^1 I'(a)da $
$$I=frac{pi}{2} int_0^1 frac{da}{sqrt{a}sqrt{1+a}} overset{sqrt a=t}=piint_0^1 frac{dt}{sqrt{1+t^2}}=piln(1+sqrt 2)$$
Good answers have already been posted. Maybe one will like this way too: $$I=int_0^frac{pi}{2}ln(2+tan^2x)dxoverset{tan x=t}=int_0^infty frac{ln(2+t^2)}{1+t^2}dt$$
We now consider the following integral: $$I(a)= int_0^infty frac{ln(1+a(1+x^2))}{1+x^2}dxrightarrow I'(a)=int_0^infty frac{1+x^2}{(1+a(1+x^2))(1+x^2)}dx$$
$$=int_0^infty frac{dx}{1+a+ax^2}= frac{1}{sqrt{a+a^2}} arctanleft(sqrt{frac{ a} {a+1}}xright)bigg|_0^infty=frac{pi}{2}frac{1}{sqrt{a+a^2}}$$
Since $I(0)=0$ We have that $I=I(1)-I(0)= int_0^1 I'(a)da $
$$I=frac{pi}{2} int_0^1 frac{da}{sqrt{a}sqrt{1+a}} overset{sqrt a=t}=piint_0^1 frac{dt}{sqrt{1+t^2}}=piln(1+sqrt 2)$$
answered Nov 21 at 9:53
Zacky
2,9931336
2,9931336
1
Much more compact way of approaching it. Thanks for posting @Zacky.
– DavidG
Nov 22 at 23:54
add a comment |
1
Much more compact way of approaching it. Thanks for posting @Zacky.
– DavidG
Nov 22 at 23:54
1
1
Much more compact way of approaching it. Thanks for posting @Zacky.
– DavidG
Nov 22 at 23:54
Much more compact way of approaching it. Thanks for posting @Zacky.
– DavidG
Nov 22 at 23:54
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3007234%2fseeking-methods-to-solve-int-0-frac-pi2-ln-left2-tan2x-righ%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown