The first items of More Information in the documentation of Solve
says :
The system expr
in Solve[expr,vars]
can be any logical combination of:
lhs == rhs equations
lhs != rhs inequations
lhs > rhs or lhs >= rhs inequalities
expr ∈ dom domain specifications
ForAll[x,cond,expr] universal quantifiers
Exists[x,cond,expr] existential quantifiers
Solve[{ expr1, expr2,...},vars]
is equivalent to Solve[ expr1 && expr2 &&...,vars]
.
Every expri
can be an equation, inequality as well as an expression tests like e.g. Positive
or Negative
etc., thus we can do simply e.g. Solve[-36 + 49 x^2 - 14 x^4 + x^6 == 0 && x > 0, x]
, but to get only the list of solutions (without Rule
s ) there are at least two ways:
using ReplaceAll
(shorthand /.
) (mentioned by Markus Roellig) with the condition x > 0
:
x/.Solve[-36 + 49 x^2 - 14 x^4 + x^6 == 0 && x > 0, x]
{1, 2, 3}
using Part
(shorthand [[]]
) with e.g. x > 0
or with an expression test like Positive
, NonNegative
etc.:
Solve[-36 + 49 x^2 - 14 x^4 + x^6 == 0 && Positive[x], x][[All, 1, 2]]
{1, 2, 3}
The above ways can be mixed, e.g. : x /. Solve[-36 + 49 x^2 - 14 x^4 + x^6 == 0 && x > 0, x][[3]]
.
We needn't point out the domain Reals
since the condition x > 0
implies that x
is a positive and real number. The same concerns Reduce
, i.e. use it like e.g.
Reduce[-36 + 49 x^2 - 14 x^4 + x^6 == 0 && x > 0, x][[All, 2]]
sol=Solve[{...,t>0},t]
; then you can dosol[[All,1,2]]
. $\endgroup$Reduce
is what you probably want to try out. As for the solutions being given as rules, the documentation ofSolve
has every possible way to extract those. $\endgroup$