How Do You Integrate the Square Root of Tangent?

  • Thread starter shaiqbashir
  • Start date
  • Tags
    Integration
In summary, Daniel is trying to solve an indeterminate integral and is having trouble. He recommends u-substitution and then using Wolfram Alpha to check whether the answer is consistent with the original integral.
  • #1
shaiqbashir
106
0
PLease help me in solving the following integral!


[tex]\int{\sqrt{\tanx}dx}[\tex]


please help me as soon as possible because i want to submit my assignment tomorrow
 
Physics news on Phys.org
  • #2
[tex]\int{\sqrt{\tan x}dx}[/tex]

I would imagine if you played around with it enough you could get it by parts. I can't see anything obvious though.
 
  • #3
Or
[tex]
\tan{x}=t \Rightarrow \frac{dx}{(\cos{x})^{2}}=dt[/tex], and remember [tex]\frac{1}{(\cos{x})^{2}}=1+(\tan{x})^{2}.[/tex]
 
  • #4
[tex] x = arctan(u) [/tex]

[tex] dx = \frac{du}{1+u^2} [/tex]

[tex] \int \sqrt{ \tan x} \ dx \Rightarrow \int \frac{\sqrt{ u }}{1+u^2} \ du [/tex]

Can you explain the discrepancy? I cant.

http://www.public.asu.edu/~hyousif/ma.JPG
 
Last edited by a moderator:
  • #5
There's no discrepancy whasoever.The 2 integrals are different.If you were to invert the sub.which you started with,the 2 results would coincide.

Daniel.
 
  • #6
Oh, ofcourse. How could I forget that.
 
  • #7
shaiqbashir said:
PLease help me in solving the following integral!


[tex]\int{\sqrt{\tanx}dx}[/tex]


please help me as soon as possible because i want to submit my assignment tomorrow

Since this is an indeterminate integral, you have to find the anti derivative of the function [tex] f(x) = \sqrt{\tanx} [/tex]

I would do what whozum did, which I like to call "u-substitution"

[tex] u = \tanx[/tex], so [tex]du = sec^2x dx[/tex] and [tex]dx = \frac{du}{sec^2x}[/tex]

Is this right Whozum?

Using what I got, [tex] dx = \cos^2x du[/tex]
Can u work from here ?
 
Last edited:
  • #8
Yeah, you've derived the same result as I have, from there I think parts is the way to go.
 
  • #9
Please help me a little more

Thanks a lot for ur precious help!

friends! I am still having a little problem in solving it. please can u people help me a little further to solve this integral.


thanks in advance!
 
  • #10
I can't provide any real help to the answer of this integral, but I did do it online and I've attached the answer. It's long, but maybe it will provide some insight.

Jameson
 

Attachments

  • Integrate.gif
    Integrate.gif
    2.3 KB · Views: 562
  • #11
Well it's not that difficult or ugly... After the substitution i pointed out it is simply:
[tex]\int{\sqrt{t}(t^{2}+1)dt}=...=\frac{2}{7}(\tan{x})^{\frac{7}{2}}+\frac{2}{3}(\tan{x})^{\frac{3}{2}}+C [/tex]
 
  • #12
Oggy the final integral is

[tex] \int \frac{\sqrt{ u }}{1+u^2} \ du [/tex]
 
  • #13
[tex] \int \frac{\sqrt{ u }}{1+u^2} \ du [/tex]

[tex] g = \sqrt{u} \ \ \ h = arctan(u) [/tex]

[tex] dg = \frac{1}{2\sqrt{u}}\ du \ \ \ dh = \frac{1}{1+u^2} du [/tex]

[tex] \int g dh = gh - \int h dg [/tex]

[tex] \int \frac{\sqrt u}{1+u^2} du = \sqrt{u}\ arctan u - \int \frac{arctan(u)}{2\sqrt{u}} du [/tex]
 
Last edited:
  • #14
Yep u^2+1 should be in the denominator. Sorry
 
  • #15
Thanks once again but what is its final answer

Hi Guys

thank you very much for ur tremendous help. You people are really very helpful.

Now whozum!

i have tried to solve this integral, from the point where u have left it. but I am getting a zero answer.

why is its so.

should i try to solve it further from the point where u have left it or should i stop it there. if further solution is required then what will be the right answer so that i should get it.

Please PLease help me! this question has now become a challenge for me.

Thanks in advance!
 
  • #16
Here's how it's done.

[tex] I=\int\sqrt{\tan x} \ dx [/tex] (1)

