Selecting roots found by Solve[]

  • Thread starter mt-squared
  • Start date
  • Tags
    Roots
In summary, the individual is trying to find positive roots of the functions f and g using the Solve command, but is only interested in the positive values of x and y. They are wondering if there is a way to use the Select command to find all positive roots. The expert suggests using the Refine or FullSimplify commands, with the assumption that x and y are greater than or equal to 0. Another option is to use the assumptions in the Solve command itself.
  • #1
mt-squared
1
0
Hi All,

I am using Solve[{f(x,y)==0,g(x,y)==0},{x,y}] to find "x,y" roots of "f" and "g" functions. I am only interested in positive "x" and "y" roots, ignoring all the other. Is there a way to use "Select" command to find all positive roots?

Thanks.
 
Physics news on Phys.org
  • #2
Yes, just substitute x and y back into f and g and see which are positive.
 
  • #3
if this is mathematica 6 or above, try

$Assumptions= x>=0&&y>=0;
Refine[Solve[{f(x,y)==0,g(x,y)==0},{x,y}] ]
or
FullSimplify[Solve[{f(x,y)==0,g(x,y)==0},{x,y}] ]

Those two should apply the assumptions. Or maybe:

$Assumptions= x>=0&&y>=0;
Solve[{FullSimplify[f(x,y)==0],FullSimplify[g(x,y)==0]},{x,y}]

so that it asserts x,y>0
 

Related to Selecting roots found by Solve[]

What is the purpose of using Solve[] to select roots?

The Solve[] function is used to find the values of variables that satisfy a given equation. In the context of selecting roots, it can be used to find the solutions to polynomial equations or equations with unknown variables.

How does Solve[] work to select roots?

Solve[] uses a combination of symbolic and numerical methods to find the roots of an equation. It first tries to find symbolic solutions using algebraic techniques, and if that is not possible, it uses numerical methods to approximate the roots.

What are the limitations of using Solve[] to select roots?

Solve[] may not be able to find all the roots of a given equation, especially if the equation is very complex or has multiple variables. Additionally, the numerical solutions provided by Solve[] may be approximations and not exact values.

Can Solve[] select complex roots?

Yes, Solve[] can find both real and complex roots of an equation. Complex roots are expressed in the form of a+bi, where a and b are real numbers and i is the imaginary unit.

How can I improve the accuracy of roots selected by Solve[]?

To improve the accuracy of the roots selected by Solve[], you can specify the domain of the variables or use other functions such as NSolve[] or FindRoot[] which provide more control over the numerical methods used to find the roots.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
418
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
549
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
594
  • MATLAB, Maple, Mathematica, LaTeX
Replies
10
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
13
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
6
Views
972
  • MATLAB, Maple, Mathematica, LaTeX
Replies
19
Views
580
Back
Top