The Gateway to Computer Science Excellence
+4 votes
97 views
How to test whether function is onto and one-to-one when function is in two variables?

Determine whether below function $f:Z\,X\,Z\rightarrow\,Z$ is one-to-one, or onto or none?

(a)$f(m,n)=2m-n$

(b)$f(m,n)=m^2-n^2$
in Set Theory & Algebra by Boss (27.3k points)
edited by | 97 views
0
a) one to one

b) onto and many to one
+3

$(a)$ $f(m,n)=2m-n$ is not one-to-one $f(2,2) = 2 = f(3,4)$ also for every $x \in Z$ there exist some m,n which generate x from $f(m,n)$,

let x = 3,

$2m - n = 3$

$2m  = 3 + n$ now substitute any value of m and n that satisfies the equation

so it is onto

$(b)$ $f(m,n)=m^2 - n^2$

if x = 2 then there exist no m and n to satisfy this equation, $1^2 - 0 = 1$ and $2^2 - 1^2 = 3$

clearly not onto

now $f(1,0)$ = 1 = $f(-1,0)$ so it is also not one to one.

0
+1
1st is not one to one check my comment
0
ok, yes thanks

that means, 2 numbers subtraction or addition or multiplication or division cannot be one to one

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,650 questions
56,242 answers
194,294 comments
95,953 users