1
$\begingroup$

I got stuck here:

fuu[x]:= 1/x +2x^2
Reduce[Exists[{x},fuu[x]],Reals]

of course it doesn't work like this. How can i check if there will be divided by zero or if i will get a radical of a negative number? when i don't know how the function will look like? How do i ask if a function is a factorial, radical? Unfortunately i am not able to use Mathematica 10 and the following way does not work in Mathematica 9, which i am using.

FunctionDomain[x + x/(x (x^2 - 1)), x]
(* Out: x < -1 || -1 < x < 1 || x > 1 *)

FunctionRange[x/(x (x^2 - 1)), x, y]
(* Out: y <= -1 || y > 0 *)
$\endgroup$

1 Answer 1

2
$\begingroup$

One way to find the domain could be

Reduce[Exists[{y}, Element[x, Reals] && y == 1/x + 2 x^2, Element[y, Reals]]]

x < 0 || x > 0

Reduce[Exists[{y}, Element[x, Reals] && y == 1 x + x/(x (x^2 - 1)), Element[y, Reals]]]

x < -1 || -1 < x < 1 || x > 1

$\endgroup$
4
  • $\begingroup$ That helped a lot. :D Thanks. :3 $\endgroup$
    – baloo
    Jun 1, 2015 at 16:21
  • $\begingroup$ it's not working for (x^2 + 4 x + 4)/(x^2 - 4) $\endgroup$
    – baloo
    Jun 13, 2015 at 22:00
  • $\begingroup$ @sudo_math it gives x < 2 || x > 2 which is correct, isn't it? $\endgroup$
    – Stelios
    Jun 14, 2015 at 11:01
  • $\begingroup$ No its (x^2 + 4 x + 4)/(x-2)(x+2) so gaps should be -2 and 2 $\endgroup$
    – baloo
    Jun 15, 2015 at 14:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.