p : "If x is a real number such thatthen x is 0".
Let q and r be the statements.
Here,
q: x is a real number such that .
r: x is 0.
(i) Direct method
Let q be true.
To obtain we have:
or, x = 0
Thus, r is true.
Hence, "if q, then r" is a true statement.
(ii) Method of contrapositive
Let r not be true.
r is not 0.
If , then q is not true.
Hence, "if ~q, then ~r" is a true statement.
(iii) Method of contradiction
Let q not be true.
Then,
q is true
(q r) is true.
q &r is true
x is a real number such that
Then, x is not 0.
x = 0 and x0
This is a contradiction.
Hence, q is true.