We can also prove the same by using contrapositive of the statement Now
contrapositive of this statement is ~ q ⇒ ~ p, i e , contrapositive of “ if f (x1) = f (x2),
then x1 = x2” is “if x1 ≠x2, then  f (x1) ≠ f (x2)”