Let x, y be an integer. Prove that (x+1)y^2 is even if and only if x is odd or y is even.
"Theorem: A if and only if B." means you must prove that A and B are true and false at the same time. In other words, you must prove "If A then B" and "If not A then not B". Equivalently, you must prove "If A then B" and "If B then A".
Proof: Assume if (x+1)y^2 is even, x is odd or y is even.
Case1: x=2k+1 and y=(2m) for some integers x and y.
So, (x+1)y^2 = (2k+1+1)= (2k+2) = 2(k+1),
y^2= (2m)^2= 2(1m^2)
Case2: For the converse, assume (x+1)y^2 is odd if x is even or y is odd
Is this correct so far? What exactly do I prove in the first case? Am I proving
that (x+1)y^2 is even or should I prove that x is even and y is odd, then plug into equation?
"Theorem: A if and only if B." means you must prove that A and B are true and false at the same time. In other words, you must prove "If A then B" and "If not A then not B". Equivalently, you must prove "If A then B" and "If B then A".
Proof: Assume if (x+1)y^2 is even, x is odd or y is even.
Case1: x=2k+1 and y=(2m) for some integers x and y.
So, (x+1)y^2 = (2k+1+1)= (2k+2) = 2(k+1),
y^2= (2m)^2= 2(1m^2)
Case2: For the converse, assume (x+1)y^2 is odd if x is even or y is odd
Is this correct so far? What exactly do I prove in the first case? Am I proving
that (x+1)y^2 is even or should I prove that x is even and y is odd, then plug into equation?