MathDB
injective is surjective

Source: Romania District Olympiad 2013,grade X(problem 3)

March 14, 2013
functionalgebra proposedalgebra

Problem Statement

Take the function f:RRf:\mathbb{R}\to \mathbb{R}, f(x)=ax,xQ,f(x)=bx,xR\Qf\left( x \right)=ax,x\in \mathbb{Q},f\left( x \right)=bx,x\in \mathbb{R}\backslash \mathbb{Q}, where aa and bb are two real numbers different from 0. Prove that ff is injective if and only if ff is surjective.