If n is rational, it means that
[tex]n\in\mathbb{Q}\Rightarrow n=\frac{p}{q},\quad p\in\mathbb{Z},\quad q\in\mathbb{Z}^*[/tex]Therefore when we do n² we can write it as
[tex]n^2=\frac{p^2}{q^2},\quad p\in\mathbb{Z},\quad q\in\mathbb{Z}^*[/tex]Remember that the product of two integer numbers is also an integer, therefore we can guarantee that
[tex]p^2\in\mathbb{Z}\text{ and }q^2\in\mathbb{Z}^*[/tex]Then we can confirm that n² is the quotient of two integers and the denominator is not zero, therefore, n² is always rational, it cannot be an irrational number