How Do You Integrate the Square Root of Tangent?

  • Thread starter Thread starter shaiqbashir
  • Start date Start date
  • Tags Tags
    Integration
shaiqbashir
Messages
103
Reaction score
0
PLease help me in solving the following integral!


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

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

dx = \frac{du}{1+u^2}

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

Can you explain the discrepancy? I cant.

http://www.public.asu.edu/~hyousif/ma.JPG
 
Last edited by a moderator:
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.
 
Oh, ofcourse. How could I forget that.
 
shaiqbashir said:
PLease help me in solving the following integral!


\int{\sqrt{\tanx}dx}


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 f(x) = \sqrt{\tanx}

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

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

Is this right Whozum?

Using what I got, dx = \cos^2x du
Can u work from here ?
 
Last edited:
Yeah, you've derived the same result as I have, from there I think parts is the way to go.
 
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: 594
  • #11
Well it's not that difficult or ugly... After the substitution i pointed out it is simply:
\int{\sqrt{t}(t^{2}+1)dt}=...=\frac{2}{7}(\tan{x})^{\frac{7}{2}}+\frac{2}{3}(\tan{x})^{\frac{3}{2}}+C
 
  • #12
Oggy the final integral is

\int \frac{\sqrt{ u }}{1+u^2} \ du
 
  • #13
\int \frac{\sqrt{ u }}{1+u^2} \ du

g = \sqrt{u} \ \ \ h = arctan(u)

dg = \frac{1}{2\sqrt{u}}\ du \ \ \ dh = \frac{1}{1+u^2} du

\int g dh = gh - \int h dg

\int \frac{\sqrt u}{1+u^2} du = \sqrt{u}\ arctan u - \int \frac{arctan(u)}{2\sqrt{u}} du
 
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.

I=\int\sqrt{\tan x} \ dx (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

\tan x=t^{2} (2)


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

Then

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

Use the trick

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

,so that (4) becomes

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

Use partial fractions and maybe partial integrations...

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

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:
\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}
 
  • #20
I don't think
I=2\int \frac{t^{2}}{\left(1+\sqrt{2}t+t^{2}\right)\left(1 -\sqrt{2}t+t^{2}\right)} \ dx
is consistent with the original integral, because that would be -\cos^2 x
 
  • #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...

2\int \frac{t^{2}}{1+t^{4}}\dt

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

t = \sqrt{\tan x}}

back into this integral, you yield my original answer.
 

Attachments

  • Integrate2.gif
    Integrate2.gif
    1.7 KB · Views: 494
Last edited by a moderator:
  • #24
"-cos^2 x" is -((\cos (x))^2)
 
  • #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
I=2\int \frac{t^{2}}{\left(1+\sqrt{2}t+t^{2}\right)\left(1 -\sqrt{2}t+t^{2}\right)} \ dx
is -\cos^2 x

I am much less positive about the other answer.
 
  • #30
It's posible that
\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}
is equivelent to your answer.
 

Attachments

  • Integrate.gif
    Integrate.gif
    2.3 KB · Views: 519
  • #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

2\int \frac{t^{2}}{1+t^{4}}\dt, 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]:

\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&gt;0\\ -\frac{1}{4B\alpha&#039;}\left(\ln\frac{x+\alpha&#039;}{x-\alpha&#039;}-2\arctan\frac{x}{\alpha&#039;}\right) \ \mbox{if} \ AB&lt;0 \end{array}\right

,where

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

\alpha&#039;=\sqrt[4]{\frac{-A}{B}}.

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,

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

Aside

\frac{t^{2}}{(1+ \sqrt{2}t+t^{2})(1- \sqrt{2}t +t^{2})}=

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

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

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

=

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



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

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.

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

Cross multiplying,one gets the system of equations

\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

which has the unique solution

\left\{\begin{array}{cccc} A=-\frac{\sqrt{2}}{4}, &amp; B=0, &amp; C=\frac{\sqrt{2}}{4}, &amp; D=0 \end{array} \right\}

Can u carry on from here...?

Daniel.
 
  • #36
Can you show where GCT went wrong? I followed his procedure and can't spot an error.
 
  • #37
H mixed "t" and "x"...Not to mention that the system of equations should have been variable ('x' or 't' or whatever)-free.

Daniel.
 
  • #38
I spotted the x,t switch but I figured it was a notation issue. Thanks.
 
  • #39
Man...this is not my day

anyways

\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

the third and last equation seems to contradict each other, substitute A+C=0 into the third, indicates B=D, the fourth equation indicates B=-D.
 
  • #40
B and D are zero as dex pointed out.
 
  • #41
okay, I worked it out and the solution seems to be similar to #33, an innocent looking integral...turned out to be very nasty in the end.
 
  • #42
here's my work

I=2 \int \frac{- \sqrt{2} t/4}{1+ \sqrt{2}t +t^{2}}~+~ \frac{ \sqrt{2} t/4}{1- \sqrt{2}t +t^{2}}~dt

solving for the first component

\int \frac{(- \sqrt{2}/8)( \sqrt{2} +2t_)}{1+ \sqrt{2}t +t^{2}}~dt~+ <br /> (1/4) \int \frac{1}{1+ \sqrt{2} t +t^{2}}~dt


u=1+ \sqrt{2} t + t^{2},~du= \sqrt{2} + 2t~dt

(- \sqrt{2} / 8) ln(1+ \sqrt{2} t + t^{2}) + ( \sqrt{2} /4) arctan( \sqrt{2} + 1))

the second component turns out to be
( \sqrt{2} / 8) ln (1- \sqrt{2} t + t^{2}) + ( \sqrt{2} /4) <br /> arctan( \sqrt{2} - 1)

adding them up, in nonsimplified form

(- \sqrt{2} / 4) {ln ( \frac {1- \sqrt{2} \sqrt{tanx} + tanx}{1+ \sqrt{2} \sqrt {tanx} + tanx})} + ( \sqrt{2} /2) {(arctan( \sqrt{2} + 1) + arctan( \sqrt{2} - 1)} +C

didn't know the absolute value latex, see any mistakes...let me know
 
  • #43
Can you elaborate on what you did in the first two latex expressions?
 
  • #44
well

\frac{- \sqrt{2} t/4}{1+ \sqrt{2}t +t^{2}}=

\frac{(- \sqrt{2}/8)( \sqrt{2} +2t_) + (1/4)}{1+ \sqrt{2}t +t^{2}}~dt~

Since

u=1+ \sqrt{2} t + t^{2},~du= \sqrt{2} + 2t~dt

you'll first need to find this derivative and sort of work backwards. note that

- \sqrt{2} t/4~=~- \sqrt{2}/8)( \sqrt{2} +2t_) + (1/4)
 
  • #45
- \sqrt{2} t/4~=~- \sqrt{2}/8)( \sqrt{2} +2t_) + (1/4)

How did you find this expression? Is there a need to do so?
 
  • #46
It somewhat of a trick I learned in integral calculus this past semester. You'll notice that one of the fractions contains a derivative of the denominator,

First we note that the derivative of

1+ \sqrt{2}t +t^{2}

is \sqrt{2} + 2t

We'll try to arrive at form where we can separate the fraction into two simpler fractions.

\frac{(- \sqrt{2} t/4)}{ 1+ \sqrt{2}t +t^{2}}

1)\frac{ \sqrt{2} + 2t}{1+ \sqrt{2}t +t^{2}}

we'll try resolving the numerator

2)\frac{( \sqrt{2}/8)( \sqrt{2} +2t)}{1+ \sqrt{2}t +t^{2}}

we now have an equivalent "t" coefficient, we'll need to resolve the nonvariable component, first find the nonvariable component turns out to be (- \sqrt{2}/8)*( \sqrt{2})~=~-1/4 thus we'll need to add 1/4

3)\frac{(- \sqrt{2}/8)( \sqrt{2} +2t_) + (1/4)}{1+ \sqrt{2}t +t^{2}}~dt~

which is equivalent to the original form...now you can separate it into two simpler components. Integrate the first using substitution and the second by converting the denominator into a actangent derivative.
 
Back
Top