Assuming the tangent is defined on an interval on which is positive,so we don't run into complex valued functions,one makes fisrt sub

[tex] \tan x=t^{2} [/tex] (2)


[tex] dx=\frac{2t}{1+t^{4}} dt [/tex] (3)

Then

[tex] I=2\int \frac{t^{2}}{1+t^{4}} \ dt [/tex] (4)

Use the trick

[tex] 1+t^{4}=\left(1+t^{2}\right)^{2}-\left(\sqrt{2}t\right)^{2} [/tex] (5)

,so that (4) becomes

[tex] I=2\int \frac{t^{2}}{\left(1+\sqrt{2}t+t^{2}\right)\left(1-\sqrt{2}t+t^{2}\right)} \ dx [/tex] (6)

Use partial fractions and maybe partial integrations...

Daniel.
 
  • #17
[tex] I=2\int \frac{t^{2}}{\left(1+\sqrt{2}t+t^{2}\right)\left(1 -\sqrt{2}t+t^{2}\right)} \ dx [/tex]

Can someone check through Maple whether the answer to this is consistent with the original integral?
 
  • #18
If you're doubting the calculations exposed above and,incidentally,not shortcut,why won't you put a pencil in your precious hand and grab a piece of paper and do it...?

Sides,Maple is a known f***-up.:-p

Daniel.
 
  • #19
Jameson said:
I can't provide any real help to the answer of this integral, but I did do it online and I've attached the answer. It's long, but maybe it will provide some insight.Jameson
I don't think that's right; I think it should be:
[tex]\frac{-\sqrt{2}(\ln(\vert(\sqrt{2\tan (x)}+1)\cos (x) + \sin (x)\vert)-\ln(\vert(\sqrt{2\tan (x)}-1)\cos (x) - \sin(x)\vert)-2(\tan^{-1}(\sqrt{2\tan (x)}+1)+\tan^{-1}(\sqrt{2\tan(x)}-1)))}{4}[/tex]
 
  • #20
I don't think
[tex] I=2\int \frac{t^{2}}{\left(1+\sqrt{2}t+t^{2}\right)\left(1 -\sqrt{2}t+t^{2}\right)} \ dx [/tex]
is consistent with the original integral, because that would be [itex]-\cos^2 x[/itex]
 
  • #21
Well, that's what Wolfram's online integrator spat out. I couldn't defend it or not. It looks to be close to where this thread is leading with the partial fractions. Can you show the steps you used to arrive at your answer?
 
  • #23
Actually now I'm fairly sure my answer is correct. Using Daniel's substitution and arriving at this...

[tex]2\int \frac{t^{2}}{1+t^{4}}\dt [/tex]

I've attached the answer to this integral, and when you substitute

[tex]t = \sqrt{\tan x}}[/tex]

back into this integral, you yield my original answer.
 

Attachments

  • Integrate2.gif
    Integrate2.gif
    1.7 KB · Views: 459
Last edited by a moderator:
  • #24
"-cos^2 x" is [itex] -((\cos (x))^2)[/itex]
 
  • #25
I think Daniel was asking where did that come from?
 
  • #26
Hmmmm... your probably right.
 
  • #27
So where did it come from? How did you arrive at your answer?
 
  • #28
Which answer?
 
  • #29
I am quite sure that
[tex] I=2\int \frac{t^{2}}{\left(1+\sqrt{2}t+t^{2}\right)\left(1 -\sqrt{2}t+t^{2}\right)} \ dx [/tex]
is [tex] -\cos^2 x [/tex]

I am much less positive about the other answer.
 
  • #30
It's posible that
[tex]\frac{-\sqrt{2}(\ln(\vert(\sqrt{2\tan (x)}+1)\cos (x) + \sin (x)\vert)-\ln(\vert(\sqrt{2\tan (x)}-1)\cos (x) - \sin(x)\vert)-2(\tan^{-1}(\sqrt{2\tan (x)}+1)+\tan^{-1}(\sqrt{2\tan(x)}-1)))}{4}[/tex]
is equivelent to your answer.
 

Attachments

  • Integrate.gif
    Integrate.gif
    2.3 KB · Views: 501
  • #31
Yes, it looks like it could be equilvalent.
 
  • #32
If you're doubting the calculations exposed above and,incidentally,not shortcut,why won't you put a pencil in your precious hand and grab a piece of paper and do it...?

Sides,Maple is a known f***-up.

Actually I was working on this problem myself and thought it could be done by partial fractions after arriving at

