Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This problem is from my textbook, chapter of Isomorphism and Invariant.

Which of the following functions are well-defined? Prove your answers.

(a) $f:\mathbb{Q}\to \mathbb{Q}$ defined by $f(\frac a b)=\frac {a+b} b$

(b) $f:\mathbb{Z}_4\to \mathbb{Z}_8$ defined by $f([a]_4)=[3a]_8$

(c) $f:\mathbb{Z}_6\to \mathbb{Z}_7$ defined by $f([a]_6)=[a+k]_7$ for any integer $k$

By the definition, well-defined means that a mapping $f:S\to T$ is well defined if $f(a)=f(b)$

whenever $a=b$ in $S$.

So, in order to prove the above, do I assume that $a=b$ ? or pick any arbitary numbers in domains and see if I can counter examples? How do I prove if it is well defined?

share|cite|improve this question
First, you should try a few examples to see if it seems well-defined. If not, then you are done. If it seems to be well-defined, you need to prove this. – Tobias Kildetoft Dec 8 '13 at 20:31
Ok, for example, (b), $f([2]_4)=[6]_8$. And can I say this case is well defined since $[6]_4=[2]_4$? is my calculation correct? – Wes Dec 8 '13 at 20:34
@Wes:But you need to know what is the equivalence relation between fractions. – user99680 Dec 8 '13 at 20:37

For example (a):

$$\frac ab=\frac mn\iff a=\frac{bm}n\;,\;\;or\;\;m=\frac{an}b\implies $$


share|cite|improve this answer

The standard equivalence relation $R$ defined on $\mathbb Q$ is $$ [\frac {a}{b}]=[\frac {c}{d}] $$ iff $ad=bc$. Try showing that if $[\frac {a}{b}]=[\frac{c}{d}]$ , then $[f (\frac {a}{b})]=[f (\frac {c}{d})]$.

So, for example, for 1): Assume [$\frac {a}{b} $]=$[\frac {c}{d}]$. Then $f(\frac {a}{b})=\frac {a+b}{b}$ . Is it equivalent to $f(\frac{c}{d})=\frac{c+d}{d}$ (under $R$)?

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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