The problem's quite clear. Prove that $$\gcd(a^2, b^2) = \gcd(a, b)^2$$
This is easy to understand intuitively and using the Fundamental Theorem of Arithmetic would be easy but I want to prove it by using the Divisibility axioms and the GCD. I have attempted it and am mentioning my results.
Here $d = \gcd(a, b)$.
$$d | ax + by \implies d^2 | a^2x^2 + 2axby + b^2y^2 \implies d^2 | a^2x^2 + b^2y^2 \implies \gcd(a^2, b^2) | d^2$$
I feel that this is not necessary. Please help.
Also, the proof can be generalized to $$\gcd(a^n, b^n) = \gcd(a, b)^n$$
Any help would be appreciated.