[tex]2\int \frac{t^{2}}{1+t^{4}}\dt [/tex], I wasn't aware of the trick to progress towards the next step though

Your final form seems fine, however, I'll need to do some research on what makes such a partial fraction capable of integration (just finished int. calc this spring). Perhaps when I find the time, I'll try solving it p&p, just thought it could be done through Maple or Matlab. Isn't this a table integral (the OP's integral)?

It would also be appropriate for the final answer to be posted conclusively, if your final form proves to be right, good for you...and all of us, if not (I would be surprised if it isn't), than let's move on to see exactly why.
 
Last edited:
  • #33
Yes.It's [1]:

[tex]\int \frac{x^{2}}{A+Bx^{4}} \ dx=\left\{\begin{array}{c} \frac{1}{4B\alpha\sqrt{2}}\left(\ln\frac{x^{2}-\alpha x\sqrt{2}+\alpha^{2}}{x^{2}+\alpha x\sqrt{2}+\alpha^{2}}+2\arctan\frac{\alpha x\sqrt{2}}{\alpha^{2}-x^{2}}\right) \ \mbox{if} \ AB>0\\ -\frac{1}{4B\alpha'}\left(\ln\frac{x+\alpha'}{x-\alpha'}-2\arctan\frac{x}{\alpha'}\right) \ \mbox{if} \ AB<0 \end{array}\right [/tex]

,where

[tex] \alpha=\sqrt[4]{\frac{A}{B}} [/tex]

[tex] \alpha'=\sqrt[4]{\frac{-A}{B}} [/tex].

Daniel.

-------------------------------------------------
[1]G & R,5-th edition,CD version,Academic Press,1996,formula 2.132,3)
 
  • #34
alright, I'll try the good o'l fashioned way. Somebody please check my work,

[tex]I=2 \int \frac{t^{2}~dt}{(1+ \sqrt{2}t+t^{2})(1- \sqrt{2}t +t^{2})} [/tex]

Aside

[tex]\frac{t^{2}}{(1+ \sqrt{2}t+t^{2})(1- \sqrt{2}t +t^{2})} [/tex]=

[tex] \frac{Ax+B}{1+ \sqrt{2}t +t^{2}}~+~ \frac{Cx+D}{1- \sqrt{2}t+t^{2}} [/tex]

[tex]t^{2}=(Ax+B)(1- \sqrt{2}t +t^{2})+(Cx+D)(1+ \sqrt{2}t +t^{2}) [/tex]

[tex]Ax- \sqrt {2} Axt +Axt^{2} +B - \sqrt{2}Bt +Bt^{2} +Cx + \sqrt{2}Cxt +Cxt^{2} +D + \sqrt{2}Dt +Dt^{2} [/tex]

=

[tex](Ax+B+Cx+D)t^{2} + (- \sqrt{2} AX - sqrt{2}B + \sqrt{2} Cx + \sqrt{2} D)t +Ax+B+Cx+D[/tex]



1)[tex]Ax+B+Cx+D=1[/tex]
2)[tex]- \sqrt{2} Ax - \sqrt{2} B + \sqrt{2} Cx + \sqrt{2}D=0 [/tex]
3)[tex]Ax+B+Cx+D=0 [/tex]

It seems that we have a problem here between 1) and 3), it seems to be due to the similarities of the denominator in the original integral...I've never had to deal with a denominator with two different irreducible fractions.

If I did anything wrong, please point it out, or enlighten me toward the appropriate approach.
 
  • #35
Let's stick to the original "t",so the OP could make the connection with the integral which started the thread.

[tex] \frac{At+B}{1+t\sqrt{2}+t^2}+\frac{Ct+D}{1-t\sqrt{2}+t^2}\equiv \frac{t^{2}}{\mbox{product}} [/tex]

Cross multiplying,one gets the system of equations

[tex] \left\{\begin{array}{c} A+C=0\\B+D+C\sqrt{2}-A\sqrt{2}=1\\ A+C+D\sqrt{2}-B\sqrt{2}=0\\B+D=0 \end{array}\right [/tex]

which has the unique solution

[tex] \left\{\begin{array}{cccc} A=-\frac{\sqrt{2}}{4}, & B=0, & C=\frac{\sqrt{2}}{4}, & D=0 \end{array} \right\} [/tex]

Can u carry on from here...?

Daniel.
 

Similar threads

Replies
1
Views
1K
Replies
6
Views
550
Replies
3
Views
2K
Replies
8
Views
2K
Replies
22
Views
2K
Replies
6
Views
2K
Back
Top