MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Square roots and Solve/Reduce



Hello all,

My question is a seemingly simple one. Is there any way to tell the
functions Solve and Reduce that I am only interested in using a +ve or
-ve form of a square root?
For instance in the following situation, eigen1 and eigen 2 are the
eigenvalues of a matrix.

eigen1=(2 - t - Sqrt[4 - 4*s + t^2])/4 eigen2=(2 - t +Sqrt[4 - 4*s +
t^2])/4

Now consider that we are interested in the boundaries of -1 < eigen1 < 1
and -1 < eigen2 <1. (Incidentally we are only interested in the
boundaries between -1 < s <1, -1 < t < 1)
I do:

In[3]:=
Reduce[eigen1==1,{s,t}]
Out[3]=
s==-t
In[4]:=
Reduce[eigen1==-1,{s,t}]
Out[4]=
s==-8+3 t
In[5]:=
Reduce[eigen2==1,{s,t}]
Out[5]=
s==-t
In[6]:=
Reduce[eigen2==-1,{s,t}]
Out[6]=
s==-8+3 t

So according to Reduce, the two eigenvalues give the same boundary
conditions. However, this is clearly not the case : as becomes apparent
when plotting them e.g. with

ContourPlot[eigen1,{s,-1,1},{t,-1,1},Contours->{-1,1}]

and

ContourPlot[eigen2,{s,-1,1},{t,-1,1},Contours->{-1,1}]

What seems to be happening is that Reduce is allowing the square root to
once again be +ve or -ve, thus making the equations for the eigenvalues
synonymous! How can
I prevent this? Why does ContourPlot 'know' differently? Any help would
be much appreciated

Richard
********************************************************************************

Richard Anderson
e-mail : richardj.anderson@stonebow.otago.ac.nz





  • Prev by Date: Re: VirusScan
  • Next by Date: Re: Change viewpoints in real time
  • Prev by thread: Re: Simultaneous equation problem - too many variables?
  • Next by thread: Re: Square roots and Solve/Reduce