I'm trying to understand each part of this completed proof that my professor did, here is my interpretation in parentheses, please advise as necessary.
Proof: Assume that $2^{1/2}$ is rational, then $2^{1/2}$ = $p/q$ for some integer $p$ and $q$ with $q \neq 0$ and $\gcd(p,q) = 1$
$$(p/q)^2 = 2 = p^2 / q^2 $$ $$\text{ (What was the purpose of squaring √2 and p/q?)}$$
$$p^2 = 2q^2$$ $$ \text{ (Is this basically just canceling out the q^2 on left side, and multiplying the right side?)}$$
2 | p^2 => (2 divides p^2 since it is a factor)
2 | p => (thus 2 divides p)
p = 2k for some integer k => (definition of even)
(2k)^2 = 4k^2 = 2q^2 => (Why are we squaring 2k, and how does 4k^2 = 2q^2?)
q^2 = 2k^2 => (Canceled out 2 on one side, and dividing on other)
2 | q^2 => (2 divides q^2)
2 | q => (thus 2 divides q)
2 | gcd(p,q) => (2 divides gcd of p and q)
2 | 1 Which is a Contradiction (no clue how I got here)
I don't know what part you got confused with. I will repeat your steps here with a changed notation (hope it helps). Now, assume the $\sqrt 2 = \frac{p}{q}$ where $p$ and $q$ are integers which are prime with respect to each other. Note that we could show any rational with an infinite number of $p$ and $q$s but enforcing the relative primeness gives us a unique representation for each rational. Anyway, since we don't understand $\sqrt 2$, we will square both sides to reach a more familiar number, that is $2$. We get $${p^2} = 2{q^2}$$Now notice that since $p$ is an integer, it should be odd or even. But the multiplication of two odd numbers gives another odd number which is not in correspondence with the above equation. Hence, $p$ is surely an even integer. That is there exists an integer $k$ such that $p = 2k$. Replacing this result into the above equation gives ${q^2} = 2{k^2}$ which by the same reasoning shows that there exists another integer $l$ such that $q = 2l$. Now, these results show that both $p$ and $q$ are divisible by $2$ which is in contradiction to our initial relative primeness assumption. Hence $\sqrt 2$ does not have a $\frac{p}{q}$ representation in which $p$ and $q$ are relatively prime, in other words, it is not a rational number.