I'm self-studying abstract algebra (using the free book found on this website: http://abstract.pugetsound.edu/), and am having difficulty solving Problem 19 of Chapter 2's end-of-chapter questions. I have quoted it below:
Let $x,y \in \mathbb{N}$ be relatively prime. If $x\cdot y$ is a perfect square, prove that $x$ and $y$ must both be perfect squares.
The answer/hint in the back of the book is "Use the fundamental theorem of arithmetic."
What I've done:
To me, this fact is obvious. However, I don't know how to represent this in mathematical terms/symbols. In words, I would say:
- To be a perfect square, the number in question must have a prime factorization consisting only of primes raised to even powers.
- Suppose $x$ is not a perfect square (that is, some prime factor (we will call $p$) of $x$ is not raised to an even power).
- To make $x\cdot y$ a perfect square, $p$ must also exist as a prime factor of $y$. This is a contradiction, as $x$ and $y$ are coprime. The same reasoning applies if $y$ is assumed as not a perfect square.
My question:
First, I'd like to know if this is a valid proof. (To me, it appears solid, but there may be something I'm overlooking.)
Second, I'd like to know if there is a more "mathematical" way of representing this proof. (Symbols, etc. that I should use.)