If x^2+2*x<0, then x<0.
Proof:
Assume that x is a real number and Using contraposition, supposed that x>=0(Assume ~Q). then x>=0 => x^2>=0. adding 2x on both sides of the inequality, the inequality becomes x^2+2*x>=2*x. Since x>=0 then 2*x>=0 and since x^2+2*x>=2*x, then x^2+2*x>=0(Therefore ~P). Since x>=0 => x^2+2*x>=0(~Q=> ~P), then x^2+2*x<0 => x<0.(P=>Q).
Is this how you would write this proof?
Proof:
Assume that x is a real number and Using contraposition, supposed that x>=0(Assume ~Q). then x>=0 => x^2>=0. adding 2x on both sides of the inequality, the inequality becomes x^2+2*x>=2*x. Since x>=0 then 2*x>=0 and since x^2+2*x>=2*x, then x^2+2*x>=0(Therefore ~P). Since x>=0 => x^2+2*x>=0(~Q=> ~P), then x^2+2*x<0 => x<0.(P=>Q).
Is this how you would write this proof?