Real plane/Linear mapping/Not injective/Rational restriction/Exercise

Give an example for a linear mapping

which is not injective, but such that its restriction

is injective.