Solution
Let g:R→R be defined by:
g(x)=x2−3x
Injective?
Assume g(x1)=g(x2):
x12−3x1=x22−3x2
(x12−x22)−3(x1−x2)(x1−x2)(x1+x2)−3(x1−x2)(x1−x2)(x1+x2−3)=0=0=0
So either x1=x2 or x1+x2=3.
For example, x1=0 and x2=3 give:
g(0)=0,g(3)=0
with 0=3, so g is not injective.
Surjective?
Let y∈R and solve x2−3x=y:
x2−3x−y=0
This has real solutions only if the discriminant is non-negative:
Δ=(−3)2−4(1)(−y)=9+4y≥0⇒y≥−49
So values y<−49 are not achieved, hence g is not surjective.
g is neither injective nor surjective