To square something, use ^2 like:

3^2

https://www.mathpapa.com/algebra-calculator.html?q=3%5E2