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

Give an example for a linear mapping

that is not injective but such that its restriction

is injective.