The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.math.symbolic

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Handling branch cuts in trig functions
Replies: 9   Last Post: Mar 26, 2013 4:54 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ] Topics: [ Previous | Next ]
Nasser Abbasi

Posts: 6,677
Registered: 2/7/05
Handling branch cuts in trig functions
Posted: Mar 24, 2013 4:35 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I tried to simplify sqrt( sec(x)^2 ) but Mathematica will
only do this by assuming x is inside one branch, say
x>-Pi/2 && x<Pi/2 but Maple and maxima simplified it
but they gave the answer is terms of |sec(x)| to take
care of the sign which depends on the branch.

Here is plot of sec(x)

In[37]:= Assuming[x>-Pi/2&&x<Pi/2,Simplify[Sqrt[Sec[x]^2]]]
Out[37]= Sec[x]

In[39]:= Assuming[x > Pi/2 && x < Pi, Simplify[Sqrt[Sec[x]^2]]]
Out[39]= -Sec[x]

If I just tell M that x>0, it will not simplify it.

In[38]:= Assuming[x>0,Simplify[Sqrt[Sec[x]^2]]]
Out[38]= Sqrt[Sec[x]^2]

but Maple did it only with the x>0 assumption:

simplify(sqrt(sec(x)^2)) assuming x::positive;

/ 1 \

On maxima 12.04.0


I think now that answer to sqrt(sec(x)^2) should be
|sec(x)| without need to give the branch. Since the only
different is the sign. Or is there something else here?


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.