Given statement ,
p: If x is an integer and x2 is even, then x is also even.
Let q : If x is an integer and x2 is even.
r:x is even.
The given statement is,
if q then r
Using method of contrapositive,
By assuming ∼r is true & prove that ∼q is also true.
i.e., ∼r⇒∼q
let ∼r is true,
i.e., x is not even
i.e., x is odd
i.e., x=2n+1,n∈Z
Squaring on both the sides,
⇒(x)2=(2n+1)2
⇒x2=(2n)2+(1)2+2×2n×1
⇒x2=4n2+1+4n
⇒x2=4n2+4n+1
⇒x2=2(2n2+2n)+1
⇒x2=2(2n2+2n)+1
⇒x2 is odd
⇒x2 is not even
⇒∼q is true
Hence, the given statement is true.