3

Let $f(x) = x^{2}$ for all $x \in \Bbb R$. Show that $f[\Bbb Q] \subset \Bbb Q$

We know that $f[\Bbb Q]$ is the set of all values that $f$ takes on given points in $\Bbb Q$, i.e. $f[\Bbb Q] = \{f(x):x\in \Bbb Q\}$.

But how do I show that every $f(x)$ is in $\Bbb Q$?

Thanks!

kanker7
  • 275
  • 2
    That's equivalent to asking "How do I know $q^2$ is rational if q is". Can you do that? If so, simply state "Let $x\in \mathbb Q$. Then $f(x) = x^2 \in \mathbb Q$. So $f(\mathbb Q) \subset \mathbb Q$. – fleablood Apr 12 '16 at 23:08

3 Answers3

6

Let $x \in \mathbb{Q}$, then $x=\frac{a}{b}$, $a,b \in \mathbb{Z}$, $b \not= 0$. $f(x)=\frac{a^{2}}{b^{2}} \in \mathbb{Q}$, so $f(\mathbb{Q}) \subseteq \mathbb{Q}$

mich95
  • 8,713
3

It helps to formalize what $\mathbb{Q}$ is.

$\mathbb{Q}=\{\frac{a}{b}|a,b\in\mathbb{Z}\text{ and }b\not=0\}$.

Let $q\in\mathbb{Q}$. Then, there are integers $a$ and $b$ such that $q=\frac{a}{b}$. Hence, $f(q)=q^{2}=\left(\frac{a}{b}\right)^{2}=\frac{a^{2}}{b^{2}}\in\mathbb{Q}$.

ervx
  • 12,208
1

Other two answers showed that if $x$ is rational then $x^2$ is rational.

You can use induction and show that if $x$ is rational then $x^n$ is rational for all natural numbers $n$.

Since the finite addition/multiplication of rationals are rationals too, we can conclude that fon any polynomial $P$ over $\mathbb Q$ we have $$P(\mathbb Q) \subset \mathbb Q.$$